Browse Source

update form style

pull/56/head
SimaQ 9 years ago
parent
commit
7eaaee8a0b
  1. 2
      components/datepicker/index.md
  2. 2
      components/input-number/index.md
  3. 1
      style/components/datepicker/Picker.less
  4. 10
      style/components/form.less
  5. 4
      style/components/inputNumber.less

2
components/datepicker/index.md

@ -28,7 +28,7 @@
| disabled | 禁用 | bool | false |
<style>
.code-box-demo .ant-calendar-picker {
.code-box-demo .ant-calendar-picker-input {
width: 200px;
}
</style>

2
components/input-number/index.md

@ -10,7 +10,7 @@
## 何时使用
- 当需要获取标准数值时。
当需要获取标准数值时。
## API

1
style/components/datepicker/Picker.less

@ -10,7 +10,6 @@
.@{prefixCalendarClass}-picker {
position: relative;
display: inline-block;
width: 100%;
&-icon {
position: absolute;

10
style/components/form.less

@ -85,13 +85,17 @@ input[type="checkbox"] {
}
.@{css-prefix}form-text, .@{css-prefix}form-split {
display: inline-block;
margin: 0!important;
padding-top: 7px;
padding-bottom: 7px;
}
.@{css-prefix}form-text {
display: inline-block;
}
.@{css-prefix}form-split {
display: block;
text-align: center;
}
@ -159,6 +163,10 @@ form {
margin-top: -1px;
margin-right: 8px;
}
.@{prefixCalendarClass}-picker {
width: 100%;
}
}
// Form layout

4
style/components/inputNumber.less

@ -22,7 +22,8 @@
height: 14px;
overflow: hidden;
color: #999;
&:hover {
&:hover &-up-inner,
&:hover &-down-inner {
color: tint(@primary-color, 20%);
}
}
@ -37,6 +38,7 @@
height: 12px;
.iconfont-size-under-12px(8px);
right: 4px;
color: #999;
}
&:hover {

Loading…
Cancel
Save