style: less typo
parent
32ffd6bb32
commit
4b9fe8242e
|
@ -30,7 +30,7 @@
|
||||||
top: 100%;
|
top: 100%;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
color: currentColor;
|
color: currentcolor;
|
||||||
border: 4px solid;
|
border: 4px solid;
|
||||||
transform: scaleY(0.75);
|
transform: scaleY(0.75);
|
||||||
transform-origin: top;
|
transform-origin: top;
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
.@{ribbon-prefix-cls}-corner {
|
.@{ribbon-prefix-cls}-corner {
|
||||||
right: 0;
|
right: 0;
|
||||||
border-color: currentColor transparent transparent currentColor;
|
border-color: currentcolor transparent transparent currentcolor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
.@{ribbon-prefix-cls}-corner {
|
.@{ribbon-prefix-cls}-corner {
|
||||||
left: 0;
|
left: 0;
|
||||||
border-color: currentColor currentColor transparent transparent;
|
border-color: currentcolor currentcolor transparent transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,10 +42,10 @@
|
||||||
.@{ribbon-prefix-cls}-corner {
|
.@{ribbon-prefix-cls}-corner {
|
||||||
right: unset;
|
right: unset;
|
||||||
left: 0;
|
left: 0;
|
||||||
border-color: currentColor currentColor transparent transparent;
|
border-color: currentcolor currentcolor transparent transparent;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
border-color: currentColor currentColor transparent transparent;
|
border-color: currentcolor currentcolor transparent transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,10 +57,10 @@
|
||||||
.@{ribbon-prefix-cls}-corner {
|
.@{ribbon-prefix-cls}-corner {
|
||||||
right: 0;
|
right: 0;
|
||||||
left: unset;
|
left: unset;
|
||||||
border-color: currentColor transparent transparent currentColor;
|
border-color: currentcolor transparent transparent currentcolor;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
border-color: currentColor transparent transparent currentColor;
|
border-color: currentcolor transparent transparent currentcolor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,7 +153,7 @@
|
||||||
&.@{iconfont-css-prefix}-plus,
|
&.@{iconfont-css-prefix}-plus,
|
||||||
&.@{iconfont-css-prefix}-minus {
|
&.@{iconfont-css-prefix}-minus {
|
||||||
> svg {
|
> svg {
|
||||||
shape-rendering: optimizeSpeed;
|
shape-rendering: optimizespeed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@
|
||||||
letter-spacing: 0.34em;
|
letter-spacing: 0.34em;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-block {
|
&&-block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
}
|
}
|
||||||
// http://stackoverflow.com/a/17253457
|
// http://stackoverflow.com/a/17253457
|
||||||
> a:only-child {
|
> a:only-child {
|
||||||
color: currentColor;
|
color: currentcolor;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
|
|
||||||
.@{checkbox-prefix-cls}-input {
|
.@{checkbox-prefix-cls}-input {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{checkbox-inner-prefix-cls} {
|
.@{checkbox-inner-prefix-cls} {
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: @picker-arrow-size;
|
width: @picker-arrow-size;
|
||||||
height: @picker-arrow-size;
|
height: @picker-arrow-size;
|
||||||
border: 0 solid currentColor;
|
border: 0 solid currentcolor;
|
||||||
border-width: 1.5px 0 0 1.5px;
|
border-width: 1.5px 0 0 1.5px;
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: @picker-arrow-size;
|
width: @picker-arrow-size;
|
||||||
height: @picker-arrow-size;
|
height: @picker-arrow-size;
|
||||||
border: 0 solid currentColor;
|
border: 0 solid currentcolor;
|
||||||
border-width: 1.5px 0 0 1.5px;
|
border-width: 1.5px 0 0 1.5px;
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
top: -0.06em;
|
top: -0.06em;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 0.9em;
|
height: 0.9em;
|
||||||
margin: 0 8px;
|
margin: 0 @divider-vertical-gutter;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
border-left: @border-width-base solid @divider-color;
|
border-left: @border-width-base solid @divider-color;
|
||||||
|
|
|
@ -134,8 +134,8 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: @heading-color;
|
color: @heading-color;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: @font-size-lg;
|
font-size: @drawer-title-font-size;
|
||||||
line-height: 22px;
|
line-height: @drawer-title-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-content {
|
&-content {
|
||||||
|
|
|
@ -199,7 +199,6 @@
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: @dropdown-font-size;
|
font-size: @dropdown-font-size;
|
||||||
line-height: @dropdown-line-height;
|
line-height: @dropdown-line-height;
|
||||||
white-space: nowrap;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all @animation-duration-slow;
|
transition: all @animation-duration-slow;
|
||||||
|
|
||||||
|
@ -217,7 +216,7 @@
|
||||||
|
|
||||||
&-selected {
|
&-selected {
|
||||||
color: @dropdown-selected-color;
|
color: @dropdown-selected-color;
|
||||||
background-color: @item-active-bg;
|
background-color: @dropdown-selected-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
|
@ -9,10 +9,12 @@
|
||||||
}
|
}
|
||||||
.@{form-item-prefix-cls}-control {
|
.@{form-item-prefix-cls}-control {
|
||||||
flex: 1 1 0;
|
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/32777
|
||||||
|
// https://github.com/ant-design/ant-design/issues/33773
|
||||||
min-width: 0;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,11 @@
|
||||||
@import '../../style/mixins/index';
|
@import '../../style/mixins/index';
|
||||||
@import './mixin';
|
@import './mixin';
|
||||||
|
|
||||||
|
@row-prefix-cls: ~'@{ant-prefix}-row';
|
||||||
|
@col-prefix-cls: ~'@{ant-prefix}-col';
|
||||||
|
|
||||||
// Grid system
|
// Grid system
|
||||||
.@{ant-prefix}-row {
|
.@{row-prefix-cls} {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
|
|
||||||
|
@ -19,46 +22,46 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// x轴原点
|
// x轴原点
|
||||||
.@{ant-prefix}-row-start {
|
.@{row-prefix-cls}-start {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
// x轴居中
|
// x轴居中
|
||||||
.@{ant-prefix}-row-center {
|
.@{row-prefix-cls}-center {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
// x轴反方向
|
// x轴反方向
|
||||||
.@{ant-prefix}-row-end {
|
.@{row-prefix-cls}-end {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
// x轴平分
|
// x轴平分
|
||||||
.@{ant-prefix}-row-space-between {
|
.@{row-prefix-cls}-space-between {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
// x轴有间隔地平分
|
// x轴有间隔地平分
|
||||||
.@{ant-prefix}-row-space-around {
|
.@{row-prefix-cls}-space-around {
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 顶部对齐
|
// 顶部对齐
|
||||||
.@{ant-prefix}-row-top {
|
.@{row-prefix-cls}-top {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 居中对齐
|
// 居中对齐
|
||||||
.@{ant-prefix}-row-middle {
|
.@{row-prefix-cls}-middle {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 底部对齐
|
// 底部对齐
|
||||||
.@{ant-prefix}-row-bottom {
|
.@{row-prefix-cls}-bottom {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{ant-prefix}-col {
|
.@{col-prefix-cls} {
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
// Prevent columns from collapsing when empty
|
// Prevent columns from collapsing when empty
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
&-img {
|
&-img {
|
||||||
display: block;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
&-placeholder {
|
&-placeholder {
|
||||||
background-color: @image-bg;
|
background-color: @image-bg;
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
.@{iconfont-css-prefix} {
|
.@{iconfont-css-prefix} {
|
||||||
.iconfont-mixin();
|
.iconfont-mixin();
|
||||||
|
|
||||||
|
// https://github.com/ant-design/ant-design/issues/33703
|
||||||
|
& > & {
|
||||||
|
line-height: 0;
|
||||||
|
vertical-align: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&[tabindex] {
|
&[tabindex] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: none;
|
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
|
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;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue