vue-antd-ui
Version:
An enterprise-class UI design language and Vue-based implementation
349 lines (348 loc) • 10.2 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;
padding: 4px 11px;
width: 100%;
height: 32px;
font-size: 14px;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
background-color: #fff;
background-image: none;
border: 1px solid #d9d9d9;
border-radius: 4px;
-webkit-transition: all .3s;
transition: all .3s;
}
.ant-input::-moz-placeholder {
color: #bfbfbf;
opacity: 1;
}
.ant-input:-ms-input-placeholder {
color: #bfbfbf;
}
.ant-input::-webkit-input-placeholder {
color: #bfbfbf;
}
.ant-input:hover {
border-color: #40a9ff;
}
.ant-input:focus {
border-color: #40a9ff;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}
.ant-input-disabled {
background-color: #f5f5f5;
opacity: 1;
cursor: not-allowed;
color: rgba(0, 0, 0, 0.25);
}
.ant-input-disabled:hover {
border-color: #e6d8d8;
}
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 {
padding: 6px 11px;
height: 40px;
font-size: 16px;
}
.ant-input-sm {
padding: 1px 7px;
height: 24px;
}
.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: 14px;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
display: table;
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: table-cell;
}
.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 {
float: left;
width: 100%;
margin-bottom: 0;
}
.ant-input-group .ant-input:focus {
z-index: 1;
}
.ant-input-group-addon {
padding: 0 11px;
font-size: 14px;
font-weight: normal;
line-height: 1;
color: rgba(0, 0, 0, 0.65);
text-align: center;
background-color: #fafafa;
border: 1px solid #d9d9d9;
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: #1890ff;
}
.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 {
padding: 6px 11px;
height: 40px;
font-size: 16px;
}
.ant-input-group-sm .ant-input,
.ant-input-group-sm > .ant-input-group-addon {
padding: 1px 7px;
height: 24px;
}
.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 {
display: table-cell;
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: 14px;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
-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: #40a9ff;
}
.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: rgba(0, 0, 0, 0.65);
}
.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-prefix {
left: 12px;
}
.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 > .anticon-search {
font-size: 16px;
}
.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;
}