Browse Source

Tweak align problems

pull/7699/head
afc163 7 years ago
parent
commit
acc4061eeb
  1. 3
      components/checkbox/style/mixin.less
  2. 3
      components/radio/style/index.less
  3. 9
      components/timeline/style/index.less
  4. 6
      components/tree/style/index.less

3
components/checkbox/style/mixin.less

@ -10,7 +10,8 @@
display: inline-block;
line-height: 1;
position: relative;
vertical-align: text-bottom;
vertical-align: middle;
top: -0.8px;
.@{checkbox-prefix-cls}-wrapper:hover &-inner,
&:hover &-inner,

3
components/radio/style/index.less

@ -27,7 +27,8 @@
display: inline-block;
position: relative;
line-height: 1;
vertical-align: text-bottom;
vertical-align: middle;
top: -1px;
cursor: pointer;
.@{radio-prefix-cls}-wrapper:hover &,
&:hover,

9
components/timeline/style/index.less

@ -14,11 +14,12 @@
padding: 0 0 12px;
list-style: none;
margin: 0;
font-size: @font-size-base;
&-tail {
position: absolute;
left: 5px;
top: 0;
top: 0.75em;
height: 100%;
border-left: 2px solid @timeline-color;
}
@ -34,6 +35,9 @@
background-color: @component-background;
border-radius: 100px;
border: 2px solid transparent;
margin-top: -6px;
top: 0.75em;
&-blue {
border-color: @primary-color;
color: @primary-color;
@ -65,9 +69,6 @@
&-content {
padding: 0 0 10px 24px;
font-size: @font-size-base;
position: relative;
top: -3px;
}
&-last {

6
components/tree/style/index.less

@ -57,7 +57,7 @@
}
.@{tree-prefix-cls}-node-content-wrapper {
display: inline-block;
padding: 3px 5px;
padding: 0 5px;
border-radius: @border-radius-sm;
margin: 0;
cursor: pointer;
@ -66,6 +66,8 @@
color: @text-color;
transition: all .3s;
position: relative;
height: 24px;
line-height: 24px;
&:hover {
background-color: @item-hover-bg;
}
@ -76,7 +78,7 @@
span {
&.@{tree-prefix-cls}-checkbox {
margin: 0 4px 0 2px;
vertical-align: middle;
top: 1px;
}
&.@{tree-prefix-cls}-switcher,
&.@{tree-prefix-cls}-iconEle {

Loading…
Cancel
Save