UNPKG

ygd

Version:

An enterprise-class UI design language and React-based implementation

65 lines (57 loc) 1.38 kB
@import '../../style/themes/default'; @import '../../style/mixins/index'; @import './mixin'; // Input styles .@{yg-prefix}-input { .reset-component; .input; &.@{yg-prefix}-input-60{ width: @input-width-60; } &.@{yg-prefix}-input-120{ width: @input-width-120; } &.@{yg-prefix}-input-180{ width: @input-width-sm; } &.@{yg-prefix}-input-300{ width: @input-width-300; } &.@{yg-prefix}-input-360{ width: @input-width-360; } &.@{yg-prefix}-input-500{ width: @input-width-500; } &.@{yg-prefix}-input-540{ width: @input-width-540; } } //== Style for input-group: input with label, with button or dropdown... .@{yg-prefix}-input-group { .reset-component; .input-group(~'@{yg-prefix}-input'); &-wrapper { display: inline-block; text-align: start; vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403 } } // Input with affix: prefix or suffix .@{yg-prefix}-input-affix-wrapper { .reset-component; .input-affix-wrapper(~'@{yg-prefix}-input'); // https://github.com/ant-design/ant-design/issues/6144 .@{yg-prefix}-input { min-height: 100%; // use min-height, assume that no smaller height to override } } .@{yg-prefix}-input-password-icon { cursor: pointer; transition: all 0.3s; margin-left: 5px; &:hover { color: #333; } } @import './search-input';