yqcloud-ui
Version:
An enterprise-class UI design language and React-based implementation
586 lines (585 loc) • 18.8 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 */
.ant-input {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
display: inline-block;
width: 100%;
font-size: 12px;
line-height: 1.5;
color: #04173F;
background-color: transparent;
background-image: none;
border: none;
-webkit-transition: all .3s;
transition: all .3s;
}
.ant-input-group:not(.ant-input-group-compact) .ant-input-wrapper {
display: inline-grid;
}
.ant-input::-moz-placeholder {
color: #bfbfbf;
opacity: 1;
}
.ant-input:-ms-input-placeholder {
color: #bfbfbf;
}
.ant-input::-webkit-input-placeholder {
color: #bfbfbf;
}
.ant-input-wrapper {
position: relative;
display: inline-block;
width: 100%;
margin-bottom: 3px;
}
.ant-input-group-compact .ant-input-content {
margin-bottom: 4px;
}
.ant-input-content {
position: relative;
display: inline-block;
vertical-align: middle;
width: 100%;
margin-bottom: 3px;
}
.ant-input-has-label .ant-input-content {
padding-top: 16px;
}
.ant-input-rendered-wrapper {
width: 100%;
display: block;
-webkit-box-sizing: content-box;
box-sizing: content-box;
position: relative;
}
.ant-input-rendered {
position: relative;
width: 100%;
display: inline-block;
}
.ant-input-label {
color: rgba(0, 0, 0, 0.6);
position: absolute;
left: 0;
bottom: 0;
z-index: 2;
-webkit-transform-origin: 0 0;
-ms-transform-origin: 0 0;
transform-origin: 0 0;
width: 100%;
pointer-events: none;
-webkit-transition: color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: transform 400ms cubic-bezier(0.215, 0.61, 0.355, 1), color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: transform 400ms cubic-bezier(0.215, 0.61, 0.355, 1), color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 400ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.is-required .ant-input-label:after {
display: inline-block;
margin-left: 4px;
content: "*";
font-family: SimSun;
line-height: 1;
font-size: 12px;
color: #d50000;
}
.ant-input-has-value .ant-input-label {
-webkit-transform: scale(0.75) translateY(-20px) translateZ(0.001px);
transform: scale(0.75) translateY(-20px) translateZ(0.001px);
color: rgba(0, 0, 0, 0.6);
}
.ant-input-icon-copy {
display: none;
}
.ant-input-has-copy {
padding-right: 20px;
}
.ant-input-has-value .ant-input-icon {
position: absolute;
right: 0;
display: inline-block;
background: none;
border: none;
cursor: pointer;
}
.ant-input-has-value .ant-input-icon-copy {
display: inline-block;
vertical-align: text-bottom;
}
.ant-input-suffix,
.ant-input-prefix {
position: absolute ;
top: 0;
bottom: 0;
margin: auto 0;
color: rgba(0, 0, 0, 0.26);
}
.ant-input-suffix > i.icon,
.ant-input-prefix > i.icon {
vertical-align: text-bottom;
}
.ant-input-suffix {
right: 0;
}
.ant-input-prefix {
left: 0;
}
.ant-input-suffix.ant-input-suffix-lg,
.ant-input-prefix.ant-input-prefix-lg {
top: -5px;
}
.ant-input-focus .ant-input-label {
-webkit-transform: scale(0.75) translateY(-20px) translateZ(0.001px);
transform: scale(0.75) translateY(-20px) translateZ(0.001px);
color: #2196f3;
-webkit-transition: color 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: color 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1), color 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1), color 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.ant-input-focus .ant-input-border-active {
opacity: 1;
-webkit-transform: scaleX(1);
-ms-transform: scaleX(1);
transform: scaleX(1);
-webkit-transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1), opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1), opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 300ms cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.ant-input-border {
border: none;
height: 1px;
background: rgba(0, 0, 0, 0.54);
margin: 0;
padding: 0;
}
.ant-input-border-active {
height: 2px;
opacity: 0;
border: none;
-webkit-transform: scaleX(0.5);
-ms-transform: scaleX(0.5);
transform: scaleX(0.5);
background-color: #2196f3;
margin: -1px 0 0 0;
padding: 0;
}
.has-error .ant-input-border {
background: #d50000;
}
.has-error .ant-input-border-active {
background-color: #d50000;
}
.ant-input-disabled .ant-input-border {
background-position: 0;
background-color: transparent;
background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.42)), color-stop(33%, rgba(0, 0, 0, 0.42)), color-stop(0%, transparent));
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.42) 33%, transparent 0%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.42) 33%, transparent 0%);
background-size: 4px 1px;
background-repeat: repeat-x;
}
.ant-input-has-label .ant-input-placeholder,
.ant-input-has-label .ant-input-suffix,
.ant-input-has-label .ant-input-prefix {
display: none;
}
.ant-input-placeholder {
position: absolute;
left: 0;
width: 100%;
pointer-events: none;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
color: #bfbfbf;
}
.ant-input-focus .ant-input-placeholder,
.ant-input-focus .ant-input-suffix,
.ant-input-focus .ant-input-prefix {
display: inline-block;
-webkit-transition: all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.ant-input-has-value .ant-input-suffix,
.ant-input-has-value .ant-input-prefix {
display: inline-block;
}
.ant-input-has-value .ant-input-placeholder {
display: none;
}
.ant-input-length-info {
float: right;
color: rgba(0, 0, 0, 0.54);
font-size: 9px;
letter-spacing: 2px;
margin-top: 2px;
}
.ant-input:hover {
border-color: #4db5ff;
}
.ant-input:focus {
border-color: #4db5ff;
outline: 0;
}
.ant-input-disabled {
opacity: 1;
color: rgba(0, 0, 0, 0.54);
}
.ant-input-disabled:hover {
border-color: #0d0c0c;
}
.ant-input-disabled .ant-input,
.ant-input-disabled .ant-input-label,
.ant-input-disabled .ant-input-placeholder,
.ant-input-disabled .ant-input-prefix,
.ant-input-disabled .ant-input-suffix {
color: rgba(0, 0, 0, 0.54);
cursor: not-allowed;
}
.ant-input-underline {
position: absolute;
height: 0;
width: 100%;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCD3D9;
}
.ant-input-ripple {
position: absolute;
left: 0;
width: 100%;
-webkit-transform-origin: 50%;
-ms-transform-origin: 50%;
transform-origin: 50%;
-webkit-transform: scaleX(0.5);
-ms-transform: scaleX(0.5);
transform: scaleX(0.5);
opacity: 0;
border-bottom-width: 2px;
border-bottom-style: solid;
-webkit-transition: border-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2);
transition: border-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2);
border-color: #2196f3;
height: 0;
}
.ant-input-disabled .ant-input-underline {
border-bottom: 1px dotted rgba(0, 0, 0, 0.22);
}
.ant-input-focus .ant-input-underline .ant-input-ripple {
opacity: 1;
-webkit-transform: scaleX(1);
-ms-transform: scaleX(1);
transform: scaleX(1);
-webkit-transition: opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
transition: opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.has-error .ant-input-underline {
border-color: #d50000;
}
textarea.ant-input {
max-width: 100%;
height: auto;
vertical-align: bottom;
-webkit-transition: all .3s, height 0s;
transition: all .3s, height 0s;
min-height: 32px;
}
.ant-input-lg {
font-size: 15px;
}
.ant-input-lg .ant-input-has-copy {
padding-right: 22px;
}
.ant-input-sm {
font-size: 9px;
}
.ant-input-sm .ant-input-has-copy {
padding-right: 18px;
}
.ant-input-textarea .ant-input-rendered {
position: relative;
padding-top: 15px;
display: block;
}
.ant-input-textarea .ant-input-label {
bottom: auto;
}
.ant-input-group {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.5;
color: #04173F;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
display: inline-block;
border-collapse: separate;
border-spacing: 0;
width: 100%;
}
.ant-input-group[class*="col-"] {
float: none;
padding-left: 0;
padding-right: 0;
}
.ant-input-group > [class*="col-"] {
padding-right: 8px;
}
.ant-input-group > [class*="col-"]:last-child {
padding-right: 0;
}
.ant-input-group-addon,
.ant-input-group-wrap,
.ant-input-group > .ant-input {
display: inline-block;
}
.ant-input-group-addon:not(:first-child):not(:last-child),
.ant-input-group-wrap:not(:first-child):not(:last-child),
.ant-input-group > .ant-input:not(:first-child):not(:last-child) {
border-radius: 0;
}
.ant-input-group-addon,
.ant-input-group-wrap {
width: 1px;
white-space: nowrap;
vertical-align: middle;
}
.ant-input-group-wrap > * {
display: block ;
}
.ant-input-group .ant-input {
width: 100%;
margin-bottom: 0;
}
.ant-input-group .ant-input:focus {
z-index: 1;
}
.ant-input-group-addon {
font-size: 12px;
font-weight: normal;
line-height: 1;
color: #04173F;
text-align: center;
background-color: rgba(0, 0, 0, 0.04);
border: 1px solid rgba(0, 0, 0, 0.54);
border-radius: 4px;
position: relative;
-webkit-transition: all .3s;
transition: all .3s;
}
.ant-input-group-addon .ant-select {
margin: -5px -11px;
}
.ant-input-group-addon .ant-select .ant-select-selection {
background-color: inherit;
margin: -1px;
border: 1px solid transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.ant-input-group-addon .ant-select-open .ant-select-selection,
.ant-input-group-addon .ant-select-focused .ant-select-selection {
color: #2196f3;
}
.ant-input-group-addon > i:only-child:after {
position: absolute;
content: '';
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.ant-input-group > .ant-input:first-child,
.ant-input-group-addon:first-child {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.ant-input-group > .ant-input:first-child .ant-select .ant-select-selection,
.ant-input-group-addon:first-child .ant-select .ant-select-selection {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.ant-input-group-addon:first-child {
border-right: 0;
}
.ant-input-group-addon:last-child {
border-left: 0;
}
.ant-input-group > .ant-input:last-child,
.ant-input-group-addon:last-child {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.ant-input-group > .ant-input:last-child .ant-select .ant-select-selection,
.ant-input-group-addon:last-child .ant-select .ant-select-selection {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.ant-input-group-lg .ant-input,
.ant-input-group-lg > .ant-input-group-addon {
font-size: 15px;
}
.ant-input-group-sm .ant-input,
.ant-input-group-sm > .ant-input-group-addon {
font-size: 9px;
}
.ant-input-group-lg .ant-select-selection--single {
height: 40px;
}
.ant-input-group-sm .ant-select-selection--single {
height: 24px;
}
.ant-input-group .ant-input-affix-wrapper {
width: 100%;
float: left;
}
.ant-input-group.ant-input-group-compact {
display: block;
zoom: 1;
}
.ant-input-group.ant-input-group-compact:before,
.ant-input-group.ant-input-group-compact:after {
content: " ";
display: table;
}
.ant-input-group.ant-input-group-compact:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-input-group.ant-input-group-compact > * {
border-radius: 0;
border-right-width: 0;
vertical-align: top;
float: none;
display: inline-block;
}
.ant-input-group.ant-input-group-compact .ant-input {
float: none;
z-index: auto;
}
.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selection,
.ant-input-group.ant-input-group-compact > .ant-calendar-picker .ant-input,
.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input,
.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input,
.ant-input-group.ant-input-group-compact > .ant-mention-wrapper .ant-mention-editor,
.ant-input-group.ant-input-group-compact > .ant-time-picker .ant-time-picker-input {
border-radius: 0;
border-right-width: 0;
}
.ant-input-group.ant-input-group-compact > *:first-child,
.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selection,
.ant-input-group.ant-input-group-compact > .ant-calendar-picker:first-child .ant-input,
.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input,
.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input,
.ant-input-group.ant-input-group-compact > .ant-mention-wrapper:first-child .ant-mention-editor,
.ant-input-group.ant-input-group-compact > .ant-time-picker:first-child .ant-time-picker-input {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.ant-input-group.ant-input-group-compact > *:last-child,
.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selection,
.ant-input-group.ant-input-group-compact > .ant-calendar-picker:last-child .ant-input,
.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input,
.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input,
.ant-input-group.ant-input-group-compact > .ant-mention-wrapper:last-child .ant-mention-editor,
.ant-input-group.ant-input-group-compact > .ant-time-picker:last-child .ant-time-picker-input {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-right-width: 1px;
}
.ant-input-group-wrapper {
display: inline-block;
vertical-align: top;
width: 100%;
}
.ant-input-affix-wrapper {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.5;
color: #04173F;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
display: inline-block;
width: 100%;
}
.ant-input-affix-wrapper .ant-input {
z-index: 1;
}
.ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) {
border-color: #4db5ff;
}
.ant-input-affix-wrapper .ant-input-prefix,
.ant-input-affix-wrapper .ant-input-suffix {
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
z-index: 2;
line-height: 0;
color: #04173F;
}
.ant-input-affix-wrapper .ant-input-prefix :not(.anticon),
.ant-input-affix-wrapper .ant-input-suffix :not(.anticon) {
line-height: 1.5;
}
.ant-input-affix-wrapper .ant-input-suffix {
right: 12px;
}
.ant-input-affix-wrapper .ant-input:not(:first-child) {
padding-left: 30px;
}
.ant-input-affix-wrapper .ant-input:not(:last-child) {
padding-right: 30px;
}
.ant-input-affix-wrapper .ant-input {
min-height: 100%;
}
.ant-input-search-icon {
pointer-events: none;
color: rgba(0, 0, 0, 0.45);
}
.ant-input-search:not(.ant-input-search-small) > .ant-input-suffix {
right: 12px;
}
.ant-input-search > .ant-input-suffix > .ant-input-search-button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.ant-input-search > .ant-input-suffix > .ant-input-search-button > .icon-search {
font-size: 15px;
}
.ant-input-search.ant-input-search-enter-button > .ant-input {
padding-right: 46px;
}
.ant-input-search.ant-input-search-enter-button > .ant-input-suffix {
right: 0;
}