choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
180 lines (179 loc) • 4.6 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
.c7n-pro-field {
display: inline-block;
width: 100%;
}
.c7n-pro-field-row .c7n-pro-field-label,
.c7n-pro-field-label label > span,
.c7n-pro-field-label-vertical {
overflow: hidden;
font-weight: 400;
line-height: 0.3rem;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: middle;
}
.c7n-pro-field-label {
padding: 0.1rem 0.04rem;
padding-top: 0;
padding-bottom: 0;
}
.c7n-pro-field-label-right {
text-align: right;
}
.c7n-pro-field-label-center {
text-align: center;
}
.c7n-pro-field-label-left label > span {
-webkit-box-flex: unset;
-ms-flex: unset;
flex: unset;
}
label.c7n-pro-field-label,
.c7n-pro-field-label label {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
padding: 0.1rem 0.04rem;
padding-right: 0;
padding-left: 0;
color: inherit;
}
label.c7n-pro-field-label > span,
.c7n-pro-field-label label > span {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.c7n-pro-field-wrapper {
padding: 0.1rem 0.05rem;
}
.c7n-pro-field-wrapper .c7n-pro-checkbox-wrapper,
.c7n-pro-field-wrapper .c7n-pro-switch-wrapper {
height: 0.3rem;
}
label.c7n-pro-field-label-vertical {
display: inline-block;
padding: 0.1rem 0.04rem;
padding-top: 0;
padding-bottom: 0;
color: inherit;
line-height: 0.3rem;
direction: ltr;
text-align: left;
}
label.c7n-pro-field-label-vertical + .c7n-pro-field-wrapper {
padding-top: 0;
}
.c7n-pro-field-row .c7n-pro-field-label::after,
.c7n-pro-field-label label::after {
display: inline-block;
color: #d50000;
font-family: SimSun, sans-serif;
line-height: 1;
vertical-align: middle;
content: ' ';
}
.c7n-pro-field-row .c7n-pro-field-required.c7n-pro-field-label::after,
.c7n-pro-field-required.c7n-pro-field-label label::after {
width: 0.08rem;
margin-left: 0.04rem;
content: '*';
}
.c7n-pro-field-label-vertical.c7n-pro-field-required::after,
.c7n-pro-field-label.c7n-pro-field-label-useColon::after {
display: none;
}
.c7n-pro-field-row .c7n-pro-field-label.c7n-pro-field-label-useColon::after,
.c7n-pro-field-label.c7n-pro-field-label-useColon label::after {
position: relative;
top: -0.01rem;
display: inline-block;
width: 0;
margin-left: 0.02rem;
color: inherit;
vertical-align: baseline;
content: ':';
}
.c7n-pro-field-row .c7n-pro-field-label.c7n-pro-field-label-useColon::after {
width: 0.04rem;
}
.c7n-pro-field-label-help .icon-help_outline {
position: relative;
top: 0.02rem;
margin-left: 0.02rem;
font-size: 0.16rem;
}
.c7n-pro-field-label-help + .icon-help_outline {
margin-left: 0.02rem;
font-size: 0.16rem;
}
.c7n-pro-field-label-help + .icon-help_outline + .c7n-pro-field-wrapper {
padding-top: 0;
}
.c7n-pro-field-label-vertical.c7n-pro-field-label.c7n-pro-field-label-useColon {
width: auto;
}
.c7n-pro-field-row .c7n-pro-field-required.c7n-pro-field-label-useColon::before,
.c7n-pro-field-label-vertical.c7n-pro-field-required.c7n-pro-field-label::before,
.c7n-pro-field-required.c7n-pro-field-label.c7n-pro-field-label-useColon label > span::before {
display: inline-block;
margin-right: 0.04rem;
color: #d50000;
font-size: 0.14rem;
line-height: 1;
content: '*';
}
.c7n-pro-field-help {
color: rgba(0, 0, 0, 0.45);
font-size: 0.12rem;
word-break: break-all;
}
.c7n-pro-field-output {
padding-top: 0.01rem;
padding-bottom: 0.01rem;
}
.c7n-pro-field-label-output label {
padding-top: 0.01rem;
padding-bottom: 0.01rem;
}
.c7n-pro-field-output-mix,
.c7n-pro-field-label-output-mix label {
padding: 0.1rem 0.04rem;
}
.c7n-pro-field-row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.c7n-pro-field-col {
position: relative;
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
max-width: 100%;
min-height: 1px;
}
.c7n-pro-field-col-control {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.c7n-pro-field-col .c7n-pro-field-wrapper {
padding: 0.1rem 0.05rem;
}
.c7n-pro-field-col .c7n-pro-field-label {
display: inline-block;
}