qt-public-ui
Version:
新设计规范下业务组件库
181 lines (173 loc) • 3.96 kB
text/less
@import (reference) '../../style/common.less';
.umui-page-header {
display: flex;
margin-bottom: 16px;
flex-direction: column;
background-color: @component-background;
.@{ant-prefix}-tabs-top:not(.@{ant-prefix}-tabs-card) .@{ant-prefix}-tabs-nav {
padding-left: 0;
}
.@{ant-prefix}-page-header-heading {
height: 28px;
line-height: 28px;
overflow: visible;
&-left {
overflow: visible;
}
&-title {
line-height: 28px;
overflow: visible;
}
}
.@{ant-prefix}-page-header-heading-extra {
margin: 0;
}
.@{ant-prefix}-page-header-content {
padding: 0;
overflow: visible;
}
.@{ant-prefix}-page-header-footer {
margin-top: 0;
}
&-tips {
position: relative;
margin-left: 8px;
font-size: 22px ;
vertical-align: middle;
line-height: 21px;
.umui-hoverable-icon;
&::after {
content: '';
display: none;
position: absolute;
box-sizing: border-box;
width: 8.5px;
height: 8.5px;
left: 7px;
top: 38px;
transform: rotateZ(45deg);
border-top: 1px solid @primary-opacity-50;
border-left: 1px solid @primary-opacity-50;
background-color: tint(@primary-color, 95%);
z-index: 2;
}
&.active::after {
display: block;
}
}
&-back {
padding-right: 16px;
border-right: 1px solid @border-color-split;
}
&-title {
font-size: 20px;
color: @text-color;
font-weight: @font-weight-bold;
.umui-select {
font-size: 16px;
vertical-align: bottom;
font-weight: @font-weight-bold;
}
}
.umui-tips-content {
display: flex;
align-items: center;
background: tint(@primary-color, 95%);
border: 1px solid @primary-opacity-50;
padding: 16px;
position: relative;
margin-top: 16px;
width: 100%;
color: @text-color-secondary;
overflow: hidden;
transition: all 0.2s ease-out;
&.umui-hidden {
height: 0;
border-width: 0;
padding-top: 0;
padding-bottom: 0;
margin: 0;
}
& > img {
width: 40px;
}
&-close {
position: absolute;
color: @primary-color;
right: 16px;
top: 16px;
font-size: 10px;
}
.umui-feature-tips {
width: 100%;
display: flex;
flex-flow: row;
justify-content: space-between;
.umui-feature-tips-info {
padding-right: 20px;
width: calc(100% - 340px);
p {
margin: 0 0 5px;
a {
margin-right: 12px;
}
}
.umui-tips-btn {
border: 1px solid @disabled-color;
border-radius: 2px;
padding: 3px 12px;
margin-left: 8px;
cursor: pointer;
&:hover {
background: @primary-color;
color: @white;
border: 1px solid @primary-color;
}
}
.umui-tips-btn-active {
background: @primary-color;
color: @white;
border: 1px solid @primary-color;
}
}
.umui-feature-tips-qa {
width: 320px;
padding-left: 20px;
border-left: 1px solid @border-color-base;
h2 {
font-size: 14px;
font-weight: normal;
margin-bottom: 4px;
a {
color: @text-color;
&:hover {
color: @primary-color;
}
}
}
li {
width: 100%;
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
a {
font-size: 12px;
color: @text-color-secondary;
&:hover {
color: @primary-color;
}
}
}
}
}
}
.umui-tips-text {
margin: 0;
padding: 0 16px;
color: @text-color-secondary;
}
.@{ant-prefix}-tabs-ink-bar {
bottom: 0;
}
}