update style to 3.10.9

pull/309/head
tangjinzhou 2018-12-09 19:30:35 +08:00
parent 01fab00cac
commit da2011e86b
28 changed files with 54 additions and 33 deletions

View File

@ -25,6 +25,7 @@
font-weight: @badge-font-weight; font-weight: @badge-font-weight;
white-space: nowrap; white-space: nowrap;
box-shadow: 0 0 0 1px #fff; box-shadow: 0 0 0 1px #fff;
z-index: 10;
a, a,
a:hover { a:hover {
color: #fff; color: #fff;
@ -80,7 +81,7 @@
height: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
border: 1px solid @processing-color; border: 1px solid @processing-color;
content: ''; content: "";
animation: antStatusProcessing 1.2s infinite ease-in-out; animation: antStatusProcessing 1.2s infinite ease-in-out;
} }
} }

View File

@ -82,7 +82,7 @@
right: -1px; right: -1px;
background: #fff; background: #fff;
opacity: 0.35; opacity: 0.35;
content: ''; content: "";
border-radius: inherit; border-radius: inherit;
z-index: 1; z-index: 1;
transition: opacity .2s; transition: opacity .2s;
@ -163,7 +163,7 @@
} }
.christmas&-primary:before { .christmas&-primary:before {
content: ''; content: "";
display: block; display: block;
position: absolute; position: absolute;
top: -6px; top: -6px;

View File

@ -101,7 +101,7 @@
> a:only-child { > a:only-child {
color: currentColor; color: currentColor;
&:after { &:after {
content: ''; content: "";
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;

View File

@ -27,6 +27,14 @@
&.dragging { &.dragging {
cursor: pointer; cursor: pointer;
} }
.slick-slide {
pointer-events: none;
&.slick-active {
pointer-events: auto;
}
}
} }
.slick-slider .slick-track, .slick-slider .slick-track,
.slick-slider .slick-list { .slick-slider .slick-list {

View File

@ -28,7 +28,7 @@
height: 100%; height: 100%;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
border: 1px solid @checkbox-color; border: 1px solid @checkbox-color;
content: ''; content: "";
animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out;
animation-fill-mode: both; animation-fill-mode: both;
visibility: hidden; visibility: hidden;
@ -46,7 +46,7 @@
display: block; display: block;
width: @checkbox-size; width: @checkbox-size;
height: @checkbox-size; height: @checkbox-size;
border: @border-width-base @border-style-base @border-color-base; border: @checkbox-border-width @border-style-base @border-color-base;
border-radius: @border-radius-sm; border-radius: @border-radius-sm;
background-color: @checkbox-check-color; background-color: @checkbox-check-color;
transition: all .3s; transition: all .3s;

View File

@ -42,6 +42,11 @@
outline: none; outline: none;
} }
&-input.@{ant-prefix}-input-sm {
padding-top: 0;
padding-bottom: 0;
}
&:hover &-input:not(.@{ant-prefix}-input-disabled) { &:hover &-input:not(.@{ant-prefix}-input-disabled) {
border-color: @primary-color; border-color: @primary-color;
} }

View File

@ -134,7 +134,7 @@
z-index: 1; z-index: 1;
} }
&:before { &:before {
content: ''; content: "";
display: block; display: block;
background: @item-active-bg; background: @item-active-bg;
border-radius: 0; border-radius: 0;

View File

@ -90,7 +90,7 @@
} }
li:last-child:after { li:last-child:after {
content: ''; content: "";
height: 202px; height: 202px;
display: block; display: block;
} }

View File

@ -39,7 +39,7 @@
margin: 16px 0; margin: 16px 0;
&:before, &:before,
&:after { &:after {
content: ''; content: "";
display: table-cell; display: table-cell;
position: relative; position: relative;
top: 50%; top: 50%;

View File

@ -187,7 +187,7 @@
.@{dropdown-prefix-cls}-trigger, .@{dropdown-prefix-cls}-trigger,
.@{dropdown-prefix-cls}-link { .@{dropdown-prefix-cls}-link {
.@{iconfont-css-prefix}:not(.@{iconfont-css-prefix}-ellipsis) { > .@{iconfont-css-prefix}:not(.@{iconfont-css-prefix}-ellipsis) {
.iconfont-size-under-12px(10px); .iconfont-size-under-12px(10px);
} }
} }

View File

@ -91,7 +91,7 @@
input[type="radio"]:focus, input[type="radio"]:focus,
input[type="checkbox"]:focus { input[type="checkbox"]:focus {
outline: thin dotted; outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color; // lesshint duplicateProperty: false outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px; outline-offset: -2px;
} }

View File

@ -49,7 +49,6 @@
.col(1); // kickstart it .col(1); // kickstart it
} }
// lesshint false
.loop-grid-columns(@index, @class) when (@index > 0) { .loop-grid-columns(@index, @class) when (@index > 0) {
.@{ant-prefix}-col@{class}-@{index} { .@{ant-prefix}-col@{class}-@{index} {
display: block; display: block;

View File

@ -160,7 +160,7 @@
// Reset Select's style in addon // Reset Select's style in addon
.@{ant-prefix}-select { .@{ant-prefix}-select {
margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal-base); // lesshint spaceAroundOperator: false margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal-base);
.@{ant-prefix}-select-selection { .@{ant-prefix}-select-selection {
background-color: inherit; background-color: inherit;
@ -181,7 +181,7 @@
// https://github.com/ant-design/ant-design/issues/3714 // https://github.com/ant-design/ant-design/issues/3714
> i:only-child:after { > i:only-child:after {
position: absolute; position: absolute;
content: ''; content: "";
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;

View File

@ -67,7 +67,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
content: ''; content: "";
} }
} }
@ -180,6 +180,7 @@
position: absolute; position: absolute;
border-radius: @border-radius-base; border-radius: @border-radius-base;
z-index: @zindex-dropdown; z-index: @zindex-dropdown;
background: @menu-popup-bg;
.submenu-title-wrapper { .submenu-title-wrapper {
padding-right: 20px; padding-right: 20px;
@ -216,7 +217,7 @@
width: 10px; width: 10px;
&:before, &:before,
&:after { &:after {
content: ''; content: "";
position: absolute; position: absolute;
vertical-align: baseline; vertical-align: baseline;
background: #fff; background: #fff;

View File

@ -114,7 +114,7 @@
right: 0; right: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
background-color: @modal-mask-bg; // lesshint duplicateProperty: false background-color: @modal-mask-bg;
height: 100%; height: 100%;
z-index: @zindex-modal-mask; z-index: @zindex-modal-mask;
filter: ~"alpha(opacity=50)"; filter: ~"alpha(opacity=50)";
@ -132,7 +132,7 @@
.@{dialog-prefix-cls}-centered { .@{dialog-prefix-cls}-centered {
text-align: center; text-align: center;
&:before { &:before {
content: ''; content: "";
display: inline-block; display: inline-block;
height: 100%; height: 100%;
vertical-align: middle; vertical-align: middle;

View File

@ -58,7 +58,7 @@
display: block; display: block;
max-width: 4px; max-width: 4px;
&:before { &:before {
content: ''; content: "";
display: block; display: block;
} }
} }

View File

@ -46,7 +46,7 @@
height: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
border: 1px solid @radio-dot-color; border: 1px solid @radio-dot-color;
content: ''; content: "";
animation: antRadioEffect 0.36s ease-in-out; animation: antRadioEffect 0.36s ease-in-out;
animation-fill-mode: both; animation-fill-mode: both;
visibility: hidden; visibility: hidden;

View File

@ -90,7 +90,7 @@
filter: ~"progid\:DXImageTransform\.Microsoft\.Blur(PixelRadius\=1, MakeShadow\=false)"; filter: ~"progid\:DXImageTransform\.Microsoft\.Blur(PixelRadius\=1, MakeShadow\=false)";
&:after { &:after {
content: ''; content: "";
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;

View File

@ -82,7 +82,7 @@
top: 12px; top: 12px;
padding: 0 10px; padding: 0 10px;
&:after { &:after {
content: ''; content: "";
display: inline-block; display: inline-block;
background: @border-color-split; background: @border-color-split;
height: 1px; height: 1px;
@ -99,7 +99,7 @@
position: relative; position: relative;
line-height: @steps-icon-size; line-height: @steps-icon-size;
&:after { &:after {
content: ''; content: "";
height: 1px; height: 1px;
width: 9999px; width: 9999px;
background: @wait-tail-color; background: @wait-tail-color;

View File

@ -11,7 +11,7 @@
[ant-click-animating-without-extra-node]:after, [ant-click-animating-without-extra-node]:after,
.ant-click-animating-node { .ant-click-animating-node {
content: ''; content: "";
position: absolute; position: absolute;
top: -1px; top: -1px;
left: -1px; left: -1px;

View File

@ -33,7 +33,7 @@
@font-scale: unit(@size / 12px); @font-scale: unit(@size / 12px);
font-size: 12px; font-size: 12px;
// IE9 // IE9
font-size: ~"@{size} \9"; // lesshint duplicateProperty: false font-size: ~"@{size} \9";
transform: scale(@font-scale) rotate(@rotate); transform: scale(@font-scale) rotate(@rotate);
:root & { :root & {
font-size: @font-size-sm; // reset IE9 and above font-size: @font-size-sm; // reset IE9 and above

View File

@ -160,6 +160,7 @@
@checkbox-size : 16px; @checkbox-size : 16px;
@checkbox-color : @primary-color; @checkbox-color : @primary-color;
@checkbox-check-color : #fff; @checkbox-check-color : #fff;
@checkbox-border-width : @border-width-base;
// Radio // Radio
@radio-size : 16px; @radio-size : 16px;
@ -321,7 +322,8 @@
@menu-inline-toplevel-item-height: 40px; @menu-inline-toplevel-item-height: 40px;
@menu-item-height: 40px; @menu-item-height: 40px;
@menu-collapsed-width: 80px; @menu-collapsed-width: 80px;
@menu-bg: transparent; @menu-bg: @component-background;
@menu-popup-bg: @component-background;
@menu-item-color: @text-color; @menu-item-color: @text-color;
@menu-highlight-color: @primary-color; @menu-highlight-color: @primary-color;
@menu-item-active-bg: @item-active-bg; @menu-item-active-bg: @item-active-bg;

View File

@ -153,8 +153,11 @@
&-loading, &-loading,
&-disabled { &-disabled {
pointer-events: none; cursor: not-allowed;
opacity: @switch-disabled-opacity; opacity: @switch-disabled-opacity;
* {
cursor: not-allowed;
}
} }
} }

View File

@ -154,7 +154,7 @@
.@{table-prefix-cls}-column-sorters { .@{table-prefix-cls}-column-sorters {
&:before { &:before {
position: absolute; position: absolute;
content: ''; content: "";
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
@ -219,7 +219,7 @@
position: relative; position: relative;
border-top: @border-width-base @border-style-base @border-color-split; border-top: @border-width-base @border-style-base @border-color-split;
&:before { &:before {
content: ''; content: "";
height: 1px; height: 1px;
background: @table-header-bg; background: @table-header-bg;
position: absolute; position: absolute;

View File

@ -305,6 +305,7 @@
.@{tab-prefix-cls}-ink-bar { .@{tab-prefix-cls}-ink-bar {
width: 2px; width: 2px;
top: 0;
left: auto; left: auto;
height: auto; height: auto;
bottom: auto; bottom: auto;
@ -385,12 +386,12 @@
.@{tab-prefix-cls}-top .@{tab-prefix-cls}-ink-bar-animated, .@{tab-prefix-cls}-top .@{tab-prefix-cls}-ink-bar-animated,
.@{tab-prefix-cls}-bottom .@{tab-prefix-cls}-ink-bar-animated { .@{tab-prefix-cls}-bottom .@{tab-prefix-cls}-ink-bar-animated {
transition: transform .3s @ease-in-out, width .3s @ease-in-out; transition: transform .3s @ease-in-out, width .3s @ease-in-out, left .3s @ease-in-out;
} }
.@{tab-prefix-cls}-left .@{tab-prefix-cls}-ink-bar-animated, .@{tab-prefix-cls}-left .@{tab-prefix-cls}-ink-bar-animated,
.@{tab-prefix-cls}-right .@{tab-prefix-cls}-ink-bar-animated { .@{tab-prefix-cls}-right .@{tab-prefix-cls}-ink-bar-animated {
transition: transform .3s @ease-in-out, height .3s @ease-in-out; transition: transform .3s @ease-in-out, height .3s @ease-in-out, top .3s @ease-in-out;
} }
.no-flex, .no-flex,

View File

@ -25,6 +25,7 @@
} }
&-input { &-input {
width: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;

View File

@ -42,7 +42,7 @@
} }
&:before { &:before {
content: ''; content: "";
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;

View File

@ -6,7 +6,7 @@ const path = require('path')
const owner = 'ant-design' const owner = 'ant-design'
const repo = 'ant-design' const repo = 'ant-design'
const tag = '3.10.7' const tag = '3.10.9'
const clientId = '5f6ccfdc4cdc69f8ba12' const clientId = '5f6ccfdc4cdc69f8ba12'
const clientSecret = process.env.CLIENT_SECRET const clientSecret = process.env.CLIENT_SECRET