mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
2bced36f0c
* Tweak button padding
* upgrade input and button size
* update form controls size
* update components size
* Add lemon color and update rate color
* Add new icons
* update layout style
* breadcrumb and dropdown
* update menu arrow width
* update layout and menu
* update steps
* fix var name
* update cascasder style
* Update DatePicker
* update InputNumber and Mention
* radio and switch
* select and transfer
* TimePicker & Upload
* more components
* calendar and list
* Tree Timeline Popover Tag
* divider modal popover
* update search input
* update card style
* update switch disabled opacity
* update shoadow and mask
* Add v2-compatible-reset.less
* Fix undefined className
* update snahshotssssssssssssssssss 👻
164 lines
3.0 KiB
Plaintext
164 lines
3.0 KiB
Plaintext
@import "../../style/themes/default";
|
|
@import "../../style/mixins/index";
|
|
@import "../../input/style/mixin";
|
|
|
|
@input-number-prefix-cls: ~"@{ant-prefix}-input-number";
|
|
|
|
.@{input-number-prefix-cls} {
|
|
.reset-component;
|
|
.input;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline-block;
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
border-radius: @border-radius-base;
|
|
width: 90px;
|
|
|
|
&-handler {
|
|
text-align: center;
|
|
line-height: 0;
|
|
height: 50%;
|
|
overflow: hidden;
|
|
color: @text-color-secondary;
|
|
position: relative;
|
|
transition: all 0.1s linear;
|
|
display: block;
|
|
width: 100%;
|
|
font-weight: bold;
|
|
&:active {
|
|
background: #f4f4f4;
|
|
}
|
|
&:hover &-up-inner,
|
|
&:hover &-down-inner {
|
|
color: @primary-5;
|
|
}
|
|
}
|
|
|
|
&-handler-up-inner,
|
|
&-handler-down-inner {
|
|
.iconfont-mixin();
|
|
line-height: 12px;
|
|
user-select: none;
|
|
position: absolute;
|
|
width: 12px;
|
|
height: 12px;
|
|
transition: all 0.1s linear;
|
|
.iconfont-size-under-12px(7px);
|
|
right: 4px;
|
|
color: @text-color-secondary;
|
|
}
|
|
|
|
&:hover {
|
|
.hover();
|
|
}
|
|
|
|
&-focused {
|
|
.active();
|
|
}
|
|
|
|
&-disabled {
|
|
.disabled();
|
|
}
|
|
|
|
&-input {
|
|
width: 100%;
|
|
text-align: left;
|
|
outline: 0;
|
|
-moz-appearance: textfield;
|
|
height: @input-height-base - 2px;
|
|
transition: all 0.3s linear;
|
|
color: @input-color;
|
|
background-color: @input-bg;
|
|
border: 0;
|
|
border-radius: @border-radius-base;
|
|
padding: 0 @control-padding-horizontal - 1px;
|
|
display: block;
|
|
.placeholder();
|
|
|
|
&[disabled] {
|
|
.disabled();
|
|
}
|
|
}
|
|
|
|
&-lg {
|
|
padding: 0;
|
|
|
|
input {
|
|
height: @input-height-lg - 2px;
|
|
}
|
|
}
|
|
|
|
&-sm {
|
|
padding: 0;
|
|
|
|
input {
|
|
height: @input-height-sm - 2px;
|
|
padding: 0 @control-padding-horizontal-sm - 1px;
|
|
}
|
|
}
|
|
|
|
&-handler-wrap {
|
|
border-left: @border-width-base @border-style-base @border-color-base;
|
|
width: 22px;
|
|
height: 100%;
|
|
background: @component-background;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
opacity: 0;
|
|
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
transition: opacity 0.24s linear 0.1s;
|
|
z-index: 2; // https://github.com/ant-design/ant-design/issues/6289
|
|
}
|
|
|
|
&-handler-wrap:hover &-handler {
|
|
height: 40%;
|
|
}
|
|
|
|
&:hover &-handler-wrap {
|
|
opacity: 1;
|
|
}
|
|
|
|
&-handler-up {
|
|
cursor: pointer;
|
|
&-inner {
|
|
top: 50%;
|
|
margin-top: -6px;
|
|
&:before {
|
|
text-align: center;
|
|
content: "\e61e";
|
|
}
|
|
}
|
|
&:hover {
|
|
height: 60% !important;
|
|
}
|
|
}
|
|
|
|
&-handler-down {
|
|
border-top: @border-width-base @border-style-base @border-color-base;
|
|
top: -1px;
|
|
cursor: pointer;
|
|
&-inner {
|
|
top: 50%;
|
|
margin-top: -6px;
|
|
&:before {
|
|
text-align: center;
|
|
content: "\e61d";
|
|
}
|
|
}
|
|
&:hover {
|
|
height: 60% !important;
|
|
}
|
|
}
|
|
|
|
&-disabled {
|
|
.@{input-number-prefix-cls}-input {
|
|
cursor: not-allowed;
|
|
background-color: @disabled-bg;
|
|
}
|
|
.@{input-number-prefix-cls}-handler-wrap {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|