style: less typo

This commit is contained in:
tangjinzhou 2022-03-17 10:23:09 +08:00
parent 32ffd6bb32
commit 4b9fe8242e
14 changed files with 43 additions and 32 deletions

View File

@ -30,7 +30,7 @@
top: 100%;
width: 8px;
height: 8px;
color: currentColor;
color: currentcolor;
border: 4px solid;
transform: scaleY(0.75);
transform-origin: top;
@ -66,7 +66,7 @@
border-bottom-right-radius: 0;
.@{ribbon-prefix-cls}-corner {
right: 0;
border-color: currentColor transparent transparent currentColor;
border-color: currentcolor transparent transparent currentcolor;
}
}
@ -75,7 +75,7 @@
border-bottom-left-radius: 0;
.@{ribbon-prefix-cls}-corner {
left: 0;
border-color: currentColor currentColor transparent transparent;
border-color: currentcolor currentcolor transparent transparent;
}
}
}

View File

@ -42,10 +42,10 @@
.@{ribbon-prefix-cls}-corner {
right: unset;
left: 0;
border-color: currentColor currentColor transparent transparent;
border-color: currentcolor currentcolor transparent transparent;
&::after {
border-color: currentColor currentColor transparent transparent;
border-color: currentcolor currentcolor transparent transparent;
}
}
}
@ -57,10 +57,10 @@
.@{ribbon-prefix-cls}-corner {
right: 0;
left: unset;
border-color: currentColor transparent transparent currentColor;
border-color: currentcolor transparent transparent currentcolor;
&::after {
border-color: currentColor transparent transparent currentColor;
border-color: currentcolor transparent transparent currentcolor;
}
}
}

View File

@ -153,7 +153,7 @@
&.@{iconfont-css-prefix}-plus,
&.@{iconfont-css-prefix}-minus {
> svg {
shape-rendering: optimizeSpeed;
shape-rendering: optimizespeed;
}
}
}
@ -256,7 +256,7 @@
letter-spacing: 0.34em;
}
&-block {
&&-block {
width: 100%;
}

View File

@ -19,7 +19,7 @@
}
// http://stackoverflow.com/a/17253457
> a:only-child {
color: currentColor;
color: currentcolor;
&::after {
position: absolute;

View File

@ -122,6 +122,7 @@
.@{checkbox-prefix-cls}-input {
cursor: not-allowed;
pointer-events: none;
}
.@{checkbox-inner-prefix-cls} {

View File

@ -101,7 +101,7 @@
display: inline-block;
width: @picker-arrow-size;
height: @picker-arrow-size;
border: 0 solid currentColor;
border: 0 solid currentcolor;
border-width: 1.5px 0 0 1.5px;
content: '';
}
@ -116,7 +116,7 @@
display: inline-block;
width: @picker-arrow-size;
height: @picker-arrow-size;
border: 0 solid currentColor;
border: 0 solid currentcolor;
border-width: 1.5px 0 0 1.5px;
content: '';
}

View File

@ -13,7 +13,7 @@
top: -0.06em;
display: inline-block;
height: 0.9em;
margin: 0 8px;
margin: 0 @divider-vertical-gutter;
vertical-align: middle;
border-top: 0;
border-left: @border-width-base solid @divider-color;

View File

@ -134,8 +134,8 @@
margin: 0;
color: @heading-color;
font-weight: 500;
font-size: @font-size-lg;
line-height: 22px;
font-size: @drawer-title-font-size;
line-height: @drawer-title-line-height;
}
&-content {

View File

@ -199,7 +199,6 @@
font-weight: normal;
font-size: @dropdown-font-size;
line-height: @dropdown-line-height;
white-space: nowrap;
cursor: pointer;
transition: all @animation-duration-slow;
@ -217,7 +216,7 @@
&-selected {
color: @dropdown-selected-color;
background-color: @item-active-bg;
background-color: @dropdown-selected-bg;
}
&:hover {

View File

@ -9,10 +9,12 @@
}
.@{form-item-prefix-cls}-control {
flex: 1 1 0;
}
// https://github.com/ant-design/ant-design/issues/32980
.@{form-item-prefix-cls}-control:not(.@{ant-prefix}-col) {
// https://github.com/ant-design/ant-design/issues/32777
// https://github.com/ant-design/ant-design/issues/33773
min-width: 0;
}
// https://github.com/ant-design/ant-design/issues/32980
.@{form-item-prefix-cls}-label.@{ant-prefix}-col-24 + .@{form-item-prefix-cls}-control {
min-width: unset;
}
}

View File

@ -2,8 +2,11 @@
@import '../../style/mixins/index';
@import './mixin';
@row-prefix-cls: ~'@{ant-prefix}-row';
@col-prefix-cls: ~'@{ant-prefix}-col';
// Grid system
.@{ant-prefix}-row {
.@{row-prefix-cls} {
display: flex;
flex-flow: row wrap;
@ -19,46 +22,46 @@
}
// x轴原点
.@{ant-prefix}-row-start {
.@{row-prefix-cls}-start {
justify-content: flex-start;
}
// x轴居中
.@{ant-prefix}-row-center {
.@{row-prefix-cls}-center {
justify-content: center;
}
// x轴反方向
.@{ant-prefix}-row-end {
.@{row-prefix-cls}-end {
justify-content: flex-end;
}
// x轴平分
.@{ant-prefix}-row-space-between {
.@{row-prefix-cls}-space-between {
justify-content: space-between;
}
// x轴有间隔地平分
.@{ant-prefix}-row-space-around {
.@{row-prefix-cls}-space-around {
justify-content: space-around;
}
// 顶部对齐
.@{ant-prefix}-row-top {
.@{row-prefix-cls}-top {
align-items: flex-start;
}
// 居中对齐
.@{ant-prefix}-row-middle {
.@{row-prefix-cls}-middle {
align-items: center;
}
// 底部对齐
.@{ant-prefix}-row-bottom {
.@{row-prefix-cls}-bottom {
align-items: flex-end;
}
.@{ant-prefix}-col {
.@{col-prefix-cls} {
position: relative;
max-width: 100%;
// Prevent columns from collapsing when empty

View File

@ -9,9 +9,9 @@
display: inline-block;
&-img {
display: block;
width: 100%;
height: auto;
vertical-align: middle;
&-placeholder {
background-color: @image-bg;

View File

@ -4,6 +4,12 @@
.@{iconfont-css-prefix} {
.iconfont-mixin();
// https://github.com/ant-design/ant-design/issues/33703
& > & {
line-height: 0;
vertical-align: 0;
}
&[tabindex] {
cursor: pointer;
}

View File

@ -6,7 +6,7 @@
text-align: center;
text-transform: none;
vertical-align: -0.125em; // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;