diff --git a/.gitignore b/.gitignore index 059002f9..c6dc86d5 100644 --- a/.gitignore +++ b/.gitignore @@ -355,4 +355,6 @@ scripts/previewEditor/index.html /site/AntDesign.Docs/wwwroot/css /.nyc_output /coverage -/tests/AntDesign.Tests.Js/coverage.xml \ No newline at end of file +/tests/AntDesign.Tests.Js/coverage.xml +/lib +site/AntDesign.Docs/wwwroot/color.less diff --git a/build-config.js b/build-config.js new file mode 100644 index 00000000..12394dd9 --- /dev/null +++ b/build-config.js @@ -0,0 +1,14 @@ +const { join } = require('path'); + +// const packageJson = require(`${__dirname}/components/package.json`); +const buildVersion = '0.11.0';// packageJson.version; + +module.exports = { + projectVersion: buildVersion, + projectDir: __dirname, + componentsDir: join(__dirname, 'components'), + scriptsDir: join(__dirname, 'scripts'), + outputDir: join(__dirname, 'dist'), + publishDir: join(__dirname, 'publish'), + libDir: join(__dirname, 'lib') +}; diff --git a/components/AntBlazor.xml b/components/AntBlazor.xml deleted file mode 100644 index ae275198..00000000 --- a/components/AntBlazor.xml +++ /dev/null @@ -1,904 +0,0 @@ - - - - AntDesign - - - - - Offset from the bottom of the viewport (in pixels) - - - - - Offset from the top of the viewport (in pixels) - - - - - Specifies the scrollable area DOM node - - - - - Alert component for feedback. - - - - - Called when close animation is finished - - - - - Whether to show as banner - - - - - Whether Alert can be closed - - - - - Close text to show - - - - - Additional content of Alert - - - - - Custom icon, effective when showIcon is true - - - - - Content of Aler - - - - - Whether to show icon. - - - - - Type of Alert styles, options: success, info, warning, error - - - - - Callback when Alert is closed. - - - - - Additional Content - - - - - Icon to show. - - - - - Indicator if the component is closed or not. - - - - - Just before we close the component we set this indicator to show a closing animation. - - - - - Sets the default classes. - - - - - Triggered each time a parameter is changed. - - - - - Start-up code. - - - - - Handles the close callback. - - - - - - - Handles the after close callback. - - - - - - - Small numerical value or status descriptor for UI elements. - - - - - Customize Badge dot color - - - - - Number to show in badge - - - - - Whether to display a red dot instead of count - - - - - Set offset of the badge dot, like[x, y] - - - - - Max count to show - - - - - Whether to show badge when count is zero - - - - - Set Badge as a status dot - - - - - If status is set, text sets the display text of the status dot - - - - - Text to show when hovering over the badge - - - - - Wrapping this item. - - - - - Sets the default CSS classes. - - - - - Startup code - - - - - Runs every time a parameter is set. - - - - - The position of the dots, which can be one of Top, Bottom, Left or Right, - - - - - Whether to scroll automatically - - - - - Transition effect, - - - - - Returned ElementRef reference for DOM element. - - - - - Specifies one or more class names for an DOM element. - - - - - Specifies an inline style for an DOM element. - - - - - Base class for any input control that optionally supports an . - - the natural type of the input's value - - - - When contained within an disables this control's - participation in validation checking. This means that this control will not - reflect the validation state of the underlying data binding. - - - - - Gets the associated . - - - - - Gets the for the bound value. - - - - - Gets a string that indicates the status of the field being edited. This will include - some combination of "modified", "valid", or "invalid", depending on the status of the field. - - - - - Should be invoked by whenever a bound value is changed, such - as right after the value's corresponding ValueChanged - EventCallback is invoked. - - - - - Gets or sets an expression that identifies the bound value. - - - - - - - - set if there any child overlay show or hide - overlay would not hide if any child is showing - - - - - - when overlay is complete hide, IsPopup return true - when overlay is hiding(playing hide animation), IsPopup return false, IsHiding return true. - - - - - - - - - - - - Get pickerValue by picker index - - - - - - - Get value by picker index - - - - - - - "left" | "right" | "top" | "bottom" - - - - - "ltr"|"rtl" - - - - - 'top' | 'middle' | 'bottom' - - - - - 'start' | 'end' | 'center' | 'space-around' | 'space-between' - - - - - 'fill' | 'outline' | 'twotone'; - - - - - - - - - - Invoked when user add/remove content - - - - - - - scrollHeight of 1 row - - - - - total height = row * + - - - - - 'light' | 'dark' - - - - - "xs" | "sm" | "md" | "lg" | "xl" | "xxl" - - - - - Gets or sets the CSS class name applied to the NavLink when the - current route matches the NavLink href. - - - - - Gets or sets the computed CSS class based on whether or not the link is active. - - - - - Gets or sets the child content of the component. - - - - - Gets or sets a value representing the URL matching behavior. - - - - - - - - - - - - - - - - - - - Message Service - - - - - 控制出现与消失的动画 - - - - - 自定义关闭按钮 - - - - - 自定义 CSS class - - - - - 自定义关闭图标 - - - - - 通知提醒标题,必选,string 或者 RenderFragment - - - - - 通知提醒内容,必选,string 或者 RenderFragment - - - - - 自动关闭的延时,单位为秒。默认 4.5 秒后自动关闭,配置为 null 则不自动关闭 - - - - - 自定义图标 - - - - - 当前通知唯一标志 - - - - - 当通知关闭时触发 - - - - - 点击通知时触发的回调函数 - - - - - 自定义内联样式 - - - - - 弹出位置 - - - - - 通知提醒框左侧的图标类型 - - - - - AntNotification全局配置 - - - - - 消息从底部弹出时,距离底部的位置,单位像素。 - - - - - 消息从顶部弹出时,距离顶部的位置,单位像素。 - - - - - 是否开启 RTL 模式 - - - - - 自定义关闭图标 - - - - - 自动关闭的延时,单位为秒。默认 4.5 秒后自动关闭,配置为 null 则不自动关闭 - - - - - 弹出位置 - - - - - modify global config - - - - - - - - - - - AntNotification Service - - - - - Open a notification box - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - close notification by key - - - - - - - destroy - - - - - 'default' | 'small' - - - - - 'page' | 'prev' | 'next' | 'prev_5' | 'next_5' - - - - - 'page' | 'prev' | 'next' | 'prev_5' | 'next_5' - - - - - 'default' | 'small' = 'default'; - - - - - progress size - - - - - to set the type, options: line circle dashboard - - - - - template function of the content - - - - - to set the completion percentage - - - - - whether to display the progress value and the status icon - - - - - to set the status of the Progress, options: success exception normal active(line only) - - - - - to set the style of the progress linecap - - - - - color of progress bar - - - - - segmented success percent - - - - - color of unfilled part - - - - - to set the width of the progress bar, unit: px - to set the width of the circular progress, unit: percentage of the canvas width - to set the width of the dashboard progress, unit: percentage of the canvas width - - - - - color of progress bar, render linear-gradient when passing an object - color of circular progress, render linear-gradient when passing an object - - - - - the total step count - - - - - to set the canvas width of the circular progress, unit: px - to set the canvas width of the dashboard progress, unit: px - - - - - the gap degree of half circle, 0 ~ 295 - - - - - the gap position, options: top bottom left right - - - - - success | error | info | warning | 404 | 403 | 500 - default: info - - - - - The default value of slider. When is false, use number, otherwise, use [number, number] - - - - - If true, the slider will not be interactable - - - - - Whether the thumb can drag over tick only - - - - - Make effect when not null, true means containment and false means coordinative - - - - - Tick mark of Slider, type of key must be number, and must in closed interval [min, max], each mark can declare its own style - - - - - The maximum value the slider can slide to - - - - - The minimum value the slider can slide to - - - - - dual thumb mode - - - - - reverse the component - - - - - The granularity the slider can step through values. Must greater than 0, and be divided by ( - ) . When no null, can be null. - - - - - Slider will pass its value to tipFormatter, and display its value in Tooltip, and hide Tooltip when return value is null. - - - - - The value of slider. When range is false, use number, otherwise, use [number, number] - - - - - If true, the slider will be vertical. - - - - - Fire when onmouseup is fired. - - - - - Callback function that is fired when the user changes the slider's value. - - - - - Set Tooltip display position. Ref Tooltip - - - - - If true, Tooltip will show always, or it will not show anyway, even if dragging or hovering. - - - - - The DOM container of the Tooltip, the default behavior is to create a div element in body. - - - - - small | default | large - - - - - Forced render of content in tabs, not lazy render after clicking on tabs - - - - - TabPane's key - - - - - Show text in 's head - - - - - Current 's - - - - - Whether to change tabs with animation. Only works while = or - - - - - Replace the TabBar - - - - - Initial active 's , if is not set - - - - - Hide plus icon or not. Only works while = - - - - - Preset tab bar size - - - - - Extra content in tab bar - - - - - The gap between tabs - - - - - Tab bar style object - - - - - Position of tabs - - - - - Basic style of tabs - - - - - Callback executed when active tab is changed - - - - - Callback executed when tab is added or removed. Only works while = - - - - - Callback executed when next button is clicked - - - - - Callback executed when prev button is clicked - - - - - Callback executed when tab is clicked - - - - - Whether to turn on keyboard navigation - - - - - Add to - - The AntTabPane to be added - Key is null - An AntTabPane with the same key already exists - - - - 'default' | 'closeable' | 'checkable' - - - - - 'left' | 'alternate' | 'right' - - - - - 'horizontal' | 'vertical' - - - - - 'left' | 'right' | 'center' - - - - diff --git a/components/affix/style/entry.less b/components/affix/style/entry.less index 06547c43..911f7808 100644 --- a/components/affix/style/entry.less +++ b/components/affix/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import "./patch"; diff --git a/components/affix/style/patch.less b/components/affix/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/alert/style/entry.less b/components/alert/style/entry.less index 06547c43..96cebe33 100644 --- a/components/alert/style/entry.less +++ b/components/alert/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/alert/style/index.less b/components/alert/style/index.less index 7c9ffc69..72238504 100644 --- a/components/alert/style/index.less +++ b/components/alert/style/index.less @@ -84,6 +84,7 @@ .@{iconfont-css-prefix}-close { color: @alert-close-color; transition: color 0.3s; + &:hover { color: @alert-close-hover-color; } @@ -93,6 +94,7 @@ &-close-text { color: @alert-close-color; transition: color 0.3s; + &:hover { color: @alert-close-hover-color; } @@ -111,6 +113,7 @@ margin-right: @alert-with-description-padding-vertical; font-size: @alert-with-description-icon-size; } + &-with-description &-message { display: block; margin-bottom: 4px; diff --git a/components/alert/style/patch.less b/components/alert/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/alert/style/rtl.less b/components/alert/style/rtl.less index 5818e2fc..31d63146 100644 --- a/components/alert/style/rtl.less +++ b/components/alert/style/rtl.less @@ -3,12 +3,6 @@ direction: rtl; } - &&-no-icon { - .@{alert-prefix-cls}-rtl& { - padding: @alert-no-icon-padding-vertical 15px; - } - } - &-icon { .@{alert-prefix-cls}-rtl & { margin-right: auto; @@ -30,10 +24,17 @@ } } - &-with-description &-icon { + &-with-description { .@{alert-prefix-cls}-rtl& { - margin-right: auto; - margin-left: @alert-with-description-padding-vertical; + padding-right: @alert-with-description-icon-size; + padding-left: @alert-with-description-padding-vertical; + } + + .@{alert-prefix-cls}-icon { + .@{alert-prefix-cls}-rtl& { + margin-right: auto; + margin-left: @alert-with-description-padding-vertical; + } } } } diff --git a/components/anchor/style/entry.less b/components/anchor/style/entry.less index 06547c43..a8516724 100644 --- a/components/anchor/style/entry.less +++ b/components/anchor/style/entry.less @@ -1 +1,3 @@ @import './index.less'; +@import '../../affix/style/entry.less'; +@import "./patch"; diff --git a/components/anchor/style/index.less b/components/anchor/style/index.less index 347bc914..92d0042b 100644 --- a/components/anchor/style/index.less +++ b/components/anchor/style/index.less @@ -21,6 +21,7 @@ top: 0; left: 0; height: 100%; + &::before { position: relative; display: block; @@ -30,6 +31,7 @@ background-color: @anchor-border-color; content: ' '; } + &-ball { position: absolute; left: 50%; @@ -41,24 +43,24 @@ border-radius: 8px; transform: translateX(-50%); transition: top 0.3s ease-in-out; + &.visible { display: inline-block; } } } - &.fixed &-ink &-ink-ball { + &-fixed &-ink &-ink-ball { display: none; } &-link { padding: @anchor-link-padding; - line-height: 1.143; &-title { position: relative; display: block; - margin-bottom: 6px; + margin-bottom: 3px; overflow: hidden; color: @text-color; white-space: nowrap; @@ -76,8 +78,8 @@ } &-link &-link { - padding-top: 5px; - padding-bottom: 5px; + padding-top: 2px; + padding-bottom: 2px; } } diff --git a/components/anchor/style/patch.less b/components/anchor/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/ant-design-blazor.aliyun.less b/components/ant-design-blazor.aliyun.less index 2c74e91d..c9dc4791 100644 --- a/components/ant-design-blazor.aliyun.less +++ b/components/ant-design-blazor.aliyun.less @@ -1,3 +1,3 @@ @import "./style/aliyun.less"; -@import "./style/entry.less"; +@import "./style/patch.less"; @import "./components.less"; diff --git a/components/ant-design-blazor.compact.less b/components/ant-design-blazor.compact.less index cbca1626..298df7bc 100644 --- a/components/ant-design-blazor.compact.less +++ b/components/ant-design-blazor.compact.less @@ -1,3 +1,3 @@ @import "./style/compact.less"; -@import "./style/entry.less"; +@import "./style/patch.less"; @import "./components.less"; diff --git a/components/ant-design-blazor.dark.less b/components/ant-design-blazor.dark.less index 9e5bcd9f..4d0e4c16 100644 --- a/components/ant-design-blazor.dark.less +++ b/components/ant-design-blazor.dark.less @@ -1,3 +1,3 @@ @import "./style/dark.less"; -@import "./style/entry.less"; +@import "./style/patch.less"; @import "./components.less"; diff --git a/components/ant-design-blazor.less b/components/ant-design-blazor.less index 65652512..f34d04b8 100644 --- a/components/ant-design-blazor.less +++ b/components/ant-design-blazor.less @@ -1,2 +1,3 @@ -@import "./style/entry.less"; -@import "./components.less"; +@import './style/default.less'; +@import './style/patch.less'; +@import './components.less'; diff --git a/components/ant-design-blazor.variable.less b/components/ant-design-blazor.variable.less new file mode 100644 index 00000000..a95cb847 --- /dev/null +++ b/components/ant-design-blazor.variable.less @@ -0,0 +1,3 @@ +@import './style/variable.less'; +@import './style/patch.less'; +@import './components.less'; diff --git a/components/auto-complete/style/entry.less b/components/auto-complete/style/entry.less index 06547c43..446b5334 100644 --- a/components/auto-complete/style/entry.less +++ b/components/auto-complete/style/entry.less @@ -1 +1,5 @@ @import './index.less'; +// style dependencies +@import '../../select/style/entry.less'; +@import '../../input/style/entry.less'; +@import "./patch"; diff --git a/components/auto-complete/style/patch.less b/components/auto-complete/style/patch.less new file mode 100644 index 00000000..bb935045 --- /dev/null +++ b/components/auto-complete/style/patch.less @@ -0,0 +1,3 @@ +.ant-select-dropdown-hidden { + display: none; +} diff --git a/components/back-top/style/responsive.less b/components/back-top/style/responsive.less index 7b21a850..5529704d 100644 --- a/components/back-top/style/responsive.less +++ b/components/back-top/style/responsive.less @@ -1,11 +1,21 @@ @media screen and (max-width: @screen-md) { .@{backtop-prefix-cls} { right: 60px; + + &-rtl { + right: auto; + left: 60px; + } } } @media screen and (max-width: @screen-xs) { .@{backtop-prefix-cls} { right: 20px; + + &-rtl { + right: auto; + left: 20px; + } } } diff --git a/components/badge/style/index.less b/components/badge/style/index.less index 4fc4895b..8059ae58 100644 --- a/components/badge/style/index.less +++ b/components/badge/style/index.less @@ -25,6 +25,7 @@ background: @badge-color; border-radius: (@badge-height / 2); box-shadow: 0 0 0 1px @shadow-color-inverse; + a, a:hover { color: @badge-text-color; @@ -86,12 +87,15 @@ vertical-align: middle; border-radius: 50%; } + &-success { background-color: @success-color; } + &-processing { position: relative; background-color: @processing-color; + &::after { position: absolute; top: 0; @@ -104,12 +108,15 @@ content: ''; } } + &-default { background-color: @normal-color; } + &-error { background-color: @error-color; } + &-warning { background-color: @warning-color; } @@ -157,7 +164,8 @@ vertical-align: middle; } - .@{number-prefix-cls}-custom-component { + .@{number-prefix-cls}-custom-component, + .@{badge-prefix-cls}-count { transform: none; } @@ -168,10 +176,6 @@ display: block; transform-origin: 50% 50%; } - - .@{badge-prefix-cls}-count { - transform: none; - } } } @@ -180,6 +184,7 @@ transform: scale(0.8); opacity: 0.5; } + 100% { transform: scale(2.4); opacity: 0; @@ -188,12 +193,16 @@ // Safari will blink with transform when inner element has absolute style. .safari-fix-motion() { + /* stylelint-disable property-no-vendor-prefix */ -webkit-transform-style: preserve-3d; -webkit-backface-visibility: hidden; + /* stylelint-enable property-no-vendor-prefix */ } .@{number-prefix-cls} { overflow: hidden; + direction: ltr; + &-only { position: relative; display: inline-block; @@ -218,6 +227,7 @@ transform: scale(0) translate(50%, -50%); opacity: 0; } + 100% { transform: scale(1) translate(50%, -50%); } @@ -227,6 +237,7 @@ 0% { transform: scale(1) translate(50%, -50%); } + 100% { transform: scale(0) translate(50%, -50%); opacity: 0; @@ -238,6 +249,7 @@ transform: scale(0); opacity: 0; } + 100% { transform: scale(1); } @@ -247,6 +259,7 @@ 0% { transform: scale(1); } + 100% { transform: scale(0); opacity: 0; diff --git a/components/badge/style/patch.less b/components/badge/style/patch.less index c5bb429b..76e51f63 100644 --- a/components/badge/style/patch.less +++ b/components/badge/style/patch.less @@ -9,4 +9,14 @@ font-size: @badge-font-size; } } + + .ant-scroll-number:only-child { + position: relative; + top: auto; + display: block; + } + + .ant-badge-count:only-child { + transform: none; + } } diff --git a/components/badge/style/ribbon.less b/components/badge/style/ribbon.less index b2ea714c..6a6e366b 100644 --- a/components/badge/style/ribbon.less +++ b/components/badge/style/ribbon.less @@ -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; } } } diff --git a/components/badge/style/rtl.less b/components/badge/style/rtl.less index 40c1b30f..276a6ef6 100644 --- a/components/badge/style/rtl.less +++ b/components/badge/style/rtl.less @@ -3,10 +3,10 @@ direction: rtl; } - &-count, - &-dot, - .@{number-prefix-cls}-custom-component { - .@{badge-prefix-cls}-rtl & { + &:not(&-not-a-wrapper) &-count, + &:not(&-not-a-wrapper) &-dot, + &:not(&-not-a-wrapper) .@{number-prefix-cls}-custom-component { + .@{badge-prefix-cls}-rtl& { right: auto; left: 0; direction: ltr; @@ -15,7 +15,7 @@ } } - .@{badge-prefix-cls}-rtl& .@{number-prefix-cls}-custom-component { + &-rtl&:not(&-not-a-wrapper) .@{number-prefix-cls}-custom-component { right: auto; left: 0; transform: translate(-50%, -50%); @@ -31,24 +31,16 @@ } } - &-zoom-appear, - &-zoom-enter { - .@{badge-prefix-cls}-rtl & { + &:not(&-not-a-wrapper).@{badge-prefix-cls}-rtl { + .@{badge-prefix-cls}-zoom-appear, + .@{badge-prefix-cls}-zoom-enter { animation-name: antZoomBadgeInRtl; } - } - &-zoom-leave { - .@{badge-prefix-cls}-rtl & { + .@{badge-prefix-cls}-zoom-leave { animation-name: antZoomBadgeOutRtl; } } - - &-not-a-wrapper { - .@{badge-prefix-cls}-count { - transform: none; - } - } } .@{ribbon-prefix-cls}-rtl { @@ -61,9 +53,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; } } } @@ -75,9 +68,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; } } } @@ -88,6 +82,7 @@ transform: scale(0) translate(-50%, -50%); opacity: 0; } + 100% { transform: scale(1) translate(-50%, -50%); } @@ -97,6 +92,7 @@ 0% { transform: scale(1) translate(-50%, -50%); } + 100% { transform: scale(0) translate(-50%, -50%); opacity: 0; diff --git a/components/breadcrumb/BreadcrumbItem.razor b/components/breadcrumb/BreadcrumbItem.razor index 4b8f6672..95f60f27 100644 --- a/components/breadcrumb/BreadcrumbItem.razor +++ b/components/breadcrumb/BreadcrumbItem.razor @@ -5,7 +5,7 @@ @if (Overlay != null) { - + diff --git a/components/breadcrumb/style/entry.less b/components/breadcrumb/style/entry.less index 85545241..96cebe33 100644 --- a/components/breadcrumb/style/entry.less +++ b/components/breadcrumb/style/entry.less @@ -1,2 +1,2 @@ @import './index.less'; -@import './patch.less'; \ No newline at end of file +@import './patch.less'; diff --git a/components/breadcrumb/style/index.less b/components/breadcrumb/style/index.less index 52bba120..79dee8ae 100644 --- a/components/breadcrumb/style/index.less +++ b/components/breadcrumb/style/index.less @@ -13,22 +13,32 @@ font-size: @breadcrumb-icon-font-size; } + ol { + display: flex; + flex-wrap: wrap; + margin: 0; + padding: 0; + list-style: none; + } + a { color: @breadcrumb-link-color; transition: color 0.3s; + &:hover { color: @breadcrumb-link-color-hover; } } - & > span:last-child { + li:last-child { color: @breadcrumb-last-item-color; + a { color: @breadcrumb-last-item-color; } } - & > span:last-child &-separator { + li:last-child &-separator { display: none; } diff --git a/components/breadcrumb/style/patch.less b/components/breadcrumb/style/patch.less index afd200fe..9de8fd1d 100644 --- a/components/breadcrumb/style/patch.less +++ b/components/breadcrumb/style/patch.less @@ -1,15 +1,29 @@ -.@{breadcrumb-prefix-cls} { - &-link { - .@{iconfont-css-prefix} + span { - margin-left: 4px; +.@{breadcrumb-prefix-cls} { + &-link { + .@{iconfont-css-prefix} + span { + margin-left: 4px; + } } - } + // We introduced an extra layer. + .ant-blazor-breadcrumb-item:last-child { + color: @breadcrumb-last-item-color; - .ant-blazor-breadcrumb-item:last-child { - color: rgba(0, 0, 0, 0.65); - } + a { + color: @breadcrumb-last-item-color; + } + } - .ant-blazor-breadcrumb-item:last-child .ant-breadcrumb-separator { - display: none; - } + .ant-blazor-breadcrumb-item:last-child .@{breadcrumb-prefix-cls}-separator { + display: none; + } + + &-rtl { + > .ant-blazor-breadcrumb-item { + float: right; + } + } +} + +.ant-blazor-breadcrum { + display: block; } \ No newline at end of file diff --git a/components/button/style/index.less b/components/button/style/index.less index 2a5737b3..cdb67c8d 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -18,7 +18,7 @@ // Fixing https://github.com/ant-design/ant-design/issues/18107 // Fixing https://github.com/ant-design/ant-design/issues/13214 // It is a render problem of chrome, which is only happened in the codesandbox demo - // 0.001px solution works and I don't why + // 0.001px solution works and I don't know why line-height: @btn-line-height; .btn(); .btn-default(); @@ -109,6 +109,15 @@ } } + // https://github.com/ant-design/ant-design/issues/32365 + a&-icon-only { + vertical-align: -1px; + + > .@{iconfont-css-prefix} { + display: inline; + } + } + &-round { .btn-round(@btn-prefix-cls); &.@{btn-prefix-cls}-icon-only { @@ -144,16 +153,14 @@ &.@{iconfont-css-prefix}-plus, &.@{iconfont-css-prefix}-minus { > svg { - shape-rendering: optimizeSpeed; + shape-rendering: optimizespeed; } } } &&-loading { position: relative; - &:not([disabled]) { - pointer-events: none; - } + cursor: default; &::before { display: block; @@ -161,7 +168,7 @@ } & > &-loading-icon { - transition: all 0.3s @ease-in-out; + transition: width 0.3s @ease-in-out, opacity 0.3s @ease-in-out; .@{iconfont-css-prefix} { padding-right: @padding-xs; @@ -198,28 +205,46 @@ &&-background-ghost { color: @btn-default-ghost-color; border-color: @btn-default-ghost-border; + &, &:hover, &:active, &:focus { background: @btn-default-ghost-bg; } + + &:hover, + &:focus { + color: @primary-color-hover; + border-color: @primary-color-hover; + } + + &:active { + color: @primary-color-active; + border-color: @primary-color-active; + } + + &[disabled] { + color: @disabled-color; + background: @btn-default-ghost-bg; + border-color: @btn-default-border; + } } &-background-ghost&-primary { - .button-variant-ghost(@btn-primary-bg); + .button-variant-ghost(@btn-primary-bg, @btn-primary-bg, @primary-color-hover, @primary-color-active); } &-background-ghost&-danger { - .button-variant-ghost(@btn-danger-border); + .button-variant-ghost(@btn-danger-border, @btn-danger-border, @error-color-hover, @error-color-active); } &-background-ghost&-dangerous { - .button-variant-ghost(@btn-danger-border); + .button-variant-ghost(@btn-danger-border, @btn-danger-border, @error-color-hover, @error-color-active); } &-background-ghost&-dangerous&-link { - .button-variant-ghost(@btn-danger-border, transparent); + .button-variant-ghost(@btn-danger-border, transparent, @error-color-hover, @error-color-active); } &-two-chinese-chars::first-letter { @@ -231,7 +256,7 @@ letter-spacing: 0.34em; } - &-block { + &&-block { width: 100%; } @@ -256,6 +281,7 @@ a.@{btn-prefix-cls} { &-lg { line-height: @btn-height-lg - 2px; } + &-sm { line-height: @btn-height-sm - 2px; } diff --git a/components/button/style/mixin.less b/components/button/style/mixin.less index f34c991a..084ecaa5 100644 --- a/components/button/style/mixin.less +++ b/components/button/style/mixin.less @@ -11,6 +11,28 @@ border-radius: @border-radius; } +.button-color(@color; @background; @border) { + color: @color; + border-color: @border; // a inside Button which only work in Chrome + & when not(@background = null) { + background: @background; + } + // http://stackoverflow.com/a/17253457 + > a:only-child { + color: currentcolor; + + &::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: transparent; + content: ''; + } + } +} + .button-disabled(@color: @btn-disable-color; @background: @btn-disable-bg; @border: @btn-disable-border) { &[disabled] { &, @@ -25,7 +47,7 @@ } } -.button-variant-primary(@color; @background) { +.button-variant-primary(@color; @background; @backgroundHover: yellow; @backgroundActive: yellow) { .button-color(@color; @background; @background); text-shadow: @btn-text-shadow; @@ -38,11 +60,14 @@ @color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) ` ); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( @color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) ` ); } + & when (@theme = variable) { + .button-color(@color; @backgroundHover; @backgroundHover); + } } &:active { @@ -51,11 +76,14 @@ @color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) ` ); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( @color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) ` ); } + & when (@theme = variable) { + .button-color(@color; @backgroundActive; @backgroundActive); + } } .button-disabled(); @@ -69,38 +97,50 @@ & when (@theme = dark) { .button-color(@primary-5; @background; @primary-5); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( ~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5) ` ); } + & when (@theme = variable) { + .button-color(@primary-color-hover; @background; @primary-color-hover); + } } + &:active { & when (@theme = dark) { .button-color(@primary-7; @background; @primary-7); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( ~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7) ` ); } + & when (@theme = variable) { + .button-color(@primary-color-active; @background; @primary-color-active); + } } .button-disabled(); } -.button-variant-ghost(@color; @border: @color) { + +.button-variant-ghost(@color; @border; @borderHover: yellow; @borderActive: yellow) { .button-color(@color; null; @border); text-shadow: none; + &:hover, &:focus { & when (@border = transparent) { & when (@theme = dark) { .button-color(~`colorPalette('@{color}', 7) `; null; transparent); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color(~`colorPalette('@{color}', 5) `; null; transparent); } + & when (@theme = variable) { + .button-color(@borderActive; transparent; transparent); + } } & when not (@border = transparent) { & when (@theme = dark) { @@ -108,21 +148,28 @@ ~`colorPalette('@{color}', 7) `; null; ~`colorPalette('@{color}', 7) ` ); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( ~`colorPalette('@{color}', 5) `; null; ~`colorPalette('@{color}', 5) ` ); } + & when (@theme = variable) { + .button-color(@borderHover; transparent; @borderHover); + } } } + &:active { & when (@border = transparent) { & when (@theme = dark) { .button-color(~`colorPalette('@{color}', 5) `; null; transparent); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color(~`colorPalette('@{color}', 7) `; null; transparent); } + & when (@theme = variable) { + .button-color(@borderActive; transparent; transparent); + } } & when not (@border = transparent) { & when (@theme = dark) { @@ -130,46 +177,32 @@ ~`colorPalette('@{color}', 5) `; null; ~`colorPalette('@{color}', 5) ` ); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( ~`colorPalette('@{color}', 7) `; null; ~`colorPalette('@{color}', 7) ` ); } + & when (@theme = variable) { + .button-color(@borderActive; transparent; @borderActive); + } } } .button-disabled(); } -.button-color(@color; @background; @border) { - color: @color; - border-color: @border; // a inside Button which only work in Chrome - & when not(@background = null) { - background: @background; - } - // http://stackoverflow.com/a/17253457 - > a:only-child { - color: currentColor; - &::after { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: transparent; - content: ''; - } - } -} + .button-group-base(@btnClassName) { position: relative; display: inline-flex; > .@{btnClassName}, > span > .@{btnClassName} { position: relative; + &:hover, &:focus, &:active { z-index: 2; } + &[disabled] { z-index: 0; } @@ -177,28 +210,6 @@ .@{btnClassName}-icon-only { font-size: @font-size-base; } - // size - &-lg > .@{btnClassName}, - &-lg > span > .@{btnClassName} { - .button-size(@btn-height-lg; @btn-padding-horizontal-lg; @btn-font-size-lg; 0); - } - &-lg .@{btnClassName}.@{btnClassName}-icon-only { - .square(@btn-height-lg); - padding-right: 0; - padding-left: 0; - } - &-sm > .@{btnClassName}, - &-sm > span > .@{btnClassName} { - .button-size(@btn-height-sm; @btn-padding-horizontal-sm; @font-size-base; 0); - > .@{iconfont-css-prefix} { - font-size: @font-size-base; - } - } - &-sm .@{btnClassName}.@{btnClassName}-icon-only { - .square(@btn-height-sm); - padding-right: 0; - padding-left: 0; - } } // Base styles of buttons // -------------------------------------------------- @@ -221,29 +232,36 @@ > .@{iconfont-css-prefix} { line-height: 1; } + &, &:active, &:focus { outline: 0; } + &:not([disabled]):hover { text-decoration: none; } + &:not([disabled]):active { outline: 0; box-shadow: none; } + &[disabled] { cursor: not-allowed; + > * { pointer-events: none; } } + &-lg { .button-size( @btn-height-lg; @btn-padding-horizontal-lg; @btn-font-size-lg; @btn-border-radius-base ); } + &-sm { .button-size( @btn-height-sm; @btn-padding-horizontal-sm; @btn-font-size-sm; @btn-border-radius-sm @@ -252,11 +270,12 @@ } // primary button style .btn-primary() { - .button-variant-primary(@btn-primary-color; @btn-primary-bg); + .button-variant-primary(@btn-primary-color; @btn-primary-bg; @primary-color-hover; @primary-color-active); } // default button style .btn-default() { - .button-variant-other(@btn-default-color; @btn-default-bg; @btn-default-border); + .button-variant-other(@btn-default-color; @btn-default-bg; @btn-default-border; ); + &:hover, &:focus, &:active { @@ -275,11 +294,12 @@ } // danger button style .btn-danger() { - .button-variant-primary(@btn-danger-color, @btn-danger-bg); + .button-variant-primary(@btn-danger-color, @btn-danger-bg, @error-color-hover, @error-color-active); } // danger default button style .btn-danger-default() { .button-color(@error-color, @btn-default-bg, @error-color); + &:hover, &:focus { & when (@theme = dark) { @@ -288,13 +308,17 @@ ` ); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( ~`colorPalette('@{error-color}', 5) `; @btn-default-bg; ~`colorPalette('@{error-color}', 5) ` ); } + & when (@theme = variable) { + .button-color(@error-color-hover, @btn-default-bg, @error-color-hover); + } } + &:active { & when (@theme = dark) { .button-color( @@ -302,12 +326,15 @@ ` ); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color( ~`colorPalette('@{error-color}', 7) `; @btn-default-bg; ~`colorPalette('@{error-color}', 7) ` ); } + & when (@theme = variable) { + .button-color(@error-color-active, @btn-default-bg, @error-color-active); + } } .button-disabled(); } @@ -315,22 +342,30 @@ .btn-danger-link() { .button-variant-other(@error-color, transparent, transparent); box-shadow: none; + &:hover, &:focus { & when (@theme = dark) { .button-color(~`colorPalette('@{error-color}', 7) `; transparent; transparent); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color(~`colorPalette('@{error-color}', 5) `; transparent; transparent); } + & when (@theme = variable) { + .button-color(@error-color-hover; transparent; transparent); + } } + &:active { & when (@theme = dark) { .button-color(~`colorPalette('@{error-color}', 5) `; transparent; transparent); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color(~`colorPalette('@{error-color}', 7) `; transparent; transparent); } + & when (@theme = variable) { + .button-color(@error-color-active; transparent; transparent); + } } .button-disabled(@disabled-color; transparent; transparent); } @@ -338,9 +373,11 @@ .btn-link() { .button-variant-other(@link-color, transparent, transparent); box-shadow: none; + &:hover { background: @btn-link-hover-bg; } + &:hover, &:focus, &:active { @@ -352,6 +389,7 @@ .btn-text() { .button-variant-other(@text-color, transparent, transparent); box-shadow: none; + &:hover, &:focus { color: @text-color; @@ -370,23 +408,30 @@ .btn-danger-text() { .button-variant-other(@error-color, transparent, transparent); box-shadow: none; + &:hover, &:focus { & when (@theme = dark) { .button-color(~`colorPalette('@{error-color}', 7) `; @btn-text-hover-bg; transparent); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color(~`colorPalette('@{error-color}', 5) `; @btn-text-hover-bg; transparent); } + & when (@theme = variable) { + .button-color(@error-color-hover; @btn-text-hover-bg; transparent); + } } &:active { & when (@theme = dark) { .button-color(~`colorPalette('@{error-color}', 5) `; fadein(@btn-text-hover-bg, 1%); transparent); } - & when not (@theme = dark) { + & when (not (@theme = dark) and not (@theme = variable)) { .button-color(~`colorPalette('@{error-color}', 7) `; fadein(@btn-text-hover-bg, 1%); transparent); } + & when (@theme = variable) { + .button-color(@error-color-active; fadein(@btn-text-hover-bg, 1%); transparent); + } } .button-disabled(@disabled-color; transparent; transparent); } @@ -408,12 +453,14 @@ .btn-square(@btnClassName: btn) { .square(@btn-square-size); .button-size(@btn-square-size; 0; @btn-square-only-icon-size; @btn-border-radius-base); + & > * { font-size: @btn-square-only-icon-size; } &.@{btnClassName}-lg { .square(@btn-square-size-lg); .button-size(@btn-square-size-lg; 0; @btn-square-only-icon-size-lg; @btn-border-radius-base); + & > * { font-size: @btn-square-only-icon-size-lg; } @@ -421,6 +468,7 @@ &.@{btnClassName}-sm { .square(@btn-square-size-sm); .button-size(@btn-square-size-sm; 0; @btn-square-only-icon-size-sm; @btn-border-radius-base); + & > * { font-size: @btn-square-only-icon-size-sm; } @@ -481,6 +529,7 @@ border-top-right-radius: @btn-border-radius-base; border-bottom-right-radius: @btn-border-radius-base; } + &-sm { > .@{btnClassName}:only-child { border-radius: @btn-border-radius-sm; @@ -499,12 +548,14 @@ border-bottom-right-radius: @btn-border-radius-sm; } } + & > & { float: left; } & > &:not(:first-child):not(:last-child) > .@{btnClassName} { border-radius: 0; } + & > &:first-child:not(:last-child) { > .@{btnClassName}:last-child { padding-right: 8px; diff --git a/components/button/style/rtl.less b/components/button/style/rtl.less index 6cf8b6f9..a3e5434c 100644 --- a/components/button/style/rtl.less +++ b/components/button/style/rtl.less @@ -10,6 +10,7 @@ border-right-color: @btn-group-border; border-left-color: @btn-default-border; } + &[disabled] { .@{btn-prefix-cls}-group-rtl& { border-right-color: @btn-default-border; @@ -67,20 +68,14 @@ > .@{btnClassName}:first-child:not(:last-child), > span:first-child:not(:last-child) > .@{btnClassName} { .@{btnClassName}-group-rtl& { - border-top-left-radius: 0; - border-top-right-radius: @btn-border-radius-base; - border-bottom-right-radius: @btn-border-radius-base; - border-bottom-left-radius: 0; + border-radius: 0 @btn-border-radius-base @btn-border-radius-base 0; } } > .@{btnClassName}:last-child:not(:first-child), > span:last-child:not(:first-child) > .@{btnClassName} { .@{btnClassName}-group-rtl& { - border-top-left-radius: @btn-border-radius-base; - border-top-right-radius: 0; - border-bottom-right-radius: 0; - border-bottom-left-radius: @btn-border-radius-base; + border-radius: @btn-border-radius-base 0 0 @btn-border-radius-base; } } @@ -88,20 +83,14 @@ > .@{btnClassName}:first-child:not(:last-child), > span:first-child:not(:last-child) > .@{btnClassName} { .@{btnClassName}-group-rtl& { - border-top-left-radius: 0; - border-top-right-radius: @btn-border-radius-sm; - border-bottom-right-radius: @btn-border-radius-sm; - border-bottom-left-radius: 0; + border-radius: 0 @btn-border-radius-sm @btn-border-radius-sm 0; } } > .@{btnClassName}:last-child:not(:first-child), > span:last-child:not(:first-child) > .@{btnClassName} { .@{btnClassName}-group-rtl& { - border-top-left-radius: @btn-border-radius-sm; - border-top-right-radius: 0; - border-bottom-right-radius: 0; - border-bottom-left-radius: @btn-border-radius-sm; + border-radius: @btn-border-radius-sm 0 0 @btn-border-radius-sm; } } } diff --git a/components/calendar/style/entry.less b/components/calendar/style/entry.less index 06547c43..4fb8d939 100644 --- a/components/calendar/style/entry.less +++ b/components/calendar/style/entry.less @@ -1 +1,4 @@ @import './index.less'; +// style dependencies +@import '../../select/style/entry.less'; +@import '../../radio/style/entry.less'; diff --git a/components/calendar/style/index.less b/components/calendar/style/index.less index af0e8a4a..18f73842 100644 --- a/components/calendar/style/index.less +++ b/components/calendar/style/index.less @@ -70,6 +70,10 @@ line-height: 18px; } } + + .@{calendar-picker-prefix-cls}-cell::before { + pointer-events: none; + } } // ========================== Full ========================== diff --git a/components/card/style/entry.less b/components/card/style/entry.less index 06547c43..4e07d250 100644 --- a/components/card/style/entry.less +++ b/components/card/style/entry.less @@ -1 +1,5 @@ @import './index.less'; +// style dependencies +@import '../../tabs/style/entry.less'; +@import '../../grid/style/entry.less'; +@import './patch.less'; diff --git a/components/card/style/index.less b/components/card/style/index.less index 8385e76a..7c02be1f 100644 --- a/components/card/style/index.less +++ b/components/card/style/index.less @@ -66,7 +66,7 @@ } } - .@{ant-prefix}-tabs { + .@{ant-prefix}-tabs-top { clear: both; margin-bottom: @card-head-tabs-margin-bottom; color: @text-color; @@ -250,6 +250,7 @@ &-detail { overflow: hidden; + > div:not(:last-child) { margin-bottom: @margin-xs; } @@ -298,6 +299,7 @@ 100% { background-position: 0 50%; } + 50% { background-position: 100% 50%; } diff --git a/components/card/style/patch.less b/components/card/style/patch.less new file mode 100644 index 00000000..7b8e54a3 --- /dev/null +++ b/components/card/style/patch.less @@ -0,0 +1,8 @@ +@skeleton-prefix-cls: ~'@{ant-prefix}-skeleton'; +.@{card-prefix-cls} { + &-rtl { + .@{skeleton-prefix-cls}-header { + padding: 0 0 0 @card-head-padding; + } + } +} \ No newline at end of file diff --git a/components/carousel/style/entry.less b/components/carousel/style/entry.less index 06547c43..3e686bd5 100644 --- a/components/carousel/style/entry.less +++ b/components/carousel/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch'; diff --git a/components/carousel/style/index.less b/components/carousel/style/index.less index d60c05c9..031383b2 100644 --- a/components/carousel/style/index.less +++ b/components/carousel/style/index.less @@ -10,7 +10,6 @@ position: relative; display: block; box-sizing: border-box; - -ms-touch-action: pan-y; touch-action: pan-y; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; @@ -116,6 +115,7 @@ display: block; height: auto; } + .slick-arrow.slick-hidden { display: none; } @@ -137,15 +137,18 @@ border: 0; outline: none; cursor: pointer; + &:hover, &:focus { color: transparent; background: transparent; outline: none; + &::before { opacity: 1; } } + &.slick-disabled::before { opacity: 0.25; } @@ -161,6 +164,7 @@ .slick-next { right: -25px; + &::before { content: '→'; } @@ -183,10 +187,12 @@ &-bottom { bottom: 12px; } + &-top { top: 12px; bottom: auto; } + li { position: relative; display: inline-block; @@ -202,6 +208,7 @@ text-indent: -999px; vertical-align: top; transition: all 0.5s; + button { display: block; width: 100%; @@ -216,17 +223,21 @@ cursor: pointer; opacity: 0.3; transition: all 0.5s; + &:hover, &:focus { opacity: 0.75; } } + &.slick-active { width: @carousel-dot-active-width; + & button { background: @component-background; opacity: 1; } + &:hover, &:focus { opacity: 1; @@ -250,19 +261,23 @@ right: auto; left: 12px; } + &-right { right: 12px; left: auto; } + li { width: @carousel-dot-height; height: @carousel-dot-width; margin: 4px 2px; vertical-align: baseline; + button { width: @carousel-dot-height; height: @carousel-dot-width; } + &.slick-active { width: @carousel-dot-height; height: @carousel-dot-active-width; diff --git a/components/carousel/style/patch.less b/components/carousel/style/patch.less new file mode 100644 index 00000000..555e6152 --- /dev/null +++ b/components/carousel/style/patch.less @@ -0,0 +1,11 @@ +.slick-dots { + display: block; +} + +.slick-track { + opacity: 1; +} + +.slick-list { + direction: ltr; +} diff --git a/components/carousel/style/rtl.less b/components/carousel/style/rtl.less index 3f2190bd..c2853a2a 100644 --- a/components/carousel/style/rtl.less +++ b/components/carousel/style/rtl.less @@ -19,6 +19,7 @@ .@{carousel-prefix-cls}-rtl & { right: -25px; left: auto; + &::before { content: '→'; } @@ -29,6 +30,7 @@ .@{carousel-prefix-cls}-rtl & { right: auto; left: -25px; + &::before { content: '←'; } diff --git a/components/cascader/style/entry.less b/components/cascader/style/entry.less index 06547c43..062f1833 100644 --- a/components/cascader/style/entry.less +++ b/components/cascader/style/entry.less @@ -1 +1,5 @@ @import './index.less'; +@import './patch.less'; +// style dependencies +@import '../../empty/style/entry.less'; +@import '../../input/style/entry.less'; diff --git a/components/cascader/style/index.less b/components/cascader/style/index.less index b0a78fcc..1e4822f3 100644 --- a/components/cascader/style/index.less +++ b/components/cascader/style/index.less @@ -1,172 +1,39 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; @import '../../input/style/mixin'; +@import '../../checkbox/style/mixin'; @cascader-prefix-cls: ~'@{ant-prefix}-cascader'; +.antCheckboxFn(@checkbox-prefix-cls: ~'@{cascader-prefix-cls}-checkbox'); + .@{cascader-prefix-cls} { - .reset-component(); + width: 184px; - &-input.@{ant-prefix}-input { - // Keep it static for https://github.com/ant-design/ant-design/issues/16738 - position: static; - width: 100%; - // https://github.com/ant-design/ant-design/issues/17582 - padding-right: 24px; - // Add important to fix https://github.com/ant-design/ant-design/issues/5078 - // because input.less will compile after cascader.less - background-color: transparent !important; - cursor: pointer; - } - - &-picker-show-search &-input.@{ant-prefix}-input { - position: relative; - } - - &-picker { - .reset-component(); - - position: relative; - display: inline-block; - background-color: @cascader-bg; - border-radius: @border-radius-base; - outline: 0; - cursor: pointer; - transition: color 0.3s; - - &-with-value &-label { - color: transparent; - } - - &-disabled { - color: @disabled-color; - background: @input-disabled-bg; - cursor: not-allowed; - .@{cascader-prefix-cls}-input { - cursor: not-allowed; - } - } - - &:focus .@{cascader-prefix-cls}-input { - .active(); - } - - &-borderless .@{cascader-prefix-cls}-input { - border-color: transparent !important; - box-shadow: none !important; - } - - &-show-search&-focused { - color: @disabled-color; - } - - &-label { - position: absolute; - top: 50%; - left: 0; - width: 100%; - height: 20px; - margin-top: -10px; - padding: 0 20px 0 @control-padding-horizontal; - overflow: hidden; - line-height: 20px; - white-space: nowrap; - text-overflow: ellipsis; - } - - &-clear { - position: absolute; - top: 50%; - right: @control-padding-horizontal; - z-index: 2; - width: 12px; - height: 12px; - margin-top: -6px; - color: @disabled-color; - font-size: @font-size-sm; - line-height: 12px; - background: @component-background; - cursor: pointer; - opacity: 0; - transition: color 0.3s ease, opacity 0.15s ease; - &:hover { - color: @text-color-secondary; - } - } - - &:hover &-clear { - opacity: 1; - } - - // arrow - &-arrow { - position: absolute; - top: 50%; - right: @control-padding-horizontal; - z-index: 1; - width: 12px; - height: 12px; - margin-top: -6px; - color: @disabled-color; - font-size: 12px; - line-height: 12px; - } - } - - // https://github.com/ant-design/ant-design/pull/12407#issuecomment-424657810 - &-picker-label:hover + &-input { - &:not(.@{cascader-prefix-cls}-picker-disabled &) { - .hover(); - } - } - - &-picker-small &-picker-clear, - &-picker-small &-picker-arrow { - right: @control-padding-horizontal-sm; + &-checkbox { + top: 0; + margin-right: @padding-xs; } &-menus { - position: absolute; - z-index: @zindex-dropdown; - font-size: @cascader-dropdown-font-size; - white-space: nowrap; - background: @cascader-menu-bg; - border-radius: @border-radius-base; - box-shadow: @box-shadow-base; + display: flex; + flex-wrap: nowrap; + align-items: flex-start; - ul, - ol { - margin: 0; - list-style: none; - } - - &-empty, - &-hidden { - display: none; - } - &.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-bottomLeft, - &.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-bottomLeft { - animation-name: antSlideUpIn; - } - - &.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topLeft, - &.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topLeft { - animation-name: antSlideDownIn; - } - - &.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-bottomLeft { - animation-name: antSlideUpOut; - } - - &.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topLeft { - animation-name: antSlideDownOut; + &.@{cascader-prefix-cls}-menu-empty { + .@{cascader-prefix-cls}-menu { + width: 100%; + height: auto; + } } } + &-menu { - display: inline-block; + flex-grow: 1; min-width: 111px; height: 180px; margin: 0; + margin: -@dropdown-edge-child-vertical-padding 0; padding: @cascader-dropdown-edge-child-vertical-padding 0; overflow: auto; vertical-align: top; @@ -174,67 +41,63 @@ border-right: @border-width-base @border-style-base @cascader-menu-border-color-split; -ms-overflow-style: -ms-autohiding-scrollbar; // https://github.com/ant-design/ant-design/issues/11857 - &:first-child { - border-radius: @border-radius-base 0 0 @border-radius-base; - } - &:last-child { - margin-right: -1px; - border-right-color: transparent; - border-radius: 0 @border-radius-base @border-radius-base 0; - } - &:only-child { - border-radius: @border-radius-base; - } - } - &-menu-item { - padding: @cascader-dropdown-vertical-padding @control-padding-horizontal; - overflow: hidden; - line-height: @cascader-dropdown-line-height; - white-space: nowrap; - text-overflow: ellipsis; - cursor: pointer; - transition: all 0.3s; - &:hover { - background: @item-hover-bg; - } - &-disabled { - color: @disabled-color; - cursor: not-allowed; - &:hover { - background: transparent; - } - } - .@{cascader-prefix-cls}-menu-empty & { - color: @disabled-color; - cursor: default; - pointer-events: none; - } - &-active:not(&-disabled) { - &, - &:hover { - font-weight: @select-item-selected-font-weight; - background-color: @cascader-item-selected-bg; - } - } - &-expand { - position: relative; - padding-right: 24px; - } + &-item { + display: flex; + flex-wrap: nowrap; + align-items: center; + padding: @cascader-dropdown-vertical-padding @control-padding-horizontal; + overflow: hidden; + line-height: @cascader-dropdown-line-height; + white-space: nowrap; + text-overflow: ellipsis; + cursor: pointer; + transition: all 0.3s; - &-expand &-expand-icon, - &-loading-icon { - position: absolute; - right: @control-padding-horizontal; - color: @text-color-secondary; - font-size: 10px; + &:hover { + background: @item-hover-bg; + } - .@{cascader-prefix-cls}-menu-item-disabled& { + &-disabled { color: @disabled-color; - } - } + cursor: not-allowed; - & &-keyword { - color: @highlight-color; + &:hover { + background: transparent; + } + } + + .@{cascader-prefix-cls}-menu-empty & { + color: @disabled-color; + cursor: default; + pointer-events: none; + } + + &-active:not(&-disabled) { + &, + &:hover { + font-weight: @select-item-selected-font-weight; + background-color: @cascader-item-selected-bg; + } + } + + &-content { + flex: auto; + } + + &-expand &-expand-icon, + &-loading-icon { + margin-left: @padding-xss; + color: @text-color-secondary; + font-size: 10px; + + .@{cascader-prefix-cls}-menu-item-disabled& { + color: @disabled-color; + } + } + + &-keyword { + color: @highlight-color; + } } } } diff --git a/components/cascader/style/patch.less b/components/cascader/style/patch.less new file mode 100644 index 00000000..a6c60f91 --- /dev/null +++ b/components/cascader/style/patch.less @@ -0,0 +1,5 @@ +.ant-cascader-menus { + position: relative; + margin-top: 2px; + margin-bottom: 2px; +} \ No newline at end of file diff --git a/components/cascader/style/rtl.less b/components/cascader/style/rtl.less index e2afea2d..c70bf1dd 100644 --- a/components/cascader/style/rtl.less +++ b/components/cascader/style/rtl.less @@ -1,95 +1,19 @@ -@import '../../style/themes/index'; -@import '../../style/mixins/index'; -@import '../../input/style/mixin'; - +// We can not import reference of `./index` directly since it will make dead loop in less +@import (reference) '../../style/themes/index'; @cascader-prefix-cls: ~'@{ant-prefix}-cascader'; -@picker-rtl-cls: ~'@{cascader-prefix-cls}-picker-rtl'; -@menu-rtl-cls: ~'@{cascader-prefix-cls}-menu-rtl'; -.@{cascader-prefix-cls} { - &-input.@{ant-prefix}-input { - .@{picker-rtl-cls} & { - padding-right: @input-padding-horizontal-base; - padding-left: 24px; - text-align: right; - } - } - - &-picker { - &-rtl { - direction: rtl; - } - - &-label { - .@{picker-rtl-cls} & { - padding: 0 @control-padding-horizontal 0 20px; - text-align: right; - } - } - - &-clear { - .@{picker-rtl-cls} & { - right: auto; - left: @control-padding-horizontal; - } - } - - &-arrow { - .@{picker-rtl-cls} & { - right: auto; - left: @control-padding-horizontal; - } - } - } - - &-picker-small &-picker-clear, - &-picker-small &-picker-arrow { - .@{picker-rtl-cls}& { - right: auto; - left: @control-padding-horizontal-sm; - } - } - - &-menu { - &-rtl & { - direction: rtl; - border-right: none; - border-left: @border-width-base @border-style-base @border-color-split; - &:first-child { - border-radius: 0 @border-radius-base @border-radius-base 0; - } - &:last-child { - margin-right: 0; - margin-left: -1px; - border-left-color: transparent; - border-radius: @border-radius-base 0 0 @border-radius-base; - } - &:only-child { - border-radius: @border-radius-base; - } - } - } - - &-menu-item { - &-expand { - .@{menu-rtl-cls} & { - padding-right: @control-padding-horizontal; - padding-left: 24px; - } - } - - &-expand &-expand-icon, +.@{cascader-prefix-cls}-rtl { + .@{cascader-prefix-cls}-menu-item { + &-expand-icon, &-loading-icon { - .@{menu-rtl-cls} & { - right: auto; - left: @control-padding-horizontal; - } + margin-right: @padding-xss; + margin-left: 0; } + } - &-loading-icon { - .@{menu-rtl-cls} & { - transform: scaleY(-1); - } - } + .@{cascader-prefix-cls}-checkbox { + top: 0; + margin-right: 0; + margin-left: @padding-xs; } } diff --git a/components/checkbox/style/entry.less b/components/checkbox/style/entry.less index 06547c43..96cebe33 100644 --- a/components/checkbox/style/entry.less +++ b/components/checkbox/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/checkbox/style/index.less b/components/checkbox/style/index.less index 1ce3012c..cdb84297 100644 --- a/components/checkbox/style/index.less +++ b/components/checkbox/style/index.less @@ -2,4 +2,5 @@ @import './mixin'; .antCheckboxFn(); + @import './rtl'; diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 76b22b12..ae4a39d9 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -48,7 +48,7 @@ direction: ltr; background-color: @checkbox-check-bg; border: @checkbox-border-width @border-style-base @border-color-base; - border-radius: @border-radius-base; + border-radius: @checkbox-border-radius; // Fix IE checked style // https://github.com/ant-design/ant-design/issues/12597 border-collapse: separate; @@ -122,11 +122,13 @@ .@{checkbox-prefix-cls}-input { cursor: not-allowed; + pointer-events: none; } .@{checkbox-inner-prefix-cls} { background-color: @input-disabled-bg; border-color: @border-color-base !important; + &::after { border-color: @input-disabled-bg; border-collapse: separate; @@ -167,6 +169,13 @@ & + & { margin-left: 8px; } + + &&-in-form-item { + input[type='checkbox'] { + width: 14px; + height: 14px; + } + } } .@{checkbox-prefix-cls} + span { @@ -180,10 +189,12 @@ &-item { margin-right: @checkbox-group-item-margin-right; + &:last-child { margin-right: 0; } } + &-item + &-item { margin-left: 0; } @@ -222,6 +233,7 @@ transform: scale(1); opacity: 0.5; } + 100% { transform: scale(1.6); opacity: 0; diff --git a/components/checkbox/style/patch.less b/components/checkbox/style/patch.less new file mode 100644 index 00000000..b81e7efc --- /dev/null +++ b/components/checkbox/style/patch.less @@ -0,0 +1,5 @@ +.ant-checkbox + span { + &:empty { + display: none; + } +} diff --git a/components/checkbox/style/rtl.less b/components/checkbox/style/rtl.less index 7c33a7f9..fa15b4df 100644 --- a/components/checkbox/style/rtl.less +++ b/components/checkbox/style/rtl.less @@ -11,12 +11,14 @@ margin-right: 0; margin-left: @checkbox-group-item-margin-right; } + &:last-child { .@{checkbox-prefix-cls}-group-rtl & { margin-left: 0 !important; } } } + &-item + &-item { .@{checkbox-prefix-cls}-group-rtl & { margin-left: @checkbox-group-item-margin-right; diff --git a/components/collapse/style/entry.less b/components/collapse/style/entry.less index 06547c43..96cebe33 100644 --- a/components/collapse/style/entry.less +++ b/components/collapse/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/collapse/style/index.less b/components/collapse/style/index.less index 58008356..b92378d5 100644 --- a/components/collapse/style/index.less +++ b/components/collapse/style/index.less @@ -22,17 +22,19 @@ } > .@{collapse-prefix-cls}-header { - position: relative; + position: relative; // Compatible with old version of antd, should remove in next version + display: flex; + flex-wrap: nowrap; + align-items: flex-start; padding: @collapse-header-padding; color: @heading-color; line-height: @line-height-base; cursor: pointer; transition: all 0.3s, visibility 0s; - .clearfix(); .@{collapse-prefix-cls}-arrow { display: inline-block; - margin-right: 12px; + margin-right: @margin-sm; font-size: @font-size-sm; vertical-align: -1px; @@ -42,7 +44,7 @@ } .@{collapse-prefix-cls}-extra { - float: right; + margin-left: auto; } &:focus { @@ -59,7 +61,7 @@ &.@{collapse-prefix-cls}-no-arrow { > .@{collapse-prefix-cls}-header { - padding-left: 12px; + padding-left: @padding-sm; } } } @@ -68,6 +70,7 @@ &-icon-position-right { & > .@{collapse-prefix-cls}-item { > .@{collapse-prefix-cls}-header { + position: relative; padding: @collapse-header-padding; padding-right: @collapse-header-padding-extra; @@ -117,6 +120,11 @@ border-radius: 0; } + // hide the last border-bottom in borderless mode + &-borderless > &-item:last-child { + border-bottom: 0; + } + &-borderless > &-item > &-content { background-color: transparent; border-top: 0; diff --git a/components/collapse/style/patch.less b/components/collapse/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/collapse/style/rtl.less b/components/collapse/style/rtl.less index fb8906fa..559a922d 100644 --- a/components/collapse/style/rtl.less +++ b/components/collapse/style/rtl.less @@ -16,6 +16,11 @@ } .@{collapse-prefix-cls}-arrow { + .@{collapse-prefix-cls}-rtl& { + margin-right: 0; + margin-left: @margin-sm; + } + & svg { .@{collapse-prefix-cls}-rtl& { transform: rotate(180deg); @@ -25,7 +30,8 @@ .@{collapse-prefix-cls}-extra { .@{collapse-prefix-cls}-rtl& { - float: left; + margin-right: auto; + margin-left: 0; } } } @@ -33,7 +39,7 @@ &.@{collapse-prefix-cls}-no-arrow { > .@{collapse-prefix-cls}-header { .@{collapse-prefix-cls}-rtl& { - padding-right: 12px; + padding-right: @padding-sm; padding-left: 0; } } diff --git a/components/comment/style/entry.less b/components/comment/style/entry.less index 06547c43..b05658da 100644 --- a/components/comment/style/entry.less +++ b/components/comment/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import "./patch"; \ No newline at end of file diff --git a/components/comment/style/index.less b/components/comment/style/index.less index 73243c08..84da3a3a 100644 --- a/components/comment/style/index.less +++ b/components/comment/style/index.less @@ -38,6 +38,7 @@ justify-content: flex-start; margin-bottom: @margin-xss; font-size: @comment-font-size-base; + & > a, & > span { padding-right: @padding-xs; @@ -49,8 +50,10 @@ color: @comment-author-name-color; font-size: @comment-font-size-base; transition: color 0.3s; + > * { color: @comment-author-name-color; + &:hover { color: @comment-author-name-color; } @@ -78,6 +81,7 @@ > li { display: inline-block; color: @comment-action-color; + > span { margin-right: 10px; color: @comment-action-color; diff --git a/components/comment/style/patch.less b/components/comment/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/comment/style/rtl.less b/components/comment/style/rtl.less index 27ad5270..a930d838 100644 --- a/components/comment/style/rtl.less +++ b/components/comment/style/rtl.less @@ -31,6 +31,7 @@ .@{comment-prefix-cls}-rtl & { padding-right: 0; } + > li { > span { .@{comment-prefix-cls}-rtl & { diff --git a/components/components.less b/components/components.less index 5f7785d1..2e6e91f9 100644 --- a/components/components.less +++ b/components/components.less @@ -19,7 +19,6 @@ @import "./dropdown/style/entry.less"; @import "./empty/style/entry.less"; @import "./grid/style/entry.less"; -@import "./image/style/entry.less"; @import "./input/style/entry.less"; @import "./input-number/style/entry.less"; @import "./layout/style/entry.less"; @@ -38,9 +37,9 @@ @import "./radio/style/entry.less"; @import "./rate/style/entry.less"; @import "./select/style/entry.less"; +@import "./segmented/style/index.less"; @import "./skeleton/style/entry.less"; @import "./slider/style/entry.less"; -@import "./space/style/entry.less"; @import "./spin/style/entry.less"; @import "./statistic/style/entry.less"; @import "./steps/style/entry.less"; @@ -59,4 +58,6 @@ @import "./tree/style/entry.less"; @import "./tree-select/style/entry.less"; @import "./calendar/style/entry.less"; -@import "./result/style/entry.less"; \ No newline at end of file +@import "./result/style/entry.less"; +@import "./space/style/entry.less"; +@import "./image/style/entry.less"; diff --git a/components/core/Component/Overlay/type/PlacementType.cs b/components/core/Component/Overlay/type/PlacementType.cs index 2022f416..793a4eea 100644 --- a/components/core/Component/Overlay/type/PlacementType.cs +++ b/components/core/Component/Overlay/type/PlacementType.cs @@ -1,10 +1,17 @@ -namespace AntDesign +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; + +namespace AntDesign { public enum Placement { TopLeft, + [Obsolete("Please use 'Placement.Top' instead.")] TopCenter, - Top, + Top = 2, TopRight, Left, LeftTop, @@ -13,15 +20,15 @@ RightTop, RightBottom, BottomLeft, + [Obsolete("Please use 'Placement.Bottom' instead.")] BottomCenter, - Bottom, + Bottom = 12, BottomRight } - public sealed class PlacementType : EnumValue + internal sealed class PlacementType : EnumValue { public static readonly PlacementType TopLeft = new PlacementType("topLeft", "down", "33% 100%", 0, Placement.TopLeft); - public static readonly PlacementType TopCenter = new PlacementType("topCenter", "down", "50% 100%", 1, Placement.TopCenter); public static readonly PlacementType Top = new PlacementType("top", "down", "50% 100%", 1, Placement.Top); public static readonly PlacementType TopRight = new PlacementType("topRight", "down", "66% 100%", 2, Placement.TopRight); @@ -34,14 +41,13 @@ public static readonly PlacementType RightBottom = new PlacementType("rightBottom", "up", "0 66%", 8, Placement.RightBottom); public static readonly PlacementType BottomLeft = new PlacementType("bottomLeft", "up", "33% 0", 9, Placement.BottomLeft); - public static readonly PlacementType BottomCenter = new PlacementType("bottomCenter", "up", "50% 0", 10, Placement.BottomCenter); public static readonly PlacementType Bottom = new PlacementType("bottom", "up", "50% 0", 10, Placement.Bottom); public static readonly PlacementType BottomRight = new PlacementType("bottomRight", "up", "66% 0", 11, Placement.BottomRight); public static PlacementType Create(Placement placement) => placement switch { Placement.TopLeft => PlacementType.TopLeft, - Placement.TopCenter => PlacementType.TopCenter, + Placement.TopCenter => PlacementType.Top, Placement.Top => PlacementType.Top, Placement.TopRight => PlacementType.TopRight, Placement.Left => PlacementType.Left, @@ -51,7 +57,7 @@ Placement.RightTop => PlacementType.RightTop, Placement.RightBottom => PlacementType.RightBottom, Placement.BottomLeft => PlacementType.BottomLeft, - Placement.BottomCenter => PlacementType.BottomCenter, + Placement.BottomCenter => PlacementType.Bottom, Placement.Bottom => PlacementType.Bottom, Placement.BottomRight => PlacementType.BottomRight, _ => PlacementType.BottomLeft @@ -72,7 +78,6 @@ internal PlacementType GetReverseType() { if (this == TopLeft) return BottomLeft; - if (this == TopCenter) return BottomCenter; if (this == Top) return Bottom; if (this == TopRight) return BottomRight; @@ -85,7 +90,6 @@ if (this == RightBottom) return LeftBottom; if (this == BottomLeft) return TopLeft; - if (this == BottomCenter) return TopCenter; if (this == Bottom) return Top; if (this == BottomRight) return TopRight; @@ -94,7 +98,7 @@ internal PlacementDirection GetDirection() { - if (this.IsIn(TopLeft, TopCenter, Top, TopRight)) + if (this.IsIn(TopLeft, Top, TopRight)) { return PlacementDirection.Top; } @@ -109,7 +113,7 @@ return PlacementDirection.Right; } - if (this.IsIn(BottomLeft, BottomCenter, Bottom, BottomRight)) + if (this.IsIn(BottomLeft, Bottom, BottomRight)) { return PlacementDirection.Bottom; } diff --git a/components/core/JsInterop/modules/components/overlay.ts b/components/core/JsInterop/modules/components/overlay.ts index e6dd4c48..bbf514ca 100644 --- a/components/core/JsInterop/modules/components/overlay.ts +++ b/components/core/JsInterop/modules/components/overlay.ts @@ -5,7 +5,6 @@ import { mutationObserver as mutation } from '../../ObservableApi/mutationObserv //Make sure the enum is identical as C# AntDesign.Placement enum export enum Placement { TopLeft = 0, - TopCenter = 1, Top = 2, TopRight = 3, Left = 4, @@ -15,7 +14,6 @@ export enum Placement { RightTop = 8, RightBottom = 9, BottomLeft = 10, - BottomCenter = 11, Bottom = 12, BottomRight = 13 } @@ -64,7 +62,6 @@ export class Overlay { { horizontal: "left" | "right", vertical: "top" | "bottom", class: string }> = new Map([ [Placement.TopLeft, { horizontal: "left", vertical: "bottom", class: "topLeft" }], - [Placement.TopCenter, { horizontal: "left", vertical: "bottom", class: "topCenter" }], [Placement.Top, { horizontal: "left", vertical: "bottom", class: "top" }], [Placement.TopRight, { horizontal: "right", vertical: "bottom", class: "topRight" }], [Placement.Left, { horizontal: "right", vertical: "top", class: "left" }], @@ -74,7 +71,6 @@ export class Overlay { [Placement.RightTop, { horizontal: "left", vertical: "top", class: "rightTop" }], [Placement.RightBottom, { horizontal: "left", vertical: "bottom", class: "rightBottom" }], [Placement.BottomLeft, { horizontal: "left", vertical: "top", class: "bottomLeft" }], - [Placement.BottomCenter, { horizontal: "left", vertical: "top", class: "bottomCenter" }], [Placement.Bottom, { horizontal: "left", vertical: "top", class: "bottom" }], [Placement.BottomRight, { horizontal: "right", vertical: "top", class: "bottomRight" }], ]); @@ -82,7 +78,6 @@ export class Overlay { private static reverseVerticalPlacementMap: Map = new Map([ [Placement.TopLeft, (position: string) => Placement.BottomLeft], - [Placement.TopCenter, (position: string) => Placement.BottomCenter], [Placement.Top, (position: string) => Placement.Bottom], [Placement.TopRight, (position: string) => Placement.BottomRight], [Placement.Left, (position: string) => position === "top" ? Placement.LeftBottom : Placement.LeftTop], @@ -92,7 +87,6 @@ export class Overlay { [Placement.RightTop, (position: string) => Placement.RightBottom], [Placement.RightBottom, (position: string) => Placement.RightTop], [Placement.BottomLeft, (position: string) => Placement.TopLeft], - [Placement.BottomCenter, (position: string) => Placement.TopCenter], [Placement.Bottom, (position: string) => Placement.Top], [Placement.BottomRight, (position: string) => Placement.TopRight] ]); @@ -100,7 +94,6 @@ export class Overlay { private static reverseHorizontalPlacementMap: Map = new Map([ [Placement.TopLeft, (position: string) => Placement.TopRight], - [Placement.TopCenter, (position: string) => position === "left" ? Placement.TopRight : Placement.TopLeft], [Placement.Top, (position: string) => position === "left" ? Placement.TopRight : Placement.TopLeft], [Placement.TopRight, (position: string) => Placement.TopLeft], [Placement.Left, (position: string) => Placement.Right], @@ -110,7 +103,6 @@ export class Overlay { [Placement.RightTop, (position: string) => Placement.LeftBottom], [Placement.RightBottom, (position: string) => Placement.LeftTop], [Placement.BottomLeft, (position: string) => Placement.BottomRight], - [Placement.BottomCenter, (position: string) => position === "left" ? Placement.BottomRight : Placement.BottomLeft], [Placement.Bottom, (position: string) => position === "left" ? Placement.BottomRight : Placement.BottomLeft], [Placement.BottomRight, (position: string) => Placement.BottomLeft] ]); @@ -118,7 +110,6 @@ export class Overlay { private static arrowCenterPlacementMatch: Map = new Map([ [Placement.TopLeft, Placement.Top], - [Placement.TopCenter, Placement.TopCenter], [Placement.Top, Placement.Top], [Placement.TopRight, Placement.Top], [Placement.Left, Placement.Left], @@ -128,7 +119,6 @@ export class Overlay { [Placement.RightTop, Placement.Right], [Placement.RightBottom, Placement.Right], [Placement.BottomLeft, Placement.Bottom], - [Placement.BottomCenter, Placement.BottomCenter], [Placement.Bottom, Placement.Bottom], [Placement.BottomRight, Placement.Bottom] ]); @@ -254,7 +244,6 @@ export class Overlay { }; }; case Placement.BottomLeft: - case Placement.BottomCenter: case Placement.Bottom: case Placement.BottomRight: return function(triggerTop: number, triggerHeight: number, container: domTypes.domInfo, trigger: domTypes.domInfo, overlayHeight: number, constraints: overlayConstraints) { @@ -278,7 +267,6 @@ export class Overlay { if (position === "bottom") { switch (placement) { case Placement.TopLeft: - case Placement.TopCenter: case Placement.Top: case Placement.TopRight: return function(triggerBottom: number, triggerHeight: number, container: domTypes.domInfo, trigger: domTypes.domInfo, overlayHeight: number, constraints: overlayConstraints) { @@ -325,9 +313,8 @@ export class Overlay { position.right = Overlay.reversePositionValue(position.left, container.scrollWidth, overlayWidth) return position; }; - case Placement.TopCenter: + case Placement.Top: - case Placement.BottomCenter: case Placement.Bottom: return function(triggerLeft: number, triggerWidth: number, container: domTypes.domInfo, trigger: domTypes.domInfo, overlayWidth: number, constraints: overlayConstraints) { const position: horizontalPosition = { diff --git a/components/core/JsInterop/modules/dom/eventHelper.ts b/components/core/JsInterop/modules/dom/eventHelper.ts index 5c1ff5a5..c23292b9 100644 --- a/components/core/JsInterop/modules/dom/eventHelper.ts +++ b/components/core/JsInterop/modules/dom/eventHelper.ts @@ -41,7 +41,7 @@ export class eventHelper { (dom as HTMLElement).addEventListener(eventName, callback); } } - } + } static addDomEventListenerToFirstChild(element, eventName, preventDefault, invoker) { const dom = domInfoHelper.get(element); @@ -79,8 +79,8 @@ export class eventHelper { private static debounce(func, wait, immediate) { var timeout; - return () => { - const context = this, args = arguments; + return (...args) => { + const context = this; const later = () => { timeout = null; if (!immediate) func.apply(this, args); diff --git a/components/core/JsInterop/modules/dom/infoHelper.ts b/components/core/JsInterop/modules/dom/infoHelper.ts index eca81133..eca05fb8 100644 --- a/components/core/JsInterop/modules/dom/infoHelper.ts +++ b/components/core/JsInterop/modules/dom/infoHelper.ts @@ -118,7 +118,7 @@ export class infoHelper { } static getMaxZIndex(): number { - return [...document.querySelectorAll("*")].reduce((r, e) => Math.max(r, +window.getComputedStyle(e).zIndex || 0), 0) + return Array.from(document.querySelectorAll("*")).reduce((r, e) => Math.max(r, +window.getComputedStyle(e).zIndex || 0), 0) } static isFixedPosition(element) { diff --git a/components/date-picker/style/entry.less b/components/date-picker/style/entry.less index 06547c43..4c01ee61 100644 --- a/components/date-picker/style/entry.less +++ b/components/date-picker/style/entry.less @@ -1 +1,7 @@ @import './index.less'; +@import './patch.less'; +// style dependencies +// deps-lint-skip: input +@import '../../input/style/entry.less'; +@import '../../time-picker/style/entry.less'; +@import '../../tag/style/entry.less'; diff --git a/components/date-picker/style/index.less b/components/date-picker/style/index.less index 4fc64c19..cfcdb62e 100644 --- a/components/date-picker/style/index.less +++ b/components/date-picker/style/index.less @@ -1,6 +1,7 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; @import '../../input/style/mixin'; +@import './status'; @picker-prefix-cls: ~'@{ant-prefix}-picker'; @@ -13,7 +14,7 @@ } .@{picker-prefix-cls} { - @arrow-size: 10px; + @arrow-size: @popover-arrow-width; .reset-component(); .picker-padding(@input-height-base, @font-size-base, @input-padding-horizontal-base); @@ -22,7 +23,7 @@ align-items: center; background: @picker-bg; border: @border-width-base @border-style-base @select-border-color; - border-radius: @border-radius-base; + border-radius: @control-border-radius; transition: border @animation-duration-slow, box-shadow @animation-duration-slow; &:hover, @@ -106,6 +107,8 @@ } &-suffix { + display: flex; + flex: none; align-self: center; margin-left: (@padding-xs / 2); color: @disabled-color; @@ -114,6 +117,10 @@ > * { vertical-align: top; + + &:not(:last-child) { + margin-right: 8px; + } } } @@ -213,6 +220,10 @@ &-dropdown { .reset-component(); position: absolute; + // Fix incorrect position of picker popup + // https://github.com/ant-design/ant-design/issues/35590 + top: -9999px; + left: -9999px; z-index: @zindex-picker; &-hidden { @@ -221,17 +232,17 @@ &-placement-bottomLeft { .@{picker-prefix-cls}-range-arrow { - top: (@arrow-size / 2) - (@arrow-size / 3); + top: (@arrow-size / 2) - (@arrow-size / 3) + 0.7px; display: block; - transform: rotate(-45deg); + transform: rotate(-135deg) translateY(1px); } } &-placement-topLeft { .@{picker-prefix-cls}-range-arrow { - bottom: (@arrow-size / 2) - (@arrow-size / 3); + bottom: (@arrow-size / 2) - (@arrow-size / 3) + 0.7px; display: block; - transform: rotate(135deg); + transform: rotate(45deg); } } @@ -311,19 +322,14 @@ width: @arrow-size; height: @arrow-size; margin-left: @input-padding-horizontal-base * 1.5; - box-shadow: 2px -2px 6px fade(@black, 6%); + background: linear-gradient( + 135deg, + transparent 40%, + @calendar-bg 40% + ); // Use linear-gradient to prevent arrow from covering text + box-shadow: 2px 2px 6px -2px fade(@black, 10%); // use spread radius to hide shadow over popover transition: left @animation-duration-slow ease-out; - - &::after { - position: absolute; - top: @border-width-base; - right: @border-width-base; - width: @arrow-size; - height: @arrow-size; - border: (@arrow-size / 2) solid @border-color-split; - border-color: @calendar-bg @calendar-bg transparent transparent; - content: ''; - } + .roundedArrow(@arrow-size, 5px, @calendar-bg); } &-panel-container { diff --git a/components/date-picker/style/panel.less b/components/date-picker/style/panel.less index 982310d3..5a5d41b3 100644 --- a/components/date-picker/style/panel.less +++ b/components/date-picker/style/panel.less @@ -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: ''; } @@ -280,6 +280,7 @@ &-in-view&-range-start:not(&-range-start-single):not(&-range-end) .@{cellClassName} { border-radius: @border-radius-base 0 0 @border-radius-base; } + // range end border-radius &-in-view&-range-end:not(&-range-end-single):not(&-range-start) .@{cellClassName} { border-radius: 0 @border-radius-base @border-radius-base 0; @@ -298,12 +299,14 @@ content: ''; } } + .@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-start .@{cellClassName}::after { right: -5px - @border-width-base; left: 0; } + .@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after { right: 0; left: -5px - @border-width-base; @@ -313,6 +316,7 @@ &-range-hover&-range-start::after { right: 50%; } + &-range-hover&-range-end::after { left: 50%; } @@ -610,7 +614,7 @@ } &-active { - background: fade(@calendar-item-active-bg, 20%); + background: @calendar-column-active-bg; } &:hover { @@ -661,7 +665,7 @@ // Fix IE11 render bug by css hacks // https://github.com/ant-design/ant-design/issues/21559 // https://codepen.io/afc163-1472555193/pen/mdJRaNj?editors=0110 -/* stylelint-disable-next-line */ +/* stylelint-disable selector-type-no-unknown,selector-no-vendor-prefix */ _:-ms-fullscreen, :root { .@{picker-prefix-cls}-range-wrapper { diff --git a/components/date-picker/style/patch.less b/components/date-picker/style/patch.less new file mode 100644 index 00000000..4a2dfe27 --- /dev/null +++ b/components/date-picker/style/patch.less @@ -0,0 +1,10 @@ +// inline mode +.@{picker-prefix-cls}-inline { + border: none; + padding: 0; + .@{picker-prefix-cls} { + &-range-arrow { + display: none !important; + } + } +} \ No newline at end of file diff --git a/components/date-picker/style/rtl.less b/components/date-picker/style/rtl.less index 8112c71d..3a74800e 100644 --- a/components/date-picker/style/rtl.less +++ b/components/date-picker/style/rtl.less @@ -192,10 +192,7 @@ left: 0; border-right: @border-width-base dashed @picker-date-hover-range-border-color; border-left: none; - border-top-left-radius: 0; - border-top-right-radius: @border-radius-base; - border-bottom-right-radius: @border-radius-base; - border-bottom-left-radius: 0; + border-radius: 0 @border-radius-base @border-radius-base 0; } } @@ -209,10 +206,7 @@ left: 6px; border-right: none; border-left: @border-width-base dashed @picker-date-hover-range-border-color; - border-top-left-radius: @border-radius-base; - border-top-right-radius: 0; - border-bottom-right-radius: 0; - border-bottom-left-radius: @border-radius-base; + border-radius: @border-radius-base 0 0 @border-radius-base; } } diff --git a/components/date-picker/style/status.less b/components/date-picker/style/status.less new file mode 100644 index 00000000..4087bf5c --- /dev/null +++ b/components/date-picker/style/status.less @@ -0,0 +1,34 @@ +@import '../../input/style/mixin'; + +@picker-prefix-cls: ~'@{ant-prefix}-picker'; + +.picker-status-color( + @text-color: @input-color; + @border-color: @input-border-color; + @background-color: @input-bg; + @hoverBorderColor: @primary-color-hover; + @outlineColor: @primary-color-outline; +) { + &.@{picker-prefix-cls} { + &, + &:not([disabled]):hover { + background-color: @background-color; + border-color: @border-color; + } + + &-focused, + &:focus { + .active(@text-color, @hoverBorderColor, @outlineColor); + } + } +} + +.@{picker-prefix-cls} { + &-status-error { + .picker-status-color(@error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline); + } + + &-status-warning { + .picker-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + } +} diff --git a/components/descriptions/style/entry.less b/components/descriptions/style/entry.less index 06547c43..8d77e466 100644 --- a/components/descriptions/style/entry.less +++ b/components/descriptions/style/entry.less @@ -1 +1,2 @@ -@import './index.less'; +@import "./index.less"; +@import "./patch"; \ No newline at end of file diff --git a/components/descriptions/style/index.less b/components/descriptions/style/index.less index e6ac396a..2a5a631c 100644 --- a/components/descriptions/style/index.less +++ b/components/descriptions/style/index.less @@ -29,8 +29,8 @@ &-view { width: 100%; - overflow: hidden; border-radius: @border-radius-base; + table { width: 100%; table-layout: fixed; @@ -42,6 +42,7 @@ > td { padding-bottom: @descriptions-item-padding-bottom; } + &:last-child { border-bottom: none; } @@ -126,6 +127,7 @@ &-bordered { .@{descriptions-prefix-cls}-view { border: 1px solid @border-color-split; + > table { table-layout: auto; border-collapse: collapse; @@ -144,6 +146,7 @@ .@{descriptions-prefix-cls}-item-label { background-color: @descriptions-bg; + &::after { display: none; } @@ -151,6 +154,7 @@ .@{descriptions-prefix-cls}-row { border-bottom: 1px solid @border-color-split; + &:last-child { border-bottom: none; } diff --git a/components/descriptions/style/patch.less b/components/descriptions/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/descriptions/style/rtl.less b/components/descriptions/style/rtl.less index 7aca94f1..73d22dc3 100644 --- a/components/descriptions/style/rtl.less +++ b/components/descriptions/style/rtl.less @@ -1,4 +1,4 @@ -@import '../../style/themes/default'; +@import '../../style/themes/index'; @import '../../style/mixins/index'; @descriptions-prefix-cls: ~'@{ant-prefix}-descriptions'; diff --git a/components/divider/style/index.less b/components/divider/style/index.less index 82377f7c..ff7e932e 100644 --- a/components/divider/style/index.less +++ b/components/divider/style/index.less @@ -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; @@ -57,6 +57,7 @@ top: 50%; width: @divider-orientation-margin; } + &::after { top: 50%; width: 100% - @divider-orientation-margin; @@ -68,6 +69,7 @@ top: 50%; width: 100% - @divider-orientation-margin; } + &::after { top: 50%; width: @divider-orientation-margin; @@ -87,7 +89,6 @@ } &-horizontal&-with-text&-dashed { - border-top: 0; &::before, &::after { border-style: dashed none none; @@ -103,6 +104,34 @@ font-weight: normal; font-size: @font-size-base; } + + &-horizontal&-with-text-left&-no-default-orientation-margin-left { + &::before { + width: 0; + } + + &::after { + width: 100%; + } + + .ant-divider-inner-text { + padding-left: 0; + } + } + + &-horizontal&-with-text-right&-no-default-orientation-margin-right { + &::before { + width: 100%; + } + + &::after { + width: 0; + } + + .ant-divider-inner-text { + padding-right: 0; + } + } } @import './rtl'; diff --git a/components/divider/style/rtl.less b/components/divider/style/rtl.less index 3b3bcf9f..7cdc84f0 100644 --- a/components/divider/style/rtl.less +++ b/components/divider/style/rtl.less @@ -14,6 +14,7 @@ width: 100% - @divider-orientation-margin; } } + &::after { .@{divider-prefix-cls}-rtl& { width: @divider-orientation-margin; @@ -27,6 +28,7 @@ width: @divider-orientation-margin; } } + &::after { .@{divider-prefix-cls}-rtl& { width: 100% - @divider-orientation-margin; diff --git a/components/drawer/style/drawer.less b/components/drawer/style/drawer.less index 45f824bb..20985efd 100644 --- a/components/drawer/style/drawer.less +++ b/components/drawer/style/drawer.less @@ -2,6 +2,7 @@ @drawer-prefix-cls: ~'@{ant-prefix}-drawer'; @picker-prefix-cls: ~'@{ant-prefix}-picker'; +@drawer-animation-ease: @ease-out-quint; .@{drawer-prefix-cls} { @drawer-header-close-padding: ceil(((@drawer-header-close-size - @font-size-lg) / 2)); @@ -10,17 +11,14 @@ z-index: @zindex-modal; width: 0%; height: 100%; - transition: transform @animation-duration-slow @ease-base-out, - height 0s ease @animation-duration-slow, width 0s ease @animation-duration-slow; - > * { - transition: transform @animation-duration-slow @ease-base-out, - box-shadow @animation-duration-slow @ease-base-out; - } + transition: width 0s ease @animation-duration-slow, height 0s ease @animation-duration-slow; &-content-wrapper { position: absolute; width: 100%; height: 100%; + transition: transform @animation-duration-slow @drawer-animation-ease, + box-shadow @animation-duration-slow @drawer-animation-ease; } .@{drawer-prefix-cls}-content { @@ -38,7 +36,7 @@ } &.@{drawer-prefix-cls}-open { width: 100%; - transition: transform @animation-duration-slow @ease-base-out; + transition: transform @animation-duration-slow @drawer-animation-ease; } } @@ -89,7 +87,7 @@ } &.@{drawer-prefix-cls}-open { height: 100%; - transition: transform @animation-duration-slow @ease-base-out; + transition: transform @animation-duration-slow @drawer-animation-ease; } } @@ -115,6 +113,7 @@ .@{drawer-prefix-cls}-content-wrapper { box-shadow: @shadow-1-up; } + &.no-mask { bottom: 1px; transform: translateY(1px); @@ -126,16 +125,17 @@ height: 100%; opacity: 1; transition: none; - animation: antdDrawerFadeIn @animation-duration-slow @ease-base-out; + animation: antdDrawerFadeIn @animation-duration-slow @drawer-animation-ease; pointer-events: auto; } &-title { + flex: 1; 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 { @@ -148,12 +148,8 @@ } &-close { - position: absolute; - top: 0; - right: 0; - z-index: @zindex-popup-close; - display: block; - padding: @drawer-header-close-padding; + display: inline-block; + margin-right: 12px; color: @modal-close-color; font-weight: 700; font-size: @font-size-lg; @@ -174,32 +170,35 @@ color: @icon-color-hover; text-decoration: none; } - - .@{drawer-prefix-cls}-header-no-title & { - margin-right: var(--scroll-bar); - /* stylelint-disable-next-line function-calc-no-invalid */ - padding-right: ~'calc(@{drawer-header-close-padding} - var(--scroll-bar))'; - } } &-header { position: relative; + display: flex; + align-items: center; + justify-content: space-between; padding: @drawer-header-padding; color: @text-color; background: @drawer-bg; border-bottom: @border-width-base @border-style-base @border-color-split; border-radius: @border-radius-base @border-radius-base 0 0; - } - &-header-no-title { - color: @text-color; - background: @drawer-bg; + &-title { + display: flex; + flex: 1; + align-items: center; + justify-content: space-between; + } + + &-close-only { + padding-bottom: 0; + border: none; + } } &-wrapper-body { display: flex; - flex-direction: column; - flex-wrap: nowrap; + flex-flow: column nowrap; width: 100%; height: 100%; } @@ -227,17 +226,10 @@ height: 0; background-color: @modal-mask-bg; opacity: 0; - filter: ~'alpha(opacity=45)'; transition: opacity @animation-duration-slow linear, height 0s ease @animation-duration-slow; pointer-events: none; } - &-open { - &-content { - box-shadow: @shadow-2; - } - } - // =================== Hook Components =================== .@{picker-prefix-cls} { &-clear { @@ -250,6 +242,7 @@ 0% { opacity: 0; } + 100% { opacity: 1; } diff --git a/components/drawer/style/index.less b/components/drawer/style/index.less index 79cde6c2..77efacf4 100644 --- a/components/drawer/style/index.less +++ b/components/drawer/style/index.less @@ -1,5 +1,6 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; @import './drawer'; -@import './customize'; @import './rtl'; + +.popover-customize-bg(@drawer-prefix-cls, @popover-background); diff --git a/components/drawer/style/rtl.less b/components/drawer/style/rtl.less index 5963c8a7..f710bfa7 100644 --- a/components/drawer/style/rtl.less +++ b/components/drawer/style/rtl.less @@ -9,8 +9,8 @@ &-close { .@{drawer-prefix-cls}-rtl & { - right: auto; - left: 0; + margin-right: 0; + margin-left: 12px; } } } diff --git a/components/dropdown/style/entry.less b/components/dropdown/style/entry.less index 85545241..aa5ba7cd 100644 --- a/components/dropdown/style/entry.less +++ b/components/dropdown/style/entry.less @@ -1,2 +1,4 @@ @import './index.less'; -@import './patch.less'; \ No newline at end of file +@import './patch.less'; +// style dependencies +@import '../../button/style/entry.less'; diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index 7a241d83..c800c13a 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -49,14 +49,14 @@ } // Offset the popover to account for the dropdown arrow - &-show-arrow&-placement-topCenter, &-show-arrow&-placement-topLeft, + &-show-arrow&-placement-top, &-show-arrow&-placement-topRight { padding-bottom: @popover-distance; } - &-show-arrow&-placement-bottomCenter, &-show-arrow&-placement-bottomLeft, + &-show-arrow&-placement-bottom, &-show-arrow&-placement-bottomRight { padding-top: @popover-distance; } @@ -68,52 +68,54 @@ position: absolute; z-index: 1; // lift it up so the menu wouldn't cask shadow on it display: block; - width: sqrt(@popover-arrow-width * @popover-arrow-width * 2); - height: sqrt(@popover-arrow-width * @popover-arrow-width * 2); - background: transparent; - border-style: solid; - border-width: (sqrt(@popover-arrow-width * @popover-arrow-width * 2) / 2); + width: @popover-arrow-width; + height: @popover-arrow-width; + background: linear-gradient( + 135deg, + transparent 40%, + @popover-bg 40% + ); // Use linear-gradient to prevent arrow from covering text + .roundedArrow(@popover-arrow-width, 5px, @popover-bg); + } + + &-placement-top > &-arrow, + &-placement-topLeft > &-arrow, + &-placement-topRight > &-arrow { + bottom: @popover-arrow-width * sqrt((1 / 2)) + 2px; + box-shadow: 3px 3px 7px -3px fade(@black, 10%); transform: rotate(45deg); } - &-placement-topCenter > &-arrow, - &-placement-topLeft > &-arrow, - &-placement-topRight > &-arrow { - bottom: @popover-distance - @popover-arrow-width + 2.2px; - border-top-color: transparent; - border-right-color: @popover-bg; - border-bottom-color: @popover-bg; - border-left-color: transparent; - box-shadow: 3px 3px 7px fade(@black, 7%); - } - &-placement-topCenter > &-arrow { + &-placement-top > &-arrow { left: 50%; transform: translateX(-50%) rotate(45deg); } + &-placement-topLeft > &-arrow { left: 16px; } + &-placement-topRight > &-arrow { right: 16px; } - &-placement-bottomCenter > &-arrow, + &-placement-bottom > &-arrow, &-placement-bottomLeft > &-arrow, &-placement-bottomRight > &-arrow { - top: @popover-distance - @popover-arrow-width + 2px; - border-top-color: @popover-bg; - border-right-color: transparent; - border-bottom-color: transparent; - border-left-color: @popover-bg; - box-shadow: -2px -2px 5px fade(@black, 6%); + top: (@popover-arrow-width + 2px) * sqrt((1 / 2)); + box-shadow: 2px 2px 5px -2px fade(@black, 10%); + transform: rotate(-135deg) translateY(-0.5px); } - &-placement-bottomCenter > &-arrow { + + &-placement-bottom > &-arrow { left: 50%; - transform: translateX(-50%) rotate(45deg); + transform: translateX(-50%) rotate(-135deg) translateY(-0.5px); } + &-placement-bottomLeft > &-arrow { left: 16px; } + &-placement-bottomRight > &-arrow { right: 16px; } @@ -199,7 +201,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,10 +218,11 @@ &-selected { color: @dropdown-selected-color; - background-color: @item-active-bg; + background-color: @dropdown-selected-bg; } - &:hover { + &:hover, + &&-active { background-color: @item-hover-bg; } @@ -300,8 +302,8 @@ &.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomLeft, &.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomLeft, - &.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomCenter, - &.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomCenter, + &.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottom, + &.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottom, &.@{ant-prefix}-slide-down-enter.@{ant-prefix}-slide-down-enter-active&-placement-bottomRight, &.@{ant-prefix}-slide-down-appear.@{ant-prefix}-slide-down-appear-active&-placement-bottomRight { animation-name: antSlideUpIn; @@ -309,21 +311,21 @@ &.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topLeft, &.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topLeft, - &.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topCenter, - &.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topCenter, + &.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-top, + &.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-top, &.@{ant-prefix}-slide-up-enter.@{ant-prefix}-slide-up-enter-active&-placement-topRight, &.@{ant-prefix}-slide-up-appear.@{ant-prefix}-slide-up-appear-active&-placement-topRight { animation-name: antSlideDownIn; } &.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomLeft, - &.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomCenter, + &.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottom, &.@{ant-prefix}-slide-down-leave.@{ant-prefix}-slide-down-leave-active&-placement-bottomRight { animation-name: antSlideUpOut; } &.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topLeft, - &.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topCenter, + &.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-top, &.@{ant-prefix}-slide-up-leave.@{ant-prefix}-slide-up-leave-active&-placement-topRight { animation-name: antSlideDownOut; } @@ -341,10 +343,21 @@ .@{dropdown-prefix-cls}-button { white-space: nowrap; - &.@{ant-prefix}-btn-group - > .@{ant-prefix}-btn:last-child:not(:first-child):not(.@{ant-prefix}-btn-icon-only) { - padding-right: @padding-xs; - padding-left: @padding-xs; + &.@{ant-prefix}-btn-group > .@{ant-prefix}-btn { + &-loading, + &-loading + .@{ant-prefix}-btn { + cursor: default; + pointer-events: none; + } + + &-loading + .@{ant-prefix}-btn::before { + display: block; + } + + &:last-child:not(:first-child):not(.@{ant-prefix}-btn-icon-only) { + padding-right: @padding-xs; + padding-left: @padding-xs; + } } } @@ -362,6 +375,7 @@ .@{dropdown-prefix-cls}-menu-submenu-arrow::after { color: @text-color-secondary-dark; } + &:hover { color: @text-color-inverse; background: transparent; diff --git a/components/dropdown/style/patch.less b/components/dropdown/style/patch.less index 96c7a0a0..4474a778 100644 --- a/components/dropdown/style/patch.less +++ b/components/dropdown/style/patch.less @@ -1,5 +1,13 @@ -.disabled { - color: rgba(0,0,0,.25); - cursor: not-allowed; - pointer-events: none; +.@{dropdown-prefix-cls} { + &-menu { + &-item, + &-submenu-title { + .@{dropdown-prefix-cls}-menu-submenu-arrow { + .@{dropdown-prefix-cls}-rtl & { + transform: rotate(180deg); + } + } + } + } } + \ No newline at end of file diff --git a/components/dropdown/style/rtl.less b/components/dropdown/style/rtl.less index 22ef31a0..8d77d830 100644 --- a/components/dropdown/style/rtl.less +++ b/components/dropdown/style/rtl.less @@ -22,7 +22,8 @@ } &-item-group-title { - .@{dropdown-prefix-cls}-rtl & { + .@{dropdown-prefix-cls}-rtl &, + .@{dropdown-prefix-cls}-menu-submenu-rtl & { direction: rtl; text-align: right; } @@ -55,13 +56,13 @@ } } - .@{dropdown-prefix-cls}-menu-submenu-arrow { + .@{dropdown-prefix-cls}-menu-submenu-expand-icon { .@{dropdown-prefix-cls}-rtl & { right: auto; left: @padding-xs; } - &-icon { + .@{dropdown-prefix-cls}-menu-submenu-arrow-icon { .@{dropdown-prefix-cls}-rtl & { margin-left: 0 !important; transform: scaleX(-1); diff --git a/components/dropdown/style/status.less b/components/dropdown/style/status.less index 327cf488..e370a872 100644 --- a/components/dropdown/style/status.less +++ b/components/dropdown/style/status.less @@ -1,4 +1,6 @@ -@import './index'; +@import (reference) '../../style/themes/index'; + +@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown'; .@{dropdown-prefix-cls}-menu-item { &&-danger { diff --git a/components/empty/style/entry.less b/components/empty/style/entry.less index 06547c43..911f7808 100644 --- a/components/empty/style/entry.less +++ b/components/empty/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import "./patch"; diff --git a/components/empty/style/index.less b/components/empty/style/index.less index 7259b9aa..c696372c 100644 --- a/components/empty/style/index.less +++ b/components/empty/style/index.less @@ -55,23 +55,29 @@ fill: @white; fill-opacity: 0.08; } + &-path { &-1 { fill: #262626; } + &-2 { - fill: url(#linearGradient-1); + fill: url('#linearGradient-1'); } + &-3 { fill: #595959; } + &-4 { fill: #434343; } + &-5 { fill: #595959; } } + &-g { fill: #434343; } @@ -81,23 +87,29 @@ fill: #f5f5f5; fill-opacity: 0.8; } + &-path { &-1 { fill: #aeb8c2; } + &-2 { - fill: url(#linearGradient-1); + fill: url('#linearGradient-1'); } + &-3 { fill: #f5f5f7; } + &-4 { fill: #dce0e6; } + &-5 { fill: #dce0e6; } } + &-g { fill: @white; } @@ -111,9 +123,11 @@ fill: @white; fill-opacity: 0.08; } + &-g { stroke: #434343; } + &-path { fill: #262626; stroke: #434343; @@ -123,9 +137,11 @@ &-ellipse { fill: #f5f5f5; } + &-g { stroke: #d9d9d9; } + &-path { fill: #fafafa; } diff --git a/components/empty/style/patch.less b/components/empty/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/form/style/components.less b/components/form/style/components.less index 0379fbdc..10bf6cb9 100644 --- a/components/form/style/components.less +++ b/components/form/style/components.less @@ -1,71 +1,16 @@ -@import './index'; +@import (reference) '../../style/themes/index'; + +@form-prefix-cls: ~'@{ant-prefix}-form'; +@form-item-prefix-cls: ~'@{form-prefix-cls}-item'; // ================================================================ // = Children Component = // ================================================================ +// FIXME: useless, remove in v5 .@{form-item-prefix-cls} { - .@{ant-prefix}-mentions, - textarea.@{ant-prefix}-input { - height: auto; - } - - // input[type=file] - .@{ant-prefix}-upload { - background: transparent; - } - .@{ant-prefix}-upload.@{ant-prefix}-upload-drag { - background: @background-color-light; - } - - input[type='radio'], - input[type='checkbox'] { - width: 14px; - height: 14px; - } - - // Radios and checkboxes on same line - .@{ant-prefix}-radio-inline, - .@{ant-prefix}-checkbox-inline { - display: inline-block; - margin-left: 8px; - font-weight: normal; - vertical-align: middle; - cursor: pointer; - - &:first-child { - margin-left: 0; - } - } - - .@{ant-prefix}-checkbox-vertical, - .@{ant-prefix}-radio-vertical { - display: block; - } - - .@{ant-prefix}-checkbox-vertical + .@{ant-prefix}-checkbox-vertical, - .@{ant-prefix}-radio-vertical + .@{ant-prefix}-radio-vertical { - margin-left: 0; - } - .@{ant-prefix}-input-number { + .@{form-prefix-cls}-text { margin-left: 8px; } - &-handler-wrap { - z-index: 2; // https://github.com/ant-design/ant-design/issues/6289 - } - } - - .@{ant-prefix}-select, - .@{ant-prefix}-cascader-picker { - width: 100%; - } - - // Don't impact select inside input group and calendar header select - .@{ant-prefix}-picker-calendar-year-select, - .@{ant-prefix}-picker-calendar-month-select, - .@{ant-prefix}-input-group .@{ant-prefix}-select, - .@{ant-prefix}-input-group .@{ant-prefix}-cascader-picker { - width: auto; } } diff --git a/components/form/style/entry.less b/components/form/style/entry.less index 06547c43..f9df3b4b 100644 --- a/components/form/style/entry.less +++ b/components/form/style/entry.less @@ -1 +1,4 @@ @import './index.less'; +// style dependencies +@import '../../grid/style/entry.less'; +@import './patch'; diff --git a/components/form/style/horizontal.less b/components/form/style/horizontal.less index 83b664d4..73e6c623 100644 --- a/components/form/style/horizontal.less +++ b/components/form/style/horizontal.less @@ -1,4 +1,7 @@ -@import './index'; +@import (reference) '../../style/themes/index'; + +@form-prefix-cls: ~'@{ant-prefix}-form'; +@form-item-prefix-cls: ~'@{form-prefix-cls}-item'; .@{form-prefix-cls}-horizontal { .@{form-item-prefix-cls}-label { @@ -6,5 +9,14 @@ } .@{form-item-prefix-cls}-control { flex: 1 1 0; + // 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 + // https://github.com/ant-design/ant-design/issues/34903 + .@{form-item-prefix-cls}-label[class$='-24'] + .@{form-item-prefix-cls}-control, + .@{form-item-prefix-cls}-label[class*='-24 '] + .@{form-item-prefix-cls}-control { + min-width: unset; } } diff --git a/components/form/style/index.less b/components/form/style/index.less index 3e3984e4..105b9aaf 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -39,6 +39,7 @@ &-small { .formSize(@input-height-sm); } + &-large { .formSize(@input-height-lg); } @@ -61,9 +62,12 @@ margin-bottom: @form-item-margin-bottom; vertical-align: top; + // We delay one frame (0.017s) here to let CSSMotion goes + transition: margin-bottom @animation-duration-slow 0.017s linear; &-with-help { margin-bottom: 0; + transition: none; } &-hidden, @@ -87,6 +91,12 @@ text-align: left; } + &-wrap { + overflow: unset; + line-height: (@line-height-base - 0.25em); + white-space: unset; + } + > label { position: relative; display: inline-flex; @@ -179,10 +189,12 @@ } } + // ============================================================== + // = Explain = + // ============================================================== &-explain, &-extra { clear: both; - min-height: @form-item-margin-bottom; color: @text-color-secondary; font-size: @font-size-base; line-height: @line-height-base; @@ -190,43 +202,85 @@ .explainAndExtraDistance((@form-item-margin-bottom - @form-font-height) / 2); } - .@{ant-prefix}-input-textarea-show-count { - &::after { - margin-bottom: -22px; + &-explain-connected { + height: 0; + min-height: 0; + opacity: 0; + } + + &-extra { + min-height: @form-item-margin-bottom; + } + + &-with-help &-explain { + height: auto; + min-height: @form-item-margin-bottom; + opacity: 1; + } + + // ============================================================== + // = Feedback Icon = + // ============================================================== + &-feedback-icon { + font-size: @font-size-base; + text-align: center; + visibility: visible; + animation: zoomIn 0.3s @ease-out-back; + pointer-events: none; + + &-success { + color: @success-color; + } + + &-error { + color: @error-color; + } + + &-warning { + color: @warning-color; + } + + &-validating { + color: @primary-color; } } } -.show-help-motion(@className, @keyframeName, @duration: @animation-duration-slow) { - @name: ~'@{ant-prefix}-@{className}'; - .make-motion(@name, @keyframeName, @duration); - .@{name}-enter, - .@{name}-appear { - opacity: 0; - animation-timing-function: @ease-in-out; - } - .@{name}-leave { - animation-timing-function: @ease-in-out; +// >>>>>>>>>> Motion <<<<<<<<<< +// Explain holder +.@{ant-prefix}-show-help { + transition: height @animation-duration-slow linear, min-height @animation-duration-slow linear, + margin-bottom @animation-duration-slow @ease-in-out, + opacity @animation-duration-slow @ease-in-out; + + &-leave { + min-height: @form-item-margin-bottom; + + &-active { + min-height: 0; + } } } -.show-help-motion(show-help, antShowHelp, 0.3s); +// Explain +.@{ant-prefix}-show-help-item { + overflow: hidden; + transition: height @animation-duration-slow @ease-in-out, + opacity @animation-duration-slow @ease-in-out, transform @animation-duration-slow @ease-in-out !important; -@keyframes antShowHelpIn { - 0% { + &-appear, + &-enter { transform: translateY(-5px); opacity: 0; - } - 100% { - transform: translateY(0); - opacity: 1; - } -} -@keyframes antShowHelpOut { - to { + &-active { + transform: translateY(0); + opacity: 1; + } + } + + &-leave-active { transform: translateY(-5px); - opacity: 0; } } @@ -237,6 +291,7 @@ transform: scale(0); opacity: 0; } + 100% { transform: scale(1); opacity: 1; @@ -248,6 +303,7 @@ transform: scale(0); opacity: 0; } + 100% { transform: scale(1); opacity: 1; @@ -259,6 +315,7 @@ transform: scale(0); opacity: 0; } + 100% { transform: scale(1); opacity: 1; diff --git a/components/form/style/inline.less b/components/form/style/inline.less index 6cd0c4d4..63946752 100644 --- a/components/form/style/inline.less +++ b/components/form/style/inline.less @@ -1,4 +1,7 @@ -@import './index'; +@import (reference) '../../style/themes/index'; + +@form-prefix-cls: ~'@{ant-prefix}-form'; +@form-item-prefix-cls: ~'@{form-prefix-cls}-item'; .@{form-prefix-cls}-inline { display: flex; diff --git a/components/form/style/mixin.less b/components/form/style/mixin.less index c0071bac..c7ca1468 100644 --- a/components/form/style/mixin.less +++ b/components/form/style/mixin.less @@ -1,40 +1,15 @@ @import '../../input/style/mixin'; -.form-control-validation(@text-color: @input-color; @border-color: @input-border-color; @background-color: @input-bg) { +.form-control-validation( + @text-color: @input-color; + @border-color: @input-border-color; + @background-color: @input-bg; + @hoverBorderColor: @primary-color-hover; + @outlineColor: @primary-color-outline; +) { .@{ant-prefix}-form-item-split { color: @text-color; } - // 输入框的不同校验状态 - :not(.@{ant-prefix}-input-disabled):not(.@{ant-prefix}-input-borderless).@{ant-prefix}-input, - :not(.@{ant-prefix}-input-affix-wrapper-disabled):not(.@{ant-prefix}-input-affix-wrapper-borderless).@{ant-prefix}-input-affix-wrapper { - &, - &:hover { - background-color: @background-color; - border-color: @border-color; - } - - &:focus, - &-focused { - .active(@border-color); - } - } - - .@{ant-prefix}-calendar-picker-open .@{ant-prefix}-calendar-picker-input { - .active(@border-color); - } - - .@{ant-prefix}-input-prefix { - color: @text-color; - } - - .@{ant-prefix}-input-group-addon { - color: @text-color; - border-color: @border-color; - } - - .has-feedback { - color: @text-color; - } } // Reset form styles diff --git a/components/form/style/patch.less b/components/form/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/form/style/rtl.less b/components/form/style/rtl.less index 5874b6fb..505ee0c5 100644 --- a/components/form/style/rtl.less +++ b/components/form/style/rtl.less @@ -32,6 +32,7 @@ margin-left: 4px; } } + &::after { .@{form-prefix-cls}-rtl & { margin: 0 @form-item-label-colon-margin-left 0 @form-item-label-colon-margin-right; @@ -79,6 +80,14 @@ } } + .@{ant-prefix}-input-number-affix-wrapper { + .@{ant-prefix}-input-number { + .@{form-prefix-cls}-rtl & { + padding: 0; + } + } + } + .@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) { .@{ant-prefix}-input-suffix { .@{form-prefix-cls}-rtl & { @@ -97,7 +106,13 @@ > .@{ant-prefix}-select .@{ant-prefix}-select-arrow, > .@{ant-prefix}-select .@{ant-prefix}-select-clear, :not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-arrow, - :not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-clear { + :not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-clear, + :not(.@{ant-prefix}-input-number-group-addon) + > .@{ant-prefix}-select + .@{ant-prefix}-select-arrow, + :not(.@{ant-prefix}-input-number-group-addon) + > .@{ant-prefix}-select + .@{ant-prefix}-select-clear { .@{form-prefix-cls}-rtl & { right: auto; left: 32px; @@ -106,6 +121,9 @@ > .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value, :not(.@{ant-prefix}-input-group-addon) + > .@{ant-prefix}-select + .@{ant-prefix}-select-selection-selected-value, + :not(.@{ant-prefix}-input-number-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value { .@{form-prefix-cls}-rtl & { @@ -121,6 +139,7 @@ margin-left: 19px; } } + &-clear { .@{form-prefix-cls}-rtl & { right: auto; diff --git a/components/form/style/status.less b/components/form/style/status.less index 75add0b1..1a53d97a 100644 --- a/components/form/style/status.less +++ b/components/form/style/status.less @@ -1,278 +1,42 @@ -@import './index.less'; +@import (reference) '../../style/themes/index'; + +@form-prefix-cls: ~'@{ant-prefix}-form'; +@form-item-prefix-cls: ~'@{form-prefix-cls}-item'; .@{form-item-prefix-cls} { // ================================================================ // = Status = // ================================================================ + /* Some non-status related component style is in `components.less` */ // ========================= Explain ========================= + /* To support leave along ErrorList. We add additional className to handle explain style */ &-explain { - &&-error { + &-error { color: @error-color; } - &&-warning { + &-warning { color: @warning-color; } } &-has-feedback { - // ========================= Input ========================= - .@{ant-prefix}-input { - padding-right: 24px; - } - // https://github.com/ant-design/ant-design/issues/19884 - .@{ant-prefix}-input-affix-wrapper { - .@{ant-prefix}-input-suffix { - padding-right: 18px; - } - } - - // Fix issue: https://github.com/ant-design/ant-design/issues/7854 - .@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) { - .@{ant-prefix}-input-suffix { - right: 28px; - } - } - // ======================== Switch ========================= .@{ant-prefix}-switch { margin: 2px 0 4px; } - - // ======================== Select ========================= - // Fix overlapping between feedback icon and 's arrow. - // https://github.com/ant-design/ant-design/issues/4431 - > .@{ant-prefix}-select .@{ant-prefix}-select-arrow, - > .@{ant-prefix}-select .@{ant-prefix}-select-clear, - :not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-arrow, - :not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-clear { - right: 32px; - } - > .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value, - :not(.@{ant-prefix}-input-group-addon) - > .@{ant-prefix}-select - .@{ant-prefix}-select-selection-selected-value { - padding-right: 42px; - } - - // ======================= Cascader ======================== - .@{ant-prefix}-cascader-picker { - &-arrow { - margin-right: 19px; - } - &-clear { - right: 32px; - } - } - - // ======================== Picker ========================= - // Fix issue: https://github.com/ant-design/ant-design/issues/4783 - .@{ant-prefix}-picker { - padding-right: @input-padding-horizontal-base + @font-size-base * 1.3; - - &-large { - padding-right: @input-padding-horizontal-lg + @font-size-base * 1.3; - } - - &-small { - padding-right: @input-padding-horizontal-sm + @font-size-base * 1.3; - } - } - - // ===================== Status Group ====================== - &.@{form-item-prefix-cls} { - &-has-success, - &-has-warning, - &-has-error, - &-is-validating { - // ====================== Icon ====================== - .@{form-item-prefix-cls}-children-icon { - position: absolute; - top: 50%; - right: 0; - z-index: 1; - width: @input-height-base; - height: 20px; - margin-top: -10px; - font-size: @font-size-base; - line-height: 20px; - text-align: center; - visibility: visible; - animation: zoomIn 0.3s @ease-out-back; - pointer-events: none; - } - } - } - } - - // ======================== Success ======================== - &-has-success { - &.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon { - color: @success-color; - animation-name: diffZoomIn1 !important; - } } // ======================== Warning ======================== &-has-warning { - .form-control-validation(@warning-color; @warning-color; @form-warning-input-bg); - - &.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon { - color: @warning-color; - animation-name: diffZoomIn3 !important; - } - - // Select - .@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled):not(.@{ant-prefix}-select-customize-input) { - .@{ant-prefix}-select-selector { - background-color: @form-warning-input-bg; - border-color: @warning-color !important; - } - &.@{ant-prefix}-select-open .@{ant-prefix}-select-selector, - &.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector { - .active(@warning-color); - } - } - - // InputNumber, TimePicker - .@{ant-prefix}-input-number, - .@{ant-prefix}-picker { - background-color: @form-warning-input-bg; - border-color: @warning-color; - &-focused, - &:focus { - .active(@warning-color); - } - &:not([disabled]):hover { - background-color: @form-warning-input-bg; - border-color: @warning-color; - } - } - - .@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input { - .active(@warning-color); - } + .form-control-validation(@warning-color; @warning-color; @form-warning-input-bg; @warning-color-hover; @warning-color-outline); } // ========================= Error ========================= &-has-error { - .form-control-validation(@error-color; @error-color; @form-error-input-bg); - - &.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon { - color: @error-color; - animation-name: diffZoomIn2 !important; - } - - // Select - .@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled):not(.@{ant-prefix}-select-customize-input) { - .@{ant-prefix}-select-selector { - background-color: @form-error-input-bg; - border-color: @error-color !important; - } - &.@{ant-prefix}-select-open .@{ant-prefix}-select-selector, - &.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector { - .active(@error-color); - } - } - - // fixes https://github.com/ant-design/ant-design/issues/20482 - .@{ant-prefix}-input-group-addon .@{ant-prefix}-select { - &.@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) - .@{ant-prefix}-select-selector { - background-color: inherit; - border: 0; - box-shadow: none; - } - } - - .@{ant-prefix}-select.@{ant-prefix}-select-auto-complete { - .@{ant-prefix}-input:focus { - border-color: @error-color; - } - } - - // InputNumber, TimePicker - .@{ant-prefix}-input-number, - .@{ant-prefix}-picker { - background-color: @form-error-input-bg; - border-color: @error-color; - &-focused, - &:focus { - .active(@error-color); - } - &:not([disabled]):hover { - background-color: @form-error-input-bg; - border-color: @error-color; - } - } - - .@{ant-prefix}-mention-wrapper { - .@{ant-prefix}-mention-editor { - &, - &:not([disabled]):hover { - background-color: @form-error-input-bg; - border-color: @error-color; - } - } - &.@{ant-prefix}-mention-active:not([disabled]) .@{ant-prefix}-mention-editor, - .@{ant-prefix}-mention-editor:not([disabled]):focus { - .active(@error-color); - } - } - - // cascader - .@{ant-prefix}-cascader-picker { - &:hover - .@{ant-prefix}-cascader-picker-label:hover - + .@{ant-prefix}-cascader-input.@{ant-prefix}-input { - border-color: @error-color; - } - - &:focus .@{ant-prefix}-cascader-input { - background-color: @form-error-input-bg; - .active(@error-color); - } - } - - // transfer - .@{ant-prefix}-transfer { - &-list { - border-color: @error-color; - - &-search:not([disabled]) { - border-color: @input-border-color; - - &:hover { - .hover(); - } - - &:focus { - .active(); - } - } - } - } - - // RadioGroup - .@{ant-prefix}-radio-button-wrapper { - border-color: @error-color !important; - - &:not(:first-child) { - &::before { - background-color: @error-color; - } - } - } - } - - // ====================== Validating ======================= - &-is-validating { - &.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon { - display: inline-block; - color: @primary-color; - } + .form-control-validation(@error-color; @error-color; @form-error-input-bg; @error-color-hover; @error-color-outline); } } diff --git a/components/form/style/vertical.less b/components/form/style/vertical.less index 8e224955..7626b536 100644 --- a/components/form/style/vertical.less +++ b/components/form/style/vertical.less @@ -1,4 +1,7 @@ -@import './index'; +@import (reference) '../../style/themes/index'; + +@form-prefix-cls: ~'@{ant-prefix}-form'; +@form-item-prefix-cls: ~'@{form-prefix-cls}-item'; // ================== Label ================== .make-vertical-layout-label() { @@ -46,7 +49,7 @@ } .@{form-prefix-cls}-vertical .@{form-item-prefix-cls}-label, - // when labelCol is 24, it is a vertical form +/* when labelCol is 24, it is a vertical form */ .@{ant-prefix}-col-24.@{form-item-prefix-cls}-label, .@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label { .make-vertical-layout-label(); diff --git a/components/grid/style/index.less b/components/grid/style/index.less index 67b09184..3dcb5347 100644 --- a/components/grid/style/index.less +++ b/components/grid/style/index.less @@ -3,7 +3,7 @@ @import './mixin'; // Grid system -.@{ant-prefix}-row { +.@{row-prefix-cls} { display: flex; flex-flow: row wrap; @@ -19,46 +19,51 @@ } // 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; } +// x轴有间隔地均分 +.@{row-prefix-cls}-space-evenly { + justify-content: space-evenly; +} + // 顶部对齐 -.@{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 diff --git a/components/grid/style/mixin.less b/components/grid/style/mixin.less index 4d9de470..7182bf4e 100644 --- a/components/grid/style/mixin.less +++ b/components/grid/style/mixin.less @@ -1,49 +1,52 @@ @import '../../style/mixins/index'; +@row-prefix-cls: ~'@{ant-prefix}-row'; +@col-prefix-cls: ~'@{ant-prefix}-col'; + // mixins for grid system // ------------------------ .loop-grid-columns(@index, @class) when (@index > 0) { - .@{ant-prefix}-col@{class}-@{index} { + .@{col-prefix-cls}@{class}-@{index} { display: block; flex: 0 0 percentage((@index / @grid-columns)); max-width: percentage((@index / @grid-columns)); } - .@{ant-prefix}-col@{class}-push-@{index} { + .@{col-prefix-cls}@{class}-push-@{index} { left: percentage((@index / @grid-columns)); } - .@{ant-prefix}-col@{class}-pull-@{index} { + .@{col-prefix-cls}@{class}-pull-@{index} { right: percentage((@index / @grid-columns)); } - .@{ant-prefix}-col@{class}-offset-@{index} { + .@{col-prefix-cls}@{class}-offset-@{index} { margin-left: percentage((@index / @grid-columns)); } - .@{ant-prefix}-col@{class}-order-@{index} { + .@{col-prefix-cls}@{class}-order-@{index} { order: @index; } .loop-grid-columns((@index - 1), @class); } .loop-grid-columns(@index, @class) when (@index = 0) { - .@{ant-prefix}-col@{class}-@{index} { + .@{col-prefix-cls}@{class}-@{index} { display: none; } - .@{ant-prefix}-col-push-@{index} { + .@{col-prefix-cls}-push-@{index} { left: auto; } - .@{ant-prefix}-col-pull-@{index} { + .@{col-prefix-cls}-pull-@{index} { right: auto; } - .@{ant-prefix}-col@{class}-push-@{index} { + .@{col-prefix-cls}@{class}-push-@{index} { left: auto; } - .@{ant-prefix}-col@{class}-pull-@{index} { + .@{col-prefix-cls}@{class}-pull-@{index} { right: auto; } - .@{ant-prefix}-col@{class}-offset-@{index} { + .@{col-prefix-cls}@{class}-offset-@{index} { margin-left: 0; } - .@{ant-prefix}-col@{class}-order-@{index} { + .@{col-prefix-cls}@{class}-order-@{index} { order: 0; } } diff --git a/components/grid/style/rtl.less b/components/grid/style/rtl.less index 5a9e7256..b098812b 100644 --- a/components/grid/style/rtl.less +++ b/components/grid/style/rtl.less @@ -1,7 +1,8 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; +@import './mixin'; -.@{ant-prefix}-row { +.@{row-prefix-cls} { &-rtl { direction: rtl; } @@ -9,25 +10,25 @@ // mixin .loop-grid-columns(@index, @class) when (@index > 0) { - .@{ant-prefix}-col@{class}-push-@{index} { + .@{col-prefix-cls}@{class}-push-@{index} { // reset property in RTL direction - &.@{ant-prefix}-col-rtl { + &.@{col-prefix-cls}-rtl { right: percentage((@index / @grid-columns)); left: auto; } } - .@{ant-prefix}-col@{class}-pull-@{index} { + .@{col-prefix-cls}@{class}-pull-@{index} { // reset property in RTL direction - &.@{ant-prefix}-col-rtl { + &.@{col-prefix-cls}-rtl { right: auto; left: percentage((@index / @grid-columns)); } } - .@{ant-prefix}-col@{class}-offset-@{index} { + .@{col-prefix-cls}@{class}-offset-@{index} { // reset property in RTL direction - &.@{ant-prefix}-col-rtl { + &.@{col-prefix-cls}-rtl { margin-right: percentage((@index / @grid-columns)); margin-left: 0; } @@ -35,33 +36,33 @@ } .loop-grid-columns(@index, @class) when (@index = 0) { - .@{ant-prefix}-col-push-@{index} { + .@{col-prefix-cls}-push-@{index} { // reset property in RTL direction - &.@{ant-prefix}-col-rtl { + &.@{col-prefix-cls}-rtl { right: auto; } } - .@{ant-prefix}-col-pull-@{index} { - &.@{ant-prefix}-col-rtl { + .@{col-prefix-cls}-pull-@{index} { + &.@{col-prefix-cls}-rtl { left: auto; } } - .@{ant-prefix}-col@{class}-push-@{index} { - &.@{ant-prefix}-col-rtl { + .@{col-prefix-cls}@{class}-push-@{index} { + &.@{col-prefix-cls}-rtl { right: auto; } } - .@{ant-prefix}-col@{class}-pull-@{index} { - &.@{ant-prefix}-col-rtl { + .@{col-prefix-cls}@{class}-pull-@{index} { + &.@{col-prefix-cls}-rtl { left: auto; } } - .@{ant-prefix}-col@{class}-offset-@{index} { - &.@{ant-prefix}-col-rtl { + .@{col-prefix-cls}@{class}-offset-@{index} { + &.@{col-prefix-cls}-rtl { margin-right: 0; } } diff --git a/components/image/style/entry.less b/components/image/style/entry.less index 06547c43..85545241 100644 --- a/components/image/style/entry.less +++ b/components/image/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; \ No newline at end of file diff --git a/components/image/style/index.less b/components/image/style/index.less index e26d78e6..4a66e2e6 100644 --- a/components/image/style/index.less +++ b/components/image/style/index.less @@ -7,13 +7,15 @@ .@{image-prefix-cls} { position: relative; display: inline-block; + &-img { - display: block; width: 100%; height: auto; + vertical-align: middle; + &-placeholder { background-color: @image-bg; - background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4='); background-repeat: no-repeat; background-position: center center; background-size: 30%; @@ -36,6 +38,10 @@ transition: opacity @animation-duration-slow; &-info { + padding: 0 @padding-xss; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; .@{iconfont-css-prefix} { margin-inline-end: @margin-xss; } @@ -70,9 +76,11 @@ transition: transform 0.3s @ease-out 0s; user-select: none; pointer-events: auto; + &-wrapper { .box(); transition: transform 0.3s @ease-out 0s; + &::before { display: inline-block; width: 1px; @@ -86,6 +94,7 @@ &-moving { .@{image-prefix-cls}-preview-img { cursor: grabbing; + &-wrapper { transition-duration: 0s; } @@ -115,14 +124,23 @@ margin-left: @control-padding-horizontal; padding: @control-padding-horizontal; cursor: pointer; + &-disabled { color: @image-preview-operation-disabled-color; pointer-events: none; } + &:last-of-type { margin-left: 0; } } + + &-progress { + position: absolute; + left: 50%; + transform: translateX(-50%); + } + &-icon { font-size: @image-preview-operation-size; } @@ -145,6 +163,7 @@ border-radius: 50%; cursor: pointer; pointer-events: auto; + &-disabled { color: @image-preview-operation-disabled-color; cursor: not-allowed; diff --git a/components/image/style/patch.less b/components/image/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/input-number/style/affix.less b/components/input-number/style/affix.less new file mode 100644 index 00000000..357ab94d --- /dev/null +++ b/components/input-number/style/affix.less @@ -0,0 +1,83 @@ +@import '../../input/style/mixin'; +@import (reference) '../../style/themes/index'; +@input-prefix-cls: ~'@{ant-prefix}-input'; + +@input-affix-margin: 4px; + +.@{ant-prefix}-input-number { + &-affix-wrapper { + .input(); + // or number handler will cover form status + position: relative; + display: inline-flex; + width: 90px; + padding: 0; + padding-inline-start: @input-padding-horizontal-base; + + &:not(&-disabled):hover { + .hover(); + z-index: 1; + } + + &-focused, + &:focus { + z-index: 1; + } + + &-disabled { + .@{ant-prefix}-input-number[disabled] { + background: transparent; + } + } + + > div.@{ant-prefix}-input-number { + width: 100%; + border: none; + outline: none; + + &.@{ant-prefix}-input-number-focused { + box-shadow: none !important; + } + } + + input.@{ant-prefix}-input-number-input { + padding: 0; + } + + &::before { + width: 0; + visibility: hidden; + content: '\a0'; + } + + .@{ant-prefix}-input-number-handler-wrap { + z-index: 2; + } + } + + &-prefix, + &-suffix { + display: flex; + flex: none; + align-items: center; + pointer-events: none; + } + + &-prefix { + margin-inline-end: @input-affix-margin; + } + + &-suffix { + position: absolute; + top: 0; + right: 0; + z-index: 1; + height: 100%; + margin-right: @input-padding-horizontal-base; + margin-left: @input-affix-margin; + } +} + +.@{ant-prefix}-input-number-group-wrapper .@{ant-prefix}-input-number-affix-wrapper { + width: 100%; +} diff --git a/components/input-number/style/index.less b/components/input-number/style/index.less index 282116ce..97662c0c 100644 --- a/components/input-number/style/index.less +++ b/components/input-number/style/index.less @@ -1,6 +1,8 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; @import '../../input/style/mixin'; +@import './affix'; +@import './status'; @input-number-prefix-cls: ~'@{ant-prefix}-input-number'; @form-item-prefix-cls: ~'@{ant-prefix}-form-item'; @@ -9,6 +11,18 @@ .reset-component(); .input(); + //== Style for input-group: input with label, with button or dropdown... + &-group { + .reset-component(); + .input-group(~'@{input-number-prefix-cls}'); + + &-wrapper { + display: inline-block; + text-align: start; + vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403 + } + } + display: inline-block; width: 90px; margin: 0; @@ -28,9 +42,11 @@ text-align: center; border-left: @border-width-base @border-style-base @input-number-handler-border-color; transition: all 0.1s linear; + &:active { background: @input-number-handler-active-bg; } + &:hover &-up-inner, &:hover &-down-inner { color: @input-number-handler-hover-bg; @@ -89,13 +105,15 @@ border-radius: @border-radius-base; outline: 0; transition: all 0.3s linear; - -moz-appearance: textfield !important; + appearance: textfield !important; .placeholder(); &[type='number']::-webkit-inner-spin-button, &[type='number']::-webkit-outer-spin-button { margin: 0; + /* stylelint-disable-next-line property-no-vendor-prefix */ -webkit-appearance: none; + appearance: none; } } @@ -134,6 +152,9 @@ .@{input-number-prefix-cls}-handler { .@{input-number-prefix-cls}-handler-up-inner, .@{input-number-prefix-cls}-handler-down-inner { + display: flex; + align-items: center; + justify-content: center; min-width: auto; margin-right: 0; font-size: 7px; @@ -149,18 +170,21 @@ height: 40%; } - &:hover &-handler-wrap { + &:hover &-handler-wrap, + &-focused &-handler-wrap { opacity: 1; } &-handler-up { border-top-right-radius: @border-radius-base; cursor: pointer; + &-inner { top: 50%; margin-top: -5px; text-align: center; } + &:hover { height: 60% !important; } @@ -171,11 +195,13 @@ border-top: @border-width-base @border-style-base @border-color-base; border-bottom-right-radius: @border-radius-base; cursor: pointer; + &-inner { top: 50%; text-align: center; transform: translateY(-50%); } + &:hover { height: 60% !important; } diff --git a/components/input-number/style/rtl.less b/components/input-number/style/rtl.less index 678296bc..3903f92e 100644 --- a/components/input-number/style/rtl.less +++ b/components/input-number/style/rtl.less @@ -9,17 +9,33 @@ direction: rtl; } - &-handler-wrap { + &-handler { .@{input-number-prefix-cls}-rtl & { - right: auto; - left: 0; border-right: @border-width-base @border-style-base @input-number-handler-border-color; border-left: 0; - border-radius: @border-radius-base 0 0 @border-radius-base; } - .@{input-number-prefix-cls}-rtl.@{input-number-prefix-cls}-borderless & { - border-right-width: 0; + &-wrap { + .@{input-number-prefix-cls}-rtl & { + right: auto; + left: 0; + } + + .@{input-number-prefix-cls}-rtl.@{input-number-prefix-cls}-borderless & { + border-right-width: 0; + } + } + + &-up { + .@{input-number-prefix-cls}-rtl & { + border-top-right-radius: 0; + } + } + + &-down { + .@{input-number-prefix-cls}-rtl & { + border-bottom-right-radius: 0; + } } } diff --git a/components/input-number/style/status.less b/components/input-number/style/status.less new file mode 100644 index 00000000..f785da9a --- /dev/null +++ b/components/input-number/style/status.less @@ -0,0 +1,29 @@ +@import '../../input/style/mixin'; + +@input-number-prefix-cls: ~'@{ant-prefix}-input-number'; + +@input-number-wrapper-cls: @input-number-prefix-cls, ~'@{input-number-prefix-cls}-affix-wrapper'; + +each(@input-number-wrapper-cls, { + .@{value} { + &-status-error { + .status-color(@value, @error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline); + .status-color-common(@input-number-prefix-cls, @error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline) + } + + &-status-warning { + .status-color(@value, @warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + .status-color-common(@input-number-prefix-cls, @warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline) + } + } +}); + +.@{input-number-prefix-cls}-group-wrapper { + &-status-error { + .group-status-color(@input-number-prefix-cls, @error-color, @error-color); + } + + &-status-warning { + .group-status-color(@input-number-prefix-cls, @warning-color, @warning-color); + } +} diff --git a/components/input/style/affix.less b/components/input/style/affix.less index 24a69702..5f924044 100644 --- a/components/input/style/affix.less +++ b/components/input/style/affix.less @@ -1,5 +1,6 @@ -@import './index'; @import './mixin'; +@import (reference) '../../style/themes/index'; +@input-prefix-cls: ~'@{ant-prefix}-input'; @input-affix-margin: 4px; @@ -49,6 +50,18 @@ display: flex; flex: none; align-items: center; + + > *:not(:last-child) { + margin-right: 8px; + } + } + + &-show-count-suffix { + color: @text-color-secondary; + } + + &-show-count-has-suffix { + margin-right: 2px; } &-prefix { diff --git a/components/input/style/allow-clear.less b/components/input/style/allow-clear.less index 3356c26e..946541ef 100644 --- a/components/input/style/allow-clear.less +++ b/components/input/style/allow-clear.less @@ -1,7 +1,9 @@ -@import './index'; +@import (reference) '../../style/themes/index'; +@input-prefix-cls: ~'@{ant-prefix}-input'; // ========================= Input ========================= -.@{iconfont-css-prefix}.@{ant-prefix}-input-clear-icon { +.@{iconfont-css-prefix}.@{ant-prefix}-input-clear-icon, +.@{ant-prefix}-input-clear-icon { margin: 0; color: @disabled-color; font-size: @font-size-sm; diff --git a/components/input/style/entry.less b/components/input/style/entry.less index 06547c43..96cebe33 100644 --- a/components/input/style/entry.less +++ b/components/input/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/input/style/index.less b/components/input/style/index.less index 6ad23e28..36e1c926 100644 --- a/components/input/style/index.less +++ b/components/input/style/index.less @@ -3,6 +3,7 @@ @import './mixin'; @import './affix'; @import './allow-clear'; +@import './status'; @input-prefix-cls: ~'@{ant-prefix}-input'; @@ -15,6 +16,7 @@ &-group { .reset-component(); .input-group(~'@{input-prefix-cls}'); + &-wrapper { display: inline-block; width: 100%; @@ -23,7 +25,7 @@ } } - &-password-icon { + &-password-icon.@{iconfont-css-prefix} { color: @text-color-secondary; cursor: pointer; transition: all 0.3s; @@ -46,14 +48,36 @@ } } - &-textarea { - &-show-count::after { + &-textarea-show-count { + // https://github.com/ant-design/ant-design/issues/33049 + > .@{input-prefix-cls} { + height: 100%; + } + + &::after { float: right; color: @text-color-secondary; white-space: nowrap; content: attr(data-count); pointer-events: none; } + + &.@{input-prefix-cls}-textarea-in-form-item { + &::after { + margin-bottom: -22px; + } + } + } + + &-textarea-suffix { + position: absolute; + top: 0; + right: @input-padding-horizontal-base; + bottom: 0; + z-index: 1; + display: inline-flex; + align-items: center; + margin: auto; } } diff --git a/components/input/style/mixin.less b/components/input/style/mixin.less index 93d17010..fd5f9948 100644 --- a/components/input/style/mixin.less +++ b/components/input/style/mixin.less @@ -14,23 +14,30 @@ } // input status -// == when focus or actived -.active(@color: @outline-color) { +// == when focus or active +.active(@borderColor: @primary-color; @hoverBorderColor: @primary-color-hover; @outlineColor: @primary-color-outline) { & when (@theme = dark) { - border-color: @color; + border-color: @borderColor; } - & when not (@theme = dark) { - border-color: ~`colorPalette('@{color}', 5) `; + & when (not (@theme = dark) and not (@theme = variable)) { + border-color: @hoverBorderColor; } - border-right-width: @border-width-base !important; + & when not (@theme = variable) { + box-shadow: @input-outline-offset @outline-blur-size @outline-width + fade(@borderColor, @outline-fade); + } + & when (@theme = variable) { + border-color: @hoverBorderColor; + box-shadow: @input-outline-offset @outline-blur-size @outline-width @outlineColor; + } + border-right-width: @border-width-base; outline: 0; - box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, @outline-fade); } -// == when hoverd +// == when hover .hover(@color: @input-hover-border-color) { border-color: @color; - border-right-width: @border-width-base !important; + border-right-width: @border-width-base; } .disabled() { @@ -59,7 +66,7 @@ background-color: @input-bg; background-image: none; border: @border-width-base @border-style-base @input-border-color; - border-radius: @border-radius-base; + border-radius: @control-border-radius; transition: all 0.3s; .placeholder(); // Reset placeholder @@ -186,7 +193,7 @@ text-align: center; background-color: @input-addon-bg; border: @border-width-base @border-style-base @input-border-color; - border-radius: @border-radius-base; + border-radius: @control-border-radius; transition: all 0.3s; // Reset Select's style in addon @@ -286,19 +293,20 @@ } .@{inputClass}-affix-wrapper { - &:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - &:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; .@{ant-prefix}-input-search & { - border-top-left-radius: @border-radius-base; - border-bottom-left-radius: @border-radius-base; + border-top-left-radius: @control-border-radius; + border-bottom-left-radius: @control-border-radius; } } + + &:not(:first-child), + .@{ant-prefix}-input-search &:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } } &&-compact { @@ -376,8 +384,8 @@ & > .@{ant-prefix}-select:first-child > .@{ant-prefix}-select-selector, & > .@{ant-prefix}-select-auto-complete:first-child .@{ant-prefix}-input, & > .@{ant-prefix}-cascader-picker:first-child .@{ant-prefix}-input { - border-top-left-radius: @border-radius-base; - border-bottom-left-radius: @border-radius-base; + border-top-left-radius: @control-border-radius; + border-bottom-left-radius: @control-border-radius; } & > *:last-child, @@ -385,8 +393,8 @@ & > .@{ant-prefix}-cascader-picker:last-child .@{ant-prefix}-input, & > .@{ant-prefix}-cascader-picker-focused:last-child .@{ant-prefix}-input { border-right-width: @border-width-base; - border-top-right-radius: @border-radius-base; - border-bottom-right-radius: @border-radius-base; + border-top-right-radius: @control-border-radius; + border-bottom-right-radius: @control-border-radius; } // https://github.com/ant-design/ant-design/issues/12493 @@ -408,9 +416,55 @@ } & > .@{ant-prefix}-input { - border-radius: @border-radius-base 0 0 @border-radius-base; + border-radius: @control-border-radius 0 0 @control-border-radius; } } } } } + +.status-color( + @prefix-cls: @input-prefix-cls; + @text-color: @input-color; + @border-color: @input-border-color; + @background-color: @input-bg; + @hoverBorderColor: @primary-color-hover; + @outlineColor: @primary-color-outline; +) { + &:not(.@{prefix-cls}-disabled):not(.@{prefix-cls}-borderless).@{prefix-cls} { + &, + &:hover { + background: @background-color; + border-color: @border-color; + } + + &:focus, + &-focused { + .active(@text-color, @hoverBorderColor, @outlineColor); + } + } +} + +.status-color-common( + @prefix-cls: @input-prefix-cls; + @text-color: @input-color; + @border-color: @input-border-color; + @background-color: @input-bg; + @hoverBorderColor: @primary-color-hover; + @outlineColor: @primary-color-outline; +) { + .@{prefix-cls}-prefix { + color: @text-color; + } +} + +.group-status-color( + @prefix-cls: @input-prefix-cls; + @text-color: @input-color; + @border-color: @input-border-color; +) { + .@{prefix-cls}-group-addon { + color: @text-color; + border-color: @border-color; + } +} diff --git a/components/input/style/patch.less b/components/input/style/patch.less new file mode 100644 index 00000000..85e83d18 --- /dev/null +++ b/components/input/style/patch.less @@ -0,0 +1,27 @@ +textarea.antblazor-textarea-autosize-measuring { + height: auto !important; + overflow: hidden !important; + // Having 2px top and bottom padding seems to fix a bug where Chrome gets an incorrect + // measurement. We just have to account for it later and subtract it off the final result. + padding: 2px 0 !important; +} + +.@{search-prefix} { + &-enter-button { + & + .@{ant-prefix}-input-group-addon, + input + .@{ant-prefix}-input-group-addon { + .@{search-rtl-cls}& { + .@{search-prefix}-button.@{ant-prefix}-btn-icon-only { + .square(@btn-height-base); + + &.@{ant-prefix}-btn-sm{ + .square(@btn-height-sm); + } + &.@{ant-prefix}-btn-lg{ + .square(@btn-height-lg); + } + } + } + } + } +} diff --git a/components/input/style/rtl.less b/components/input/style/rtl.less index 1aa3a8c4..64799d9b 100644 --- a/components/input/style/rtl.less +++ b/components/input/style/rtl.less @@ -8,6 +8,7 @@ direction: rtl; } } + &-rtl { direction: rtl; } diff --git a/components/input/style/status.less b/components/input/style/status.less new file mode 100644 index 00000000..e6562e60 --- /dev/null +++ b/components/input/style/status.less @@ -0,0 +1,42 @@ +@import './mixin'; + +@input-prefix-cls: ~'@{ant-prefix}-input'; + +@input-wrapper-cls: @input-prefix-cls, ~'@{input-prefix-cls}-affix-wrapper'; + +each(@input-wrapper-cls, { + .@{value} { + &-status-error { + .status-color(@value, @error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline); + .status-color-common(@input-prefix-cls, @error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline); + } + + &-status-warning { + .status-color(@value, @warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + .status-color-common(@input-prefix-cls, @warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + } + } +}); + +.@{input-prefix-cls}-textarea { + &-status-error, + &-status-warning, + &-status-success, + &-status-validating { + &.@{input-prefix-cls}-textarea-has-feedback { + .@{input-prefix-cls} { + padding-right: 24px; + } + } + } +} + +.@{input-prefix-cls}-group-wrapper { + &-status-error { + .group-status-color(@input-prefix-cls, @error-color, @error-color); + } + + &-status-warning { + .group-status-color(@input-prefix-cls, @warning-color, @warning-color); + } +} diff --git a/components/layout/style/entry.less b/components/layout/style/entry.less index 06547c43..96cebe33 100644 --- a/components/layout/style/entry.less +++ b/components/layout/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/layout/style/index.less b/components/layout/style/index.less index 86a912e7..f699c0b4 100644 --- a/components/layout/style/index.less +++ b/components/layout/style/index.less @@ -8,6 +8,7 @@ display: flex; flex: auto; flex-direction: column; + /* fix firefox can't set height smaller than content on flex item */ min-height: 0; background: @layout-body-background; @@ -48,6 +49,7 @@ &-content { flex: auto; + /* fix firefox can't set height smaller than content on flex item */ min-height: 0; } diff --git a/components/layout/style/patch.less b/components/layout/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/list/style/customize.less b/components/list/style/customize.less index bbad35b7..d0e2b84a 100644 --- a/components/list/style/customize.less +++ b/components/list/style/customize.less @@ -1,5 +1,6 @@ -@import './index.less'; +@import '../../style/themes/index'; +@list-prefix-cls: ~'@{ant-prefix}-list'; @card-prefix-cls: ~'@{ant-prefix}-card'; .@{list-prefix-cls} { diff --git a/components/list/style/entry.less b/components/list/style/entry.less index 06547c43..75de5f5d 100644 --- a/components/list/style/entry.less +++ b/components/list/style/entry.less @@ -1 +1,6 @@ @import './index.less'; +@import '../../empty/style/entry.less'; +@import '../../spin/style/entry.less'; +@import '../../pagination/style/entry.less'; +@import '../../grid/style/entry.less'; +@import "./patch"; diff --git a/components/list/style/index.less b/components/list/style/index.less index 72e75eec..6804e241 100644 --- a/components/list/style/index.less +++ b/components/list/style/index.less @@ -26,6 +26,7 @@ &-more { margin-top: @margin-sm; text-align: center; + button { padding-right: 32px; padding-left: 32px; @@ -66,30 +67,36 @@ &-avatar { margin-right: @list-item-meta-avatar-margin-right; } + &-content { flex: 1 0; width: 0; color: @text-color; } + &-title { margin-bottom: 4px; color: @text-color; font-size: @font-size-base; line-height: @line-height-base; + > a { color: @text-color; transition: all 0.3s; + &:hover { color: @primary-color; } } } + &-description { color: @text-color-secondary; font-size: @list-item-meta-description-font-size; line-height: @line-height-base; } } + &-action { flex: 0 0 auto; margin-left: 48px; @@ -146,6 +153,7 @@ &-split &-item { border-bottom: 1px solid @border-color-split; + &:last-child { border-bottom: none; } @@ -204,6 +212,7 @@ > li { padding: 0 @padding-md; + &:first-child { padding-left: 0; } diff --git a/components/list/style/patch.less b/components/list/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/list/style/responsive.less b/components/list/style/responsive.less index 151dec45..db7a108a 100644 --- a/components/list/style/responsive.less +++ b/components/list/style/responsive.less @@ -20,6 +20,7 @@ .@{list-prefix-cls} { &-item { flex-wrap: wrap; + &-action { margin-left: 12px; } @@ -29,9 +30,11 @@ .@{list-prefix-cls}-vertical { .@{list-prefix-cls}-item { flex-wrap: wrap-reverse; + &-main { min-width: 220px; } + &-extra { margin: auto auto 16px; } diff --git a/components/mentions/style/entry.less b/components/mentions/style/entry.less index 06547c43..911f7808 100644 --- a/components/mentions/style/entry.less +++ b/components/mentions/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import "./patch"; diff --git a/components/mentions/style/index.less b/components/mentions/style/index.less index d2285d94..06e2b1f2 100644 --- a/components/mentions/style/index.less +++ b/components/mentions/style/index.less @@ -1,6 +1,7 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; @import '../../input/style/mixin'; +@import './status'; @mention-prefix-cls: ~'@{ant-prefix}-mentions'; @@ -37,6 +38,7 @@ overflow: inherit; overflow-x: hidden; overflow-y: auto; + /* stylelint-disable declaration-block-no-redundant-longhand-properties */ font-weight: inherit; font-size: inherit; font-family: inherit; @@ -45,6 +47,7 @@ font-size-adjust: inherit; font-stretch: inherit; line-height: inherit; + /* stylelint-enable declaration-block-no-redundant-longhand-properties */ direction: inherit; letter-spacing: inherit; white-space: inherit; @@ -160,6 +163,17 @@ } } } + + &-suffix { + position: absolute; + top: 0; + right: @input-padding-horizontal-base; + bottom: 0; + z-index: 1; + display: inline-flex; + align-items: center; + margin: auto; + } } @import './rtl'; diff --git a/components/mentions/style/patch.less b/components/mentions/style/patch.less new file mode 100644 index 00000000..0889b67c --- /dev/null +++ b/components/mentions/style/patch.less @@ -0,0 +1,8 @@ +.ant-mention-dropdown { + top: 100%; + left: 0; + position: relative; + width: 100%; + margin-top: 4px; + margin-bottom: 4px; +} diff --git a/components/mentions/style/status.less b/components/mentions/style/status.less new file mode 100644 index 00000000..92d61e33 --- /dev/null +++ b/components/mentions/style/status.less @@ -0,0 +1,16 @@ +@import '../../input/style/mixin'; + +@mention-prefix-cls: ~'@{ant-prefix}-mentions'; +@input-prefix-cls: ~'@{ant-prefix}-input'; + +.@{mention-prefix-cls} { + &-status-error { + .status-color(@mention-prefix-cls, @error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline); + .status-color-common(@input-prefix-cls, @error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline); + } + + &-status-warning { + .status-color(@mention-prefix-cls, @warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + .status-color-common(@input-prefix-cls, @warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + } +} diff --git a/components/menu/style/dark.less b/components/menu/style/dark.less index ed8a853f..fe110330 100644 --- a/components/menu/style/dark.less +++ b/components/menu/style/dark.less @@ -1,4 +1,19 @@ +.accessibility-focus-dark() { + box-shadow: 0 0 0 2px @primary-7; +} + .@{menu-prefix-cls} { + &&-root:focus-visible { + .accessibility-focus-dark(); + } + + &-dark &-item, + &-dark &-submenu-title { + &:focus-visible { + .accessibility-focus-dark(); + } + } + // dark theme &&-dark, &-dark &-sub, @@ -8,6 +23,7 @@ .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow { opacity: 0.45; transition: all 0.3s; + &::after, &::before { background: @menu-dark-arrow-color; @@ -65,6 +81,7 @@ left: 0; margin-left: 0; border-right: 0; + &::after { border-right: 0; } @@ -83,6 +100,7 @@ &-dark &-submenu-title:hover { color: @menu-dark-highlight-color; background-color: transparent; + > a, > span > a { color: @menu-dark-highlight-color; @@ -90,6 +108,7 @@ > .@{menu-prefix-cls}-submenu-title { > .@{menu-prefix-cls}-submenu-arrow { opacity: 1; + &::after, &::before { background: @menu-dark-highlight-color; @@ -97,6 +116,7 @@ } } } + &-dark &-item:hover { background-color: @menu-dark-item-hover-bg; } @@ -108,9 +128,11 @@ &-dark &-item-selected { color: @menu-dark-highlight-color; border-right: 0; + &::after { border-right: 0; } + > a, > span > a, > a:hover, diff --git a/components/menu/style/entry.less b/components/menu/style/entry.less index 7e2e18cc..7ac8c6c0 100644 --- a/components/menu/style/entry.less +++ b/components/menu/style/entry.less @@ -1,5 +1,5 @@ @import './index.less'; // style dependencies // deps-lint-skip: layout -@import '../../tooltip/style/index.less'; -@import './patch.less'; \ No newline at end of file +@import '../../tooltip/style/entry.less'; +@import './patch.less'; diff --git a/components/menu/style/index.less b/components/menu/style/index.less index e787f07e..7d42a666 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -6,7 +6,7 @@ @menu-animation-duration-normal: 0.15s; .accessibility-focus() { - box-shadow: 0 0 0 2px fade(@primary-color, 20%); + box-shadow: 0 0 0 2px @primary-2; } // TODO: Should remove icon style compatible in v5 @@ -67,6 +67,7 @@ transition: border-color @animation-duration-slow @ease-in-out, background @animation-duration-slow @ease-in-out; } + &-submenu, &-submenu-inline { transition: border-color @animation-duration-slow @ease-in-out, @@ -95,9 +96,11 @@ &-item a { color: @menu-item-color; + &:hover { color: @menu-highlight-color; } + &::before { position: absolute; top: 0; @@ -112,16 +115,22 @@ // https://github.com/ant-design/ant-design/issues/19809 &-item > .@{ant-prefix}-badge a { color: @menu-item-color; + &:hover { color: @menu-highlight-color; } } &-item-divider { - height: 1px; overflow: hidden; line-height: 0; - background-color: @border-color-split; + border-color: @border-color-split; + border-style: solid; + border-width: 1px 0 0; + } + + &-item-divider-dashed { + border-style: dashed; } &-horizontal &-item, @@ -137,6 +146,7 @@ &-item-selected { color: @menu-highlight-color; + a, a:hover { color: @menu-highlight-color; @@ -177,6 +187,7 @@ left: 0; margin-left: 0; border-right: 0; + &::after { border-right: 0; } @@ -213,6 +224,7 @@ font-size: @menu-icon-size; transition: font-size @menu-animation-duration-normal @ease-out, margin @animation-duration-slow @ease-in-out, color @animation-duration-slow; + + span { margin-left: @menu-icon-margin-right; opacity: 1; @@ -238,12 +250,8 @@ } & > &-item-divider { - height: 1px; margin: 1px 0; padding: 0; - overflow: hidden; - line-height: 0; - background-color: @border-color-split; } &-submenu { @@ -279,6 +287,7 @@ > .@{menu-prefix-cls} { background-color: @menu-bg; border-radius: @border-radius-base; + &-submenu-title::after { transition: transform @animation-duration-slow @ease-in-out; } @@ -306,16 +315,18 @@ position: absolute; width: 6px; height: 1.5px; - background-color: currentColor; + background-color: currentcolor; border-radius: 2px; transition: background @animation-duration-slow @ease-in-out, transform @animation-duration-slow @ease-in-out, top @animation-duration-slow @ease-in-out, color @animation-duration-slow @ease-in-out; content: ''; } + &::before { transform: rotate(45deg) translateY(-2.5px); } + &::after { transform: rotate(-45deg) translateY(2.5px); } @@ -332,6 +343,7 @@ &::before { transform: rotate(-45deg) translateX(2.5px); } + &::after { transform: rotate(45deg) translateX(-2.5px); } @@ -344,9 +356,11 @@ &-open&-inline > &-title > &-arrow { // ↑ transform: translateY(-2px); + &::after { transform: rotate(-45deg) translateX(-2.5px); } + &::before { transform: rotate(45deg) translateX(2.5px); } @@ -410,13 +424,16 @@ > .@{menu-prefix-cls}-item { a { color: @menu-item-color; + &:hover { color: @menu-highlight-color; } + &::before { bottom: -2px; } } + &-selected a { color: @menu-highlight-color; } @@ -436,6 +453,7 @@ &-inline { .@{menu-prefix-cls}-item { position: relative; + &::after { position: absolute; top: 0; @@ -554,6 +572,7 @@ margin: 0; font-size: @menu-icon-size-lg; line-height: @menu-item-height; + + span { display: inline-block; opacity: 0; @@ -573,6 +592,7 @@ .@{iconfont-css-prefix} { display: none; } + a { color: @text-color-dark; } @@ -667,6 +687,14 @@ } } +// https://github.com/ant-design/ant-design/issues/32950 +.@{ant-prefix}-menu-inline-collapsed-tooltip { + a, + a:hover { + color: @white; + } +} + @import './light'; @import './dark'; @import './rtl'; diff --git a/components/menu/style/patch.less b/components/menu/style/patch.less index 5f282702..9808c9b0 100644 --- a/components/menu/style/patch.less +++ b/components/menu/style/patch.less @@ -1 +1,24 @@ - \ No newline at end of file +.ant-menu-submenu.ant-menu-submenu-placement-bottom { + top: 6px; + position: relative; +} + +.ant-menu-submenu.ant-menu-submenu-placement-right { + left: 4px; + position: relative; + + &.ant-menu-submenu-rtl { + left: auto; + right: 4px; + } +} + +.ant-menu-submenu.ant-menu-submenu-placement-left { + right: 4px; + position: relative; + + &.ant-menu-submenu-rtl { + right: auto; + left: 4px; + } +} diff --git a/components/menu/style/rtl.less b/components/menu/style/rtl.less index a7edba5b..cc7a152a 100644 --- a/components/menu/style/rtl.less +++ b/components/menu/style/rtl.less @@ -87,6 +87,7 @@ transform: rotate(-45deg) translateY(-2px); } } + &::after { .@{menu-prefix-cls}-rtl & { transform: rotate(45deg) translateY(2px); diff --git a/components/menu/style/status.less b/components/menu/style/status.less index 5e5d66c0..5e8a1343 100644 --- a/components/menu/style/status.less +++ b/components/menu/style/status.less @@ -1,4 +1,5 @@ -@import './index'; +@import (reference) '../../style/themes/index'; +@menu-prefix-cls: ~'@{ant-prefix}-menu'; .@{menu-prefix-cls} { // Danger @@ -16,6 +17,7 @@ &-selected { color: @menu-highlight-danger-color; + > a, > a:hover { color: @menu-highlight-danger-color; diff --git a/components/message/style/index.less b/components/message/style/index.less index 3459ef65..2594fff7 100644 --- a/components/message/style/index.less +++ b/components/message/style/index.less @@ -63,6 +63,7 @@ padding: 8px; opacity: 1; } + 100% { max-height: 0; padding: 0; diff --git a/components/modal/style/confirm.less b/components/modal/style/confirm.less index cf5c4047..dfe34d1d 100644 --- a/components/modal/style/confirm.less +++ b/components/modal/style/confirm.less @@ -23,7 +23,7 @@ overflow: hidden; color: @heading-color; font-weight: 500; - font-size: @font-size-lg; + font-size: @modal-confirm-title-font-size; line-height: 1.4; } diff --git a/components/modal/style/entry.less b/components/modal/style/entry.less index 06547c43..2093878e 100644 --- a/components/modal/style/entry.less +++ b/components/modal/style/entry.less @@ -1 +1,3 @@ @import './index.less'; +// style dependencies +@import '../../button/style/entry.less'; diff --git a/components/modal/style/index.less b/components/modal/style/index.less index 0f128a2e..5acc2608 100644 --- a/components/modal/style/index.less +++ b/components/modal/style/index.less @@ -2,5 +2,6 @@ @import '../../style/mixins/index'; @import './modal'; @import './confirm'; -@import './customize'; @import './rtl'; + +.popover-customize-bg(@dialog-prefix-cls, @popover-background); diff --git a/components/modal/style/modal.less b/components/modal/style/modal.less index d9470ef3..6fb60849 100644 --- a/components/modal/style/modal.less +++ b/components/modal/style/modal.less @@ -106,6 +106,7 @@ .@{dialog-prefix-cls}-centered { text-align: center; + &::before { display: inline-block; width: 0; @@ -116,6 +117,7 @@ .@{dialog-prefix-cls} { top: 0; display: inline-block; + padding-bottom: 0; text-align: left; vertical-align: middle; } diff --git a/components/modal/style/rtl.less b/components/modal/style/rtl.less index 1655806c..8a19025b 100644 --- a/components/modal/style/rtl.less +++ b/components/modal/style/rtl.less @@ -50,6 +50,7 @@ } } } + &-btns { .@{dialog-wrap-rtl-cls} & { float: left; diff --git a/components/notification/style/index.less b/components/notification/style/index.less index 7ded96f5..ae0d0a67 100644 --- a/components/notification/style/index.less +++ b/components/notification/style/index.less @@ -1,6 +1,7 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; -@import './customize.less'; + +.popover-customize-bg(@notification-prefix-cls, @popover-background); @notification-prefix-cls: ~'@{ant-prefix}-notification'; @notification-width: 384px; @@ -15,17 +16,6 @@ z-index: @zindex-notification; margin-right: @notification-margin-edge; - &-topLeft, - &-bottomLeft { - margin-right: 0; - margin-left: @notification-margin-edge; - - .@{notification-prefix-cls}-fade-enter.@{notification-prefix-cls}-fade-enter-active, - .@{notification-prefix-cls}-fade-appear.@{notification-prefix-cls}-fade-appear-active { - animation-name: NotificationLeftFadeIn; - } - } - &-close-icon { font-size: @font-size-base; cursor: pointer; @@ -49,6 +39,12 @@ border-radius: @border-radius-base; box-shadow: @shadow-2; + .@{notification-prefix-cls}-top &, + .@{notification-prefix-cls}-bottom & { + margin-right: auto; + margin-left: auto; + } + .@{notification-prefix-cls}-topLeft &, .@{notification-prefix-cls}-bottomLeft & { margin-right: auto; @@ -68,6 +64,7 @@ max-width: 4px; background-color: transparent; pointer-events: none; + &::before { display: block; content: ''; @@ -108,12 +105,15 @@ &-success { color: @success-color; } + &-info { color: @info-color; } + &-warning { color: @warning-color; } + &-error { color: @error-color; } @@ -180,29 +180,20 @@ left: @notification-width; opacity: 0; } + 100% { left: 0; opacity: 1; } } -@keyframes NotificationLeftFadeIn { - 0% { - right: @notification-width; - opacity: 0; - } - 100% { - right: 0; - opacity: 1; - } -} - @keyframes NotificationFadeOut { 0% { max-height: 150px; margin-bottom: @notification-margin-bottom; opacity: 1; } + 100% { max-height: 0; margin-bottom: 0; @@ -213,3 +204,4 @@ } @import './rtl'; +@import './placement'; diff --git a/components/notification/style/placement.less b/components/notification/style/placement.less new file mode 100644 index 00000000..9a60feca --- /dev/null +++ b/components/notification/style/placement.less @@ -0,0 +1,68 @@ +.@{notification-prefix-cls} { + &-top, + &-bottom { + margin-right: 0; + margin-left: 0; + } + + &-top { + .@{notification-prefix-cls}-fade-enter.@{notification-prefix-cls}-fade-enter-active, + .@{notification-prefix-cls}-fade-appear.@{notification-prefix-cls}-fade-appear-active { + animation-name: NotificationTopFadeIn; + } + } + + &-bottom { + .@{notification-prefix-cls}-fade-enter.@{notification-prefix-cls}-fade-enter-active, + .@{notification-prefix-cls}-fade-appear.@{notification-prefix-cls}-fade-appear-active { + animation-name: NotificationBottomFadeIn; + } + } + + &-topLeft, + &-bottomLeft { + margin-right: 0; + margin-left: @notification-margin-edge; + + .@{notification-prefix-cls}-fade-enter.@{notification-prefix-cls}-fade-enter-active, + .@{notification-prefix-cls}-fade-appear.@{notification-prefix-cls}-fade-appear-active { + animation-name: NotificationLeftFadeIn; + } + } +} + +@keyframes NotificationTopFadeIn { + 0% { + margin-top: -100%; + opacity: 0; + } + + 100% { + margin-top: 0; + opacity: 1; + } +} + +@keyframes NotificationBottomFadeIn { + 0% { + margin-bottom: -100%; + opacity: 0; + } + + 100% { + margin-bottom: 0; + opacity: 1; + } +} + +@keyframes NotificationLeftFadeIn { + 0% { + right: @notification-width; + opacity: 0; + } + + 100% { + right: 0; + opacity: 1; + } +} diff --git a/components/page-header/style/entry.less b/components/page-header/style/entry.less index 06547c43..b93a7916 100644 --- a/components/page-header/style/entry.less +++ b/components/page-header/style/entry.less @@ -1 +1,5 @@ @import './index.less'; +// style dependencies +@import '../../divider/style/entry.less'; +@import '../../breadcrumb/style/entry.less'; +@import "./patch"; diff --git a/components/page-header/style/index.less b/components/page-header/style/index.less index 084d85e5..07414575 100644 --- a/components/page-header/style/index.less +++ b/components/page-header/style/index.less @@ -66,7 +66,7 @@ color: @heading-color; font-weight: 600; font-size: @page-header-heading-title; - line-height: 32px; + line-height: @height-base; .text-overflow-ellipsis(); } @@ -87,12 +87,8 @@ white-space: nowrap; > * { - margin-left: @margin-sm; white-space: unset; } - > *:first-child { - margin-left: 0; - } } } @@ -105,6 +101,7 @@ .@{ant-prefix}-tabs { > .@{ant-prefix}-tabs-nav { margin: 0; + &::before { border: none; } diff --git a/components/page-header/style/patch.less b/components/page-header/style/patch.less new file mode 100644 index 00000000..48d307d1 --- /dev/null +++ b/components/page-header/style/patch.less @@ -0,0 +1,7 @@ +.ant-page-header-back-button { + border: 0; + background: transparent; + padding: 0; + line-height: inherit; + display: inline-block; +} \ No newline at end of file diff --git a/components/page-header/style/rtl.less b/components/page-header/style/rtl.less index f7e9afdb..33e5c0d8 100644 --- a/components/page-header/style/rtl.less +++ b/components/page-header/style/rtl.less @@ -56,6 +56,7 @@ margin-left: 0; } } + > *:first-child { .@{pageheader-prefix-cls}-rtl & { margin-right: 0; diff --git a/components/pagination/style/entry.less b/components/pagination/style/entry.less index 06547c43..dd6f23d1 100644 --- a/components/pagination/style/entry.less +++ b/components/pagination/style/entry.less @@ -1 +1,4 @@ @import './index.less'; +// style dependencies +@import '../../select/style/entry.less'; +@import './patch.less'; diff --git a/components/pagination/style/index.less b/components/pagination/style/index.less index 37c0861d..8572af66 100644 --- a/components/pagination/style/index.less +++ b/components/pagination/style/index.less @@ -59,10 +59,21 @@ } } - &:focus-visible, &:hover { border-color: @primary-color; transition: all 0.3s; + + a { + color: @primary-color; + } + } + + // cannot merge with `&:hover` + // see https://github.com/ant-design/ant-design/pull/34002 + &:focus-visible { + border-color: @primary-color; + transition: all 0.3s; + a { color: @primary-color; } @@ -77,15 +88,21 @@ color: @primary-color; } - &:focus-visible, &:hover { border-color: @primary-5; } - &:focus-visible a, + &:focus-visible { + border-color: @primary-5; + } + &:hover a { color: @primary-5; } + + &:focus-visible a { + color: @primary-5; + } } } @@ -101,6 +118,7 @@ letter-spacing: -1px; opacity: 0; transition: all 0.2s; + &-svg { top: 0; right: 0; @@ -128,7 +146,6 @@ } } - &:focus-visible, &:hover { .@{pagination-prefix-cls}-item-link-icon { opacity: 1; @@ -137,6 +154,15 @@ opacity: 0; } } + + &:focus-visible { + .@{pagination-prefix-cls}-item-link-icon { + opacity: 1; + } + .@{pagination-prefix-cls}-item-ellipsis { + opacity: 0; + } + } } &-prev, @@ -144,6 +170,7 @@ &-jump-next { margin-right: 8px; } + &-prev, &-next, &-jump-prev, @@ -191,7 +218,11 @@ transition: all 0.3s; } - &:focus-visible .@{pagination-prefix-cls}-item-link, + &:focus-visible .@{pagination-prefix-cls}-item-link { + color: @primary-color; + border-color: @primary-color; + } + &:hover .@{pagination-prefix-cls}-item-link { color: @primary-color; border-color: @primary-color; @@ -200,7 +231,15 @@ &-disabled { &, - &:hover, + &:hover { + cursor: not-allowed; + .@{pagination-prefix-cls}-item-link { + color: @disabled-color; + border-color: @border-color-base; + cursor: not-allowed; + } + } + &:focus-visible { cursor: not-allowed; .@{pagination-prefix-cls}-item-link { @@ -259,6 +298,7 @@ height: @pagination-item-size-sm; background-color: transparent; border: 0; + &::after { height: @pagination-item-size-sm; line-height: @pagination-item-size-sm; @@ -287,6 +327,11 @@ border-color: @primary-color; } + &:focus { + border-color: @primary-color-hover; + box-shadow: @input-outline-offset @outline-blur-size @outline-width @primary-color-outline; + } + &[disabled] { color: @disabled-color; background: @disabled-bg; @@ -326,6 +371,7 @@ &.mini &-next &-item-link { background: transparent; border-color: transparent; + &::after { height: @pagination-item-size-sm; line-height: @pagination-item-size-sm; @@ -377,6 +423,7 @@ &-active { background: @pagination-item-disabled-bg-active; + a { color: @pagination-item-disabled-color-active; } diff --git a/components/pagination/style/patch.less b/components/pagination/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/popconfirm/style/entry.less b/components/popconfirm/style/entry.less index 9bed7670..34934f05 100644 --- a/components/popconfirm/style/entry.less +++ b/components/popconfirm/style/entry.less @@ -1,4 +1,5 @@ // style dependencies // deps-lint-skip: tooltip, popover -@import '../../popover/style/index.less'; -@import '../../button/style/index.less'; +@import '../../popover/style/entry.less'; +@import '../../button/style/entry.less'; +@import "./patch"; diff --git a/components/popconfirm/style/patch.less b/components/popconfirm/style/patch.less new file mode 100644 index 00000000..af9afde4 --- /dev/null +++ b/components/popconfirm/style/patch.less @@ -0,0 +1,3 @@ +.ant-popover { + position: relative; +} diff --git a/components/popover/style/entry.less b/components/popover/style/entry.less index 06547c43..ccddc3b7 100644 --- a/components/popover/style/entry.less +++ b/components/popover/style/entry.less @@ -1 +1,4 @@ @import './index.less'; +// style dependencies +// deps-lint-skip: tooltip +@import "./patch"; \ No newline at end of file diff --git a/components/popover/style/index.less b/components/popover/style/index.less index 1d53bc39..1b3d1041 100644 --- a/components/popover/style/index.less +++ b/components/popover/style/index.less @@ -3,7 +3,7 @@ @popover-prefix-cls: ~'@{ant-prefix}-popover'; -@popover-arrow-rotate-width: sqrt(@popover-arrow-width * @popover-arrow-width * 2); +@popover-arrow-rotate-width: sqrt(@popover-arrow-width * @popover-arrow-width * 2) + 6px; @popover-arrow-offset-vertical: 12px; @popover-arrow-offset-horizontal: 16px; @@ -21,6 +21,10 @@ cursor: auto; user-select: text; + &-content { + position: relative; + } + &::after { position: absolute; background: fade(@white, 1%); @@ -99,6 +103,7 @@ color: @warning-color; font-size: @font-size-base; } + &-title { padding-left: @font-size-base + 8px; } @@ -136,22 +141,25 @@ background-color: @popover-bg; content: ''; pointer-events: auto; + .roundedArrow(@popover-arrow-width, 5px, @popover-bg); } } &-placement-top &-arrow, &-placement-topLeft &-arrow, &-placement-topRight &-arrow { - bottom: @popover-distance - @popover-arrow-rotate-width; + bottom: 0; + transform: translateY(100%); &-content { box-shadow: 3px 3px 7px fade(@black, 7%); transform: translateY((-@popover-arrow-rotate-width / 2)) rotate(45deg); } } + &-placement-top &-arrow { left: 50%; - transform: translateX(-50%); + transform: translateY(100%) translateX(-50%); } &-placement-topLeft &-arrow { @@ -165,20 +173,24 @@ &-placement-right &-arrow, &-placement-rightTop &-arrow, &-placement-rightBottom &-arrow { - left: @popover-distance - @popover-arrow-rotate-width; + left: 0; + transform: translateX(-100%); &-content { - box-shadow: -3px 3px 7px fade(@black, 7%); - transform: translateX((@popover-arrow-rotate-width / 2)) rotate(45deg); + box-shadow: 3px 3px 7px fade(@black, 7%); + transform: translateX((@popover-arrow-rotate-width / 2)) rotate(135deg); } } + &-placement-right &-arrow { top: 50%; - transform: translateY(-50%); + transform: translateX(-100%) translateY(-50%); } + &-placement-rightTop &-arrow { top: @popover-arrow-offset-vertical; } + &-placement-rightBottom &-arrow { bottom: @popover-arrow-offset-vertical; } @@ -186,17 +198,18 @@ &-placement-bottom &-arrow, &-placement-bottomLeft &-arrow, &-placement-bottomRight &-arrow { - top: @popover-distance - @popover-arrow-rotate-width; + top: 0; + transform: translateY(-100%); &-content { - box-shadow: -2px -2px 5px fade(@black, 6%); - transform: translateY((@popover-arrow-rotate-width / 2)) rotate(45deg); + box-shadow: 2px 2px 5px fade(@black, 6%); + transform: translateY((@popover-arrow-rotate-width / 2)) rotate(-135deg); } } &-placement-bottom &-arrow { left: 50%; - transform: translateX(-50%); + transform: translateY(-100%) translateX(-50%); } &-placement-bottomLeft &-arrow { @@ -210,17 +223,18 @@ &-placement-left &-arrow, &-placement-leftTop &-arrow, &-placement-leftBottom &-arrow { - right: @popover-distance - @popover-arrow-rotate-width; + right: 0; + transform: translateX(100%); &-content { - box-shadow: 3px -3px 7px fade(@black, 7%); - transform: translateX((-@popover-arrow-rotate-width / 2)) rotate(45deg); + box-shadow: 3px 3px 7px fade(@black, 7%); + transform: translateX((-@popover-arrow-rotate-width / 2)) rotate(-45deg); } } &-placement-left &-arrow { top: 50%; - transform: translateY(-50%); + transform: translateX(100%) translateY(-50%); } &-placement-leftTop &-arrow { diff --git a/components/popover/style/patch.less b/components/popover/style/patch.less new file mode 100644 index 00000000..af9afde4 --- /dev/null +++ b/components/popover/style/patch.less @@ -0,0 +1,3 @@ +.ant-popover { + position: relative; +} diff --git a/components/progress/style/index.less b/components/progress/style/index.less index dfde2fcb..9ba99143 100644 --- a/components/progress/style/index.less +++ b/components/progress/style/index.less @@ -16,11 +16,13 @@ &-steps { display: inline-block; + &-outer { display: flex; flex-direction: row; align-items: center; } + &-item { flex-shrink: 0; min-width: 2px; @@ -180,6 +182,7 @@ color: @error-color; } } + &-circle&-status-success { .@{progress-prefix-cls}-text { color: @success-color; @@ -192,10 +195,12 @@ transform: translateX(-100%) scaleX(0); opacity: 0.1; } + 20% { transform: translateX(-100%) scaleX(0); opacity: 0.5; } + 100% { transform: translateX(0) scaleX(1); opacity: 0; diff --git a/components/radio/style/entry.less b/components/radio/style/entry.less index 84d0bb2d..96cebe33 100644 --- a/components/radio/style/entry.less +++ b/components/radio/style/entry.less @@ -1 +1,2 @@ -@import './index.less'; \ No newline at end of file +@import './index.less'; +@import './patch.less'; diff --git a/components/radio/style/index.less b/components/radio/style/index.less index dcfad580..35780159 100644 --- a/components/radio/style/index.less +++ b/components/radio/style/index.less @@ -5,7 +5,7 @@ @radio-group-prefix-cls: ~'@{radio-prefix-cls}-group'; @radio-inner-prefix-cls: ~'@{radio-prefix-cls}-inner'; @radio-duration: 0.3s; -@radio-focus-shadow: 0 0 0 3px fade(@radio-dot-color, 8%); +@radio-focus-shadow: 0 0 0 3px @primary-1; @radio-button-focus-shadow: @radio-focus-shadow; .@{radio-group-prefix-cls} { @@ -32,12 +32,23 @@ margin-right: @radio-wrapper-margin-right; cursor: pointer; + &-disabled { + cursor: not-allowed; + } + &::after { display: inline-block; width: 0; overflow: hidden; content: '\a0'; } + + &&-in-form-item { + input[type='radio'] { + width: 14px; + height: 14px; + } + } } .@{radio-prefix-cls} { @@ -81,15 +92,17 @@ &-inner { &::after { position: absolute; - top: ((@radio-size - @radio-dot-size) / 2) - @radio-border-width; - left: ((@radio-size - @radio-dot-size) / 2) - @radio-border-width; + top: 50%; + left: 50%; display: block; - width: @radio-dot-size; - height: @radio-dot-size; + width: @radio-size; + height: @radio-size; + margin-top: -(@radio-size / 2); + margin-left: -(@radio-size / 2); background-color: @radio-dot-color; border-top: 0; border-left: 0; - border-radius: @radio-dot-size; + border-radius: @radio-size; transform: scale(0); opacity: 0; transition: all @radio-duration @ease-in-out-circ; @@ -126,8 +139,9 @@ .@{radio-prefix-cls}-checked { .@{radio-inner-prefix-cls} { border-color: @radio-dot-color; + &::after { - transform: scale(1); + transform: scale((unit(@radio-dot-size) / unit(@radio-size))); opacity: 1; transition: all @radio-duration @ease-in-out-circ; } @@ -141,6 +155,7 @@ background-color: @input-disabled-bg; border-color: @border-color-base !important; cursor: not-allowed; + &::after { background-color: @radio-dot-disabled-color; } @@ -166,7 +181,7 @@ span.@{radio-prefix-cls} + * { display: inline-block; height: @btn-height-base; margin: 0; - padding: 0 @padding-md - 1px; + padding: 0 @radio-button-padding-horizontal; color: @radio-button-color; font-size: @font-size-base; line-height: @btn-height-base - 2px; @@ -268,6 +283,7 @@ span.@{radio-prefix-cls} + * { &:hover { color: @radio-button-hover-color; border-color: @radio-button-hover-color; + &::before { background-color: @radio-button-hover-color; } @@ -276,6 +292,7 @@ span.@{radio-prefix-cls} + * { &:active { color: @radio-button-active-color; border-color: @radio-button-active-color; + &::before { background-color: @radio-button-active-color; } @@ -290,16 +307,19 @@ span.@{radio-prefix-cls} + * { color: @radio-solid-checked-color; background: @radio-dot-color; border-color: @radio-dot-color; + &:hover { color: @radio-solid-checked-color; background: @radio-button-hover-color; border-color: @radio-button-hover-color; } + &:active { color: @radio-solid-checked-color; background: @radio-button-active-color; border-color: @radio-button-active-color; } + &:focus-within { box-shadow: @radio-button-focus-shadow; } @@ -317,6 +337,7 @@ span.@{radio-prefix-cls} + * { background-color: @input-disabled-bg; border-color: @border-color-base; } + &:first-child { border-left-color: @border-color-base; } @@ -335,6 +356,7 @@ span.@{radio-prefix-cls} + * { transform: scale(1); opacity: 0.5; } + 100% { transform: scale(1.6); opacity: 0; diff --git a/components/radio/style/patch.less b/components/radio/style/patch.less new file mode 100644 index 00000000..230ff736 --- /dev/null +++ b/components/radio/style/patch.less @@ -0,0 +1,5 @@ +.ant-radio + span { + &:empty { + display: none; + } +} diff --git a/components/rate/style/entry.less b/components/rate/style/entry.less index 06547c43..f0173634 100644 --- a/components/rate/style/entry.less +++ b/components/rate/style/entry.less @@ -1 +1,3 @@ @import './index.less'; +// style dependencies +@import '../../tooltip/style/entry.less'; diff --git a/components/rate/style/index.less b/components/rate/style/index.less index fe438ef3..c6d26df0 100644 --- a/components/rate/style/index.less +++ b/components/rate/style/index.less @@ -17,7 +17,8 @@ &-disabled &-star { cursor: default; - &:hover { + + > div:hover { transform: scale(1); } } @@ -35,8 +36,7 @@ > div { transition: all 0.3s, outline 0s; - &:hover, - &:focus-visible { + &:hover { transform: @rate-star-hover-scale; } @@ -46,6 +46,7 @@ &:focus-visible { outline: 1px dashed @rate-star-color; + transform: @rate-star-hover-scale; } } diff --git a/components/rate/style/index.tsx b/components/rate/style/index.tsx new file mode 100644 index 00000000..3a3ab0de --- /dev/null +++ b/components/rate/style/index.tsx @@ -0,0 +1,2 @@ +import '../../style/index.less'; +import './index.less'; diff --git a/components/result/style/entry.less b/components/result/style/entry.less index 06547c43..791d9712 100644 --- a/components/result/style/entry.less +++ b/components/result/style/entry.less @@ -1 +1,2 @@ -@import './index.less'; +@import "./index.less"; +@import "./patch.less"; diff --git a/components/result/style/index.less b/components/result/style/index.less index f8e80057..78cb70b8 100644 --- a/components/result/style/index.less +++ b/components/result/style/index.less @@ -1,4 +1,4 @@ -@import '../../style/themes/default'; +@import '../../style/themes/index'; @import '../../style/mixins/index'; @result-prefix-cls: ~'@{ant-prefix}-result'; @@ -55,6 +55,7 @@ &-extra { margin: @result-extra-margin; text-align: center; + > * { margin-right: 8px; diff --git a/components/result/style/patch.less b/components/result/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/result/style/rtl.less b/components/result/style/rtl.less index 3b286b74..a2eea06d 100644 --- a/components/result/style/rtl.less +++ b/components/result/style/rtl.less @@ -1,4 +1,4 @@ -@import '../../style/themes/default'; +@import '../../style/themes/index'; @import '../../style/mixins/index'; @result-prefix-cls: ~'@{ant-prefix}-result'; diff --git a/components/segmented/style/entry.less b/components/segmented/style/entry.less new file mode 100644 index 00000000..e69de29b diff --git a/components/segmented/style/index.less b/components/segmented/style/index.less new file mode 100644 index 00000000..e9fb3bbf --- /dev/null +++ b/components/segmented/style/index.less @@ -0,0 +1,122 @@ +@import '../../style/themes/index'; +@import '../../style/mixins/index'; +@import './mixins.less'; + +@segmented-prefix-cls: ~'@{ant-prefix}-segmented'; + +@segmented-container-padding: 2px; + +.@{segmented-prefix-cls} { + .reset-component(); + display: inline-block; + padding: @segmented-container-padding; + color: @segmented-label-color; + background-color: @segmented-bg; + border-radius: @border-radius-base; + transition: all 0.3s @ease-in-out; + + &-group { + position: relative; + display: flex; + align-items: stretch; + justify-items: flex-start; + width: 100%; + } + + // block styles + &&-block { + display: flex; + } + + &&-block &-item { + flex: 1; + min-width: 0; + } + + // hover/focus styles + &:not(&-disabled) { + &:hover, + &:focus { + background-color: @segmented-hover-bg; + } + } + + // item styles + &-item { + position: relative; + text-align: center; + cursor: pointer; + transition: color 0.3s @ease-in-out; + + &-selected { + .segmented-item-selected(); + color: @segmented-label-hover-color; + } + + &:hover, + &:focus { + color: @segmented-label-hover-color; + } + + &-label { + min-height: @input-height-base - @segmented-container-padding * 2; + padding: 0 @input-padding-horizontal-base; + line-height: @input-height-base - @segmented-container-padding * 2; + .segmented-text-ellipsis(); + } + + // syntactic sugar to add `icon` for Segmented Item + &-icon + * { + margin-left: (@margin-sm / 2); + } + + &-input { + position: absolute; + top: 0; + left: 0; + width: 0; + height: 0; + opacity: 0; + pointer-events: none; + } + } + + // size styles + &&-lg &-item-label { + min-height: @input-height-lg - @segmented-container-padding * 2; + padding: 0 @input-padding-horizontal-lg; + font-size: @font-size-lg; + line-height: @input-height-lg - @segmented-container-padding * 2; + } + + &&-sm &-item-label { + min-height: @input-height-sm - @segmented-container-padding * 2; + padding: 0 @input-padding-horizontal-sm; + line-height: @input-height-sm - @segmented-container-padding * 2; + } + + // disabled styles + &-item-disabled { + .segmented-disabled-item(); + } + + // thumb styles + &-thumb { + .segmented-item-selected(); + + position: absolute; + top: 0; + left: 0; + width: 0; + height: 100%; + padding: 4px 0; + } + + // transition effect when `appear-active` + &-thumb-motion-appear-active { + transition: transform 0.3s @ease-in-out, width 0.3s @ease-in-out; + will-change: transform, width; + } +} + +@import './rtl'; diff --git a/components/segmented/style/mixins.less b/components/segmented/style/mixins.less new file mode 100644 index 00000000..0c6839af --- /dev/null +++ b/components/segmented/style/mixins.less @@ -0,0 +1,24 @@ +// mixins +.segmented-disabled-item { + &, + &:hover, + &:focus { + color: @disabled-color; + cursor: not-allowed; + } +} + +.segmented-item-selected { + background-color: @segmented-selected-bg; + border-radius: @border-radius-base; + box-shadow: 0 2px 8px -2px fade(@black, 5%), 0 1px 4px -1px fade(@black, 7%), + 0 0 1px 0 fade(@black, 8%); +} + +.segmented-text-ellipsis { + overflow: hidden; + // handle text ellipsis + white-space: nowrap; + text-overflow: ellipsis; + word-break: keep-all; +} diff --git a/components/segmented/style/rtl.less b/components/segmented/style/rtl.less new file mode 100644 index 00000000..c459bf03 --- /dev/null +++ b/components/segmented/style/rtl.less @@ -0,0 +1,15 @@ +@import '../../style/themes/index'; +@import '../../style/mixins/index'; + +@segmented-prefix-cls: ~'@{ant-prefix}-segmented'; + +.@{segmented-prefix-cls} { + &&-rtl { + direction: rtl; + } + + &&-rtl &-item-icon { + margin-right: 0; + margin-left: 6px; + } +} diff --git a/components/select/style/entry.less b/components/select/style/entry.less index 06547c43..3252a762 100644 --- a/components/select/style/entry.less +++ b/components/select/style/entry.less @@ -1 +1,4 @@ @import './index.less'; +// style dependencies +@import '../../empty/style/entry.less'; +@import './patch.less'; diff --git a/components/select/style/index.less b/components/select/style/index.less index ae998c7a..474101f2 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -1,9 +1,9 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; @import '../../input/style/mixin'; - @import './single'; @import './multiple'; +@import './status'; @select-prefix-cls: ~'@{ant-prefix}-select'; @select-height-without-border: @input-height-base - 2 * @border-width-base; @@ -13,7 +13,7 @@ position: relative; background-color: @select-background; border: @border-width-base @border-style-base @select-border-color; - border-radius: @border-radius-base; + border-radius: @control-border-radius; transition: all 0.3s @ease-in-out; input { @@ -59,6 +59,7 @@ &::-webkit-search-cancel-button { display: none; + /* stylelint-disable-next-line property-no-vendor-prefix */ -webkit-appearance: none; } } @@ -83,6 +84,7 @@ &-selection-item { flex: 1; overflow: hidden; + font-weight: normal; white-space: nowrap; text-overflow: ellipsis; @@ -119,7 +121,8 @@ position: absolute; top: 50%; right: @control-padding-horizontal - 1px; - width: @font-size-sm; + display: flex; + align-items: center; height: @font-size-sm; margin-top: (-@font-size-sm / 2); color: @disabled-color; @@ -144,6 +147,10 @@ .@{select-prefix-cls}-disabled & { cursor: not-allowed; } + + > *:not(:last-child) { + margin-inline-end: @padding-xs; + } } // ========================== Clear ========================== @@ -167,9 +174,11 @@ opacity: 0; transition: color 0.3s ease, opacity 0.15s ease; text-rendering: auto; + &::before { display: block; } + &:hover { color: @text-color-secondary; } @@ -312,6 +321,10 @@ border-color: transparent !important; box-shadow: none !important; } + + &&-in-form-item { + width: 100%; + } } @import './rtl'; diff --git a/components/select/style/multiple.less b/components/select/style/multiple.less index 737c30b7..e9f2fc2f 100644 --- a/components/select/style/multiple.less +++ b/components/select/style/multiple.less @@ -1,4 +1,5 @@ -@import './index'; +@import (reference) '../../style/themes/index'; +@select-prefix-cls: ~'@{ant-prefix}-select'; @select-overflow-prefix-cls: ~'@{select-prefix-cls}-selection-overflow'; @select-multiple-item-border-width: 1px; @@ -109,7 +110,7 @@ cursor: pointer; > .@{iconfont-css-prefix} { - vertical-align: -0.2em; + vertical-align: middle; } &:hover { @@ -128,8 +129,6 @@ .@{select-prefix-cls}-selection-search { position: relative; max-width: 100%; - margin-top: @select-multiple-item-spacing-half; - margin-bottom: @select-multiple-item-spacing-half; margin-inline-start: @input-padding-horizontal-base - @input-padding-vertical-base; &-input, diff --git a/components/select/style/patch.less b/components/select/style/patch.less new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/components/select/style/patch.less @@ -0,0 +1 @@ + diff --git a/components/select/style/single.less b/components/select/style/single.less index e70052a1..500dd729 100644 --- a/components/select/style/single.less +++ b/components/select/style/single.less @@ -1,4 +1,5 @@ -@import './index'; +@import (reference) '../../style/themes/index'; +@select-prefix-cls: ~'@{ant-prefix}-select'; @selection-item-padding: ceil(@font-size-base * 1.25); @@ -39,14 +40,15 @@ } .@{select-prefix-cls}-selection-placeholder { + transition: none; pointer-events: none; } // For common baseline align &::after, - // For '' value baseline align + /* For '' value baseline align */ .@{select-prefix-cls}-selection-item::after, - // For undefined value baseline align + /* For undefined value baseline align */ .@{select-prefix-cls}-selection-placeholder::after { display: inline-block; width: 0; diff --git a/components/select/style/status.less b/components/select/style/status.less new file mode 100644 index 00000000..a746a04f --- /dev/null +++ b/components/select/style/status.less @@ -0,0 +1,48 @@ +@import '../../input/style/mixin'; + +@select-prefix-cls: ~'@{ant-prefix}-select'; + +.select-status-color( + @text-color; + @border-color; + @background-color; + @hoverBorderColor; + @outlineColor; +) { + &.@{select-prefix-cls}:not(.@{select-prefix-cls}-disabled):not(.@{select-prefix-cls}-customize-input) { + .@{select-prefix-cls}-selector { + background-color: @background-color; + border-color: @border-color !important; + } + &.@{select-prefix-cls}-open .@{select-prefix-cls}-selector, + &.@{select-prefix-cls}-focused .@{select-prefix-cls}-selector { + .active(@border-color, @hoverBorderColor, @outlineColor); + } + } +} + +.@{select-prefix-cls} { + &-status-error { + .select-status-color(@error-color, @error-color, @select-background, @error-color-hover, @error-color-outline); + } + + &-status-warning { + .select-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline); + } + + &-status-error, + &-status-warning, + &-status-success, + &-status-validating { + &.@{select-prefix-cls}-has-feedback { + //.@{prefix-cls}-arrow, + .@{select-prefix-cls}-clear { + right: 32px; + } + + .@{select-prefix-cls}-selection-selected-value { + padding-right: 42px; + } + } + } +} diff --git a/components/skeleton/style/index.less b/components/skeleton/style/index.less index 39e31053..c4ca85b5 100644 --- a/components/skeleton/style/index.less +++ b/components/skeleton/style/index.less @@ -109,6 +109,19 @@ } } + // Skeleton Block Button, Input + &.@{skeleton-prefix-cls}-block { + width: 100%; + + .@{skeleton-button-prefix-cls} { + width: 100%; + } + + .@{skeleton-input-prefix-cls} { + width: 100%; + } + } + // Skeleton element &-element { display: inline-block; @@ -214,10 +227,12 @@ .skeleton-element-button-size(@size) { width: @size * 2; + min-width: @size * 2; .skeleton-element-common-size(@size); &.@{skeleton-button-prefix-cls}-circle { width: @size; + min-width: @size; border-radius: 50%; } @@ -227,7 +242,8 @@ } .skeleton-element-input-size(@size) { - width: 100%; + width: @size * 5; + min-width: @size * 5; .skeleton-element-common-size(@size); } @@ -260,6 +276,7 @@ 0% { background-position: 100% 50%; } + 100% { background-position: 0 50%; } diff --git a/components/skeleton/style/rtl.less b/components/skeleton/style/rtl.less index dabe8b35..8ba4be37 100644 --- a/components/skeleton/style/rtl.less +++ b/components/skeleton/style/rtl.less @@ -41,6 +41,7 @@ 0% { background-position: 0% 50%; } + 100% { background-position: 100% 50%; } diff --git a/components/slider/style/entry.less b/components/slider/style/entry.less index 06547c43..f0173634 100644 --- a/components/slider/style/entry.less +++ b/components/slider/style/entry.less @@ -1 +1,3 @@ @import './index.less'; +// style dependencies +@import '../../tooltip/style/entry.less'; diff --git a/components/slider/style/index.less b/components/slider/style/index.less index 13ea3a2c..98b7685e 100644 --- a/components/slider/style/index.less +++ b/components/slider/style/index.less @@ -49,9 +49,12 @@ transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); - &-dragging&-dragging&-dragging { - border-color: @slider-handle-color-focus; - box-shadow: 0 0 0 5px @slider-handle-color-focus-shadow; + // &-dragging&-dragging&-dragging { + // border-color: @slider-handle-color-focus; + // box-shadow: 0 0 0 5px @slider-handle-color-focus-shadow; + // } + &-dragging { + z-index: 1; } &:focus { @@ -104,6 +107,7 @@ width: 100%; height: 4px; background: transparent; + pointer-events: none; } &-dot { @@ -111,18 +115,11 @@ top: -2px; width: 8px; height: 8px; - margin-left: -4px; background-color: @component-background; border: 2px solid @slider-dot-border-color; border-radius: 50%; cursor: pointer; - &:first-child { - margin-left: -4px; - } - &:last-child { - margin-left: -4px; - } &-active { border-color: @slider-dot-border-color-active; } @@ -131,6 +128,10 @@ &-disabled { cursor: not-allowed; + .@{slider-prefix-cls}-rail { + background-color: @slider-rail-background-color !important; + } + .@{slider-prefix-cls}-track { background-color: @slider-disabled-color !important; } @@ -190,8 +191,7 @@ .@{slider-prefix-cls}-dot { top: auto; - left: 2px; - margin-bottom: -4px; + margin-left: -2px; } } diff --git a/components/slider/style/rtl.less b/components/slider/style/rtl.less index 7dde8a90..d78a54a8 100644 --- a/components/slider/style/rtl.less +++ b/components/slider/style/rtl.less @@ -14,27 +14,6 @@ left: auto; } } - - &-dot { - .@{slider-prefix-cls}-rtl & { - margin-right: -4px; - margin-left: 0; - } - - &:first-child { - .@{slider-prefix-cls}-rtl & { - margin-right: -4px; - margin-left: 0; - } - } - - &:last-child { - .@{slider-prefix-cls}-rtl & { - margin-right: -4px; - margin-left: 0; - } - } - } } .vertical() { diff --git a/components/space/style/entry.less b/components/space/style/entry.less index 84d0bb2d..85545241 100644 --- a/components/space/style/entry.less +++ b/components/space/style/entry.less @@ -1 +1,2 @@ -@import './index.less'; \ No newline at end of file +@import './index.less'; +@import './patch.less'; \ No newline at end of file diff --git a/components/space/style/index.less b/components/space/style/index.less index c73c6698..842554ca 100644 --- a/components/space/style/index.less +++ b/components/space/style/index.less @@ -6,6 +6,7 @@ .@{space-prefix-cls} { display: inline-flex; + &-vertical { flex-direction: column; } @@ -14,12 +15,15 @@ &-center { align-items: center; } + &-start { align-items: flex-start; } + &-end { align-items: flex-end; } + &-baseline { align-items: baseline; } diff --git a/components/space/style/patch.less b/components/space/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/spin/style/entry.less b/components/spin/style/entry.less index 06547c43..96cebe33 100644 --- a/components/spin/style/entry.less +++ b/components/spin/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/spin/style/index.less b/components/spin/style/index.less index c64d29ea..2dee02e2 100644 --- a/components/spin/style/index.less +++ b/components/spin/style/index.less @@ -99,7 +99,6 @@ &-blur { clear: both; - overflow: hidden; opacity: 0.5; user-select: none; pointer-events: none; @@ -142,16 +141,19 @@ top: 0; left: 0; } + &:nth-child(2) { top: 0; right: 0; animation-delay: 0.4s; } + &:nth-child(3) { right: 0; bottom: 0; animation-delay: 0.8s; } + &:nth-child(4) { bottom: 0; left: 0; @@ -160,7 +162,7 @@ } &-spin { - transform: rotate(45deg); + transform: rotate(0deg); animation: antRotate 1.2s infinite linear; } } @@ -209,7 +211,7 @@ @keyframes antRotate { to { - transform: rotate(405deg); + transform: rotate(360deg); } } diff --git a/components/spin/style/patch.less b/components/spin/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/steps/style/index.less b/components/steps/style/index.less index c439b30f..a57ecd11 100644 --- a/components/steps/style/index.less +++ b/components/steps/style/index.less @@ -74,6 +74,7 @@ line-height: 1; } } + &-tail { position: absolute; top: 12px; @@ -91,6 +92,7 @@ content: ''; } } + &-title { position: relative; display: inline-block; @@ -110,6 +112,7 @@ content: ''; } } + &-subtitle { display: inline; margin-left: 8px; @@ -117,18 +120,21 @@ font-weight: normal; font-size: @font-size-base; } + &-description { color: @text-color-secondary; font-size: @font-size-base; } .step-item-status(wait); .step-item-status(process); + &-process > &-container > &-icon { background: @process-icon-color; .@{steps-prefix-cls}-icon { color: @process-icon-text-color; } } + &-process > &-container > &-title { font-weight: 500; } @@ -197,9 +203,11 @@ &:last-child .@{steps-prefix-cls}-item-title { padding-right: 0; } + &-tail { display: none; } + &-description { max-width: @steps-description-max-width; white-space: normal; @@ -224,6 +232,7 @@ } &-@{status} > &-container > &-content > &-title { color: @@title-color; + &::after { background-color: @@tail-color; } diff --git a/components/steps/style/label-placement.less b/components/steps/style/label-placement.less index 606ba088..a1bfd9b2 100644 --- a/components/steps/style/label-placement.less +++ b/components/steps/style/label-placement.less @@ -1,27 +1,33 @@ .@{steps-prefix-cls}-label-vertical { .@{steps-prefix-cls}-item { overflow: visible; + &-tail { margin-left: 58px; padding: 3.5px 24px; } + &-content { display: block; width: ((@steps-icon-size / 2) + 42px) * 2; margin-top: 8px; text-align: center; } + &-icon { display: inline-block; margin-left: 42px; } + &-title { padding-right: 0; padding-left: 0; + &::after { display: none; } } + &-subtitle { display: block; margin-bottom: 4px; diff --git a/components/steps/style/nav.less b/components/steps/style/nav.less index d72039a6..0c39fa6f 100644 --- a/components/steps/style/nav.less +++ b/components/steps/style/nav.less @@ -41,6 +41,7 @@ &:not(.@{steps-prefix-cls}-item-active) { .@{steps-prefix-cls}-item-container[role='button'] { cursor: pointer; + &:hover { opacity: 0.85; } @@ -49,6 +50,7 @@ &:last-child { flex: 1; + &::after { display: none; } @@ -93,6 +95,7 @@ .@{steps-prefix-cls}-navigation.@{steps-prefix-cls}-vertical { > .@{steps-prefix-cls}-item { margin-right: 0 !important; + &::before { display: none; } @@ -104,6 +107,7 @@ width: 3px; height: calc(100% - 24px); } + &::after { position: relative; top: -2px; @@ -120,3 +124,11 @@ } } } + +.@{steps-prefix-cls}-navigation.@{steps-prefix-cls}-horizontal { + > .@{steps-prefix-cls}-item + > .@{steps-prefix-cls}-item-container + > .@{steps-prefix-cls}-item-tail { + visibility: hidden; + } +} diff --git a/components/steps/style/progress-dot.less b/components/steps/style/progress-dot.less index 2c9dcb40..a3bd3417 100644 --- a/components/steps/style/progress-dot.less +++ b/components/steps/style/progress-dot.less @@ -4,6 +4,7 @@ &-title { line-height: @line-height-base; } + &-tail { top: @steps-dot-top; width: 100%; @@ -19,6 +20,7 @@ &:first-child .@{steps-prefix-cls}-icon-dot { left: 2px; } + &-icon { width: @steps-dot-size; height: @steps-dot-size; @@ -35,6 +37,7 @@ height: 100%; border-radius: 100px; transition: all 0.3s; + /* expand hover area */ &::after { position: absolute; @@ -47,6 +50,7 @@ } } } + &-content { width: @steps-description-max-width; } @@ -68,17 +72,31 @@ .@{steps-prefix-cls}-vertical.@{steps-prefix-cls}-dot { .@{steps-prefix-cls}-item-icon { - margin-top: 8px; + margin-top: 13px; margin-left: 0; background: none; } + // https://github.com/ant-design/ant-design/issues/18354 .@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail { - top: 2px; + top: 6.5px; left: -9px; margin: 0; padding: 22px 0 4px; } + + &.@{steps-prefix-cls}-small { + .@{steps-prefix-cls}-item-icon { + margin-top: 10px; + } + + .@{steps-prefix-cls}-item + > .@{steps-prefix-cls}-item-container + > .@{steps-prefix-cls}-item-tail { + top: 3.5px; + } + } + .@{steps-prefix-cls}-item:first-child .@{steps-prefix-cls}-icon-dot { left: 0; } @@ -89,6 +107,7 @@ .@{steps-prefix-cls}-item-container .@{steps-prefix-cls}-item-icon .@{steps-prefix-cls}-icon-dot { - left: -2px; + top: -1px; + left: -1px; } } diff --git a/components/steps/style/rtl.less b/components/steps/style/rtl.less index 47f9dfbc..53a66e71 100644 --- a/components/steps/style/rtl.less +++ b/components/steps/style/rtl.less @@ -25,6 +25,14 @@ padding-left: 16px; } + .@{steps-prefix-cls}-item-subtitle { + .@{steps-prefix-cls}-rtl & { + float: left; + margin-right: 8px; + margin-left: 0; + } + } + &::after { .@{steps-prefix-cls}-rtl & { right: 100%; @@ -46,6 +54,7 @@ padding-right: 0; } } + &:last-child .@{steps-prefix-cls}-item-title { .@{steps-prefix-cls}-rtl& { padding-left: 0; @@ -86,6 +95,7 @@ margin-left: 0; text-align: right; } + .@{steps-prefix-cls}-item-title { .@{steps-prefix-cls}-rtl& { padding-left: 0; @@ -187,12 +197,14 @@ } } } + &:first-child .@{steps-prefix-cls}-icon-dot { .@{steps-prefix-cls}-rtl& { right: 2px; left: auto; } } + &-icon { .@{steps-prefix-cls}-rtl& { margin-right: 67px; @@ -203,6 +215,7 @@ .@{steps-prefix-cls}-rtl& { float: right; } + /* expand hover area */ &::after { .@{steps-prefix-cls}-rtl& { @@ -222,6 +235,7 @@ margin-left: 16px; } } + // https://github.com/ant-design/ant-design/issues/18354 .@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail { .@{steps-prefix-cls}-rtl& { @@ -229,12 +243,14 @@ left: auto; } } + .@{steps-prefix-cls}-item:first-child .@{steps-prefix-cls}-icon-dot { .@{steps-prefix-cls}-rtl& { right: 0; left: auto; } } + .@{steps-prefix-cls}-item-process .@{steps-prefix-cls}-icon-dot { .@{steps-prefix-cls}-rtl& { right: -2px; @@ -245,7 +261,11 @@ // RTL Steps with progress .@{steps-prefix-cls}-rtl.@{steps-prefix-cls}-with-progress.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal { - .@{steps-prefix-cls}-item:first-child.@{steps-prefix-cls}-item-active { + .@{steps-prefix-cls}-item:first-child { padding-right: 4px; + padding-left: 0; + &.@{steps-prefix-cls}-item-active { + padding-right: 4px; + } } } diff --git a/components/steps/style/small.less b/components/steps/style/small.less index 344e37ae..329e5984 100644 --- a/components/steps/style/small.less +++ b/components/steps/style/small.less @@ -20,6 +20,7 @@ padding-right: 12px; font-size: @font-size-base; line-height: @steps-small-icon-size; + &::after { top: (@steps-small-icon-size / 2); } diff --git a/components/style/aliyun.less b/components/style/aliyun.less index 871443a5..23d1037a 100644 --- a/components/style/aliyun.less +++ b/components/style/aliyun.less @@ -1,2 +1,4 @@ +@root-entry-name: default; + @import './themes/aliyun.less'; @import './core/index'; diff --git a/components/style/compact.less b/components/style/compact.less index 0ba5144b..ef0008ba 100644 --- a/components/style/compact.less +++ b/components/style/compact.less @@ -1,2 +1,4 @@ +@root-entry-name: default; + @import './themes/compact.less'; @import './core/index'; diff --git a/components/style/core/global.less b/components/style/core/global.less index f1bbd8b0..cb26cce3 100644 --- a/components/style/core/global.less +++ b/components/style/core/global.less @@ -1,4 +1,4 @@ -/* stylelint-disable at-rule-no-unknown */ +/* stylelint-disable property-no-vendor-prefix, at-rule-no-vendor-prefix */ // Reboot // @@ -199,6 +199,7 @@ sup { sub { bottom: -0.25em; } + sup { top: -0.5em; } @@ -280,10 +281,6 @@ img { border-style: none; // remove the border on images inside links in IE 10-. } -svg:not(:root) { - overflow: hidden; // Hide the overflow in IE -} - // Avoid 300ms click delay on touch devices that support the `touch-action` CSS property. // // In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11 diff --git a/components/style/core/iconfont.less b/components/style/core/iconfont.less index 5276148c..f257f569 100644 --- a/components/style/core/iconfont.less +++ b/components/style/core/iconfont.less @@ -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; } diff --git a/components/style/core/motion.less b/components/style/core/motion.less index 730c6936..286d50eb 100644 --- a/components/style/core/motion.less +++ b/components/style/core/motion.less @@ -1,4 +1,4 @@ -@import '../mixins/motion'; +// @import '../mixins/motion'; This has moved to theme/xxx inside. @import 'motion/fade'; @import 'motion/move'; @import 'motion/other'; @@ -8,6 +8,7 @@ // For common/openAnimation .ant-motion-collapse-legacy { overflow: hidden; + &-active { transition: height @animation-duration-base @ease-in-out, opacity @animation-duration-base @ease-in-out !important; diff --git a/components/style/core/motion/fade.less b/components/style/core/motion/fade.less index c703b597..f4a9513b 100644 --- a/components/style/core/motion/fade.less +++ b/components/style/core/motion/fade.less @@ -17,6 +17,7 @@ 0% { opacity: 0; } + 100% { opacity: 1; } @@ -26,6 +27,7 @@ 0% { opacity: 1; } + 100% { opacity: 0; } diff --git a/components/style/core/motion/move.less b/components/style/core/motion/move.less index e7972d77..733f26d7 100644 --- a/components/style/core/motion/move.less +++ b/components/style/core/motion/move.less @@ -22,6 +22,7 @@ transform-origin: 0 0; opacity: 0; } + 100% { transform: translateY(0%); transform-origin: 0 0; @@ -35,6 +36,7 @@ transform-origin: 0 0; opacity: 1; } + 100% { transform: translateY(100%); transform-origin: 0 0; @@ -48,6 +50,7 @@ transform-origin: 0 0; opacity: 0; } + 100% { transform: translateX(0%); transform-origin: 0 0; @@ -61,6 +64,7 @@ transform-origin: 0 0; opacity: 1; } + 100% { transform: translateX(-100%); transform-origin: 0 0; @@ -74,6 +78,7 @@ transform-origin: 0 0; opacity: 0; } + 100% { transform: translateX(0%); transform-origin: 0 0; @@ -87,6 +92,7 @@ transform-origin: 0 0; opacity: 1; } + 100% { transform: translateX(100%); transform-origin: 0 0; @@ -100,6 +106,7 @@ transform-origin: 0 0; opacity: 0; } + 100% { transform: translateY(0%); transform-origin: 0 0; @@ -113,6 +120,7 @@ transform-origin: 0 0; opacity: 1; } + 100% { transform: translateY(-100%); transform-origin: 0 0; diff --git a/components/style/core/motion/slide.less b/components/style/core/motion/slide.less index f838c6e4..17de58c2 100644 --- a/components/style/core/motion/slide.less +++ b/components/style/core/motion/slide.less @@ -22,6 +22,7 @@ transform-origin: 0% 0%; opacity: 0; } + 100% { transform: scaleY(1); transform-origin: 0% 0%; @@ -35,6 +36,7 @@ transform-origin: 0% 0%; opacity: 1; } + 100% { transform: scaleY(0.8); transform-origin: 0% 0%; @@ -48,6 +50,7 @@ transform-origin: 100% 100%; opacity: 0; } + 100% { transform: scaleY(1); transform-origin: 100% 100%; @@ -61,6 +64,7 @@ transform-origin: 100% 100%; opacity: 1; } + 100% { transform: scaleY(0.8); transform-origin: 100% 100%; @@ -74,6 +78,7 @@ transform-origin: 0% 0%; opacity: 0; } + 100% { transform: scaleX(1); transform-origin: 0% 0%; @@ -87,6 +92,7 @@ transform-origin: 0% 0%; opacity: 1; } + 100% { transform: scaleX(0.8); transform-origin: 0% 0%; @@ -100,6 +106,7 @@ transform-origin: 100% 0%; opacity: 0; } + 100% { transform: scaleX(1); transform-origin: 100% 0%; @@ -113,6 +120,7 @@ transform-origin: 100% 0%; opacity: 1; } + 100% { transform: scaleX(0.8); transform-origin: 100% 0%; diff --git a/components/style/core/motion/zoom.less b/components/style/core/motion/zoom.less index 6b4ab046..72739b75 100644 --- a/components/style/core/motion/zoom.less +++ b/components/style/core/motion/zoom.less @@ -33,6 +33,7 @@ transform: scale(0.2); opacity: 0; } + 100% { transform: scale(1); opacity: 1; @@ -43,6 +44,7 @@ 0% { transform: scale(1); } + 100% { transform: scale(0.2); opacity: 0; @@ -54,6 +56,7 @@ transform: scale(0.8); opacity: 0; } + 100% { transform: scale(1); opacity: 1; @@ -64,6 +67,7 @@ 0% { transform: scale(1); } + 100% { transform: scale(0.8); opacity: 0; @@ -76,6 +80,7 @@ transform-origin: 50% 0%; opacity: 0; } + 100% { transform: scale(1); transform-origin: 50% 0%; @@ -87,6 +92,7 @@ transform: scale(1); transform-origin: 50% 0%; } + 100% { transform: scale(0.8); transform-origin: 50% 0%; @@ -100,6 +106,7 @@ transform-origin: 0% 50%; opacity: 0; } + 100% { transform: scale(1); transform-origin: 0% 50%; @@ -111,6 +118,7 @@ transform: scale(1); transform-origin: 0% 50%; } + 100% { transform: scale(0.8); transform-origin: 0% 50%; @@ -124,6 +132,7 @@ transform-origin: 100% 50%; opacity: 0; } + 100% { transform: scale(1); transform-origin: 100% 50%; @@ -135,6 +144,7 @@ transform: scale(1); transform-origin: 100% 50%; } + 100% { transform: scale(0.8); transform-origin: 100% 50%; @@ -148,6 +158,7 @@ transform-origin: 50% 100%; opacity: 0; } + 100% { transform: scale(1); transform-origin: 50% 100%; @@ -159,6 +170,7 @@ transform: scale(1); transform-origin: 50% 100%; } + 100% { transform: scale(0.8); transform-origin: 50% 100%; diff --git a/components/style/dark.less b/components/style/dark.less index d268da20..12a37313 100644 --- a/components/style/dark.less +++ b/components/style/dark.less @@ -1,2 +1,4 @@ +@root-entry-name: default; + @import './themes/dark.less'; @import './core/index'; diff --git a/components/style/default.less b/components/style/default.less new file mode 100644 index 00000000..ecec0845 --- /dev/null +++ b/components/style/default.less @@ -0,0 +1,4 @@ +// This is same as `index.less` but given `root-entry-name` for `dist/antd.less` usage +@root-entry-name: default; + +@import './index'; diff --git a/components/style/entry.less b/components/style/entry.less index 06547c43..96cebe33 100644 --- a/components/style/entry.less +++ b/components/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/style/mixins/clearfix.less b/components/style/mixins/clearfix.less index 0ed35f9c..07e89f80 100644 --- a/components/style/mixins/clearfix.less +++ b/components/style/mixins/clearfix.less @@ -6,6 +6,7 @@ display: table; content: ''; } + &::after { // https://github.com/ant-design/ant-design/issues/21864 display: table; diff --git a/components/style/mixins/compatibility.less b/components/style/mixins/compatibility.less index c4789504..c5fb0dbc 100644 --- a/components/style/mixins/compatibility.less +++ b/components/style/mixins/compatibility.less @@ -3,12 +3,14 @@ // Placeholder text .placeholder(@color: @input-placeholder-color) { // Firefox + /* stylelint-disable-next-line selector-no-vendor-prefix */ &::-moz-placeholder { opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526 } &::placeholder { color: @color; + user-select: none; // https://github.com/ant-design/ant-design/pull/32639 } &:placeholder-shown { diff --git a/components/style/mixins/customize.less b/components/style/mixins/customize.less index e393c8ca..6f6fc186 100644 --- a/components/style/mixins/customize.less +++ b/components/style/mixins/customize.less @@ -64,6 +64,7 @@ .@{table-prefix-cls}-row-expand-icon { border: @popover-border; } + tfoot { > tr { > th, @@ -72,6 +73,7 @@ } } } + thead { > tr { > th { @@ -80,6 +82,7 @@ } } } + tbody { > tr { > td { diff --git a/components/style/mixins/iconfont.less b/components/style/mixins/iconfont.less index 000e1ecd..dd32dd73 100644 --- a/components/style/mixins/iconfont.less +++ b/components/style/mixins/iconfont.less @@ -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; diff --git a/components/style/mixins/index.less b/components/style/mixins/index.less index c36323ed..1da375ec 100644 --- a/components/style/mixins/index.less +++ b/components/style/mixins/index.less @@ -4,10 +4,11 @@ @import 'compatibility'; @import 'clearfix'; @import 'iconfont'; -@import 'motion'; -@import 'reset'; -@import 'operation-unit'; @import 'typography'; @import 'customize'; @import 'box'; @import 'modal-mask'; +@import 'motion'; +@import 'reset'; +@import 'operation-unit'; +@import 'rounded-arrow'; diff --git a/components/style/mixins/modal-mask.less b/components/style/mixins/modal-mask.less index 5a532c52..344bb020 100644 --- a/components/style/mixins/modal-mask.less +++ b/components/style/mixins/modal-mask.less @@ -4,7 +4,7 @@ pointer-events: none; &.@{ant-prefix}-zoom-enter, - &.@{ant-prefix}zoom-appear { + &.@{ant-prefix}-zoom-appear { transform: none; // reset scale avoid mousePosition bug opacity: 0; animation-duration: @animation-duration-slow; diff --git a/components/style/mixins/motion.less b/components/style/mixins/motion.less index 6a4dd036..1e153500 100644 --- a/components/style/mixins/motion.less +++ b/components/style/mixins/motion.less @@ -1,5 +1,3 @@ -@import '../themes/index'; - .motion-common(@duration: @animation-duration-base) { animation-duration: @duration; animation-fill-mode: both; diff --git a/components/style/mixins/operation-unit.less b/components/style/mixins/operation-unit.less index 03ee5f93..2dc85bf1 100644 --- a/components/style/mixins/operation-unit.less +++ b/components/style/mixins/operation-unit.less @@ -1,5 +1,3 @@ -@import '../../style/themes/default'; - .operation-unit() { color: @link-color; text-decoration: none; diff --git a/components/style/mixins/reset.less b/components/style/mixins/reset.less index 2709bb8b..905c16e2 100644 --- a/components/style/mixins/reset.less +++ b/components/style/mixins/reset.less @@ -1,5 +1,3 @@ -@import '../themes/index'; - .reset-component() { box-sizing: border-box; margin: 0; diff --git a/components/style/mixins/rounded-arrow.less b/components/style/mixins/rounded-arrow.less new file mode 100644 index 00000000..96503d4b --- /dev/null +++ b/components/style/mixins/rounded-arrow.less @@ -0,0 +1,43 @@ +.roundedArrow(@width, @outer-radius, @bg-color: var(--antd-arrow-background-color)) { + @corner-height: unit(((@outer-radius) * (1 - 1 / sqrt(2)))); + + @width-without-unit: unit(@width); + @outer-radius-without-unit: unit(@outer-radius); + @inner-radius-without-unit: unit(@arrow-border-radius); + + @a-x: @width-without-unit - @corner-height; + @a-y: 2 * @width-without-unit + @corner-height; + @b-x: @a-x + @outer-radius-without-unit * (1 / sqrt(2)); + @b-y: 2 * @width-without-unit; + @c-x: 2 * @width-without-unit - @inner-radius-without-unit; + @c-y: 2 * @width-without-unit; + @d-x: 2 * @width-without-unit; + @d-y: 2 * @width-without-unit - @inner-radius-without-unit; + @e-x: 2 * @width-without-unit; + @e-y: @f-y + @outer-radius-without-unit * (1 / sqrt(2)); + @f-x: 2 * @width-without-unit + @corner-height; + @f-y: @width-without-unit - @corner-height; + @g-x: @f-x - 1; + @g-y: @f-y; + @h-x: @a-x; + @h-y: @a-y - 1; + + border-radius: 0 0 @arrow-border-radius; + pointer-events: none; + + &::before { + position: absolute; + top: -@width; + left: -@width; + width: @width * 3; + height: @width * 3; + background: @bg-color; + // Hack firefox: https://github.com/ant-design/ant-design/pull/33710#issuecomment-1015287825 + background-repeat: no-repeat; + background-position: ceil(-@width + 1px) ceil(-@width + 1px); + content: ''; + clip-path: path( + 'M @{a-x} @{a-y} A @{outer-radius-without-unit} @{outer-radius-without-unit} 0 0 1 @{b-x} @{b-y} L @{c-x} @{c-y} A @{inner-radius-without-unit} @{inner-radius-without-unit} 0 0 0 @{d-x} @{d-y} L @{e-x} @{e-y} A @{outer-radius-without-unit} @{outer-radius-without-unit} 0 0 1 @{f-x} @{f-y} L @{g-x} @{g-y} L @{h-x} @{h-y} Z' + ); + } +} diff --git a/components/style/patch.less b/components/style/patch.less new file mode 100644 index 00000000..615acc33 --- /dev/null +++ b/components/style/patch.less @@ -0,0 +1,74 @@ +@import './themes/@{root-entry-name}.less'; + +.antblaozr-animate-disabled { + // badge + &.ant-scroll-number-only { + animation: none; + transition: none; + } + + // drawer + &.ant-drawer { + &.ant-drawer-open .ant-drawer-mask { + animation: none; + transition: none; + } + + & > * { + transition: none; + } + } + + // modal + .ant-modal-mask, + .ant-modal { + animation: none; + transition: none; + + &.zoom-enter, + &.zoom-leave, + &.zoom-enter-active, + &.zoom-leave-active { + animation: none; + transition: none; + } + } + + // menu + &.ant-menu { + transition: none; + + .ant-menu-item, + .ant-menu-submenu-title { + transition: none; + } + + .ant-menu-item .anticon, + .ant-menu-submenu-title .anticon { + transition: none; + + & + span { + transition: none; + } + } + } + + // tabs + &.ant-tabs { + .ant-tabs-top-content.ant-tabs-content-animated, + .ant-tabs-bottom-content.ant-tabs-content-animated, + .ant-tabs-top-content > .ant-tabs-tabpane, + .ant-tabs-bottom-content > .ant-tabs-tabpane, + &.ant-tabs-left .ant-tabs-ink-bar-animated, + &.ant-tabs-right .ant-tabs-ink-bar-animated, + &.ant-tabs-top .ant-tabs-ink-bar-animated, + &.ant-tabs-bottom .ant-tabs-ink-bar-animated { + transition: none; + } + } + + // collapse + &.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg { + transition: none; + } +} diff --git a/components/style/themes/aliyun.less b/components/style/themes/aliyun.less index a081a86f..7f920d17 100644 --- a/components/style/themes/aliyun.less +++ b/components/style/themes/aliyun.less @@ -1,5 +1,3 @@ -@import './default.less'; - // Generated by @ant-design/aliyun-theme @font-size-sm: 12px; diff --git a/components/style/themes/compact.less b/components/style/themes/compact.less index 913ec9a5..36d6bbe0 100644 --- a/components/style/themes/compact.less +++ b/components/style/themes/compact.less @@ -269,7 +269,7 @@ @notification-padding-vertical: 12px; @notification-padding-horizontal: 16px; -// Result +// Result // --- @result-title-font-size: 20px; @result-icon-font-size: 64px; diff --git a/components/style/themes/dark.less b/components/style/themes/dark.less index 00ec8c7b..4cfda904 100644 --- a/components/style/themes/dark.less +++ b/components/style/themes/dark.less @@ -320,6 +320,17 @@ @table-filter-dropdown-bg: @popover-background; @table-expand-icon-bg: transparent; +// Tag +// --- +@info-color-deprecated-bg: @primary-1; +@info-color-deprecated-border: @primary-3; +@success-color-deprecated-bg: @green-1; +@success-color-deprecated-border: @green-3; +@warning-color-deprecated-bg: @orange-1; +@warning-color-deprecated-border: @orange-3; +@error-color-deprecated-bg: @red-1; +@error-color-deprecated-border: @red-3; + // TimePicker // --- @picker-basic-cell-hover-with-range-color: darken(@primary-color, 35%); @@ -436,3 +447,11 @@ // Mentions // --- @mentions-dropdown-bg: @popover-background; + +// Segmented +// --- +@segmented-bg: fade(@black, 25%); +@segmented-hover-bg: fade(@black, 45%); +@segmented-selected-bg: #333333; +@segmented-label-color: fade(@white, 65%); +@segmented-label-hover-color: fade(@white, 85%); diff --git a/components/style/themes/default.less b/components/style/themes/default.less index d0f56312..5aca1cb6 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -9,14 +9,48 @@ // An override for the html selector for theme prefixes @html-selector: html; +// [CSS-VARIABLE-REPLACE-BEGIN: html-variables] +// [CSS-VARIABLE-REPLACE-END: html-variables] + // -------- Colors ----------- +// >>> Primary @primary-color: @blue-6; -@info-color: @primary-color; -@success-color: @green-6; +@primary-color-hover: color(~`colorPalette('@{primary-color}', 5) `); +@primary-color-active: color(~`colorPalette('@{primary-color}', 7) `); +@primary-color-outline: fade(@primary-color, @outline-fade); + @processing-color: @blue-6; -@error-color: @red-5; -@highlight-color: @red-5; + +// >>> Info +@info-color: @primary-color; +@info-color-deprecated-bg: color(~`colorPalette('@{info-color}', 1) `); +@info-color-deprecated-border: color(~`colorPalette('@{info-color}', 3) `); + +// >>> Success +@success-color: @green-6; +@success-color-hover: color(~`colorPalette('@{success-color}', 5) `); +@success-color-active: color(~`colorPalette('@{success-color}', 7) `); +@success-color-outline: fade(@success-color, @outline-fade); +@success-color-deprecated-bg: color(~`colorPalette('@{success-color}', 1) `); +@success-color-deprecated-border: color(~`colorPalette('@{success-color}', 3) `); + +// >>> Warning @warning-color: @gold-6; +@warning-color-hover: color(~`colorPalette('@{warning-color}', 5) `); +@warning-color-active: color(~`colorPalette('@{warning-color}', 7) `); +@warning-color-outline: fade(@warning-color, @outline-fade); +@warning-color-deprecated-bg: color(~`colorPalette('@{warning-color}', 1) `); +@warning-color-deprecated-border: color(~`colorPalette('@{warning-color}', 3) `); + +// >>> Error +@error-color: @red-5; +@error-color-hover: color(~`colorPalette('@{error-color}', 5) `); +@error-color-active: color(~`colorPalette('@{error-color}', 7) `); +@error-color-outline: fade(@error-color, @outline-fade); +@error-color-deprecated-bg: color(~`colorPalette('@{error-color}', 1) `); +@error-color-deprecated-border: color(~`colorPalette('@{error-color}', 3) `); + +@highlight-color: @red-5; @normal-color: #d9d9d9; @white: #fff; @black: #000; @@ -74,6 +108,12 @@ @border-radius-base: 2px; @border-radius-sm: @border-radius-base; +// control border +@control-border-radius: @border-radius-base; + +// arrow border +@arrow-border-radius: 2px; + // vertical paddings @padding-lg: 24px; // containers @padding-md: 16px; // small containers and buttons @@ -140,7 +180,7 @@ // Outline @outline-blur-size: 0; @outline-width: 2px; -@outline-color: @primary-color; +@outline-color: @primary-color; // No use anymore @outline-fade: 20%; @background-color-light: hsv(0, 0, 98%); // background of header and selected item @@ -230,6 +270,7 @@ @checkbox-check-color: #fff; @checkbox-check-bg: @checkbox-check-color; @checkbox-border-width: @border-width-base; +@checkbox-border-radius: @border-radius-base; @checkbox-group-item-margin-right: 8px; // Descriptions @@ -248,10 +289,12 @@ @divider-text-padding: 1em; @divider-orientation-margin: 5%; @divider-color: rgba(0, 0, 0, 6%); +@divider-vertical-gutter: 8px; // Dropdown @dropdown-selected-color: @primary-color; @dropdown-menu-submenu-disabled-bg: @component-background; +@dropdown-selected-bg: @item-active-bg; // Empty @empty-font-size: @font-size-base; @@ -271,6 +314,7 @@ @radio-button-color: @btn-default-color; @radio-button-hover-color: @primary-5; @radio-button-active-color: @primary-7; +@radio-button-padding-horizontal: @padding-md - 1px; @radio-disabled-button-checked-bg: @disabled-active-bg; @radio-disabled-button-checked-color: @disabled-color; @radio-wrapper-margin-right: 8px; @@ -465,7 +509,7 @@ // --- @anchor-bg: transparent; @anchor-border-color: @border-color-split; -@anchor-link-top: 7px; +@anchor-link-top: 4px; @anchor-link-left: 16px; @anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left; @@ -478,11 +522,12 @@ // Tooltip background color @tooltip-bg: rgba(0, 0, 0, 0.75); // Tooltip arrow width -@tooltip-arrow-width: 5px; +@tooltip-arrow-width: 8px * sqrt(2); // Tooltip distance with trigger @tooltip-distance: @tooltip-arrow-width - 1px + 4px; // Tooltip arrow color @tooltip-arrow-color: @tooltip-bg; +@tooltip-border-radius: @border-radius-base; // Popover // --- @@ -494,7 +539,7 @@ @popover-min-width: 177px; @popover-min-height: 32px; // Popover arrow width -@popover-arrow-width: 6px; +@popover-arrow-width: @tooltip-arrow-width; // Popover arrow color @popover-arrow-color: @popover-bg; // Popover outer arrow width @@ -528,6 +573,7 @@ @modal-footer-border-width: @border-width-base; @modal-mask-bg: fade(@black, 45%); @modal-confirm-body-padding: 32px 32px 24px; +@modal-confirm-title-font-size: @font-size-lg; // Progress // -- @@ -629,6 +675,7 @@ // Tag // -- +@tag-border-radius: @border-radius-base; @tag-default-bg: @background-color-light; @tag-default-color: @text-color; @tag-font-size: @font-size-sm; @@ -658,6 +705,7 @@ @calendar-input-bg: @input-bg; @calendar-border-color: @border-color-inverse; @calendar-item-active-bg: @item-active-bg; +@calendar-column-active-bg: fade(@calendar-item-active-bg, 20%); @calendar-full-bg: @calendar-bg; @calendar-full-panel-bg: @calendar-full-bg; @@ -824,7 +872,7 @@ @breadcrumb-font-size: @font-size-base; @breadcrumb-icon-font-size: @font-size-base; @breadcrumb-link-color: @text-color-secondary; -@breadcrumb-link-color-hover: @primary-5; +@breadcrumb-link-color-hover: @text-color; @breadcrumb-separator-color: @text-color-secondary; @breadcrumb-separator-margin: 0 @padding-xs; @@ -886,6 +934,7 @@ @transfer-disabled-bg: @disabled-bg; @transfer-list-height: 200px; @transfer-item-hover-bg: @item-hover-bg; +@transfer-item-selected-hover-bg: darken(@item-active-bg, 2%); @transfer-item-padding-vertical: 6px; @transfer-list-search-icon-top: 12px; @@ -952,6 +1001,8 @@ @drawer-footer-padding-vertical: @modal-footer-padding-vertical; @drawer-footer-padding-horizontal: @modal-footer-padding-horizontal; @drawer-header-close-size: 56px; +@drawer-title-font-size: @font-size-lg; +@drawer-title-line-height: 22px; // Timeline // --- @@ -1002,7 +1053,7 @@ @notification-padding-vertical: 16px; @notification-padding-horizontal: 24px; -// Result +// Result // --- @result-title-font-size: 24px; @result-subtitle-font-size: @font-size-base; @@ -1019,3 +1070,11 @@ @image-preview-operation-size: 18px; @image-preview-operation-color: @text-color-dark; @image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%); + +// Segmented +// --- +@segmented-bg: fade(@black, 4%); +@segmented-hover-bg: fade(@black, 6%); +@segmented-selected-bg: @white; +@segmented-label-color: fade(@black, 65%); +@segmented-label-hover-color: #262626; diff --git a/components/style/themes/index.less b/components/style/themes/index.less index f19386d8..fd29f584 100644 --- a/components/style/themes/index.less +++ b/components/style/themes/index.less @@ -1 +1,7 @@ -@import './default.less'; +// Default using variable as entry to support site variable version +// This will be replaced in webpack bundle +// @root-entry-name: variable; + +// @import './default.less'; +// @import './variable.less'; +@import './@{root-entry-name}.less'; diff --git a/components/style/themes/variable.less b/components/style/themes/variable.less new file mode 100644 index 00000000..4082dd52 --- /dev/null +++ b/components/style/themes/variable.less @@ -0,0 +1,1135 @@ +/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ +@import '../color/colors'; + +@theme: variable; + +// The prefix to use on all css classes from ant. +@ant-prefix: ant; + +// An override for the html selector for theme prefixes +@html-selector: html; + +@{html-selector} { + @base-primary: @blue-6; + + // ========= Primary Color ========= + --@{ant-prefix}-primary-color: @base-primary; + --@{ant-prefix}-primary-color-hover: color(~`colorPalette('@{base-primary}', 5) `); + --@{ant-prefix}-primary-color-active: color(~`colorPalette('@{base-primary}', 7) `); + --@{ant-prefix}-primary-color-outline: fade(@base-primary, @outline-fade); + + // Legacy + @legacy-primary-1: color(~`colorPalette('@{base-primary}', 1) `); + + --@{ant-prefix}-primary-1: @legacy-primary-1; + --@{ant-prefix}-primary-2: color(~`colorPalette('@{base-primary}', 2) `); + --@{ant-prefix}-primary-3: color(~`colorPalette('@{base-primary}', 3) `); + --@{ant-prefix}-primary-4: color(~`colorPalette('@{base-primary}', 4) `); + --@{ant-prefix}-primary-5: color(~`colorPalette('@{base-primary}', 5) `); + --@{ant-prefix}-primary-6: @base-primary; + --@{ant-prefix}-primary-7: color(~`colorPalette('@{base-primary}', 7) `); + + // Deprecated + --@{ant-prefix}-primary-color-deprecated-pure: ~''; + --@{ant-prefix}-primary-color-deprecated-l-35: lighten(@base-primary, 35%); + --@{ant-prefix}-primary-color-deprecated-l-20: lighten(@base-primary, 20%); + --@{ant-prefix}-primary-color-deprecated-t-20: tint(@base-primary, 20%); + --@{ant-prefix}-primary-color-deprecated-t-50: tint(@base-primary, 50%); + --@{ant-prefix}-primary-color-deprecated-f-12: fade(@base-primary, 12%); + --@{ant-prefix}-primary-color-active-deprecated-f-30: fade(@legacy-primary-1, 30%); + --@{ant-prefix}-primary-color-active-deprecated-d-02: darken(@legacy-primary-1, 2%); + + // ========= Success Color ========= + --@{ant-prefix}-success-color: @green-6; + --@{ant-prefix}-success-color-hover: color(~`colorPalette('@{green-6}', 5) `); + --@{ant-prefix}-success-color-active: color(~`colorPalette('@{green-6}', 7) `); + --@{ant-prefix}-success-color-outline: fade(@green-6, @outline-fade); + --@{ant-prefix}-success-color-deprecated-bg: ~`colorPalette('@{green-6}', 1) `; + --@{ant-prefix}-success-color-deprecated-border: ~`colorPalette('@{green-6}', 3) `; + + // ========== Error Color ========== + --@{ant-prefix}-error-color: @red-5; + --@{ant-prefix}-error-color-hover: color(~`colorPalette('@{red-5}', 5) `); + --@{ant-prefix}-error-color-active: color(~`colorPalette('@{red-5}', 7) `); + --@{ant-prefix}-error-color-outline: fade(@red-5, @outline-fade); + --@{ant-prefix}-error-color-deprecated-bg: ~`colorPalette('@{red-5}', 1) `; + --@{ant-prefix}-error-color-deprecated-border: ~`colorPalette('@{red-5}', 3) `; + + // ========= Warning Color ========= + --@{ant-prefix}-warning-color: @gold-6; + --@{ant-prefix}-warning-color-hover: color(~`colorPalette('@{gold-6}', 5) `); + --@{ant-prefix}-warning-color-active: color(~`colorPalette('@{gold-6}', 7) `); + --@{ant-prefix}-warning-color-outline: fade(@gold-6, @outline-fade); + --@{ant-prefix}-warning-color-deprecated-bg: ~`colorPalette('@{gold-6}', 1) `; + --@{ant-prefix}-warning-color-deprecated-border: ~`colorPalette('@{gold-6}', 3) `; + + // ========== Info Color =========== + --@{ant-prefix}-info-color: @base-primary; + --@{ant-prefix}-info-color-deprecated-bg: ~`colorPalette('@{base-primary}', 1) `; + --@{ant-prefix}-info-color-deprecated-border: ~`colorPalette('@{base-primary}', 3) `; +} + +// -------- Colors ----------- +// >>> Primary +@primary-color: ~'var(--@{ant-prefix}-primary-color)'; +@primary-color-hover: ~'var(--@{ant-prefix}-primary-color-hover)'; +@primary-color-active: ~'var(--@{ant-prefix}-primary-color-active)'; +@primary-color-outline: ~'var(--@{ant-prefix}-primary-color-outline)'; + +@processing-color: @primary-color; + +// >>> Info +@info-color: ~'var(--@{ant-prefix}-info-color)'; +@info-color-deprecated-bg: ~'var(--@{ant-prefix}-info-color-deprecated-bg)'; +@info-color-deprecated-border: ~'var(--@{ant-prefix}-info-color-deprecated-border)'; + +// >>> Success +@success-color: ~'var(--@{ant-prefix}-success-color)'; +@success-color-hover: ~'var(--@{ant-prefix}-success-color-hover)'; +@success-color-active: ~'var(--@{ant-prefix}-success-color-active)'; +@success-color-outline: ~'var(--@{ant-prefix}-success-color-outline)'; +@success-color-deprecated-bg: ~'var(--@{ant-prefix}-success-color-deprecated-bg)'; +@success-color-deprecated-border: ~'var(--@{ant-prefix}-success-color-deprecated-border)'; + +// >>> Warning +@warning-color: ~'var(--@{ant-prefix}-warning-color)'; +@warning-color-hover: ~'var(--@{ant-prefix}-warning-color-hover)'; +@warning-color-active: ~'var(--@{ant-prefix}-warning-color-active)'; +@warning-color-outline: ~'var(--@{ant-prefix}-warning-color-outline)'; +@warning-color-deprecated-bg: ~'var(--@{ant-prefix}-warning-color-deprecated-bg)'; +@warning-color-deprecated-border: ~'var(--@{ant-prefix}-warning-color-deprecated-border)'; + +// >>> Error +@error-color: ~'var(--@{ant-prefix}-error-color)'; +@error-color-hover: ~'var(--@{ant-prefix}-error-color-hover)'; +@error-color-active: ~'var(--@{ant-prefix}-error-color-active)'; +@error-color-outline: ~'var(--@{ant-prefix}-error-color-outline)'; +@error-color-deprecated-bg: ~'var(--@{ant-prefix}-error-color-deprecated-bg)'; +@error-color-deprecated-border: ~'var(--@{ant-prefix}-error-color-deprecated-border)'; + +@highlight-color: @red-5; +@normal-color: #d9d9d9; +@white: #fff; +@black: #000; + +// Color used by default to control hover and active backgrounds and for +// alert info backgrounds. +@primary-1: ~'var(--@{ant-prefix}-primary-1)'; // replace tint(@primary-color, 90%) +@primary-2: ~'var(--@{ant-prefix}-primary-2)'; // replace tint(@primary-color, 80%) +@primary-3: ~'var(--@{ant-prefix}-primary-3)'; // unused +@primary-4: ~'var(--@{ant-prefix}-primary-4)'; // unused +@primary-5: ~'var(--@{ant-prefix}-primary-5)'; // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%) +@primary-6: ~'var(--@{ant-prefix}-primary-6)'; // color used to control the text color of active buttons, don't use, use @primary-color +@primary-7: ~'var(--@{ant-prefix}-primary-7)'; // replace shade(@primary-color, 5%) +@primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused +@primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused +@primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused + +// Base Scaffolding Variables +// --- + +// Background color for `` +@body-background: #fff; +// Base background color for most components +@component-background: #fff; +// Popover background color +@popover-background: @component-background; +@popover-customize-border-color: @border-color-split; +@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', + 'Noto Color Emoji'; +@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; +@text-color: fade(@black, 85%); +@text-color-secondary: fade(@black, 45%); +@text-color-inverse: @white; +@icon-color: inherit; +@icon-color-hover: fade(@black, 75%); +@heading-color: fade(@black, 85%); +@text-color-dark: fade(@white, 85%); +@text-color-secondary-dark: fade(@white, 65%); +@text-selection-bg: @primary-color; +@font-variant-base: tabular-nums; +@font-feature-settings-base: 'tnum'; +@font-size-base: 14px; +@font-size-lg: @font-size-base + 2px; +@font-size-sm: 12px; +@heading-1-size: ceil(@font-size-base * 2.71); +@heading-2-size: ceil(@font-size-base * 2.14); +@heading-3-size: ceil(@font-size-base * 1.71); +@heading-4-size: ceil(@font-size-base * 1.42); +@heading-5-size: ceil(@font-size-base * 1.14); +// https://github.com/ant-design/ant-design/issues/20210 +@line-height-base: 1.5715; +@border-radius-base: 2px; +@border-radius-sm: @border-radius-base; + +// control border +@control-border-radius: @border-radius-base; + +// arrow border +@arrow-border-radius: @border-radius-sm; + +// vertical paddings +@padding-lg: 24px; // containers +@padding-md: 16px; // small containers and buttons +@padding-sm: 12px; // Form controls and items +@padding-xs: 8px; // small items +@padding-xss: 4px; // more small + +// vertical padding for all form controls +@control-padding-horizontal: @padding-sm; +@control-padding-horizontal-sm: @padding-xs; + +// vertical margins +@margin-lg: 24px; // containers +@margin-md: 16px; // small containers and buttons +@margin-sm: 12px; // Form controls and items +@margin-xs: 8px; // small items +@margin-xss: 4px; // more small + +// height rules +@height-base: 32px; +@height-lg: 40px; +@height-sm: 24px; + +// The background colors for active and hover states for things like +// list items or table cells. +@item-active-bg: @primary-1; +@item-hover-bg: #f5f5f5; + +// ICONFONT +@iconfont-css-prefix: anticon; + +// LINK +@link-color: @primary-color; +@link-hover-color: @primary-color-hover; +@link-active-color: @primary-color-active; +@link-decoration: none; +@link-hover-decoration: none; +@link-focus-decoration: none; +@link-focus-outline: 0; + +// Animation +@ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1); +@ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7); +@ease-out: cubic-bezier(0.215, 0.61, 0.355, 1); +@ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19); +@ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1); +@ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46); +@ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6); +@ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46); +@ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1); +@ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34); +@ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86); +@ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1); +@ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); +@ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1); + +// Border color +@border-color-base: hsv(0, 0, 85%); // base border outline a component +@border-color-split: rgba(0, 0, 0, 0.06); // split border inside a component +@border-color-inverse: @white; +@border-width-base: 1px; // width of the border for a component +@border-style-base: solid; // style of a components border + +// Outline +@outline-blur-size: 0; +@outline-width: 2px; +@outline-color: @primary-color; // No use anymore +@outline-fade: 20%; + +@background-color-light: hsv(0, 0, 98%); // background of header and selected item +@background-color-base: hsv(0, 0, 96%); // Default grey background color + +// Disabled states +@disabled-color: fade(#000, 25%); +@disabled-bg: @background-color-base; +@disabled-active-bg: tint(@black, 90%); +@disabled-color-dark: fade(#fff, 35%); + +// Shadow +@shadow-color: rgba(0, 0, 0, 0.15); +@shadow-color-inverse: @component-background; +@box-shadow-base: @shadow-2; +@shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), + 0 -12px 48px 16px rgba(0, 0, 0, 0.03); +@shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), + 0 12px 48px 16px rgba(0, 0, 0, 0.03); +@shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), + -12px 0 48px 16px rgba(0, 0, 0, 0.03); +@shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), + 12px 0 48px 16px rgba(0, 0, 0, 0.03); +@shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 9px 28px 8px rgba(0, 0, 0, 0.05); + +// Buttons +@btn-font-weight: 400; +@btn-border-radius-base: @border-radius-base; +@btn-border-radius-sm: @border-radius-base; +@btn-border-width: @border-width-base; +@btn-border-style: @border-style-base; +@btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); +@btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045); +@btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12); + +@btn-primary-color: #fff; +@btn-primary-bg: @primary-color; + +@btn-default-color: @text-color; +@btn-default-bg: @component-background; +@btn-default-border: @border-color-base; + +@btn-danger-color: #fff; +@btn-danger-bg: @error-color; +@btn-danger-border: @error-color; + +@btn-disable-color: @disabled-color; +@btn-disable-bg: @disabled-bg; +@btn-disable-border: @border-color-base; + +@btn-default-ghost-color: @component-background; +@btn-default-ghost-bg: transparent; +@btn-default-ghost-border: @component-background; + +@btn-font-size-lg: @font-size-lg; +@btn-font-size-sm: @font-size-base; +@btn-padding-horizontal-base: @padding-md - 1px; +@btn-padding-horizontal-lg: @btn-padding-horizontal-base; +@btn-padding-horizontal-sm: @padding-xs - 1px; + +@btn-height-base: @height-base; +@btn-height-lg: @height-lg; +@btn-height-sm: @height-sm; + +@btn-line-height: @line-height-base; + +@btn-circle-size: @btn-height-base; +@btn-circle-size-lg: @btn-height-lg; +@btn-circle-size-sm: @btn-height-sm; + +@btn-square-size: @btn-height-base; +@btn-square-size-lg: @btn-height-lg; +@btn-square-size-sm: @btn-height-sm; +@btn-square-only-icon-size: @font-size-base + 2px; +@btn-square-only-icon-size-sm: @font-size-base; +@btn-square-only-icon-size-lg: @btn-font-size-lg + 2px; + +@btn-group-border: @primary-5; + +@btn-link-hover-bg: transparent; +@btn-text-hover-bg: rgba(0, 0, 0, 0.018); + +// Checkbox +@checkbox-size: 16px; +@checkbox-color: @primary-color; +@checkbox-check-color: #fff; +@checkbox-check-bg: @checkbox-check-color; +@checkbox-border-width: @border-width-base; +@checkbox-border-radius: @border-radius-base; +@checkbox-group-item-margin-right: 8px; + +// Descriptions +@descriptions-bg: #fafafa; +@descriptions-title-margin-bottom: 20px; +@descriptions-default-padding: @padding-md @padding-lg; +@descriptions-middle-padding: @padding-sm @padding-lg; +@descriptions-small-padding: @padding-xs @padding-md; +@descriptions-item-padding-bottom: @padding-md; +@descriptions-item-trailing-colon: true; +@descriptions-item-label-colon-margin-right: 8px; +@descriptions-item-label-colon-margin-left: 2px; +@descriptions-extra-color: @text-color; + +// Divider +@divider-text-padding: 1em; +@divider-orientation-margin: 5%; +@divider-color: rgba(0, 0, 0, 6%); +@divider-vertical-gutter: 8px; + +// Dropdown +@dropdown-selected-color: @primary-color; +@dropdown-menu-submenu-disabled-bg: @component-background; +@dropdown-selected-bg: @item-active-bg; + +// Empty +@empty-font-size: @font-size-base; + +// Radio +@radio-size: 16px; +@radio-top: 0.2em; +@radio-border-width: 1px; +@radio-dot-size: @radio-size - 8px; +@radio-dot-color: @primary-color; +@radio-dot-disabled-color: fade(@black, 20%); +@radio-solid-checked-color: @component-background; + +// Radio buttons +@radio-button-bg: @btn-default-bg; +@radio-button-checked-bg: @btn-default-bg; +@radio-button-color: @btn-default-color; +@radio-button-hover-color: @primary-5; +@radio-button-active-color: @primary-7; +@radio-button-padding-horizontal: @padding-md - 1px; +@radio-disabled-button-checked-bg: @disabled-active-bg; +@radio-disabled-button-checked-color: @disabled-color; +@radio-wrapper-margin-right: 8px; + +// Media queries breakpoints +// @screen-xs and @screen-xs-min is not used in Grid +// smallest break point is @screen-md +@screen-xs: 480px; +@screen-xs-min: @screen-xs; +// 👆 Extra small screen / phone + +// 👇 Small screen / tablet +@screen-sm: 576px; +@screen-sm-min: @screen-sm; + +// Medium screen / desktop +@screen-md: 768px; +@screen-md-min: @screen-md; + +// Large screen / wide desktop +@screen-lg: 992px; +@screen-lg-min: @screen-lg; + +// Extra large screen / full hd +@screen-xl: 1200px; +@screen-xl-min: @screen-xl; + +// Extra extra large screen / large desktop +@screen-xxl: 1600px; +@screen-xxl-min: @screen-xxl; + +// provide a maximum +@screen-xs-max: (@screen-sm-min - 1px); +@screen-sm-max: (@screen-md-min - 1px); +@screen-md-max: (@screen-lg-min - 1px); +@screen-lg-max: (@screen-xl-min - 1px); +@screen-xl-max: (@screen-xxl-min - 1px); + +// Grid system +@grid-columns: 24; + +// Layout +@layout-body-background: #f0f2f5; +@layout-header-background: #001529; +@layout-header-height: 64px; +@layout-header-padding: 0 50px; +@layout-header-color: @text-color; +@layout-footer-padding: 24px 50px; +@layout-footer-background: @layout-body-background; +@layout-sider-background: @layout-header-background; +@layout-trigger-height: 48px; +@layout-trigger-background: #002140; +@layout-trigger-color: #fff; +@layout-zero-trigger-width: 36px; +@layout-zero-trigger-height: 42px; +// Layout light theme +@layout-sider-background-light: #fff; +@layout-trigger-background-light: #fff; +@layout-trigger-color-light: @text-color; + +// z-index list, order by `z-index` +@zindex-badge: auto; +@zindex-table-fixed: 2; +@zindex-affix: 10; +@zindex-back-top: 10; +@zindex-picker-panel: 10; +@zindex-popup-close: 10; +@zindex-modal: 1000; +@zindex-modal-mask: 1000; +@zindex-message: 1010; +@zindex-notification: 1010; +@zindex-popover: 1030; +@zindex-dropdown: 1050; +@zindex-picker: 1050; +@zindex-popoconfirm: 1060; +@zindex-tooltip: 1070; +@zindex-image: 1080; + +// Animation +@animation-duration-slow: 0.3s; // Modal +@animation-duration-base: 0.2s; +@animation-duration-fast: 0.1s; // Tooltip + +//CollapsePanel +@collapse-panel-border-radius: @border-radius-base; + +//Dropdown +@dropdown-menu-bg: @component-background; +@dropdown-vertical-padding: 5px; +@dropdown-edge-child-vertical-padding: 4px; +@dropdown-font-size: @font-size-base; +@dropdown-line-height: 22px; + +// Form +// --- +@label-required-color: @highlight-color; +@label-color: @heading-color; +@form-warning-input-bg: @input-bg; +@form-item-margin-bottom: 24px; +@form-item-trailing-colon: true; +@form-vertical-label-padding: 0 0 8px; +@form-vertical-label-margin: 0; +@form-item-label-font-size: @font-size-base; +@form-item-label-height: @input-height-base; +@form-item-label-colon-margin-right: 8px; +@form-item-label-colon-margin-left: 2px; +@form-error-input-bg: @input-bg; + +// Input +// --- +@input-height-base: @height-base; +@input-height-lg: @height-lg; +@input-height-sm: @height-sm; +@input-padding-horizontal: @control-padding-horizontal - 1px; +@input-padding-horizontal-base: @input-padding-horizontal; +@input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px; +@input-padding-horizontal-lg: @input-padding-horizontal; +@input-padding-vertical-base: max( + (round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) - + @border-width-base, + 3px +); +@input-padding-vertical-sm: max( + (round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) - + @border-width-base, + 0 +); +@input-padding-vertical-lg: ( + ceil(((@input-height-lg - @font-size-lg * @line-height-base) / 2) * 10) / 10 + ) - @border-width-base; +@input-placeholder-color: hsv(0, 0, 75%); +@input-color: @text-color; +@input-icon-color: @input-color; +@input-border-color: @border-color-base; +@input-bg: @component-background; +@input-number-hover-border-color: @input-hover-border-color; +@input-number-handler-active-bg: #f4f4f4; +@input-number-handler-hover-bg: @primary-5; +@input-number-handler-bg: @component-background; +@input-number-handler-border-color: @border-color-base; +@input-addon-bg: @background-color-light; +@input-hover-border-color: @primary-5; +@input-disabled-bg: @disabled-bg; +@input-outline-offset: 0 0; +@input-icon-hover-color: fade(@black, 85%); +@input-disabled-color: @disabled-color; + +// Mentions +// --- +@mentions-dropdown-bg: @component-background; +@mentions-dropdown-menu-item-hover-bg: @mentions-dropdown-bg; + +// Select +// --- +@select-border-color: @border-color-base; +@select-item-selected-color: @text-color; +@select-item-selected-font-weight: 600; +@select-dropdown-bg: @component-background; +@select-item-selected-bg: @primary-1; +@select-item-active-bg: @item-hover-bg; +@select-dropdown-vertical-padding: @dropdown-vertical-padding; +@select-dropdown-font-size: @dropdown-font-size; +@select-dropdown-line-height: @dropdown-line-height; +@select-dropdown-height: 32px; +@select-background: @component-background; +@select-clear-background: @select-background; +@select-selection-item-bg: @background-color-base; +@select-selection-item-border-color: @border-color-split; +@select-single-item-height-lg: 40px; +@select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px +@select-multiple-item-height-lg: 32px; +@select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2)); +@select-multiple-disabled-background: @input-disabled-bg; +@select-multiple-item-disabled-color: #bfbfbf; +@select-multiple-item-disabled-border-color: @select-border-color; + +// Cascader +// --- +@cascader-bg: @component-background; +@cascader-item-selected-bg: @primary-1; +@cascader-menu-bg: @component-background; +@cascader-menu-border-color-split: @border-color-split; + +// Cascader +// ---- +@cascader-dropdown-vertical-padding: @dropdown-vertical-padding; +@cascader-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding; +@cascader-dropdown-font-size: @dropdown-font-size; +@cascader-dropdown-line-height: @dropdown-line-height; + +// Anchor +// --- +@anchor-bg: transparent; +@anchor-border-color: @border-color-split; +@anchor-link-top: 4px; +@anchor-link-left: 16px; +@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left; + +// Tooltip +// --- +// Tooltip max width +@tooltip-max-width: 250px; +// Tooltip text color +@tooltip-color: #fff; +// Tooltip background color +@tooltip-bg: rgba(0, 0, 0, 0.75); +// Tooltip arrow width +@tooltip-arrow-width: 8px * sqrt(2); +// Tooltip distance with trigger +@tooltip-distance: @tooltip-arrow-width - 1px + 4px; +// Tooltip arrow color +@tooltip-arrow-color: @tooltip-bg; +@tooltip-border-radius: @border-radius-base; + +// Popover +// --- +// Popover body background color +@popover-bg: @component-background; +// Popover text color +@popover-color: @text-color; +// Popover maximum width +@popover-min-width: 177px; +@popover-min-height: 32px; +// Popover arrow width +@popover-arrow-width: @tooltip-arrow-width; +// Popover arrow color +@popover-arrow-color: @popover-bg; +// Popover outer arrow width +// Popover outer arrow color +@popover-arrow-outer-color: @popover-bg; +// Popover distance with trigger +@popover-distance: @popover-arrow-width + 4px; +@popover-padding-horizontal: @padding-md; + +// Modal +// -- +@modal-header-padding-vertical: @padding-md; +@modal-header-padding-horizontal: @padding-lg; +@modal-body-padding: @padding-lg; +@modal-header-bg: @component-background; +@modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal; +@modal-header-border-width: @border-width-base; +@modal-header-border-style: @border-style-base; +@modal-header-title-line-height: 22px; +@modal-header-title-font-size: @font-size-lg; +@modal-header-border-color-split: @border-color-split; +@modal-header-close-size: 56px; +@modal-content-bg: @component-background; +@modal-heading-color: @heading-color; +@modal-close-color: @text-color-secondary; +@modal-footer-bg: transparent; +@modal-footer-border-color-split: @border-color-split; +@modal-footer-border-style: @border-style-base; +@modal-footer-padding-vertical: 10px; +@modal-footer-padding-horizontal: 16px; +@modal-footer-border-width: @border-width-base; +@modal-mask-bg: fade(@black, 45%); +@modal-confirm-body-padding: 32px 32px 24px; +@modal-confirm-title-font-size: @font-size-lg; + +// Progress +// -- +@progress-default-color: @processing-color; +@progress-remaining-color: rgba(0, 0, 0, 0.04); +@progress-info-text-color: @progress-text-color; +@progress-radius: 100px; +@progress-steps-item-bg: #f3f3f3; +@progress-text-font-size: 1em; +@progress-text-color: @text-color; // This is for circle text color, should be renamed better +@progress-circle-text-font-size: 1em; +// Menu +// --- +@menu-inline-toplevel-item-height: 40px; +@menu-item-height: 40px; +@menu-item-group-height: @line-height-base; +@menu-collapsed-width: 80px; +@menu-bg: @component-background; +@menu-popup-bg: @component-background; +@menu-item-color: @text-color; +@menu-inline-submenu-bg: @background-color-light; +@menu-highlight-color: @primary-color; +@menu-highlight-danger-color: @error-color; +@menu-item-active-bg: @primary-1; +@menu-item-active-danger-bg: @red-1; +@menu-item-active-border-width: 3px; +@menu-item-group-title-color: @text-color-secondary; +@menu-item-vertical-margin: 4px; +@menu-item-font-size: @font-size-base; +@menu-item-boundary-margin: 8px; +@menu-item-padding-horizontal: 20px; +@menu-item-padding: 0 @menu-item-padding-horizontal; +@menu-horizontal-line-height: 46px; +@menu-icon-margin-right: 10px; +@menu-icon-size: @menu-item-font-size; +@menu-icon-size-lg: @font-size-lg; +@menu-item-group-title-font-size: @menu-item-font-size; + +// dark theme +@menu-dark-color: @text-color-secondary-dark; +@menu-dark-danger-color: @error-color; +@menu-dark-bg: @layout-header-background; +@menu-dark-arrow-color: #fff; +@menu-dark-inline-submenu-bg: #000c17; +@menu-dark-highlight-color: #fff; +@menu-dark-item-active-bg: @primary-color; +@menu-dark-item-active-danger-bg: @error-color; +@menu-dark-selected-item-icon-color: @white; +@menu-dark-selected-item-text-color: @white; +@menu-dark-item-hover-bg: transparent; +// Spin +// --- +@spin-dot-size-sm: 14px; +@spin-dot-size: 20px; +@spin-dot-size-lg: 32px; + +// Table +// -- +@table-bg: @component-background; +@table-header-bg: @background-color-light; +@table-header-color: @heading-color; +@table-header-sort-bg: @background-color-base; +@table-body-sort-bg: #fafafa; +@table-row-hover-bg: @background-color-light; +@table-selected-row-color: inherit; +@table-selected-row-bg: @primary-1; +@table-body-selected-sort-bg: @table-selected-row-bg; +@table-selected-row-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)'; +@table-expanded-row-bg: #fbfbfb; +@table-padding-vertical: 16px; +@table-padding-horizontal: 16px; +@table-padding-vertical-md: (@table-padding-vertical * 3 / 4); +@table-padding-horizontal-md: (@table-padding-horizontal / 2); +@table-padding-vertical-sm: (@table-padding-vertical / 2); +@table-padding-horizontal-sm: (@table-padding-horizontal / 2); +@table-border-color: @border-color-split; +@table-border-radius-base: @border-radius-base; +@table-footer-bg: @background-color-light; +@table-footer-color: @heading-color; +@table-header-bg-sm: @table-header-bg; +@table-font-size: @font-size-base; +@table-font-size-md: @table-font-size; +@table-font-size-sm: @table-font-size; +@table-header-cell-split-color: rgba(0, 0, 0, 0.06); +// Sorter +// Legacy: `table-header-sort-active-bg` is used for hover not real active +@table-header-sort-active-bg: rgba(0, 0, 0, 0.04); +@table-fixed-header-sort-active-bg: hsv(0, 0, 96%); + +// Filter +@table-header-filter-active-bg: rgba(0, 0, 0, 0.04); +@table-filter-btns-bg: inherit; +@table-filter-dropdown-bg: @component-background; +@table-expand-icon-bg: @component-background; +@table-selection-column-width: 32px; +// Sticky +@table-sticky-scroll-bar-bg: fade(#000, 35%); +@table-sticky-scroll-bar-radius: 4px; + +// Tag +// -- +@tag-border-radius: @border-radius-base; +@tag-default-bg: @background-color-light; +@tag-default-color: @text-color; +@tag-font-size: @font-size-sm; +@tag-line-height: 20px; + +// TimePicker +// --- +@picker-bg: @component-background; +@picker-basic-cell-hover-color: @item-hover-bg; +@picker-basic-cell-active-with-range-color: @primary-1; +@picker-basic-cell-hover-with-range-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-35)'; +@picker-basic-cell-disabled-bg: rgba(0, 0, 0, 0.04); +@picker-border-color: @border-color-split; +@picker-date-hover-range-border-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-20)'; +@picker-date-hover-range-color: @picker-basic-cell-hover-with-range-color; +@picker-time-panel-column-width: 56px; +@picker-time-panel-column-height: 224px; +@picker-time-panel-cell-height: 28px; +@picker-panel-cell-height: 24px; +@picker-panel-cell-width: 36px; +@picker-text-height: 40px; +@picker-panel-without-time-cell-height: 66px; + +// Calendar +// --- +@calendar-bg: @component-background; +@calendar-input-bg: @input-bg; +@calendar-border-color: @border-color-inverse; +@calendar-item-active-bg: @item-active-bg; +@calendar-column-active-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-f-30)'; +@calendar-full-bg: @calendar-bg; +@calendar-full-panel-bg: @calendar-full-bg; + +// Carousel +// --- +@carousel-dot-width: 16px; +@carousel-dot-height: 3px; +@carousel-dot-active-width: 24px; + +// Badge +// --- +@badge-height: 20px; +@badge-height-sm: 14px; +@badge-dot-size: 6px; +@badge-font-size: @font-size-sm; +@badge-font-size-sm: @font-size-sm; +@badge-font-weight: normal; +@badge-status-size: 6px; +@badge-text-color: @component-background; +@badge-color: @highlight-color; + +// Rate +// --- +@rate-star-color: @yellow-6; +@rate-star-bg: @border-color-split; +@rate-star-size: 20px; +@rate-star-hover-scale: scale(1.1); + +// Card +// --- +@card-head-color: @heading-color; +@card-head-background: transparent; +@card-head-font-size: @font-size-lg; +@card-head-font-size-sm: @font-size-base; +@card-head-padding: 16px; +@card-head-padding-sm: (@card-head-padding / 2); +@card-head-height: 48px; +@card-head-height-sm: 36px; +@card-inner-head-padding: 12px; +@card-padding-base: 24px; +@card-padding-base-sm: (@card-padding-base / 2); +@card-actions-background: @component-background; +@card-actions-li-margin: 12px 0; +@card-skeleton-bg: #cfd8dc; +@card-background: @component-background; +@card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), + 0 5px 12px 4px rgba(0, 0, 0, 0.09); +@card-radius: @border-radius-base; +@card-head-tabs-margin-bottom: -17px; +@card-head-extra-color: @text-color; + +// Comment +// --- +@comment-bg: inherit; +@comment-padding-base: @padding-md 0; +@comment-nest-indent: 44px; +@comment-font-size-base: @font-size-base; +@comment-font-size-sm: @font-size-sm; +@comment-author-name-color: @text-color-secondary; +@comment-author-time-color: #ccc; +@comment-action-color: @text-color-secondary; +@comment-action-hover-color: #595959; +@comment-actions-margin-bottom: inherit; +@comment-actions-margin-top: @margin-sm; +@comment-content-detail-p-margin-bottom: inherit; + +// Tabs +// --- +@tabs-card-head-background: @background-color-light; +@tabs-card-height: 40px; +@tabs-card-active-color: @primary-color; +@tabs-card-horizontal-padding: ( + (@tabs-card-height - floor(@font-size-base * @line-height-base)) / 2 + ) - @border-width-base @padding-md; +@tabs-card-horizontal-padding-sm: 6px @padding-md; +@tabs-card-horizontal-padding-lg: 7px @padding-md 6px; +@tabs-title-font-size: @font-size-base; +@tabs-title-font-size-lg: @font-size-lg; +@tabs-title-font-size-sm: @font-size-base; +@tabs-ink-bar-color: @primary-color; +@tabs-bar-margin: 0 0 @margin-md 0; +@tabs-horizontal-gutter: 32px; +@tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter; +@tabs-horizontal-margin-rtl: 0 0 0 32px; +@tabs-horizontal-padding: @padding-sm 0; +@tabs-horizontal-padding-lg: @padding-md 0; +@tabs-horizontal-padding-sm: @padding-xs 0; +@tabs-vertical-padding: @padding-xs @padding-lg; +@tabs-vertical-margin: @margin-md 0 0 0; +@tabs-scrolling-size: 32px; +@tabs-highlight-color: @primary-color; +@tabs-hover-color: @primary-5; +@tabs-active-color: @primary-7; +@tabs-card-gutter: 2px; +@tabs-card-tab-active-border-top: 2px solid transparent; + +// BackTop +// --- +@back-top-color: #fff; +@back-top-bg: @text-color-secondary; +@back-top-hover-bg: @text-color; + +// Avatar +// --- +@avatar-size-base: 32px; +@avatar-size-lg: 40px; +@avatar-size-sm: 24px; +@avatar-font-size-base: 18px; +@avatar-font-size-lg: 24px; +@avatar-font-size-sm: 14px; +@avatar-bg: #ccc; +@avatar-color: #fff; +@avatar-border-radius: @border-radius-base; +@avatar-group-overlapping: -8px; +@avatar-group-space: 3px; +@avatar-group-border-color: #fff; + +// Switch +// --- +@switch-height: 22px; +@switch-sm-height: 16px; +@switch-min-width: 44px; +@switch-sm-min-width: 28px; +@switch-disabled-opacity: 0.4; +@switch-color: @primary-color; +@switch-bg: @component-background; +@switch-shadow-color: fade(#00230b, 20%); +@switch-padding: 2px; +@switch-inner-margin-min: ceil(@switch-height * 0.3); +@switch-inner-margin-max: ceil(@switch-height * 1.1); +@switch-sm-inner-margin-min: ceil(@switch-sm-height * 0.3); +@switch-sm-inner-margin-max: ceil(@switch-sm-height * 1.1); + +// Pagination +// --- +@pagination-item-bg: @component-background; +@pagination-item-size: @height-base; +@pagination-item-size-sm: 24px; +@pagination-font-family: @font-family; +@pagination-font-weight-active: 500; +@pagination-item-bg-active: @component-background; +@pagination-item-link-bg: @component-background; +@pagination-item-disabled-color-active: @disabled-color; +@pagination-item-disabled-bg-active: @disabled-active-bg; +@pagination-item-input-bg: @component-background; +@pagination-mini-options-size-changer-top: 0px; + +// PageHeader +// --- +@page-header-padding: @padding-lg; +@page-header-padding-vertical: @padding-md; +@page-header-padding-breadcrumb: @padding-sm; +@page-header-content-padding-vertical: @padding-sm; +@page-header-back-color: #000; +@page-header-ghost-bg: inherit; +@page-header-heading-title: @heading-4-size; +@page-header-heading-sub-title: 14px; +@page-header-tabs-tab-font-size: 16px; + +// Breadcrumb +// --- +@breadcrumb-base-color: @text-color-secondary; +@breadcrumb-last-item-color: @text-color; +@breadcrumb-font-size: @font-size-base; +@breadcrumb-icon-font-size: @font-size-base; +@breadcrumb-link-color: @text-color-secondary; +@breadcrumb-link-color-hover: @text-color; +@breadcrumb-separator-color: @text-color-secondary; +@breadcrumb-separator-margin: 0 @padding-xs; + +// Slider +// --- +@slider-margin: 10px 6px 10px; +@slider-rail-background-color: @background-color-base; +@slider-rail-background-color-hover: #e1e1e1; +@slider-track-background-color: @primary-3; +@slider-track-background-color-hover: @primary-4; +@slider-handle-border-width: 2px; +@slider-handle-background-color: @component-background; +@slider-handle-color: @primary-3; +@slider-handle-color-hover: @primary-4; +@slider-handle-color-focus: ~'var(--@{ant-prefix}-primary-color-deprecated-t-20)'; +@slider-handle-color-focus-shadow: ~'var(--@{ant-prefix}-primary-color-deprecated-f-12)'; +@slider-handle-color-tooltip-open: @primary-color; +@slider-handle-size: 14px; +@slider-handle-margin-top: -5px; +@slider-handle-shadow: 0; +@slider-dot-border-color: @border-color-split; +@slider-dot-border-color-active: ~'var(--@{ant-prefix}-primary-color-deprecated-t-50)'; +@slider-disabled-color: @disabled-color; +@slider-disabled-background-color: @component-background; + +// Tree +// --- +@tree-bg: @component-background; +@tree-title-height: 24px; +@tree-child-padding: 18px; +@tree-directory-selected-color: #fff; +@tree-directory-selected-bg: @primary-color; +@tree-node-hover-bg: @item-hover-bg; +@tree-node-selected-bg: @primary-2; + +// Collapse +// --- +@collapse-header-padding: @padding-sm @padding-md; +@collapse-header-padding-extra: 40px; +@collapse-header-bg: @background-color-light; +@collapse-content-padding: @padding-md; +@collapse-content-bg: @component-background; +@collapse-header-arrow-left: 16px; + +// Skeleton +// --- +@skeleton-color: rgba(190, 190, 190, 0.2); +@skeleton-to-color: shade(@skeleton-color, 5%); +@skeleton-paragraph-margin-top: 28px; +@skeleton-paragraph-li-margin-top: @margin-md; +@skeleton-paragraph-li-height: 16px; +@skeleton-title-height: 16px; +@skeleton-title-paragraph-margin-top: @margin-lg; + +// Transfer +// --- +@transfer-header-height: 40px; +@transfer-item-height: @height-base; +@transfer-disabled-bg: @disabled-bg; +@transfer-list-height: 200px; +@transfer-item-hover-bg: @item-hover-bg; +@transfer-item-selected-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)'; +@transfer-item-padding-vertical: 6px; +@transfer-list-search-icon-top: 12px; + +// Message +// --- +@message-notice-content-padding: 10px 16px; +@message-notice-content-bg: @component-background; +// Motion +// --- +@wave-animation-width: 6px; + +// Alert +// --- +@alert-success-border-color: @success-color-deprecated-border; +@alert-success-bg-color: @success-color-deprecated-bg; +@alert-success-icon-color: @success-color; +@alert-info-border-color: @info-color-deprecated-border; +@alert-info-bg-color: @info-color-deprecated-bg; +@alert-info-icon-color: @info-color; +@alert-warning-border-color: @warning-color-deprecated-border; +@alert-warning-bg-color: @warning-color-deprecated-bg; +@alert-warning-icon-color: @warning-color; +@alert-error-border-color: @error-color-deprecated-border; +@alert-error-bg-color: @error-color-deprecated-bg; +@alert-error-icon-color: @error-color; +@alert-message-color: @heading-color; +@alert-text-color: @text-color; +@alert-close-color: @text-color-secondary; +@alert-close-hover-color: @icon-color-hover; +@alert-no-icon-padding-vertical: @padding-xs; +@alert-with-description-no-icon-padding-vertical: @padding-md - 1px; +@alert-with-description-padding-vertical: @padding-md - 1px; +@alert-with-description-padding: @alert-with-description-padding-vertical 15px + @alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size; +@alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2); +@alert-with-description-icon-size: 24px; + +// List +// --- +@list-header-background: transparent; +@list-footer-background: transparent; +@list-empty-text-padding: @padding-md; +@list-item-padding: @padding-sm 0; +@list-item-padding-sm: @padding-xs @padding-md; +@list-item-padding-lg: 16px 24px; +@list-item-meta-margin-bottom: @padding-md; +@list-item-meta-avatar-margin-right: @padding-md; +@list-item-meta-title-margin-bottom: @padding-sm; +@list-customize-card-bg: @component-background; +@list-item-meta-description-font-size: @font-size-base; + +// Statistic +// --- +@statistic-title-font-size: @font-size-base; +@statistic-content-font-size: 24px; +@statistic-unit-font-size: 24px; +@statistic-font-family: @font-family; + +// Drawer +// --- +@drawer-header-padding: @padding-md @padding-lg; +@drawer-body-padding: @padding-lg; +@drawer-bg: @component-background; +@drawer-footer-padding-vertical: @modal-footer-padding-vertical; +@drawer-footer-padding-horizontal: @modal-footer-padding-horizontal; +@drawer-header-close-size: 56px; +@drawer-title-font-size: @font-size-lg; +@drawer-title-line-height: 22px; + +// Timeline +// --- +@timeline-width: 2px; +@timeline-color: @border-color-split; +@timeline-dot-border-width: 2px; +@timeline-dot-color: @primary-color; +@timeline-dot-bg: @component-background; +@timeline-item-padding-bottom: 20px; + +// Typography +// --- +@typography-title-font-weight: 600; +@typography-title-margin-top: 1.2em; +@typography-title-margin-bottom: 0.5em; + +// Upload +// --- +@upload-actions-color: @text-color-secondary; + +// Steps +// --- +@process-tail-color: @border-color-split; +@steps-nav-arrow-color: fade(@black, 25%); +@steps-background: @component-background; +@steps-icon-size: 32px; +@steps-icon-custom-size: @steps-icon-size; +@steps-icon-custom-top: 0px; +@steps-icon-custom-font-size: 24px; +@steps-icon-top: -0.5px; +@steps-icon-font-size: @font-size-lg; +@steps-icon-margin: 0 8px 0 0; +@steps-title-line-height: @height-base; +@steps-small-icon-size: 24px; +@steps-small-icon-margin: 0 8px 0 0; +@steps-dot-size: 8px; +@steps-dot-top: 2px; +@steps-current-dot-size: 10px; +@steps-description-max-width: 140px; +@steps-nav-content-max-width: auto; +@steps-vertical-icon-width: 16px; +@steps-vertical-tail-width: 16px; +@steps-vertical-tail-width-sm: 12px; + +// Notification +// --- +@notification-bg: @component-background; +@notification-padding-vertical: 16px; +@notification-padding-horizontal: 24px; + +// Result +// --- +@result-title-font-size: 24px; +@result-subtitle-font-size: @font-size-base; +@result-icon-font-size: 72px; +@result-extra-margin: 24px 0 0 0; + +// Image +// --- +@image-size-base: 48px; +@image-font-size-base: 24px; +@image-bg: #f5f5f5; +@image-color: #fff; +@image-mask-font-size: 16px; +@image-preview-operation-size: 18px; +@image-preview-operation-color: @text-color-dark; +@image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%); + +// Segmented +// --- +@segmented-bg: fade(@black, 4%); +@segmented-hover-bg: fade(@black, 6%); +@segmented-selected-bg: @white; +@segmented-label-color: fade(@black, 65%); +@segmented-label-hover-color: #262626; diff --git a/components/style/variable.less b/components/style/variable.less new file mode 100644 index 00000000..6c702934 --- /dev/null +++ b/components/style/variable.less @@ -0,0 +1,4 @@ +@root-entry-name: variable; + +@import './themes/variable.less'; +@import './core/index'; diff --git a/components/switch/style/entry.less b/components/switch/style/entry.less index 06547c43..96cebe33 100644 --- a/components/switch/style/entry.less +++ b/components/switch/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/switch/style/index.less b/components/switch/style/index.less index e4ea539e..33a02150 100644 --- a/components/switch/style/index.less +++ b/components/switch/style/index.less @@ -17,7 +17,8 @@ height: @switch-height; line-height: @switch-height; vertical-align: middle; - background-color: @disabled-color; + background-image: linear-gradient(to right, @disabled-color, @disabled-color), + linear-gradient(to right, @component-background, @component-background); border: 0; border-radius: 100px; cursor: pointer; @@ -30,7 +31,7 @@ } &-checked:focus { - box-shadow: 0 0 0 2px fade(@switch-color, 20%); + box-shadow: 0 0 0 2px @primary-1; } &:focus:hover { @@ -38,13 +39,14 @@ } &-checked { - background-color: @switch-color; + background: @switch-color; } &-loading, &-disabled { cursor: not-allowed; opacity: @switch-disabled-opacity; + * { box-shadow: none; cursor: not-allowed; @@ -106,7 +108,7 @@ } // ======================== Loading ========================= - &-loading-icon { + &-loading-icon.@{iconfont-css-prefix} { position: relative; top: ((@switch-pin-size - @font-size-base) / 2); color: rgba(0, 0, 0, 0.65); diff --git a/components/switch/style/patch.less b/components/switch/style/patch.less new file mode 100644 index 00000000..e69de29b diff --git a/components/switch/style/rtl.less b/components/switch/style/rtl.less index 0a5d52b5..7a7de94b 100644 --- a/components/switch/style/rtl.less +++ b/components/switch/style/rtl.less @@ -1,9 +1,11 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; -@import './index'; @switch-prefix-cls: ~'@{ant-prefix}-switch'; +@switch-pin-size: @switch-height - 4px; +@switch-sm-pin-size: @switch-sm-height - 4px; + .@{switch-prefix-cls}-rtl { direction: rtl; diff --git a/components/table/style/bordered.less b/components/table/style/bordered.less index 938e2505..30c09a0d 100644 --- a/components/table/style/bordered.less +++ b/components/table/style/bordered.less @@ -1,5 +1,6 @@ -@import './index'; @import './size'; +@import (reference) '../../style/themes/index'; +@table-prefix-cls: ~'@{ant-prefix}-table'; @table-border: @border-width-base @border-style-base @table-border-color; @@ -128,7 +129,8 @@ border-top: 0; } - &-scrollbar { + // https://github.com/ant-design/ant-design/issues/35577 + &-scrollbar:not([rowspan]) { box-shadow: 0 @border-width-base 0 @border-width-base @table-header-bg; } } diff --git a/components/table/style/entry.less b/components/table/style/entry.less index 85545241..b7d72fd7 100644 --- a/components/table/style/entry.less +++ b/components/table/style/entry.less @@ -1,2 +1,10 @@ @import './index.less'; -@import './patch.less'; \ No newline at end of file +@import './patch.less'; +// style dependencies +// deps-lint-skip: menu +@import '../../empty/style/entry.less'; +@import '../../radio/style/entry.less'; +@import '../../checkbox/style/entry.less'; +@import '../../dropdown/style/entry.less'; +@import '../../spin/style/entry.less'; +@import '../../pagination/style/entry.less'; diff --git a/components/table/style/index.less b/components/table/style/index.less index 20a6c562..cc26a595 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -4,12 +4,14 @@ @import './bordered'; @table-prefix-cls: ~'@{ant-prefix}-table'; +@tree-prefix-cls: ~'@{ant-prefix}-tree'; @dropdown-prefix-cls: ~'@{ant-prefix}-dropdown'; @descriptions-prefix-cls: ~'@{ant-prefix}-descriptions'; @table-header-icon-color: #bfbfbf; @table-header-icon-color-hover: darken(@table-header-icon-color, 10%); -@table-sticky-zindex: (@zindex-table-fixed + 1); +@table-sticky-zindex: calc(@zindex-table-fixed + 1); @table-sticky-scroll-bar-active-bg: fade(@table-sticky-scroll-bar-bg, 80%); +@table-filter-dropdown-max-height: 264px; .@{table-prefix-cls}-wrapper { clear: both; @@ -143,10 +145,9 @@ } } - &.@{table-prefix-cls}-row:hover { - > td { - background: @table-row-hover-bg; - } + &.@{table-prefix-cls}-row:hover > td, + > td.@{table-prefix-cls}-cell-row-hover { + background: @table-row-hover-bg; } &.@{table-prefix-cls}-row-selected { @@ -215,6 +216,7 @@ // ============================ Sorter ============================ &-thead th.@{table-prefix-cls}-column-has-sorters { + outline: none; cursor: pointer; transition: all 0.3s; @@ -226,6 +228,10 @@ } } + &:focus-visible { + color: @primary-color; + } + // https://github.com/ant-design/ant-design/issues/30969 &.@{table-prefix-cls}-cell-fix-left:hover, &.@{table-prefix-cls}-cell-fix-right:hover { @@ -270,6 +276,7 @@ } &-column-sorter { + margin-left: 4px; color: @table-header-icon-color; font-size: 0; transition: color 0.3s; @@ -330,21 +337,64 @@ &-filter-dropdown { .reset-component(); + min-width: 120px; + background-color: @table-filter-dropdown-bg; + border-radius: @border-radius-base; + box-shadow: @box-shadow-base; + // Reset menu .@{dropdown-prefix-cls}-menu { // https://github.com/ant-design/ant-design/issues/4916 // https://github.com/ant-design/ant-design/issues/19542 - max-height: 264px; + max-height: @table-filter-dropdown-max-height; overflow-x: hidden; border: 0; box-shadow: none; + + &:empty::after { + display: block; + padding: 8px 0; + color: @disabled-color; + font-size: @font-size-sm; + text-align: center; + content: 'Not Found'; + } } - min-width: 120px; - background-color: @table-filter-dropdown-bg; + &-tree { + padding: 8px 8px 0; - border-radius: @border-radius-base; - box-shadow: @box-shadow-base; + .@{tree-prefix-cls}-treenode .@{tree-prefix-cls}-node-content-wrapper:hover { + background-color: @tree-node-hover-bg; + } + + .@{tree-prefix-cls}-treenode-checkbox-checked .@{tree-prefix-cls}-node-content-wrapper { + &, + &:hover { + background-color: @tree-node-selected-bg; + } + } + } + + &-search { + padding: 8px; + border-bottom: @border-width-base @border-color-split @border-style-base; + + &-input { + input { + min-width: 140px; + } + .@{iconfont-css-prefix} { + color: @disabled-color; + } + } + } + + &-checkall { + width: 100%; + margin-bottom: 4px; + margin-left: 4px; + } &-submenu > ul { max-height: calc(100vh - 130px); @@ -364,7 +414,7 @@ &-btns { display: flex; justify-content: space-between; - padding: 7px 8px 7px 3px; + padding: 7px 8px; overflow: hidden; background-color: @table-filter-btns-bg; border-top: @border-width-base @border-style-base @table-border-color; @@ -391,6 +441,10 @@ } } + table tr th&-selection-column&-cell-fix-left { + z-index: 3; + } + table tr th&-selection-column::after { background-color: transparent !important; } @@ -407,7 +461,7 @@ cursor: pointer; transition: all 0.3s; margin-inline-start: 100%; - padding-inline-start: @padding-xss; + padding-inline-start: (@table-padding-horizontal / 4); .@{iconfont-css-prefix} { color: @table-header-icon-color; @@ -459,13 +513,13 @@ &:focus, &:hover, &:active { - border-color: currentColor; + border-color: currentcolor; } &::before, &::after { position: absolute; - background: currentColor; + background: currentcolor; transition: transform 0.3s ease-out; content: ''; } @@ -489,6 +543,7 @@ &-collapsed::before { transform: rotate(-180deg); } + &-collapsed::after { transform: rotate(0deg); } @@ -543,6 +598,7 @@ .@{table-prefix-cls}-empty & { color: @disabled-color; } + &:hover { > td { background: @component-background; @@ -553,7 +609,6 @@ // ============================ Fixed ============================= &-cell-fix-left, &-cell-fix-right { - position: -webkit-sticky !important; position: sticky !important; z-index: @zindex-table-fixed; background: @table-bg; @@ -601,6 +656,7 @@ &::before { left: 0; } + &::after { right: 0; } @@ -639,6 +695,7 @@ box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%); } } + &-sticky { &-holder { position: sticky; @@ -655,16 +712,20 @@ background: lighten(@table-border-color, 80%); border-top: 1px solid @table-border-color; opacity: 0.6; + &:hover { transform-origin: center bottom; } + &-bar { height: 8px; background-color: @table-sticky-scroll-bar-bg; border-radius: @table-sticky-scroll-bar-radius; + &:hover { background-color: @table-sticky-scroll-bar-active-bg; } + &-active { background-color: @table-sticky-scroll-bar-active-bg; } @@ -680,6 +741,7 @@ box-shadow: none !important; } } + &-ping-right { .@{table-prefix-cls}-cell-fix-right-first::after { box-shadow: none !important; diff --git a/components/table/style/rtl.less b/components/table/style/rtl.less index 82758f29..2aba565e 100644 --- a/components/table/style/rtl.less +++ b/components/table/style/rtl.less @@ -32,6 +32,13 @@ } } + &:not(:last-child):not(.@{table-prefix-cls}-selection-column):not(.@{table-prefix-cls}-row-expand-icon-cell):not([colspan])::before { + .@{table-wrapepr-rtl-cls} & { + right: auto; + left: 0; + } + } + .@{table-wrapepr-rtl-cls} & { text-align: right; } @@ -73,7 +80,7 @@ // ============================ Sorter ============================ &-column-sorter { .@{table-wrapepr-rtl-cls} & { - margin-right: @padding-xs; + margin-right: 4px; margin-left: 0; } } @@ -93,10 +100,9 @@ } } - &-filter-trigger-container { + &-filter-trigger { .@{table-wrapepr-rtl-cls} & { - right: auto; - left: 0; + margin: -4px 4px -4px (-@table-padding-horizontal / 2); } } diff --git a/components/table/style/size.less b/components/table/style/size.less index f34a63c1..2f864ade 100644 --- a/components/table/style/size.less +++ b/components/table/style/size.less @@ -1,4 +1,6 @@ -@import './index'; +@import (reference) '../../style/themes/index'; + +@table-prefix-cls: ~'@{ant-prefix}-table'; .table-size(@size, @padding-vertical, @padding-horizontal, @font-size) { .@{table-prefix-cls}.@{table-prefix-cls}-@{size} { @@ -30,6 +32,11 @@ } } } + + // https://github.com/ant-design/ant-design/issues/35167 + .@{table-prefix-cls}-selection-column { + padding-inline-start: (@padding-horizontal / 4); + } } } @@ -42,13 +49,3 @@ // = Small = // ================================================================ .table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm, @table-font-size-sm); - -.@{table-prefix-cls}-small { - .@{table-prefix-cls}-thead > tr > th { - background-color: @table-header-bg-sm; - } - .@{table-prefix-cls}-selection-column { - width: 46px; - min-width: 46px; - } -} diff --git a/components/tabs/style/card.less b/components/tabs/style/card.less index 471da770..ccf23c4f 100644 --- a/components/tabs/style/card.less +++ b/components/tabs/style/card.less @@ -1,6 +1,7 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; -@import './index'; + +@tab-prefix-cls: ~'@{ant-prefix}-tabs'; .@{tab-prefix-cls}-card { > .@{tab-prefix-cls}-nav, diff --git a/components/tabs/style/dropdown.less b/components/tabs/style/dropdown.less index 7cbd9094..b0444afc 100644 --- a/components/tabs/style/dropdown.less +++ b/components/tabs/style/dropdown.less @@ -1,6 +1,7 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; -@import './index'; + +@tab-prefix-cls: ~'@{ant-prefix}-tabs'; .@{tab-prefix-cls}-dropdown { .reset-component(); @@ -30,6 +31,8 @@ box-shadow: @box-shadow-base; &-item { + display: flex; + align-items: center; min-width: 120px; margin: 0; padding: @dropdown-vertical-padding @control-padding-horizontal; @@ -43,6 +46,25 @@ cursor: pointer; transition: all 0.3s; + > span { + flex: 1; + white-space: nowrap; + } + + &-remove { + flex: none; + margin-left: @margin-sm; + color: @text-color-secondary; + font-size: @font-size-sm; + background: transparent; + border: 0; + cursor: pointer; + + &:hover { + color: @tabs-hover-color; + } + } + &:hover { background: @item-hover-bg; } diff --git a/components/tabs/style/entry.less b/components/tabs/style/entry.less index 06547c43..96cebe33 100644 --- a/components/tabs/style/entry.less +++ b/components/tabs/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index d6ffe501..0ff9cbc1 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -12,7 +12,6 @@ .reset-component(); display: flex; - overflow: hidden; // ========================== Navigation ========================== > .@{tab-prefix-cls}-nav, @@ -171,7 +170,7 @@ &&-active &-btn { color: @tabs-highlight-color; - text-shadow: 0 0 0.25px currentColor; + text-shadow: 0 0 0.25px currentcolor; } &&-disabled { diff --git a/components/tabs/style/patch.less b/components/tabs/style/patch.less new file mode 100644 index 00000000..d7a24546 --- /dev/null +++ b/components/tabs/style/patch.less @@ -0,0 +1,93 @@ +@import './index'; + +.ant-tabs-dropdown-menu-item a[antblazor-tab-link] { + position: relative; +} + +a[antblazor-tab-link] { + &::before { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: transparent; + content: ''; + } + + ~ * { + position: relative; + } +} + +.antblazor-tabs-dropdown.ant-dropdown { + .ant-dropdown-menu { + max-height: 200px; + margin: 0; + padding: @dropdown-edge-child-vertical-padding 0; + overflow-x: hidden; + overflow-y: auto; + text-align: left; + list-style-type: none; + background-color: @dropdown-menu-bg; + background-clip: padding-box; + border-radius: @border-radius-base; + outline: none; + box-shadow: @box-shadow-base; + + &-item { + min-width: 120px; + margin: 0; + padding: @dropdown-vertical-padding @control-padding-horizontal; + overflow: hidden; + color: @text-color; + font-weight: normal; + font-size: @dropdown-font-size; + line-height: @dropdown-line-height; + white-space: nowrap; + text-overflow: ellipsis; + cursor: pointer; + transition: all 0.3s; + + &:hover { + background: @item-hover-bg; + } + + &-disabled { + &, + &:hover { + color: @disabled-color; + background: transparent; + cursor: not-allowed; + + a { + pointer-events: none; + color: @disabled-color; + } + } + } + } + } +} + +.@{tab-prefix-cls} { + &-rtl { + &-tab-next { + .@{tab-prefix-cls}-rtl & { + right: auto; + left: 2px; + } + } + } + &-tab-disabled a { + pointer-events: none; + color: @disabled-color; + } + > .@{tab-prefix-cls}-nav, + > div > .@{tab-prefix-cls}-nav { + + .@{tab-prefix-cls}-nav-add { + min-height: @tabs-card-height; + } + } +} diff --git a/components/tabs/style/position.less b/components/tabs/style/position.less index 9da9bb8a..9087f43b 100644 --- a/components/tabs/style/position.less +++ b/components/tabs/style/position.less @@ -1,4 +1,5 @@ -@import './index'; +@import '../../style/themes/index'; +@tab-prefix-cls: ~'@{ant-prefix}-tabs'; .@{tab-prefix-cls} { // ========================== Top & Bottom ========================== @@ -39,6 +40,7 @@ left: 0; box-shadow: inset 10px 0 8px -8px fade(@shadow-color, 8%); } + &::after { right: 0; box-shadow: inset -10px 0 8px -8px fade(@shadow-color, 8%); @@ -122,6 +124,7 @@ top: 0; box-shadow: inset 0 10px 8px -8px fade(@shadow-color, 8%); } + &::after { bottom: 0; box-shadow: inset 0 -10px 8px -8px fade(@shadow-color, 8%); diff --git a/components/tabs/style/rtl.less b/components/tabs/style/rtl.less index 7d38e94d..bfe4d84f 100644 --- a/components/tabs/style/rtl.less +++ b/components/tabs/style/rtl.less @@ -77,6 +77,7 @@ &-rtl { direction: rtl; } + &-menu-item { .@{tab-prefix-cls}-dropdown-rtl & { text-align: right; diff --git a/components/tabs/style/size.less b/components/tabs/style/size.less index 43a75f17..03c0fea9 100644 --- a/components/tabs/style/size.less +++ b/components/tabs/style/size.less @@ -1,6 +1,7 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; -@import './index'; + +@tab-prefix-cls: ~'@{ant-prefix}-tabs'; .@{tab-prefix-cls} { &-small { diff --git a/components/tag/style/entry.less b/components/tag/style/entry.less index 85545241..06547c43 100644 --- a/components/tag/style/entry.less +++ b/components/tag/style/entry.less @@ -1,2 +1 @@ @import './index.less'; -@import './patch.less'; \ No newline at end of file diff --git a/components/tag/style/index.less b/components/tag/style/index.less index aabb7029..f65fd369 100644 --- a/components/tag/style/index.less +++ b/components/tag/style/index.less @@ -15,7 +15,7 @@ white-space: nowrap; background: @tag-default-bg; border: @border-width-base @border-style-base @border-color-base; - border-radius: @border-radius-base; + border-radius: @tag-border-radius; opacity: 1; transition: all 0.3s; @@ -58,16 +58,20 @@ background-color: transparent; border-color: transparent; cursor: pointer; + &:not(&-checked):hover { color: @primary-color; } + &:active, &-checked { color: @text-color-inverse; } + &-checked { background-color: @primary-6; } + &:active { background-color: @primary-7; } @@ -97,23 +101,23 @@ } } - .make-status-color-classes(@color, @status) { - @lightColor: '@{color}-1'; - @lightBorderColor: '@{color}-3'; - @darkColor: '@{color}-6'; + .make-status-color-classes(@status, @cssVariableType) { + @bgColor: '@{cssVariableType}-color-deprecated-bg'; + @borderColor: '@{cssVariableType}-color-deprecated-border'; + @textColor: '@{cssVariableType}-color'; &-@{status} { - color: @@darkColor; - background: @@lightColor; - border-color: @@lightBorderColor; + color: @@textColor; + background: @@bgColor; + border-color: @@borderColor; } } .make-color-classes(); - .make-status-color-classes('green', success); - .make-status-color-classes('blue', processing); - .make-status-color-classes('red', error); - .make-status-color-classes('orange', warning); + .make-status-color-classes(success, success); + .make-status-color-classes(processing, info); + .make-status-color-classes(error, error); + .make-status-color-classes(warning, warning); // To ensure that a space will be placed between character and `Icon`. > .@{iconfont-css-prefix} + span, diff --git a/components/timeline/style/index.less b/components/timeline/style/index.less index 506e6bac..cca335a6 100644 --- a/components/timeline/style/index.less +++ b/components/timeline/style/index.less @@ -136,7 +136,6 @@ .@{timeline-prefix-cls}-item-tail, .@{timeline-prefix-cls}-item-head, .@{timeline-prefix-cls}-item-head-custom { - // stylelint-disable-next-line function-calc-no-invalid left: calc(100% - 4px - @timeline-width); } .@{timeline-prefix-cls}-item-content { diff --git a/components/timeline/style/index.tsx b/components/timeline/style/index.tsx new file mode 100644 index 00000000..3a3ab0de --- /dev/null +++ b/components/timeline/style/index.tsx @@ -0,0 +1,2 @@ +import '../../style/index.less'; +import './index.less'; diff --git a/components/tooltip/style/entry.less b/components/tooltip/style/entry.less index 06547c43..911f7808 100644 --- a/components/tooltip/style/entry.less +++ b/components/tooltip/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import "./patch"; diff --git a/components/tooltip/style/index.less b/components/tooltip/style/index.less index 73c9059e..b24c2f76 100644 --- a/components/tooltip/style/index.less +++ b/components/tooltip/style/index.less @@ -19,9 +19,14 @@ z-index: @zindex-tooltip; display: block; width: max-content; + width: intrinsic; max-width: @tooltip-max-width; visibility: visible; + &-content { + position: relative; + } + &-hidden { display: none; } @@ -67,6 +72,7 @@ // Arrows &-arrow { position: absolute; + z-index: 2; display: block; width: @tooltip-arrow-rotate-width; height: @tooltip-arrow-rotate-width; @@ -75,6 +81,13 @@ pointer-events: none; &-content { + // Use linear gradient to mix box shadow of tooltip inner + --antd-arrow-background-color: linear-gradient( + to right bottom, + fadeout(@tooltip-bg, 10%), + @tooltip-bg + ); + position: absolute; top: 0; right: 0; @@ -84,16 +97,18 @@ width: @tooltip-arrow-width; height: @tooltip-arrow-width; margin: auto; - background-color: @tooltip-bg; + background-color: transparent; content: ''; pointer-events: auto; + .roundedArrow(@tooltip-arrow-width, 5px); } } &-placement-top &-arrow, &-placement-topLeft &-arrow, &-placement-topRight &-arrow { - bottom: @tooltip-distance - @tooltip-arrow-rotate-width; + bottom: 0; + transform: translateY(100%); &-content { box-shadow: @tooltip-arrow-shadow-width @tooltip-arrow-shadow-width 7px fade(@black, 7%); @@ -103,7 +118,7 @@ &-placement-top &-arrow { left: 50%; - transform: translateX(-50%); + transform: translateY(100%) translateX(-50%); } &-placement-topLeft &-arrow { @@ -117,17 +132,18 @@ &-placement-right &-arrow, &-placement-rightTop &-arrow, &-placement-rightBottom &-arrow { - left: @tooltip-distance - @tooltip-arrow-rotate-width; + left: 0; + transform: translateX(-100%); &-content { box-shadow: -@tooltip-arrow-shadow-width @tooltip-arrow-shadow-width 7px fade(@black, 7%); - transform: translateX((@tooltip-arrow-rotate-width / 2)) rotate(45deg); + transform: translateX((@tooltip-arrow-rotate-width / 2)) rotate(135deg); } } &-placement-right &-arrow { top: 50%; - transform: translateY(-50%); + transform: translateX(-100%) translateY(-50%); } &-placement-rightTop &-arrow { @@ -141,17 +157,18 @@ &-placement-left &-arrow, &-placement-leftTop &-arrow, &-placement-leftBottom &-arrow { - right: @tooltip-distance - @tooltip-arrow-rotate-width; + right: 0; + transform: translateX(100%); &-content { box-shadow: @tooltip-arrow-shadow-width -@tooltip-arrow-shadow-width 7px fade(@black, 7%); - transform: translateX((-@tooltip-arrow-rotate-width / 2)) rotate(45deg); + transform: translateX((-@tooltip-arrow-rotate-width / 2)) rotate(315deg); } } &-placement-left &-arrow { top: 50%; - transform: translateY(-50%); + transform: translateX(100%) translateY(-50%); } &-placement-leftTop &-arrow { @@ -165,17 +182,18 @@ &-placement-bottom &-arrow, &-placement-bottomLeft &-arrow, &-placement-bottomRight &-arrow { - top: @tooltip-distance - @tooltip-arrow-rotate-width; + top: 0; + transform: translateY(-100%); &-content { box-shadow: -@tooltip-arrow-shadow-width -@tooltip-arrow-shadow-width 7px fade(@black, 7%); - transform: translateY((@tooltip-arrow-rotate-width / 2)) rotate(45deg); + transform: translateY((@tooltip-arrow-rotate-width / 2)) rotate(225deg); } } &-placement-bottom &-arrow { left: 50%; - transform: translateX(-50%); + transform: translateY(-100%) translateX(-50%); } &-placement-bottomLeft &-arrow { @@ -196,8 +214,8 @@ background-color: @@lightColor; } .@{tooltip-prefix-cls}-arrow { - &-content { - background-color: @@lightColor; + &-content::before { + background: @@lightColor; } } } diff --git a/components/tooltip/style/patch.less b/components/tooltip/style/patch.less new file mode 100644 index 00000000..5d0819c0 --- /dev/null +++ b/components/tooltip/style/patch.less @@ -0,0 +1,3 @@ +.ant-tooltip { + position: relative; +} diff --git a/components/transfer/style/customize.less b/components/transfer/style/customize.less index 614df085..042a0cb1 100644 --- a/components/transfer/style/customize.less +++ b/components/transfer/style/customize.less @@ -1,4 +1,6 @@ -@import './index.less'; +@import '../../style/themes/index'; + +@transfer-prefix-cls: ~'@{ant-prefix}-transfer'; @table-prefix-cls: ~'@{ant-prefix}-table'; @input-prefix-cls: ~'@{ant-prefix}-input'; diff --git a/components/transfer/style/entry.less b/components/transfer/style/entry.less index 06547c43..a6d8cc22 100644 --- a/components/transfer/style/entry.less +++ b/components/transfer/style/entry.less @@ -1 +1,6 @@ @import './index.less'; +// style dependencies +@import '../../empty/style/entry.less'; +@import '../../checkbox/style/entry.less'; +@import '../../button/style/entry.less'; +@import '../../input/style/entry.less'; diff --git a/components/transfer/style/index.less b/components/transfer/style/index.less index 1d4d36db..c40b5537 100644 --- a/components/transfer/style/index.less +++ b/components/transfer/style/index.less @@ -2,6 +2,7 @@ @import '../../style/mixins/index'; @import '../../checkbox/style/mixin'; @import './customize'; +@import './status'; @transfer-prefix-cls: ~'@{ant-prefix}-transfer'; @@ -36,28 +37,8 @@ } &-search { - padding-right: 24px; - padding-left: @control-padding-horizontal-sm; - &-action { - position: absolute; - top: @transfer-list-search-icon-top; - right: 12px; - bottom: 12px; - width: 28px; + .anticon-search { color: @disabled-color; - line-height: @input-height-base; - text-align: center; - - .@{iconfont-css-prefix} { - color: @disabled-color; - transition: all 0.3s; - &:hover { - color: @text-color-secondary; - } - } - span& { - pointer-events: none; - } } } @@ -172,7 +153,7 @@ } &.@{transfer-prefix-cls}-list-content-item-checked:hover { - background-color: darken(@item-active-bg, 2%); + background-color: @transfer-item-selected-hover-bg; } } diff --git a/components/transfer/style/rtl.less b/components/transfer/style/rtl.less index 88562310..ee9077e6 100644 --- a/components/transfer/style/rtl.less +++ b/components/transfer/style/rtl.less @@ -15,6 +15,7 @@ padding-right: @control-padding-horizontal-sm; padding-left: 24px; } + &-action { .@{transfer-prefix-cls}-rtl & { right: auto; @@ -35,6 +36,7 @@ right: 0; left: auto; } + &-title { .@{transfer-prefix-cls}-rtl & { text-align: left; diff --git a/components/transfer/style/status.less b/components/transfer/style/status.less new file mode 100644 index 00000000..a8612231 --- /dev/null +++ b/components/transfer/style/status.less @@ -0,0 +1,31 @@ +@import '../../input/style/mixin'; + +@transfer-prefix-cls: ~'@{ant-prefix}-transfer'; + +.transfer-status-color(@color) { + .@{transfer-prefix-cls}-list { + border-color: @color; + + &-search:not([disabled]) { + border-color: @input-border-color; + + &:hover { + .hover(); + } + + &:focus { + .active(); + } + } + } +} + +.@{transfer-prefix-cls} { + &-status-error { + .transfer-status-color(@error-color); + } + + &-status-warning { + .transfer-status-color(@warning-color); + } +} diff --git a/components/tree-select/style/entry.less b/components/tree-select/style/entry.less index 06547c43..89b9b47d 100644 --- a/components/tree-select/style/entry.less +++ b/components/tree-select/style/entry.less @@ -1 +1,7 @@ @import './index.less'; +// style dependencies +// deps-lint-skip: select +@import '../../tree/style/entry.less'; +@import '../../select/style/entry.less'; +@import '../../empty/style/entry.less'; +@import "./patch.less"; diff --git a/components/tree-select/style/index.less b/components/tree-select/style/index.less index e6672b58..b2cf719f 100644 --- a/components/tree-select/style/index.less +++ b/components/tree-select/style/index.less @@ -11,7 +11,7 @@ .@{tree-select-prefix-cls} { // ======================= Dropdown ======================= &-dropdown { - padding: @padding-xs (@padding-xs / 2) 0; + padding: @padding-xs (@padding-xs / 2); &-rtl { direction: rtl; @@ -24,8 +24,6 @@ align-items: stretch; .@{select-tree-prefix-cls}-treenode { - padding-bottom: @padding-xs; - .@{select-tree-prefix-cls}-node-content-wrapper { flex: auto; } diff --git a/components/tree-select/style/patch.less b/components/tree-select/style/patch.less new file mode 100644 index 00000000..371b0735 --- /dev/null +++ b/components/tree-select/style/patch.less @@ -0,0 +1,9 @@ +.ant-tree.ant-select-tree.ant-tree-show-line antblazor-tree-node[builtin]:not(:last-child) > li::before { + content: ' '; + width: 1px; + border-left: 1px solid #d9d9d9; + height: calc(100% - 16px); + position: absolute; + left: 12px; + margin: 26px 0; +} \ No newline at end of file diff --git a/components/tree/style/entry.less b/components/tree/style/entry.less index 06547c43..96cebe33 100644 --- a/components/tree/style/entry.less +++ b/components/tree/style/entry.less @@ -1 +1,2 @@ @import './index.less'; +@import './patch.less'; diff --git a/components/tree/style/mixin.less b/components/tree/style/mixin.less index 197c2066..3a502753 100644 --- a/components/tree/style/mixin.less +++ b/components/tree/style/mixin.less @@ -1,7 +1,6 @@ @import '../../style/mixins/index'; @tree-prefix-cls: ~'@{ant-prefix}-tree'; -@tree-node-prefix-cls: ~'@{tree-prefix-cls}-treenode'; @select-tree-prefix-cls: ~'@{ant-prefix}-select-tree'; @tree-motion: ~'@{ant-prefix}-motion-collapse'; @tree-node-padding: (@padding-xs / 2); @@ -13,6 +12,7 @@ display: inline-block; font-size: 10px; vertical-align: baseline; + svg { transition: transform 0.3s; } @@ -28,6 +28,7 @@ background-color: @primary-color; border-radius: 1px; pointer-events: none; + &::after { position: absolute; top: -3px; @@ -66,6 +67,26 @@ .@{custom-tree-prefix-cls}-node-content-wrapper { flex: auto; } + + // >>> Drag + .@{custom-tree-node-prefix-cls}.dragging { + position: relative; + + &::after { + position: absolute; + top: 0; + right: 0; + bottom: @tree-node-padding; + left: 0; + border: 1px solid @primary-color; + opacity: 0; + animation: ant-tree-node-fx-do-not-use 0.3s; + animation-play-state: running; + animation-fill-mode: forwards; + content: ''; + pointer-events: none; + } + } } } @@ -110,6 +131,19 @@ } } + // >>> Drag Handler + &-draggable-icon { + width: @tree-title-height; + line-height: @tree-title-height; + text-align: center; + opacity: 0.2; + transition: opacity @animation-duration-slow; + + .@{custom-tree-node-prefix-cls}:hover & { + opacity: 0.45; + } + } + // >>> Switcher &-switcher { .antTreeSwitcherIcon(); @@ -145,19 +179,21 @@ display: inline-block; width: 100%; height: 100%; + // https://github.com/ant-design/ant-design/issues/31884 &::before { position: absolute; top: 0; + right: 12px; bottom: -@tree-node-padding; margin-left: -1px; - border-left: 1px solid @normal-color; + border-right: 1px solid @normal-color; content: ' '; } + &::after { position: absolute; width: @tree-title-height - 14px; height: @tree-title-height - 10px; - margin-left: -1px; border-bottom: 1px solid @normal-color; content: ' '; } @@ -200,6 +236,7 @@ line-height: @tree-title-height; text-align: center; vertical-align: top; + &:empty { display: none; } @@ -212,7 +249,7 @@ } // ==================== Draggable ===================== - &-node-content-wrapper[draggable='true'] { + &-node-content-wrapper { line-height: @tree-title-height; user-select: none; @@ -255,20 +292,31 @@ background: @component-background; &-line-icon { - vertical-align: -0.225em; + // https://github.com/ant-design/ant-design/issues/32813 + vertical-align: -0.15em; + } + } + } + + .@{custom-tree-node-prefix-cls}-leaf-last { + .@{custom-tree-prefix-cls}-switcher { + &-leaf-line { + &::before { + top: auto !important; + bottom: auto !important; + height: @tree-title-height - 10px !important; + } } } } } -.@{tree-node-prefix-cls}-leaf-last { - .@{tree-prefix-cls}-switcher { - &-leaf-line { - &::before { - top: auto !important; - bottom: auto !important; - height: @tree-title-height - 10px !important; - } - } +@keyframes ant-tree-node-fx-do-not-use { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; } } diff --git a/components/tree/style/patch.less b/components/tree/style/patch.less new file mode 100644 index 00000000..9a03da74 --- /dev/null +++ b/components/tree/style/patch.less @@ -0,0 +1,13 @@ +/* + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ng-zorro-antd/blob/master/LICENSE + */ + +.font-highlight { + color: @highlight-color; +} + +.@{tree-prefix-cls}-child-tree { + // The overflow of the collapse animation in edge and IE is invalid + overflow: hidden; +} diff --git a/components/tree/style/rtl.less b/components/tree/style/rtl.less index bc985c95..7604ef60 100644 --- a/components/tree/style/rtl.less +++ b/components/tree/style/rtl.less @@ -56,7 +56,7 @@ } // >>> Checkbox &-checkbox { - .@{tree-prefix-cls}-rtl& { + .@{tree-prefix-cls}-rtl & { margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px; } } diff --git a/components/typography/style/entry.less b/components/typography/style/entry.less index 06547c43..f65fa7e8 100644 --- a/components/typography/style/entry.less +++ b/components/typography/style/entry.less @@ -1 +1,5 @@ @import './index.less'; + +// style dependencies +@import '../../tooltip/style/entry.less'; +@import '../../input/style/entry.less'; \ No newline at end of file diff --git a/components/typography/style/index.less b/components/typography/style/index.less index 94b31810..44697817 100644 --- a/components/typography/style/index.less +++ b/components/typography/style/index.less @@ -22,10 +22,14 @@ &&-danger { color: @error-color; + a&:active, - a&:focus, + a&:focus { + color: @error-color-active; + } + a&:hover { - color: ~`colorPalette('@{error-color}', 5) `; + color: @error-color-hover; } } @@ -42,22 +46,36 @@ } h1&, + div&-h1, + div&-h1 > textarea, h1 { .typography-title-1(); } + h2&, + div&-h2, + div&-h2 > textarea, h2 { .typography-title-2(); } + h3&, + div&-h3, + div&-h3 > textarea, h3 { .typography-title-3(); } + h4&, + div&-h4, + div&-h4 > textarea, h4 { .typography-title-4(); } + h5&, + div&-h5, + div&-h5 > textarea, h5 { .typography-title-5(); } @@ -185,7 +203,6 @@ div& { left: -@input-padding-horizontal - 1px; margin-top: -@input-padding-vertical-base - 1px; - // stylelint-disable-next-line function-calc-no-invalid margin-bottom: calc(1em - @input-padding-vertical-base - 1px); } @@ -194,11 +211,19 @@ right: 10px; bottom: 8px; color: @text-color-secondary; + // default style + font-weight: normal; + font-size: @font-size-base; + font-style: normal; pointer-events: none; } // Fix Editable Textarea flash in Firefox textarea { + // https://stackoverflow.com/a/7695964/3040605 + height: 1em; + margin: 0 !important; + /* stylelint-disable-next-line property-no-vendor-prefix */ -moz-transition: none; } } @@ -206,7 +231,7 @@ // list ul, ol { - margin: 0 0 1em 0; + margin: 0 0 1em; padding: 0; li { @@ -276,9 +301,11 @@ } &-ellipsis-multiple-line { + /* stylelint-disable-next-line value-no-vendor-prefix */ display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; + /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; } diff --git a/components/upload/style/entry.less b/components/upload/style/entry.less index 06547c43..a8afbc67 100644 --- a/components/upload/style/entry.less +++ b/components/upload/style/entry.less @@ -1 +1,5 @@ @import './index.less'; +// style dependencies +@import '../../progress/style/entry.less'; +@import '../../tooltip/style/entry.less'; +@import './patch.less'; diff --git a/components/upload/style/index.less b/components/upload/style/index.less index bc4f9393..80c06722 100644 --- a/components/upload/style/index.less +++ b/components/upload/style/index.less @@ -121,6 +121,7 @@ color: @disabled-color; font-size: 30px; transition: all 0.3s; + &:hover { color: @text-color-secondary; } @@ -149,6 +150,7 @@ height: @line-height-base * @font-size-base; margin-top: @margin-xs; font-size: @font-size-base; + &-name { display: inline-block; width: 100%; @@ -166,9 +168,11 @@ &-btn { opacity: 0; } + &-btn.@{ant-prefix}-btn-sm { - height: 20px; + height: @line-height-base * @font-size-base; line-height: 1; + vertical-align: top; } &.picture { @@ -183,12 +187,16 @@ .@{iconfont-css-prefix} { color: @upload-actions-color; + transition: all 0.3s; + } + + &:hover .@{iconfont-css-prefix} { + color: @text-color; } } &-info { height: 100%; - padding: 0 4px; transition: background-color 0.3s; > span { @@ -208,30 +216,10 @@ } } - .@{iconfont-css-prefix}-close { - position: absolute; - top: 6px; - right: 4px; - color: @text-color-secondary; - font-size: 10px; - line-height: 0; - cursor: pointer; - opacity: 0; - transition: all 0.3s; - - &:hover { - color: @text-color; - } - } - &:hover &-info { background-color: @item-hover-bg; } - &:hover .@{iconfont-css-prefix}-close { - opacity: 1; - } - &:hover &-card-actions-btn { opacity: 1; } @@ -246,6 +234,7 @@ .@{iconfont-css-prefix} { color: @error-color; } + &-btn { opacity: 1; } @@ -295,7 +284,7 @@ .@{upload-item}-thumbnail { width: 48px; height: 48px; - line-height: 54px; + line-height: 60px; text-align: center; opacity: 0.8; @@ -309,7 +298,7 @@ .@{iconfont-css-prefix} { svg path { &[fill='#e6f7ff'] { - fill: color(~`colorPalette('@{error-color}', 1) `); + fill: @error-color-deprecated-bg; } &[fill='#1890ff'] { @@ -357,7 +346,7 @@ } .@{upload-item}-uploading .@{upload-item}-name { - line-height: 28px; + margin-bottom: 12px; } .@{upload-item}-progress { @@ -366,14 +355,6 @@ margin-top: 0; padding-left: 56px; } - - .@{iconfont-css-prefix}-close { - position: absolute; - top: 8px; - right: 8px; - line-height: 1; - opacity: 1; - } } // ======================== Picture Card ======================== @@ -386,10 +367,6 @@ vertical-align: top; } - &.@{upload-prefix-cls}-list::after { - display: none; - } - .@{upload-item} { height: 100%; margin: 0; @@ -527,6 +504,7 @@ .@{upload-item}-name { flex: auto; + margin: 0; padding: 0 @padding-xs; } diff --git a/components/upload/style/patch.less b/components/upload/style/patch.less new file mode 100644 index 00000000..323113ed --- /dev/null +++ b/components/upload/style/patch.less @@ -0,0 +1,3 @@ +.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item { + float: unset; +} diff --git a/components/upload/style/rtl.less b/components/upload/style/rtl.less index d615c330..a7054731 100644 --- a/components/upload/style/rtl.less +++ b/components/upload/style/rtl.less @@ -21,6 +21,7 @@ &-rtl { direction: rtl; } + &-item-list-type-text { &:hover { .@{upload-prefix-cls}-list-item-name-icon-count-1 { @@ -37,6 +38,7 @@ } } } + &-item { &-name { .@{upload-prefix-cls}-list-rtl & { @@ -70,13 +72,6 @@ } } - .@{iconfont-css-prefix}-close { - .@{upload-prefix-cls}-list-rtl & { - right: auto; - left: 4px; - } - } - &-error &-card-actions { .@{iconfont-css-prefix} { .@{upload-prefix-cls}-list-rtl & { @@ -143,13 +138,6 @@ padding-left: 0; } } - - .@{iconfont-css-prefix}-close { - .@{upload-prefix-cls}-list-rtl& { - right: auto; - left: 8px; - } - } } &-picture-card { diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 00000000..0ca9f676 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,17 @@ +const path = require('path'); + +const projectDir = __dirname; +const tsconfigPath = path.join(projectDir, 'scripts/gulp/tsconfig.json'); + +if (projectDir.includes(' ')) { + console.error('Error: Cannot run the build tasks if the project is ' + + 'located in a directory with spaces in between. Please rename your project directory.'); + process.exit(1); +} + +// Register TS compilation. +require('ts-node').register({ + project: tsconfigPath +}); + +require('./scripts/gulp/gulpfile'); \ No newline at end of file diff --git a/package.json b/package.json index f1590c28..545538bf 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ "url": "https://github.com/ElderJames/ant-design-blazor/issues" }, "scripts": { - "start": "dotnet watch -p ./site/AntDesign.Docs.Server run -f net6", - "start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run -f net6", - "gulp:components": "gulp --gulpfile ./components/gulpfile.js", - "gulp:docs": "gulp --gulpfile ./site/AntDesign.Docs/gulpfile.js", + "start": "dotnet watch -p ./site/AntDesign.Docs.Server run -f net5", + "start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run -f net5", + "build:lib": "gulp build:library", + "build:doc": "gulp build:preview --max-old-space-size=81920", "preinstall": "dotnet tool restore", "changelog": "node ./scripts/print-changelog" }, @@ -33,6 +33,9 @@ "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", "@types/es6-promise": "^3.3.0", + "@types/fs-extra": "^9.0.5", + "@types/gulp": "^4.0.7", + "@types/less": "^3.0.3", "@types/node": "^16.3.2", "@types/resize-observer-browser": "^0.1.3", "antd-theme-generator": "1.2.2", @@ -43,8 +46,9 @@ "chalk": "^4.0.0", "fs-extra": "^9.0.0", "gulp": "^4.0.2", + "gulp-clean": "^0.4.0", "gulp-clean-css": "^4.3.0", - "gulp-less": "^5.0.0", + "gulp-less": "^4.0.1", "gulp-rename": "^2.0.0", "gulp-sourcemaps": "^2.6.5", "gulp-typescript": "^6.0.0-alpha.1", @@ -53,10 +57,16 @@ "inquirer": "^7.1.0", "jquery": "^3.4.1", "jsdom": "^16.0.0", + "less": "^4.1.0", + "less-plugin-clean-css": "^1.5.1", + "less-plugin-npm-import": "^2.1.0", + "less-vars-to-js": "^1.3.0", "lint-staged": "^10.2.11", "node-fetch": "^2.6.0", "open": "^7.0.3", - "simple-git": "^3.6.0", + "resolve-bin": "^0.4.0", + "simple-git": "^3.7.0", + "ts-node": "^10.8.0", "tsify": "^4.0.2", "typescript": "^3.8.3", "vinyl-buffer": "^1.0.1", @@ -65,4 +75,4 @@ "dependencies": { "antblazor.js-ts.tests": "file:tests/AntDesign.Tests.Js" } -} \ No newline at end of file +} diff --git a/scripts/build-config.ts b/scripts/build-config.ts new file mode 100644 index 00000000..8950b857 --- /dev/null +++ b/scripts/build-config.ts @@ -0,0 +1,33 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import { existsSync } from 'fs'; +import { dirname, join, resolve } from 'path'; + +export interface BuildConfig { + projectVersion: string; + projectDir: string; + componentsDir: string; + scriptsDir: string; + outputDir: string; + publishDir: string; + libDir: string; +} + +const BUILD_CONFIG_FILENAME = 'build-config.js'; + +export function findBuildConfig(): string { + let currentDir = process.cwd(); + + while (!existsSync(resolve(currentDir, BUILD_CONFIG_FILENAME))) { + currentDir = dirname(currentDir); + } + + return join(currentDir, BUILD_CONFIG_FILENAME); +} + +const buildConfigPath = findBuildConfig(); + +export const buildConfig = require(buildConfigPath) as BuildConfig; diff --git a/scripts/build/aliyun-vars.ts b/scripts/build/aliyun-vars.ts new file mode 100644 index 00000000..c2f5e5cc --- /dev/null +++ b/scripts/build/aliyun-vars.ts @@ -0,0 +1,21 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as fs from 'fs-extra'; + +import * as path from 'path'; + +import { buildConfig } from '../build-config'; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const lessToJs = require('less-vars-to-js') as any; + +const stylePath = path.join(buildConfig.componentsDir, 'style'); +const aliyunLess = fs.readFileSync(path.join(stylePath, 'themes', 'aliyun.less'), 'utf8'); + +export const aliyunPaletteLess = lessToJs(`${aliyunLess}`, { + stripPrefix: true, + resolveVariables: false +}); diff --git a/scripts/build/compact-vars.ts b/scripts/build/compact-vars.ts new file mode 100644 index 00000000..5dca54d9 --- /dev/null +++ b/scripts/build/compact-vars.ts @@ -0,0 +1,21 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as fs from 'fs-extra'; + +import * as path from 'path'; + +import { buildConfig } from '../build-config'; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const lessToJs = require('less-vars-to-js') as any; + +const stylePath = path.join(buildConfig.componentsDir, 'style'); +const compactLess = fs.readFileSync(path.join(stylePath, 'themes', 'compact.less'), 'utf8'); + +export const compactPaletteLess = lessToJs(`${compactLess}`, { + stripPrefix: true, + resolveVariables: false +}); diff --git a/scripts/build/compile-styles.ts b/scripts/build/compile-styles.ts new file mode 100644 index 00000000..4d24bf96 --- /dev/null +++ b/scripts/build/compile-styles.ts @@ -0,0 +1,159 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as fs from 'fs-extra'; +import * as less from 'less'; + +import * as path from 'path'; + +import { buildConfig } from '../build-config'; + +const lessPluginCleanCSS = require('less-plugin-clean-css'); +const npmImportPlugin = require('less-plugin-npm-import'); + +async function compileLess( + content: string, + savePath: string, + min: boolean, + sub?: boolean, + rootPath?: string +): Promise { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const plugins: any[] = []; + const lessOptions: Less.Options = { plugins, javascriptEnabled: true }; + + if (min) { + plugins.push(new lessPluginCleanCSS({ advanced: true })); + } + + if (sub) { + lessOptions.paths = [path.dirname(rootPath as string)]; + lessOptions.filename = rootPath; + plugins.push( + new npmImportPlugin({ + prefix: '~' + }) + ); + } + + return less + .render(content, lessOptions) + .then(({ css }) => { + return fs.writeFile(savePath, css); + }) + .catch(err => Promise.reject(err)); +} + +const sourcePath = buildConfig.componentsDir; +const targetPath = buildConfig.publishDir; + +export async function compile(): Promise { + const componentFolders = fs.readdirSync(sourcePath); + const promiseList = []; + + for (const dir of componentFolders) { + if (await fs.pathExists(`${sourcePath}/${dir}/style/index.less`)) { + // Copy style files for each component. + await fs.copy(`${sourcePath}/${dir}/style`, `${targetPath}/${dir}/style`); + + // Compile less files to CSS and delete the `entry.less` file. + const buildFilePath = `${sourcePath}/${dir}/style/entry.less`; + const componentLess = await fs.readFile(buildFilePath, { encoding: 'utf8' }); + if (await fs.pathExists(buildFilePath)) { + // Rewrite `entry.less` file with `root-entry-name` + const entryLessFileContent = needTransformStyle(componentLess) + ? `@root-entry-name: default;\n${componentLess}` + : componentLess; + + promiseList.push( + compileLess( + entryLessFileContent, + path.join(targetPath, dir, 'style', `index.css`), + false, + true, + buildFilePath + ) + ); + promiseList.push( + compileLess( + entryLessFileContent, + path.join(targetPath, dir, 'style', `index.min.css`), + true, + true, + buildFilePath + ) + ); + } + } + } + + // Copy concentrated less files. + await fs.copy(path.resolve(sourcePath, 'style'), path.resolve(targetPath, 'style')); + await fs.writeFile(`${targetPath}/components.less`, await fs.readFile(`${sourcePath}/components.less`)); + await fs.writeFile(`${targetPath}/ant-design-blazor.less`, await fs.readFile(`${sourcePath}/ant-design-blazor.less`)); + await fs.writeFile( + `${targetPath}/ant-design-blazor.dark.less`, + await fs.readFile(`${sourcePath}/ant-design-blazor.dark.less`) + ); + await fs.writeFile( + `${targetPath}/ant-design-blazor.aliyun.less`, + await fs.readFile(`${sourcePath}/ant-design-blazor.aliyun.less`) + ); + await fs.writeFile( + `${targetPath}/ant-design-blazor.compact.less`, + await fs.readFile(`${sourcePath}/ant-design-blazor.compact.less`) + ); + + await fs.writeFile( + `${targetPath}/ant-design-blazor.variable.less`, + await fs.readFile(`${sourcePath}/ant-design-blazor.variable.less`) + ); + + // Compile concentrated less file to CSS file. + const lessContent = `@import "${path.posix.join(targetPath, 'ant-design-blazor.less')}";`; + promiseList.push(compileLess(lessContent, path.join(targetPath, 'ant-design-blazor.css'), false)); + promiseList.push(compileLess(lessContent, path.join(targetPath, 'ant-design-blazor.min.css'), true)); + + // Compile the dark theme less file to CSS file. + const darkLessContent = `@import "${path.posix.join(targetPath, 'ant-design-blazor.dark.less')}";`; + promiseList.push(compileLess(darkLessContent, path.join(targetPath, 'ant-design-blazor.dark.css'), false)); + promiseList.push(compileLess(darkLessContent, path.join(targetPath, 'ant-design-blazor.dark.min.css'), true)); + + // Compile the compact theme less file to CSS file. + const compactLessContent = `@import "${path.posix.join(targetPath, 'ant-design-blazor.compact.less')}";`; + promiseList.push(compileLess(compactLessContent, path.join(targetPath, 'ant-design-blazor.compact.css'), false)); + promiseList.push(compileLess(compactLessContent, path.join(targetPath, 'ant-design-blazor.compact.min.css'), true)); + + // Compile the aliyun theme less file to CSS file. + const aliyunLessContent = `@import "${path.posix.join(targetPath, 'ant-design-blazor.aliyun.less')}";`; + promiseList.push(compileLess(aliyunLessContent, path.join(targetPath, 'ant-design-blazor.aliyun.css'), false)); + promiseList.push(compileLess(aliyunLessContent, path.join(targetPath, 'ant-design-blazor.aliyun.min.css'), true)); + + // Compile the aliyun theme less file to CSS file. + const variableLessContent = `@import "${path.posix.join(targetPath, 'ant-design-blazor.variable.less')}";`; + promiseList.push(compileLess(variableLessContent, path.join(targetPath, 'ant-design-blazor.variable.css'), false)); + promiseList.push(compileLess(variableLessContent, path.join(targetPath, 'ant-design-blazor.variable.min.css'), true)); + + // Compile css file that doesn't have component-specific styles. + const cssIndexPath = path.join(sourcePath, 'style', 'entry.less'); + const cssIndex = await fs.readFile(cssIndexPath, { encoding: 'utf8' }); + + // Rewrite `entry.less` file with `root-entry-name` + const entryLessInStyle = needTransformStyle(cssIndex) ? `@root-entry-name: default;\n${cssIndex}` : cssIndex; + + promiseList.push( + compileLess(entryLessInStyle, path.join(targetPath, 'style', 'index.css'), false, true, cssIndexPath) + ); + promiseList.push( + compileLess(entryLessInStyle, path.join(targetPath, 'style', 'index.min.css'), true, true, cssIndexPath) + ); + return Promise.all(promiseList).catch(e => console.log(e)); +} + +function needTransformStyle(content: string): boolean { + return ( + content.includes('../../style/index.less') || content.includes('./index.less') || content.includes('/entry.less') + ); +} diff --git a/scripts/build/dark-vars.ts b/scripts/build/dark-vars.ts new file mode 100644 index 00000000..9d69c65d --- /dev/null +++ b/scripts/build/dark-vars.ts @@ -0,0 +1,23 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as fs from 'fs-extra'; + +import * as path from 'path'; + +import { buildConfig } from '../build-config'; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const lessToJs = require('less-vars-to-js') as any; + +const stylePath = path.join(buildConfig.componentsDir, 'style'); +const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8'); +const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8'); +const darkLess = fs.readFileSync(path.join(stylePath, 'themes', 'dark.less'), 'utf8'); + +export const darkPaletteLess = lessToJs(`${colorLess}${defaultLess}${darkLess}`, { + stripPrefix: true, + resolveVariables: false +}); diff --git a/scripts/build/generate-less-vars.ts b/scripts/build/generate-less-vars.ts new file mode 100644 index 00000000..79c69312 --- /dev/null +++ b/scripts/build/generate-less-vars.ts @@ -0,0 +1,22 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as fs from 'fs-extra'; + +import * as path from 'path'; + +import { buildConfig } from '../build-config'; +import { compactPaletteLess } from './compact-vars'; +import { darkPaletteLess } from './dark-vars'; + +export function generateLessVars(): void { + const dist = buildConfig.publishDir; + fs.writeFileSync(path.join(dist, 'dark-theme.js'), `module.exports = ${JSON.stringify(darkPaletteLess)}`, 'utf8'); + fs.writeFileSync( + path.join(dist, 'compact-theme.js'), + `module.exports = ${JSON.stringify(compactPaletteLess)}`, + 'utf8' + ); +} diff --git a/scripts/build/migration-styles.ts b/scripts/build/migration-styles.ts new file mode 100644 index 00000000..2bfacfc7 --- /dev/null +++ b/scripts/build/migration-styles.ts @@ -0,0 +1,26 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as fs from 'fs-extra'; + +import * as path from 'path'; + +import { buildConfig } from '../build-config'; + +const sourcePath = buildConfig.publishDir; +const targetPath = path.join(buildConfig.publishDir, `src`); + +export function copyStylesToSrc(): void { + fs.mkdirsSync(targetPath); + fs.copySync(path.resolve(sourcePath, `style`), path.resolve(targetPath, `style`)); + fs.copySync(path.resolve(sourcePath, `ant-design-blazor.css`), path.resolve(targetPath, `ant-design-blazor.css`)); + fs.copySync(path.resolve(sourcePath, `ant-design-blazor.min.css`), path.resolve(targetPath, `ant-design-blazor.min.css`)); + fs.outputFileSync( + path.resolve(targetPath, `ant-design-blazor.less`), + `@root-entry-name: default; +@import "../style/entry.less"; +@import "../components.less";` + ); +} diff --git a/scripts/gh-pages/index.html b/scripts/gh-pages/index.html index a4b56623..cbf35cef 100644 --- a/scripts/gh-pages/index.html +++ b/scripts/gh-pages/index.html @@ -12,7 +12,7 @@ - + diff --git a/scripts/gulp/gulpfile.ts b/scripts/gulp/gulpfile.ts new file mode 100644 index 00000000..76360c7f --- /dev/null +++ b/scripts/gulp/gulpfile.ts @@ -0,0 +1,15 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +/* eslint-disable import/no-unassigned-import */ +import { series, task } from 'gulp'; +import './tasks/clean'; +import './tasks/default'; + +import './tasks/interop'; +import './tasks/library'; +import './tasks/site'; + +task('build:preview', series('clean', 'init:site')); diff --git a/scripts/gulp/tasks/clean.ts b/scripts/gulp/tasks/clean.ts new file mode 100644 index 00000000..61e596c3 --- /dev/null +++ b/scripts/gulp/tasks/clean.ts @@ -0,0 +1,12 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import { task } from 'gulp'; + +import { buildConfig } from '../../build-config'; +import { cleanTask } from '../util/task-helpers'; + +/** Deletes the dist/ publish/ directory. */ +task('clean', cleanTask([buildConfig.outputDir, buildConfig.publishDir])); diff --git a/scripts/gulp/tasks/default.ts b/scripts/gulp/tasks/default.ts new file mode 100644 index 00000000..4bdf76c8 --- /dev/null +++ b/scripts/gulp/tasks/default.ts @@ -0,0 +1,23 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import { yellow } from 'chalk'; +import { parallel, task } from 'gulp'; + +task('help', done => { + console.log(); + console.log('Please specify a gulp task you want to run.'); + console.log(yellow('start:dev '), 'Start development.'); + console.log(yellow('build:library'), 'Build ant-design-blazor-lib to publish/ directory.'); + console.log(yellow('build:preview'), 'Build preview site to dist/ directory.'); + console.log( + yellow('build:release'), + 'Build releaseable library to publish/ directory and deployable site to dist/ directory.' + ); + console.log(); + done(); +}); + +task('default', parallel('help')); diff --git a/scripts/gulp/tasks/interop.ts b/scripts/gulp/tasks/interop.ts new file mode 100644 index 00000000..3f8eb3ff --- /dev/null +++ b/scripts/gulp/tasks/interop.ts @@ -0,0 +1,43 @@ +import { task, src, dest, parallel } from 'gulp'; + +var browserify = require('browserify'); +var source = require('vinyl-source-stream'); +var tsify = require('tsify'); +var uglify = require('gulp-uglify'); +var sourcemaps = require('gulp-sourcemaps'); +var buffer = require('vinyl-buffer'); +var gts = require("gulp-typescript"); +import { join } from 'path'; + +var tsProject = gts.createProject('tsconfig.json'); + +import { buildConfig } from '../../build-config'; + +task('ts', function () { + return browserify({ + basedir: '.', + debug: true, + entries: [join(buildConfig.componentsDir, './main.ts')], + cache: {}, + packageCache: {}, + }) + .plugin(tsify) + .transform('babelify', { + presets: ['es2015'], + extensions: ['.ts'] + }) + .bundle() + .pipe(source('ant-design-blazor.js')) + .pipe(buffer()) + .pipe(sourcemaps.init({ loadMaps: true })) + .pipe(uglify()) + .pipe(sourcemaps.write('./')) + .pipe(dest(join(buildConfig.publishDir))); +}); + +task("tsSplit", function () { + return src('core/JsInterop/**/*.ts').pipe(tsProject()) + .js.pipe(dest('wwwroot/js/split')); +}); + +task('library:scripts', parallel('ts', 'tsSplit')); \ No newline at end of file diff --git a/scripts/gulp/tasks/library.ts b/scripts/gulp/tasks/library.ts new file mode 100644 index 00000000..2bdef729 --- /dev/null +++ b/scripts/gulp/tasks/library.ts @@ -0,0 +1,51 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import { dest, parallel, series, src, task } from 'gulp'; + +import { join } from 'path'; +import { mkdirsSync } from 'fs-extra'; +import { buildConfig } from '../../build-config'; +import { compile as compileLess } from '../../build/compile-styles'; +import { generateLessVars } from '../../build/generate-less-vars'; +import { copyStylesToSrc } from '../../build/migration-styles'; + +task('library:mkdir-dir', done => { + mkdirsSync(buildConfig.publishDir); + done(); +}) + +// Compile less to the public directory. +task('library:compile-less', done => { + compileLess().then(() => { + copyStylesToSrc(); + done(); + }); +}); + +// Compile less to the public directory. +task('library:generate-less-vars', done => { + generateLessVars(); + done(); +}); + +// Copies files without ngcc to lib folder. +task('library:copy-libs-css', () => { + return src([join(buildConfig.publishDir, '*.css')]).pipe(dest(join(buildConfig.componentsDir, 'wwwroot/css'))); +}); + +task('library:copy-libs-js', () => { + return src([join(buildConfig.publishDir, '*.js*')]).pipe(dest(join(buildConfig.componentsDir, 'wwwroot/js'))); +}); + +task( + 'build:library', + series( + 'clean', + 'library:mkdir-dir', + parallel('library:scripts', 'library:compile-less'), + parallel('library:copy-libs-css', 'library:copy-libs-js'), + ) +); diff --git a/scripts/gulp/tasks/site.ts b/scripts/gulp/tasks/site.ts new file mode 100644 index 00000000..fe190a7b --- /dev/null +++ b/scripts/gulp/tasks/site.ts @@ -0,0 +1,14 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import { task } from 'gulp'; + +const themeGenerate = require('../../site/generate-theme'); +const colorGenerate = require('../../site/generateColorLess'); + +/** Parse demos and docs to site directory. */ +task('init:site', done => { + colorGenerate().then(themeGenerate).then(done); +}); diff --git a/scripts/gulp/tsconfig.json b/scripts/gulp/tsconfig.json new file mode 100644 index 00000000..4a8f7145 --- /dev/null +++ b/scripts/gulp/tsconfig.json @@ -0,0 +1,25 @@ + +{ + "compilerOptions": { + "experimentalDecorators": true, + "noUnusedParameters": true, + "noUnusedLocals": true, + "lib": ["es2015", "dom"], + "module": "commonjs", + "moduleResolution": "node", + "outDir": "../../dist", + "strictNullChecks": true, + "strictFunctionTypes": true, + "noImplicitThis": true, + "noEmitOnError": true, + "noImplicitAny": true, + "target": "es5", + "types": [ + "node" + ], + "baseUrl": "." + }, + "files": [ + "gulpfile.ts" + ] +} \ No newline at end of file diff --git a/scripts/gulp/util/task-helpers.ts b/scripts/gulp/util/task-helpers.ts new file mode 100644 index 00000000..10befa4f --- /dev/null +++ b/scripts/gulp/util/task-helpers.ts @@ -0,0 +1,63 @@ +/** + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE + */ + +import * as gulp from 'gulp'; + +import * as child_process from 'child_process'; +import * as os from 'os'; + +const gulpClean = require('gulp-clean'); +const resolveBin = require('resolve-bin'); + +export function cleanTask(glob: string | string[]): gulp.TaskFunction { + return () => gulp.src(glob, { read: false, allowEmpty: true }).pipe(gulpClean(null)); +} + +export function execTask(binPath: string, args: string[], env = {}): gulp.TaskFunction { + return (done: (err?: Error | null) => void) => { + // https://github.com/angular/angular-cli/issues/10922 + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (process.stdout as any)._handle.setBlocking(true); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (process.stdout as any)._handle.setBlocking(true); + const bin = os.platform() === 'win32' && binPath === 'ng' ? `${binPath}.cmd` : binPath; + const childProcess = child_process.spawn(bin, args, { + env: { ...process.env, ...env }, + cwd: process.cwd(), + stdio: 'inherit' + }); + + childProcess.on('close', (code: number) => { + // tslint:disable-next-line:triple-equals + code !== 0 ? done(new Error(`Process failed with code ${code}`)) : done(); + }); + }; +} + +export function execNodeTask( + packageName: string, + executable: string | string[], + args?: string[], + env = {} +): gulp.TaskFunction { + if (!args) { + // tslint:disable-next-line:no-parameter-reassignment + args = executable as string[]; + // tslint:disable-next-line:no-parameter-reassignment + executable = ''; + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return (done: (err: any) => void) => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + resolveBin(packageName, { executable }, (err: any, binPath: string) => { + if (err) { + done(err); + } else { + execTask('node', ['--max_old_space_size=4096', binPath].concat(args!), env)(done); + } + }); + }; +} diff --git a/scripts/site/generate-theme.js b/scripts/site/generate-theme.js new file mode 100644 index 00000000..29d6301f --- /dev/null +++ b/scripts/site/generate-theme.js @@ -0,0 +1,44 @@ +const less = require('less'); +const LessPluginCleanCSS = require('less-plugin-clean-css'); +const path = require('path'); +const fs = require('fs-extra'); +const { darkPaletteLess } = require('../build/dark-vars'); +const { compactPaletteLess } = require('../build/compact-vars'); +const { aliyunPaletteLess } = require('../build/aliyun-vars'); +const themePath = path.join(__dirname, '../../site/AntDesign.Docs/styles.less'); +const colorPalettePath = path.join(__dirname, '../../components/style/color/colorPalette.less'); +const themeContent = ` +@import '${themePath}'; +`; + +function generateTheme(vars, fileName) { + + return less.render(themeContent, { + javascriptEnabled: true, + plugins: [new LessPluginCleanCSS({ advanced: true })], + modifyVars: { + 'hack': `true;@import '${colorPalettePath}';`, + ...vars, + '@site-markdown-code-bg': '@input-bg', + '@site-text-color': '@heading-color' + } + }).then(data => { + return fs.writeFile(path.join(__dirname, `../../site/AntDesign.Docs/wwwroot/css/${fileName}`), data.css); + }).catch(e => { + console.log(e); + }); +} + +function generateAllTheme() { + return generateTheme(compactPaletteLess, 'compact.css') + .then(() => generateTheme(darkPaletteLess, 'dark.css')) + .then(() => generateTheme(aliyunPaletteLess, 'aliyun.css')) + .then(() => generateTheme([], 'default.css')) + ; +} + +if (require.main === module) { + generateAllTheme().then(); +} + +module.exports = () => generateAllTheme(); diff --git a/scripts/site/generateColorLess.js b/scripts/site/generateColorLess.js new file mode 100644 index 00000000..90038a7a --- /dev/null +++ b/scripts/site/generateColorLess.js @@ -0,0 +1,20 @@ +#!/usr/bin/env node +const path = require('path'); +const { generateTheme } = require('antd-theme-generator'); + +const options = { + stylesDir: path.join(__dirname, '../../site/AntDesign.Docs/'), + antdStylesDir: path.join(__dirname, '../../components'), + varFile: path.join(__dirname, '../../components/style/themes/default.less'), + mainLessFile: path.join(__dirname, '../../site/AntDesign.Docs/styles.less'), + themeVariables: [ + '@primary-color', + ], + outputFilePath: path.join(__dirname, '../../site/AntDesign.Docs/wwwroot/color.less'), +}; + +if (require.main === module) { + generateTheme(options); +} + +module.exports = () => generateTheme(options); \ No newline at end of file diff --git a/site/AntDesign.Docs.Build/AntDesign.Docs.Build.csproj b/site/AntDesign.Docs.Build/AntDesign.Docs.Build.csproj index 15501e2f..2ab9b282 100644 --- a/site/AntDesign.Docs.Build/AntDesign.Docs.Build.csproj +++ b/site/AntDesign.Docs.Build/AntDesign.Docs.Build.csproj @@ -15,14 +15,14 @@ - - + + - - + + diff --git a/site/AntDesign.Docs.Server/Pages/_Host.cshtml b/site/AntDesign.Docs.Server/Pages/_Host.cshtml index 116f8bce..0a024ee2 100644 --- a/site/AntDesign.Docs.Server/Pages/_Host.cshtml +++ b/site/AntDesign.Docs.Server/Pages/_Host.cshtml @@ -12,7 +12,7 @@ - + diff --git a/site/AntDesign.Docs.Wasm/wwwroot/index.html b/site/AntDesign.Docs.Wasm/wwwroot/index.html index 0de143f5..12170bf1 100644 --- a/site/AntDesign.Docs.Wasm/wwwroot/index.html +++ b/site/AntDesign.Docs.Wasm/wwwroot/index.html @@ -10,7 +10,7 @@ - + diff --git a/site/AntDesign.Docs.WasmHost/Pages/_Host.cshtml b/site/AntDesign.Docs.WasmHost/Pages/_Host.cshtml index 32a3d68e..b222e434 100644 --- a/site/AntDesign.Docs.WasmHost/Pages/_Host.cshtml +++ b/site/AntDesign.Docs.WasmHost/Pages/_Host.cshtml @@ -11,7 +11,7 @@ - + diff --git a/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PlacementTypes.razor b/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PlacementTypes.razor index d1c8b4f8..b89e4df5 100644 --- a/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PlacementTypes.razor +++ b/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PlacementTypes.razor @@ -6,12 +6,12 @@ BottomLeft - + @_overlayMenu - BottomCenter + Bottom @@ -30,12 +30,12 @@ TopLeft - + @_overlayMenu - TopCenter + Top diff --git a/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PopupContainer.razor b/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PopupContainer.razor index 35b189c8..abedf74a 100644 --- a/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PopupContainer.razor +++ b/site/AntDesign.Docs/Demos/Components/Dropdown/demo/PopupContainer.razor @@ -8,12 +8,12 @@ BottomLeft - + @_overlayMenu - BottomCenter + Bottom @@ -32,12 +32,12 @@ TopLeft - + @_overlayMenu - TopCenter + Top diff --git a/site/AntDesign.Docs/Demos/Components/Input/demo/WithTooltip.razor b/site/AntDesign.Docs/Demos/Components/Input/demo/WithTooltip.razor index d553a9c1..6f555bc7 100644 --- a/site/AntDesign.Docs/Demos/Components/Input/demo/WithTooltip.razor +++ b/site/AntDesign.Docs/Demos/Components/Input/demo/WithTooltip.razor @@ -5,15 +5,15 @@ @code { - string _value; + string _value; - string TooltipValue => ConvertValue(); + string TooltipValue => ConvertValue(); - private string ConvertValue() - { - if (string.IsNullOrWhiteSpace(_value)) - return string.Empty; - else - return Convert.ToDecimal(_value).ToString("#,0.##############################"); - } + private string ConvertValue() + { + if (string.IsNullOrWhiteSpace(_value)) + return string.Empty; + else + return decimal.TryParse(_value, out var v) ? v.ToString("#,0.##############################") : string.Empty; + } } \ No newline at end of file diff --git a/site/AntDesign.Docs/Shared/FixedWidgets.razor b/site/AntDesign.Docs/Shared/FixedWidgets.razor index 7a56b61b..d9e2d2df 100644 --- a/site/AntDesign.Docs/Shared/FixedWidgets.razor +++ b/site/AntDesign.Docs/Shared/FixedWidgets.razor @@ -1,5 +1,5 @@ - + diff --git a/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs b/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs index 3d61e44f..4af8fd97 100644 --- a/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs +++ b/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs @@ -18,7 +18,7 @@ namespace AntDesign.Docs.Shared private async Task ChangeTheme(string theme) { - _themeFileUrl = $"_content/AntDesign.Docs/css/docs.{theme}.css"; + _themeFileUrl = $"_content/AntDesign.Docs/css/{theme}.css"; await JS.InvokeVoidAsync(JSInteropConstants.SetDomAttribute, "body", new Dictionary { diff --git a/site/AntDesign.Docs/docs.aliyun.less b/site/AntDesign.Docs/docs.aliyun.less deleted file mode 100644 index 21cdd4ce..00000000 --- a/site/AntDesign.Docs/docs.aliyun.less +++ /dev/null @@ -1,3 +0,0 @@ -@import '../../components/style/themes/aliyun.less'; -@import '../../components/ant-design-blazor.aliyun.less'; -@import './style/index.less'; diff --git a/site/AntDesign.Docs/docs.compact.less b/site/AntDesign.Docs/docs.compact.less deleted file mode 100644 index c04be7d2..00000000 --- a/site/AntDesign.Docs/docs.compact.less +++ /dev/null @@ -1,3 +0,0 @@ -@import '../../components/style/themes/compact.less'; -@import '../../components/ant-design-blazor.compact.less'; -@import './style/index.less'; diff --git a/site/AntDesign.Docs/docs.dark.less b/site/AntDesign.Docs/docs.dark.less deleted file mode 100644 index fe8cc451..00000000 --- a/site/AntDesign.Docs/docs.dark.less +++ /dev/null @@ -1,3 +0,0 @@ -@import '../../components/style/themes/dark.less'; -@import '../../components/ant-design-blazor.dark.less'; -@import './style/index.less'; diff --git a/site/AntDesign.Docs/docs.less b/site/AntDesign.Docs/docs.less deleted file mode 100644 index 3992660d..00000000 --- a/site/AntDesign.Docs/docs.less +++ /dev/null @@ -1,3 +0,0 @@ -@import '../../components/style/themes/default.less'; -@import '../../components/ant-design-blazor.less'; -@import './style/index.less'; diff --git a/site/AntDesign.Docs/style/patch.less b/site/AntDesign.Docs/style/patch.less index 2b0afbf6..00257493 100644 --- a/site/AntDesign.Docs/style/patch.less +++ b/site/AntDesign.Docs/style/patch.less @@ -1,5 +1,3 @@ -// copy from https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/scripts/site/_site/doc/style/patch.less - @media screen and (max-width:767px){ .pic-plus img { width: 120px; diff --git a/site/AntDesign.Docs/style/static/header.less b/site/AntDesign.Docs/style/static/header.less index 398849dd..637eb342 100644 --- a/site/AntDesign.Docs/style/static/header.less +++ b/site/AntDesign.Docs/style/static/header.less @@ -1,4 +1,3 @@ -@import '../../../../components/style/themes/default.less'; #header { // ===================== Home Page ===================== diff --git a/site/AntDesign.Docs/style/static/index.less b/site/AntDesign.Docs/style/static/index.less index 31700c2a..54ae65eb 100644 --- a/site/AntDesign.Docs/style/static/index.less +++ b/site/AntDesign.Docs/style/static/index.less @@ -1,5 +1,4 @@ @import './reset.less'; -@import '../../../../components/style/themes/default.less'; @import './common'; @import './header'; @import './footer'; diff --git a/site/AntDesign.Docs/style/static/responsive.less b/site/AntDesign.Docs/style/static/responsive.less index b017dcf9..e4bb6aee 100644 --- a/site/AntDesign.Docs/style/static/responsive.less +++ b/site/AntDesign.Docs/style/static/responsive.less @@ -1,5 +1,3 @@ -@import '../../../../components/style/themes/default.less'; - .nav-phone-icon { position: absolute; top: 25px; diff --git a/site/AntDesign.Docs/style/static/theme.less b/site/AntDesign.Docs/style/static/theme.less index e2305964..771b27c3 100644 --- a/site/AntDesign.Docs/style/static/theme.less +++ b/site/AntDesign.Docs/style/static/theme.less @@ -1,4 +1,3 @@ -@import '../../../../components/style/themes/default.less'; @import './colors.less'; @import './home.less'; diff --git a/site/AntDesign.Docs/style/template/Content/ComponentOverview.less b/site/AntDesign.Docs/style/template/Content/ComponentOverview.less index a0a39276..c8bd6bec 100644 --- a/site/AntDesign.Docs/style/template/Content/ComponentOverview.less +++ b/site/AntDesign.Docs/style/template/Content/ComponentOverview.less @@ -1,5 +1,3 @@ -@import '../../../../../components/style/themes/default.less'; - .components-overview { padding: 0; diff --git a/site/AntDesign.Docs/style/template/Home/Banner/Background.less b/site/AntDesign.Docs/style/template/Home/Banner/Background.less index 25f8074f..e6397003 100644 --- a/site/AntDesign.Docs/style/template/Home/Banner/Background.less +++ b/site/AntDesign.Docs/style/template/Home/Banner/Background.less @@ -1,5 +1,3 @@ -@import '../../../../../../components/style/themes/default.less'; - .home-banner-background { position: absolute; top: 0; diff --git a/site/AntDesign.Docs/style/template/Home/Banner/Logo.less b/site/AntDesign.Docs/style/template/Home/Banner/Logo.less index d4c66870..2593e110 100644 --- a/site/AntDesign.Docs/style/template/Home/Banner/Logo.less +++ b/site/AntDesign.Docs/style/template/Home/Banner/Logo.less @@ -1,5 +1,3 @@ -@import '../../../../../../components/style/themes/default.less'; - .home-card-logo { position: relative; display: inline-block; diff --git a/site/AntDesign.Docs/style/template/Home/Banner/index.less b/site/AntDesign.Docs/style/template/Home/Banner/index.less index 1a101962..6f97b1bf 100644 --- a/site/AntDesign.Docs/style/template/Home/Banner/index.less +++ b/site/AntDesign.Docs/style/template/Home/Banner/index.less @@ -1,5 +1,3 @@ -@import '../../../../../../components/style/themes/default.less'; - @home-color: #0170fe; .home-banner { diff --git a/site/AntDesign.Docs/style/template/Home/DesignPage/index.less b/site/AntDesign.Docs/style/template/Home/DesignPage/index.less index e6d4e6e2..e08b8064 100644 --- a/site/AntDesign.Docs/style/template/Home/DesignPage/index.less +++ b/site/AntDesign.Docs/style/template/Home/DesignPage/index.less @@ -1,5 +1,3 @@ -@import '../../../../../../components/style/themes/default.less'; - .design-card { position: relative; min-height: 278px; diff --git a/site/AntDesign.Docs/style/template/Home/MorePage.less b/site/AntDesign.Docs/style/template/Home/MorePage.less index 2ebd7d7e..626c26c3 100644 --- a/site/AntDesign.Docs/style/template/Home/MorePage.less +++ b/site/AntDesign.Docs/style/template/Home/MorePage.less @@ -1,5 +1,3 @@ -@import '../../../../../components/style/themes/default.less'; - .more-card { &:hover { box-shadow: @shadow-2; diff --git a/site/AntDesign.Docs/style/template/Home/RecommendPage.less b/site/AntDesign.Docs/style/template/Home/RecommendPage.less index fcf061ff..21a0c1f9 100644 --- a/site/AntDesign.Docs/style/template/Home/RecommendPage.less +++ b/site/AntDesign.Docs/style/template/Home/RecommendPage.less @@ -1,5 +1,3 @@ -@import '../../../../../components/style/themes/default.less'; - .linear-gradient(@mid-pos, @end-pos) { background: linear-gradient( rgba(0, 0, 0, 0) 0%, diff --git a/site/AntDesign.Docs/style/template/Home/index.less b/site/AntDesign.Docs/style/template/Home/index.less index 14ffe93f..fc99f89f 100644 --- a/site/AntDesign.Docs/style/template/Home/index.less +++ b/site/AntDesign.Docs/style/template/Home/index.less @@ -1,5 +1,3 @@ -@import '../../../../../components/style/themes/default.less'; - .home-container { h1, h2, diff --git a/site/AntDesign.Docs/style/template/Layout/Header/Github.less b/site/AntDesign.Docs/style/template/Layout/Header/Github.less index 8dc36d08..09b9d118 100644 --- a/site/AntDesign.Docs/style/template/Layout/Header/Github.less +++ b/site/AntDesign.Docs/style/template/Layout/Header/Github.less @@ -1,5 +1,4 @@ @import '../../../static/theme.less'; -@import '../../../../../../components/style/themes/default.less'; #github-btn { display: flex; diff --git a/site/AntDesign.Docs/style/template/Layout/Header/Logo.less b/site/AntDesign.Docs/style/template/Layout/Header/Logo.less index e7f37acd..93bc35e8 100644 --- a/site/AntDesign.Docs/style/template/Layout/Header/Logo.less +++ b/site/AntDesign.Docs/style/template/Layout/Header/Logo.less @@ -1,5 +1,4 @@ @import '../../../static/theme.less'; -@import '../../../../../../components/style/themes/default.less'; @import './index.less'; #logo { diff --git a/site/AntDesign.Docs/style/template/Layout/Header/Navigation.less b/site/AntDesign.Docs/style/template/Layout/Header/Navigation.less index 30261bfc..3824e3ea 100644 --- a/site/AntDesign.Docs/style/template/Layout/Header/Navigation.less +++ b/site/AntDesign.Docs/style/template/Layout/Header/Navigation.less @@ -1,5 +1,4 @@ @import '../../../static/theme.less'; -@import '../../../../../../components/style/themes/default.less'; @import './index.less'; #nav { diff --git a/site/AntDesign.Docs/style/template/Layout/Header/SearchBar.less b/site/AntDesign.Docs/style/template/Layout/Header/SearchBar.less index f347e5d6..b7d02c5d 100644 --- a/site/AntDesign.Docs/style/template/Layout/Header/SearchBar.less +++ b/site/AntDesign.Docs/style/template/Layout/Header/SearchBar.less @@ -1,5 +1,4 @@ @import '../../../static/theme.less'; -@import '../../../../../../components/style/themes/default.less'; @import './index.less'; @import './DocSearch.less'; diff --git a/site/AntDesign.Docs/style/template/Layout/Header/SearchBox.less b/site/AntDesign.Docs/style/template/Layout/Header/SearchBox.less index 8ba21bbc..e4ffb0ec 100644 --- a/site/AntDesign.Docs/style/template/Layout/Header/SearchBox.less +++ b/site/AntDesign.Docs/style/template/Layout/Header/SearchBox.less @@ -1,5 +1,4 @@ @import '../../../static/theme.less'; -@import '../../../../../../components/style/themes/default.less'; @import './index.less'; @search-icon-color: #ced4d9; diff --git a/site/AntDesign.Docs/style/template/Layout/Header/index.less b/site/AntDesign.Docs/style/template/Layout/Header/index.less index cc77f170..8bc7efda 100644 --- a/site/AntDesign.Docs/style/template/Layout/Header/index.less +++ b/site/AntDesign.Docs/style/template/Layout/Header/index.less @@ -1,5 +1,4 @@ @import '../../../static/theme.less'; -@import '../../../../../../components/style/themes/default.less'; @header-height: 64px; @menu-item-border: 2px; diff --git a/site/AntDesign.Docs/style/template/Resources/AffixTabs.less b/site/AntDesign.Docs/style/template/Resources/AffixTabs.less index 8177ce81..806ac7ef 100644 --- a/site/AntDesign.Docs/style/template/Resources/AffixTabs.less +++ b/site/AntDesign.Docs/style/template/Resources/AffixTabs.less @@ -1,4 +1,3 @@ -@import '../../../../components/style/themes/default.less'; @import './index.less'; .resource-affix-tabs { diff --git a/site/AntDesign.Docs/style/template/Resources/index.less b/site/AntDesign.Docs/style/template/Resources/index.less index 93f9cb41..ecf9972a 100644 --- a/site/AntDesign.Docs/style/template/Resources/index.less +++ b/site/AntDesign.Docs/style/template/Resources/index.less @@ -1,5 +1,3 @@ -@import '../../../../components/style/themes/default.less'; - @ArticleMaxWidth: 1208px; @resource-padding: 40px; @resource-padding-xs: 24px; diff --git a/site/AntDesign.Docs/styles.less b/site/AntDesign.Docs/styles.less new file mode 100644 index 00000000..0d6d6965 --- /dev/null +++ b/site/AntDesign.Docs/styles.less @@ -0,0 +1,2 @@ +@import '../../components/ant-design-blazor.variable.less'; +@import './style/index.less'; diff --git a/site/AntDesign.Docs/wwwroot/color.less b/site/AntDesign.Docs/wwwroot/color.less deleted file mode 100644 index 1df15626..00000000 --- a/site/AntDesign.Docs/wwwroot/color.less +++ /dev/null @@ -1,6846 +0,0 @@ -@primary-color: #1890ff; -html {-webkit-tap-highlight-color: rgba(0, 0, 0, 0);} -body {color: rgba(0, 0, 0, 0.85);background-color: #fff;} -h1, -h2, -h3, -h4, -h5, -h6 {color: rgba(0, 0, 0, 0.85);} -abbr[title], -abbr[data-original-title] {border-bottom: 0;} -a {color: @primary-color;background-color: transparent;} -a:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -a:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -a[disabled] {color: rgba(0, 0, 0, 0.25);} -img {border-style: none;} -table {border-collapse: collapse;} -caption {color: rgba(0, 0, 0, 0.45);} -input, -button, -select, -optgroup, -textarea {color: inherit;} -button::-moz-focus-inner, -[type='button']::-moz-focus-inner, -[type='reset']::-moz-focus-inner, -[type='submit']::-moz-focus-inner {border-style: none;} -fieldset {border: 0;} -legend {color: inherit;} -mark {background-color: #feffe6;} -::selection {color: #fff;background: @primary-color;} -.anticon {color: inherit;} -html {--antd-wave-shadow-color: @primary-color;} -[ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {border-radius: inherit;box-shadow: 0 0 0 0 @primary-color;box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);} -.ant-alert {color: rgba(0, 0, 0, 0.85);border-radius: 2px;} -.ant-alert-success {background-color: #f6ffed;border: 1px solid #b7eb8f;} -.ant-alert-success .ant-alert-icon {color: #52c41a;} -.ant-alert-info {background-color: color(~`colorPalette("@{primary-color}", 1)`);border: 1px solid color(~`colorPalette("@{primary-color}", 3)`);} -.ant-alert-info .ant-alert-icon {color: @primary-color;} -.ant-alert-warning {background-color: #fffbe6;border: 1px solid #ffe58f;} -.ant-alert-warning .ant-alert-icon {color: #faad14;} -.ant-alert-error {background-color: #fff2f0;border: 1px solid #ffccc7;} -.ant-alert-error .ant-alert-icon {color: #ff4d4f;} -.ant-alert-close-icon {background-color: transparent;border: none;} -.ant-alert-close-icon .anticon-close {color: rgba(0, 0, 0, 0.45);} -.ant-alert-close-icon .anticon-close:hover {color: rgba(0, 0, 0, 0.75);} -.ant-alert-close-text {color: rgba(0, 0, 0, 0.45);} -.ant-alert-close-text:hover {color: rgba(0, 0, 0, 0.75);} -.ant-alert-with-description .ant-alert-message {color: rgba(0, 0, 0, 0.85);} -.ant-alert-message {color: rgba(0, 0, 0, 0.85);} -.ant-alert-banner {border: 0;border-radius: 0;} -.ant-anchor {color: rgba(0, 0, 0, 0.85);} -.ant-anchor-wrapper {background-color: transparent;} -.ant-anchor-ink::before {background-color: #f0f0f0;} -.ant-anchor-ink-ball {background-color: #fff;border: 2px solid @primary-color;border-radius: 8px;} -.ant-anchor-link-title {color: rgba(0, 0, 0, 0.85);} -.ant-anchor-link-active > .ant-anchor-link-title {color: @primary-color;} -.ant-select-auto-complete {color: rgba(0, 0, 0, 0.85);} -.ant-avatar {color: rgba(0, 0, 0, 0.85);color: #fff;background: #ccc;border-radius: 50%;} -.ant-avatar-image {background: transparent;} -.ant-avatar-lg {border-radius: 50%;} -.ant-avatar-sm {border-radius: 50%;} -.ant-avatar-square {border-radius: 2px;} -.ant-avatar-group .ant-avatar {border: 1px solid #fff;} -.ant-back-top {color: rgba(0, 0, 0, 0.85);} -.ant-back-top-content {color: #fff;background-color: rgba(0, 0, 0, 0.45);border-radius: 20px;} -.ant-back-top-content:hover {background-color: rgba(0, 0, 0, 0.85);} -.ant-badge {color: rgba(0, 0, 0, 0.85);} -.ant-badge-count {color: #fff;background: #ff4d4f;border-radius: 10px;box-shadow: 0 0 0 1px #fff;} -.ant-badge-count a, .ant-badge-count a:hover {color: #fff;} -.ant-badge-count-sm {border-radius: 7px;} -.ant-badge-dot {background: #ff4d4f;border-radius: 100%;box-shadow: 0 0 0 1px #fff;} -.ant-badge-status-dot {border-radius: 50%;} -.ant-badge-status-success {background-color: #52c41a;} -.ant-badge-status-processing {background-color: #1890ff;} -.ant-badge-status-processing::after {border: 1px solid #1890ff;border-radius: 50%;} -.ant-badge-status-default {background-color: #d9d9d9;} -.ant-badge-status-error {background-color: #ff4d4f;} -.ant-badge-status-warning {background-color: #faad14;} -.ant-badge-status-pink {background: #eb2f96;} -.ant-badge-status-magenta {background: #eb2f96;} -.ant-badge-status-red {background: #f5222d;} -.ant-badge-status-volcano {background: #fa541c;} -.ant-badge-status-orange {background: #fa8c16;} -.ant-badge-status-yellow {background: #fadb14;} -.ant-badge-status-gold {background: #faad14;} -.ant-badge-status-cyan {background: #13c2c2;} -.ant-badge-status-lime {background: #a0d911;} -.ant-badge-status-green {background: #52c41a;} -.ant-badge-status-blue {background: #1890ff;} -.ant-badge-status-geekblue {background: #2f54eb;} -.ant-badge-status-purple {background: #722ed1;} -.ant-badge-status-text {color: rgba(0, 0, 0, 0.85);} -.ant-ribbon {color: rgba(0, 0, 0, 0.85);color: #fff;background-color: @primary-color;border-radius: 2px;} -.ant-ribbon-text {color: #fff;} -.ant-ribbon-corner {color: currentColor;border: 4px solid;} -.ant-ribbon-corner::after {color: rgba(0, 0, 0, 0.25);border: inherit;} -.ant-ribbon-color-pink {color: #eb2f96;background: #eb2f96;} -.ant-ribbon-color-magenta {color: #eb2f96;background: #eb2f96;} -.ant-ribbon-color-red {color: #f5222d;background: #f5222d;} -.ant-ribbon-color-volcano {color: #fa541c;background: #fa541c;} -.ant-ribbon-color-orange {color: #fa8c16;background: #fa8c16;} -.ant-ribbon-color-yellow {color: #fadb14;background: #fadb14;} -.ant-ribbon-color-gold {color: #faad14;background: #faad14;} -.ant-ribbon-color-cyan {color: #13c2c2;background: #13c2c2;} -.ant-ribbon-color-lime {color: #a0d911;background: #a0d911;} -.ant-ribbon-color-green {color: #52c41a;background: #52c41a;} -.ant-ribbon-color-blue {color: #1890ff;background: #1890ff;} -.ant-ribbon-color-geekblue {color: #2f54eb;background: #2f54eb;} -.ant-ribbon-color-purple {color: #722ed1;background: #722ed1;} -.ant-ribbon.ant-ribbon-placement-end {border-bottom-right-radius: 0;} -.ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner {border-color: currentColor transparent transparent currentColor;} -.ant-ribbon.ant-ribbon-placement-start {border-bottom-left-radius: 0;} -.ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner {border-color: currentColor currentColor transparent transparent;} -.ant-ribbon-rtl.ant-ribbon-placement-end {border-bottom-right-radius: 2px;border-bottom-left-radius: 0;} -.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner {border-color: currentColor currentColor transparent transparent;} -.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner::after {border-color: currentColor currentColor transparent transparent;} -.ant-ribbon-rtl.ant-ribbon-placement-start {border-bottom-right-radius: 0;border-bottom-left-radius: 2px;} -.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner {border-color: currentColor transparent transparent currentColor;} -.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner::after {border-color: currentColor transparent transparent currentColor;} -.ant-breadcrumb {color: rgba(0, 0, 0, 0.85);color: rgba(0, 0, 0, 0.45);} -.ant-breadcrumb a {color: rgba(0, 0, 0, 0.45);} -.ant-breadcrumb a:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-breadcrumb > span:last-child {color: rgba(0, 0, 0, 0.85);} -.ant-breadcrumb > span:last-child a {color: rgba(0, 0, 0, 0.85);} -.ant-breadcrumb-separator {color: rgba(0, 0, 0, 0.45);} -.ant-btn {background-image: none;border: 1px solid transparent;box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);border-radius: 2px;color: rgba(0, 0, 0, 0.85);border-color: #d9d9d9;background: #fff;} -.ant-btn:not([disabled]):active {box-shadow: none;} -.ant-btn-lg {border-radius: 2px;} -.ant-btn-sm {border-radius: 2px;} -.ant-btn > a:only-child {color: currentColor;} -.ant-btn > a:only-child::after {background: transparent;} -.ant-btn:hover, .ant-btn:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: #fff;} -.ant-btn:hover > a:only-child, .ant-btn:focus > a:only-child {color: currentColor;} -.ant-btn:hover > a:only-child::after, .ant-btn:focus > a:only-child::after {background: transparent;} -.ant-btn:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: #fff;} -.ant-btn:active > a:only-child {color: currentColor;} -.ant-btn:active > a:only-child::after {background: transparent;} -.ant-btn[disabled], .ant-btn[disabled]:hover, .ant-btn[disabled]:focus, .ant-btn[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn[disabled] > a:only-child, .ant-btn[disabled]:hover > a:only-child, .ant-btn[disabled]:focus > a:only-child, .ant-btn[disabled]:active > a:only-child {color: currentColor;} -.ant-btn[disabled] > a:only-child::after, .ant-btn[disabled]:hover > a:only-child::after, .ant-btn[disabled]:focus > a:only-child::after, .ant-btn[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn:hover, .ant-btn:focus, .ant-btn:active {background: #fff;} -.ant-btn-primary {color: #fff;border-color: @primary-color;background: @primary-color;box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);} -.ant-btn-primary > a:only-child {color: currentColor;} -.ant-btn-primary > a:only-child::after {background: transparent;} -.ant-btn-primary:hover, .ant-btn-primary:focus {color: #fff;border-color: color(~`colorPalette("@{primary-color}", 5)`);background: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-btn-primary:hover > a:only-child, .ant-btn-primary:focus > a:only-child {color: currentColor;} -.ant-btn-primary:hover > a:only-child::after, .ant-btn-primary:focus > a:only-child::after {background: transparent;} -.ant-btn-primary:active {color: #fff;border-color: color(~`colorPalette("@{primary-color}", 7)`);background: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-btn-primary:active > a:only-child {color: currentColor;} -.ant-btn-primary:active > a:only-child::after {background: transparent;} -.ant-btn-primary[disabled], .ant-btn-primary[disabled]:hover, .ant-btn-primary[disabled]:focus, .ant-btn-primary[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-primary[disabled] > a:only-child, .ant-btn-primary[disabled]:hover > a:only-child, .ant-btn-primary[disabled]:focus > a:only-child, .ant-btn-primary[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-primary[disabled] > a:only-child::after, .ant-btn-primary[disabled]:hover > a:only-child::after, .ant-btn-primary[disabled]:focus > a:only-child::after, .ant-btn-primary[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child) {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);border-left-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child):disabled {border-color: #d9d9d9;} -.ant-btn-group .ant-btn-primary:first-child:not(:last-child) {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-btn-group .ant-btn-primary:first-child:not(:last-child)[disabled] {border-right-color: #d9d9d9;} -.ant-btn-group .ant-btn-primary:last-child:not(:first-child), .ant-btn-group .ant-btn-primary + .ant-btn-primary {border-left-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled], .ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {border-left-color: #d9d9d9;} -.ant-btn-ghost {color: rgba(0, 0, 0, 0.85);border-color: #d9d9d9;background: transparent;} -.ant-btn-ghost > a:only-child {color: currentColor;} -.ant-btn-ghost > a:only-child::after {background: transparent;} -.ant-btn-ghost:hover, .ant-btn-ghost:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: transparent;} -.ant-btn-ghost:hover > a:only-child, .ant-btn-ghost:focus > a:only-child {color: currentColor;} -.ant-btn-ghost:hover > a:only-child::after, .ant-btn-ghost:focus > a:only-child::after {background: transparent;} -.ant-btn-ghost:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: transparent;} -.ant-btn-ghost:active > a:only-child {color: currentColor;} -.ant-btn-ghost:active > a:only-child::after {background: transparent;} -.ant-btn-ghost[disabled], .ant-btn-ghost[disabled]:hover, .ant-btn-ghost[disabled]:focus, .ant-btn-ghost[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-ghost[disabled] > a:only-child, .ant-btn-ghost[disabled]:hover > a:only-child, .ant-btn-ghost[disabled]:focus > a:only-child, .ant-btn-ghost[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-ghost[disabled] > a:only-child::after, .ant-btn-ghost[disabled]:hover > a:only-child::after, .ant-btn-ghost[disabled]:focus > a:only-child::after, .ant-btn-ghost[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dashed {color: rgba(0, 0, 0, 0.85);border-color: #d9d9d9;background: #fff;border-style: dashed;} -.ant-btn-dashed > a:only-child {color: currentColor;} -.ant-btn-dashed > a:only-child::after {background: transparent;} -.ant-btn-dashed:hover, .ant-btn-dashed:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: #fff;} -.ant-btn-dashed:hover > a:only-child, .ant-btn-dashed:focus > a:only-child {color: currentColor;} -.ant-btn-dashed:hover > a:only-child::after, .ant-btn-dashed:focus > a:only-child::after {background: transparent;} -.ant-btn-dashed:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: #fff;} -.ant-btn-dashed:active > a:only-child {color: currentColor;} -.ant-btn-dashed:active > a:only-child::after {background: transparent;} -.ant-btn-dashed[disabled], .ant-btn-dashed[disabled]:hover, .ant-btn-dashed[disabled]:focus, .ant-btn-dashed[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-dashed[disabled] > a:only-child, .ant-btn-dashed[disabled]:hover > a:only-child, .ant-btn-dashed[disabled]:focus > a:only-child, .ant-btn-dashed[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dashed[disabled] > a:only-child::after, .ant-btn-dashed[disabled]:hover > a:only-child::after, .ant-btn-dashed[disabled]:focus > a:only-child::after, .ant-btn-dashed[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-danger {color: #fff;border-color: #ff4d4f;background: #ff4d4f;box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);} -.ant-btn-danger > a:only-child {color: currentColor;} -.ant-btn-danger > a:only-child::after {background: transparent;} -.ant-btn-danger:hover, .ant-btn-danger:focus {color: #fff;border-color: #ff7875;background: #ff7875;} -.ant-btn-danger:hover > a:only-child, .ant-btn-danger:focus > a:only-child {color: currentColor;} -.ant-btn-danger:hover > a:only-child::after, .ant-btn-danger:focus > a:only-child::after {background: transparent;} -.ant-btn-danger:active {color: #fff;border-color: #d9363e;background: #d9363e;} -.ant-btn-danger:active > a:only-child {color: currentColor;} -.ant-btn-danger:active > a:only-child::after {background: transparent;} -.ant-btn-danger[disabled], .ant-btn-danger[disabled]:hover, .ant-btn-danger[disabled]:focus, .ant-btn-danger[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-danger[disabled] > a:only-child, .ant-btn-danger[disabled]:hover > a:only-child, .ant-btn-danger[disabled]:focus > a:only-child, .ant-btn-danger[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-danger[disabled] > a:only-child::after, .ant-btn-danger[disabled]:hover > a:only-child::after, .ant-btn-danger[disabled]:focus > a:only-child::after, .ant-btn-danger[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-link {color: @primary-color;border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-link > a:only-child {color: currentColor;} -.ant-btn-link > a:only-child::after {background: transparent;} -.ant-btn-link:hover, .ant-btn-link:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: transparent;} -.ant-btn-link:hover > a:only-child, .ant-btn-link:focus > a:only-child {color: currentColor;} -.ant-btn-link:hover > a:only-child::after, .ant-btn-link:focus > a:only-child::after {background: transparent;} -.ant-btn-link:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: transparent;} -.ant-btn-link:active > a:only-child {color: currentColor;} -.ant-btn-link:active > a:only-child::after {background: transparent;} -.ant-btn-link[disabled], .ant-btn-link[disabled]:hover, .ant-btn-link[disabled]:focus, .ant-btn-link[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-link[disabled] > a:only-child, .ant-btn-link[disabled]:hover > a:only-child, .ant-btn-link[disabled]:focus > a:only-child, .ant-btn-link[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-link[disabled] > a:only-child::after, .ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-link[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-link:hover {background: transparent;} -.ant-btn-link:hover, .ant-btn-link:focus, .ant-btn-link:active {border-color: transparent;} -.ant-btn-link[disabled], .ant-btn-link[disabled]:hover, .ant-btn-link[disabled]:focus, .ant-btn-link[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-link[disabled] > a:only-child, .ant-btn-link[disabled]:hover > a:only-child, .ant-btn-link[disabled]:focus > a:only-child, .ant-btn-link[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-link[disabled] > a:only-child::after, .ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-link[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-text {color: rgba(0, 0, 0, 0.85);border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-text > a:only-child {color: currentColor;} -.ant-btn-text > a:only-child::after {background: transparent;} -.ant-btn-text:hover, .ant-btn-text:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: transparent;} -.ant-btn-text:hover > a:only-child, .ant-btn-text:focus > a:only-child {color: currentColor;} -.ant-btn-text:hover > a:only-child::after, .ant-btn-text:focus > a:only-child::after {background: transparent;} -.ant-btn-text:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: transparent;} -.ant-btn-text:active > a:only-child {color: currentColor;} -.ant-btn-text:active > a:only-child::after {background: transparent;} -.ant-btn-text[disabled], .ant-btn-text[disabled]:hover, .ant-btn-text[disabled]:focus, .ant-btn-text[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-text[disabled] > a:only-child, .ant-btn-text[disabled]:hover > a:only-child, .ant-btn-text[disabled]:focus > a:only-child, .ant-btn-text[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-text[disabled] > a:only-child::after, .ant-btn-text[disabled]:hover > a:only-child::after, .ant-btn-text[disabled]:focus > a:only-child::after, .ant-btn-text[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-text:hover, .ant-btn-text:focus {color: rgba(0, 0, 0, 0.85);background: rgba(0, 0, 0, 0.018);border-color: transparent;} -.ant-btn-text:active {color: rgba(0, 0, 0, 0.85);background: fadein(@btn-text-hover-bg, 1%);border-color: transparent;} -.ant-btn-text[disabled], .ant-btn-text[disabled]:hover, .ant-btn-text[disabled]:focus, .ant-btn-text[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-text[disabled] > a:only-child, .ant-btn-text[disabled]:hover > a:only-child, .ant-btn-text[disabled]:focus > a:only-child, .ant-btn-text[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-text[disabled] > a:only-child::after, .ant-btn-text[disabled]:hover > a:only-child::after, .ant-btn-text[disabled]:focus > a:only-child::after, .ant-btn-text[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous {color: #ff4d4f;border-color: #ff4d4f;background: #fff;} -.ant-btn-dangerous > a:only-child {color: currentColor;} -.ant-btn-dangerous > a:only-child::after {background: transparent;} -.ant-btn-dangerous:hover, .ant-btn-dangerous:focus {color: #ff7875;border-color: #ff7875;background: #fff;} -.ant-btn-dangerous:hover > a:only-child, .ant-btn-dangerous:focus > a:only-child {color: currentColor;} -.ant-btn-dangerous:hover > a:only-child::after, .ant-btn-dangerous:focus > a:only-child::after {background: transparent;} -.ant-btn-dangerous:active {color: #d9363e;border-color: #d9363e;background: #fff;} -.ant-btn-dangerous:active > a:only-child {color: currentColor;} -.ant-btn-dangerous:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous[disabled], .ant-btn-dangerous[disabled]:hover, .ant-btn-dangerous[disabled]:focus, .ant-btn-dangerous[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-dangerous[disabled] > a:only-child, .ant-btn-dangerous[disabled]:hover > a:only-child, .ant-btn-dangerous[disabled]:focus > a:only-child, .ant-btn-dangerous[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dangerous[disabled] > a:only-child::after, .ant-btn-dangerous[disabled]:hover > a:only-child::after, .ant-btn-dangerous[disabled]:focus > a:only-child::after, .ant-btn-dangerous[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-primary {color: #fff;border-color: #ff4d4f;background: #ff4d4f;box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);} -.ant-btn-dangerous.ant-btn-primary > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-primary > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-primary:hover, .ant-btn-dangerous.ant-btn-primary:focus {color: #fff;border-color: #ff7875;background: #ff7875;} -.ant-btn-dangerous.ant-btn-primary:hover > a:only-child, .ant-btn-dangerous.ant-btn-primary:focus > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-primary:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-primary:focus > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-primary:active {color: #fff;border-color: #d9363e;background: #d9363e;} -.ant-btn-dangerous.ant-btn-primary:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-primary:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-primary[disabled], .ant-btn-dangerous.ant-btn-primary[disabled]:hover, .ant-btn-dangerous.ant-btn-primary[disabled]:focus, .ant-btn-dangerous.ant-btn-primary[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-dangerous.ant-btn-primary[disabled] > a:only-child, .ant-btn-dangerous.ant-btn-primary[disabled]:hover > a:only-child, .ant-btn-dangerous.ant-btn-primary[disabled]:focus > a:only-child, .ant-btn-dangerous.ant-btn-primary[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-primary[disabled] > a:only-child::after, .ant-btn-dangerous.ant-btn-primary[disabled]:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-primary[disabled]:focus > a:only-child::after, .ant-btn-dangerous.ant-btn-primary[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link {color: #ff4d4f;border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-dangerous.ant-btn-link > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link:hover, .ant-btn-dangerous.ant-btn-link:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: transparent;} -.ant-btn-dangerous.ant-btn-link:hover > a:only-child, .ant-btn-dangerous.ant-btn-link:focus > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: transparent;} -.ant-btn-dangerous.ant-btn-link:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link[disabled], .ant-btn-dangerous.ant-btn-link[disabled]:hover, .ant-btn-dangerous.ant-btn-link[disabled]:focus, .ant-btn-dangerous.ant-btn-link[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child, .ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child, .ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child, .ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after, .ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link:hover, .ant-btn-dangerous.ant-btn-link:focus {color: #ff7875;border-color: transparent;background: transparent;} -.ant-btn-dangerous.ant-btn-link:hover > a:only-child, .ant-btn-dangerous.ant-btn-link:focus > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link:active {color: #d9363e;border-color: transparent;background: transparent;} -.ant-btn-dangerous.ant-btn-link:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-link[disabled], .ant-btn-dangerous.ant-btn-link[disabled]:hover, .ant-btn-dangerous.ant-btn-link[disabled]:focus, .ant-btn-dangerous.ant-btn-link[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child, .ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child, .ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child, .ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after, .ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text {color: #ff4d4f;border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-dangerous.ant-btn-text > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text:hover, .ant-btn-dangerous.ant-btn-text:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);background: transparent;} -.ant-btn-dangerous.ant-btn-text:hover > a:only-child, .ant-btn-dangerous.ant-btn-text:focus > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-text:focus > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);background: transparent;} -.ant-btn-dangerous.ant-btn-text:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text[disabled], .ant-btn-dangerous.ant-btn-text[disabled]:hover, .ant-btn-dangerous.ant-btn-text[disabled]:focus, .ant-btn-dangerous.ant-btn-text[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child, .ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child, .ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child, .ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child::after, .ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child::after, .ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text:hover, .ant-btn-dangerous.ant-btn-text:focus {color: #ff7875;border-color: transparent;background: rgba(0, 0, 0, 0.018);} -.ant-btn-dangerous.ant-btn-text:hover > a:only-child, .ant-btn-dangerous.ant-btn-text:focus > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-text:focus > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text:active {color: #d9363e;border-color: transparent;background: fadein(@btn-text-hover-bg, 1%);} -.ant-btn-dangerous.ant-btn-text:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text:active > a:only-child::after {background: transparent;} -.ant-btn-dangerous.ant-btn-text[disabled], .ant-btn-dangerous.ant-btn-text[disabled]:hover, .ant-btn-dangerous.ant-btn-text[disabled]:focus, .ant-btn-dangerous.ant-btn-text[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: transparent;background: transparent;box-shadow: none;} -.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child, .ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child, .ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child, .ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child::after, .ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child::after, .ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child::after, .ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-icon-only {border-radius: 2px;} -.ant-btn-icon-only.ant-btn-lg {border-radius: 2px;} -.ant-btn-icon-only.ant-btn-sm {border-radius: 2px;} -.ant-btn-round {border-radius: 32px;} -.ant-btn-round.ant-btn-lg {border-radius: 40px;} -.ant-btn-round.ant-btn-sm {border-radius: 24px;} -.ant-btn-circle {border-radius: 50%;} -.ant-btn-circle.ant-btn-lg {border-radius: 50%;} -.ant-btn-circle.ant-btn-sm {border-radius: 50%;} -.ant-btn::before {background: #fff;border-radius: inherit;} -.ant-btn-group-lg > .ant-btn, .ant-btn-group-lg > span > .ant-btn {border-radius: 0;} -.ant-btn-group-sm > .ant-btn, .ant-btn-group-sm > span > .ant-btn {border-radius: 0;} -.ant-btn-group .ant-btn-primary + .ant-btn:not(.ant-btn-primary):not([disabled]) {border-left-color: transparent;} -.ant-btn-group .ant-btn {border-radius: 0;} -.ant-btn-group > .ant-btn:only-child {border-radius: 2px;} -.ant-btn-group > span:only-child > .ant-btn {border-radius: 2px;} -.ant-btn-group > .ant-btn:first-child:not(:last-child), .ant-btn-group > span:first-child:not(:last-child) > .ant-btn {border-top-left-radius: 2px;border-bottom-left-radius: 2px;} -.ant-btn-group > .ant-btn:last-child:not(:first-child), .ant-btn-group > span:last-child:not(:first-child) > .ant-btn {border-top-right-radius: 2px;border-bottom-right-radius: 2px;} -.ant-btn-group-sm > .ant-btn:only-child {border-radius: 2px;} -.ant-btn-group-sm > span:only-child > .ant-btn {border-radius: 2px;} -.ant-btn-group-sm > .ant-btn:first-child:not(:last-child), .ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn {border-top-left-radius: 2px;border-bottom-left-radius: 2px;} -.ant-btn-group-sm > .ant-btn:last-child:not(:first-child), .ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn {border-top-right-radius: 2px;border-bottom-right-radius: 2px;} -.ant-btn-group > .ant-btn-group:not(:first-child):not(:last-child) > .ant-btn {border-radius: 0;} -.ant-btn-group > .ant-btn-group:first-child:not(:last-child) > .ant-btn:last-child {border-top-right-radius: 0;border-bottom-right-radius: 0;} -.ant-btn-group > .ant-btn-group:last-child:not(:first-child) > .ant-btn:first-child {border-top-left-radius: 0;border-bottom-left-radius: 0;} -.ant-btn-group-rtl.ant-btn-group > .ant-btn:first-child:not(:last-child), .ant-btn-group-rtl.ant-btn-group > span:first-child:not(:last-child) > .ant-btn {border-top-left-radius: 0;border-top-right-radius: 2px;border-bottom-right-radius: 2px;border-bottom-left-radius: 0;} -.ant-btn-group-rtl.ant-btn-group > .ant-btn:last-child:not(:first-child), .ant-btn-group-rtl.ant-btn-group > span:last-child:not(:first-child) > .ant-btn {border-top-left-radius: 2px;border-top-right-radius: 0;border-bottom-right-radius: 0;border-bottom-left-radius: 2px;} -.ant-btn-group-rtl.ant-btn-group-sm > .ant-btn:first-child:not(:last-child), .ant-btn-group-rtl.ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn {border-top-left-radius: 0;border-top-right-radius: 2px;border-bottom-right-radius: 2px;border-bottom-left-radius: 0;} -.ant-btn-group-rtl.ant-btn-group-sm > .ant-btn:last-child:not(:first-child), .ant-btn-group-rtl.ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn {border-top-left-radius: 2px;border-top-right-radius: 0;border-bottom-right-radius: 0;border-bottom-left-radius: 2px;} -.ant-btn.ant-btn-background-ghost {color: #fff;border-color: #fff;} -.ant-btn.ant-btn-background-ghost, .ant-btn.ant-btn-background-ghost:hover, .ant-btn.ant-btn-background-ghost:active, .ant-btn.ant-btn-background-ghost:focus {background: transparent;} -.ant-btn-background-ghost.ant-btn-primary {color: @primary-color;border-color: @primary-color;} -.ant-btn-background-ghost.ant-btn-primary > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-primary > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-primary:hover, .ant-btn-background-ghost.ant-btn-primary:focus {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child, .ant-btn-background-ghost.ant-btn-primary:focus > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-primary:focus > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-primary:active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-btn-background-ghost.ant-btn-primary:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-primary:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-primary[disabled], .ant-btn-background-ghost.ant-btn-primary[disabled]:hover, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus, .ant-btn-background-ghost.ant-btn-primary[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child, .ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child::after, .ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child::after, .ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-danger {color: #ff4d4f;border-color: #ff4d4f;} -.ant-btn-background-ghost.ant-btn-danger > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-danger > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-danger:hover, .ant-btn-background-ghost.ant-btn-danger:focus {color: #ff7875;border-color: #ff7875;} -.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child, .ant-btn-background-ghost.ant-btn-danger:focus > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-danger:focus > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-danger:active {color: #d9363e;border-color: #d9363e;} -.ant-btn-background-ghost.ant-btn-danger:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-danger:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-danger[disabled], .ant-btn-background-ghost.ant-btn-danger[disabled]:hover, .ant-btn-background-ghost.ant-btn-danger[disabled]:focus, .ant-btn-background-ghost.ant-btn-danger[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child, .ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child::after, .ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child::after, .ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous {color: #ff4d4f;border-color: #ff4d4f;} -.ant-btn-background-ghost.ant-btn-dangerous > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous:hover, .ant-btn-background-ghost.ant-btn-dangerous:focus {color: #ff7875;border-color: #ff7875;} -.ant-btn-background-ghost.ant-btn-dangerous:hover > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous:focus > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous:focus > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous:active {color: #d9363e;border-color: #d9363e;} -.ant-btn-background-ghost.ant-btn-dangerous:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous[disabled], .ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-background-ghost.ant-btn-dangerous[disabled] > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous[disabled] > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link {color: #ff4d4f;border-color: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus {color: #ff7875;border-color: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active {color: #d9363e;border-color: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {background: transparent;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled], .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;background: #f5f5f5;box-shadow: none;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {color: currentColor;} -.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {background: transparent;} -.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child), .ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);border-left-color: #d9d9d9;} -.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled], .ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {border-right-color: #d9d9d9;border-left-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-picker-calendar {color: rgba(0, 0, 0, 0.85);background: #fff;} -.ant-picker-calendar .ant-picker-panel {background: #fff;border: 0;border-top: 1px solid #f0f0f0;border-radius: 0;} -.ant-picker-calendar-mini {border-radius: 2px;} -.ant-picker-calendar-mini .ant-picker-panel {border-radius: 0 0 2px 2px;} -.ant-picker-calendar-full .ant-picker-panel {background: #fff;border: 0;} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell:hover .ant-picker-calendar-date {background: #f5f5f5;} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date, .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date, .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today, .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date .ant-picker-calendar-date-value, .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date .ant-picker-calendar-date-value, .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today .ant-picker-calendar-date-value, .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today .ant-picker-calendar-date-value {color: @primary-color;} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date {border: 0;border-top: 2px solid #f0f0f0;border-radius: 0;} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content {color: rgba(0, 0, 0, 0.85);} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today {border-color: @primary-color;} -.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today .ant-picker-calendar-date-value {color: rgba(0, 0, 0, 0.85);} -.ant-card {color: rgba(0, 0, 0, 0.85);background: #fff;border-radius: 2px;} -.ant-card-hoverable:hover {border-color: transparent;box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);} -.ant-card-bordered {border: 1px solid #f0f0f0;} -.ant-card-head {color: rgba(0, 0, 0, 0.85);background: transparent;border-bottom: 1px solid #f0f0f0;border-radius: 2px 2px 0 0;} -.ant-card-head .ant-tabs {color: rgba(0, 0, 0, 0.85);} -.ant-card-head .ant-tabs-bar {border-bottom: 1px solid #f0f0f0;} -.ant-card-extra {color: rgba(0, 0, 0, 0.85);} -.ant-card-grid {border: 0;border-radius: 0;box-shadow: 1px 0 0 0 #f0f0f0, 0 1px 0 0 #f0f0f0, 1px 1px 0 0 #f0f0f0, 1px 0 0 0 #f0f0f0 inset, 0 1px 0 0 #f0f0f0 inset;} -.ant-card-grid-hoverable:hover {box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);} -.ant-card-cover img {border-radius: 2px 2px 0 0;} -.ant-card-actions {background: #fff;border-top: 1px solid #f0f0f0;} -.ant-card-actions > li {color: rgba(0, 0, 0, 0.45);} -.ant-card-actions > li > span:hover {color: @primary-color;} -.ant-card-actions > li > span a:not(.ant-btn), .ant-card-actions > li > span > .anticon {color: rgba(0, 0, 0, 0.45);} -.ant-card-actions > li > span a:not(.ant-btn):hover, .ant-card-actions > li > span > .anticon:hover {color: @primary-color;} -.ant-card-actions > li:not(:last-child) {border-right: 1px solid #f0f0f0;} -.ant-card-rtl .ant-card-actions > li:not(:last-child) {border-right: none;border-left: 1px solid #f0f0f0;} -.ant-card-type-inner .ant-card-head {background: #fafafa;} -.ant-card-meta-title {color: rgba(0, 0, 0, 0.85);} -.ant-card-meta-description {color: rgba(0, 0, 0, 0.45);} -.ant-card-loading-block {background: linear-gradient(90deg, fade(@card-skeleton-bg, 20%), fade(@card-skeleton-bg, 40%), fade(@card-skeleton-bg, 20%));background-size: 600% 600%;border-radius: 2px;} -.ant-carousel {color: rgba(0, 0, 0, 0.85);} -.ant-carousel .slick-slider {-webkit-tap-highlight-color: transparent;} -.ant-carousel .slick-prev, .ant-carousel .slick-next {color: transparent;background: transparent;border: 0;} -.ant-carousel .slick-prev:hover, .ant-carousel .slick-next:hover, .ant-carousel .slick-prev:focus, .ant-carousel .slick-next:focus {color: transparent;background: transparent;} -.ant-carousel .slick-dots li button {color: transparent;background: #fff;border: 0;border-radius: 1px;} -.ant-carousel .slick-dots li.slick-active button {background: #fff;} -.ant-cascader {color: rgba(0, 0, 0, 0.85);} -.ant-cascader-input.ant-input {background-color: transparent !important;} -.ant-cascader-picker {color: rgba(0, 0, 0, 0.85);background-color: #fff;border-radius: 2px;} -.ant-cascader-picker-with-value .ant-cascader-picker-label {color: transparent;} -.ant-cascader-picker-disabled {color: rgba(0, 0, 0, 0.25);background: #f5f5f5;} -.ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-cascader-picker:focus .ant-cascader-input {border-right-width: 0;border-left-width: 1px !important;} -.ant-cascader-picker-borderless .ant-cascader-input {border-color: transparent !important;box-shadow: none !important;} -.ant-cascader-picker-show-search.ant-cascader-picker-focused {color: rgba(0, 0, 0, 0.25);} -.ant-cascader-picker-clear {color: rgba(0, 0, 0, 0.25);background: #fff;} -.ant-cascader-picker-clear:hover {color: rgba(0, 0, 0, 0.45);} -.ant-cascader-picker-arrow {color: rgba(0, 0, 0, 0.25);} -.ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {border-right-width: 0;border-left-width: 1px !important;} -.ant-cascader-menus {background: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-cascader-menu {border-right: 1px solid #f0f0f0;} -.ant-cascader-menu:first-child {border-radius: 2px 0 0 2px;} -.ant-cascader-menu:last-child {border-right-color: transparent;border-radius: 0 2px 2px 0;} -.ant-cascader-menu:only-child {border-radius: 2px;} -.ant-cascader-menu-item:hover {background: #f5f5f5;} -.ant-cascader-menu-item-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-cascader-menu-item-disabled:hover {background: transparent;} -.ant-cascader-menu-empty .ant-cascader-menu-item {color: rgba(0, 0, 0, 0.25);} -.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled), .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {background-color: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon, .ant-cascader-menu-item-loading-icon {color: rgba(0, 0, 0, 0.45);} -.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon, .ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon {color: rgba(0, 0, 0, 0.25);} -.ant-cascader-menu-item .ant-cascader-menu-item-keyword {color: #ff4d4f;} -.ant-cascader-menu-rtl .ant-cascader-menu {border-right: none;border-left: 1px solid #f0f0f0;} -.ant-cascader-menu-rtl .ant-cascader-menu:first-child {border-radius: 0 2px 2px 0;} -.ant-cascader-menu-rtl .ant-cascader-menu:last-child {border-left-color: transparent;border-radius: 2px 0 0 2px;} -.ant-cascader-menu-rtl .ant-cascader-menu:only-child {border-radius: 2px;} -.ant-checkbox {color: rgba(0, 0, 0, 0.85);} -.ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner, .ant-checkbox-input:focus + .ant-checkbox-inner {border-color: @primary-color;} -.ant-checkbox-checked::after {border: 1px solid @primary-color;border-radius: 2px;} -.ant-checkbox-inner {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;border-collapse: separate;} -.ant-checkbox-inner::after {border: 2px solid #fff;border-top: 0;border-left: 0;} -.ant-checkbox-checked .ant-checkbox-inner::after {border: 2px solid #fff;border-top: 0;border-left: 0;} -.ant-checkbox-checked .ant-checkbox-inner {background-color: @primary-color;border-color: @primary-color;} -.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {border-color: rgba(0, 0, 0, 0.25);} -.ant-checkbox-disabled .ant-checkbox-inner {background-color: #f5f5f5;border-color: #d9d9d9 !important;} -.ant-checkbox-disabled .ant-checkbox-inner::after {border-color: #f5f5f5;border-collapse: separate;} -.ant-checkbox-disabled + span {color: rgba(0, 0, 0, 0.25);} -.ant-checkbox-wrapper {color: rgba(0, 0, 0, 0.85);} -.ant-checkbox-group {color: rgba(0, 0, 0, 0.85);} -.ant-checkbox-indeterminate .ant-checkbox-inner {background-color: #fff;border-color: #d9d9d9;} -.ant-checkbox-indeterminate .ant-checkbox-inner::after {background-color: @primary-color;border: 0;} -.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {background-color: rgba(0, 0, 0, 0.25);border-color: rgba(0, 0, 0, 0.25);} -.ant-collapse {color: rgba(0, 0, 0, 0.85);background-color: #fafafa;border: 1px solid #d9d9d9;border-bottom: 0;border-radius: 2px;} -.ant-collapse > .ant-collapse-item {border-bottom: 1px solid #d9d9d9;} -.ant-collapse > .ant-collapse-item:last-child, .ant-collapse > .ant-collapse-item:last-child > .ant-collapse-header {border-radius: 0 0 2px 2px;} -.ant-collapse > .ant-collapse-item > .ant-collapse-header {color: rgba(0, 0, 0, 0.85);} -.ant-collapse-content {color: rgba(0, 0, 0, 0.85);background-color: #fff;border-top: 1px solid #d9d9d9;} -.ant-collapse-item:last-child > .ant-collapse-content {border-radius: 0 0 2px 2px;} -.ant-collapse-borderless {background-color: #fafafa;border: 0;} -.ant-collapse-borderless > .ant-collapse-item {border-bottom: 1px solid #d9d9d9;} -.ant-collapse-borderless > .ant-collapse-item:last-child, .ant-collapse-borderless > .ant-collapse-item:last-child .ant-collapse-header {border-radius: 0;} -.ant-collapse-borderless > .ant-collapse-item > .ant-collapse-content {background-color: transparent;border-top: 0;} -.ant-collapse-ghost {background-color: transparent;border: 0;} -.ant-collapse-ghost > .ant-collapse-item {border-bottom: 0;} -.ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content {background-color: transparent;border-top: 0;} -.ant-collapse .ant-collapse-item-disabled > .ant-collapse-header, .ant-collapse .ant-collapse-item-disabled > .ant-collapse-header > .arrow {color: rgba(0, 0, 0, 0.25);} -.ant-comment {background-color: inherit;} -.ant-comment-avatar img {border-radius: 50%;} -.ant-comment-content-author-name {color: rgba(0, 0, 0, 0.45);} -.ant-comment-content-author-name > * {color: rgba(0, 0, 0, 0.45);} -.ant-comment-content-author-name > *:hover {color: rgba(0, 0, 0, 0.45);} -.ant-comment-content-author-time {color: #ccc;} -.ant-comment-actions > li {color: rgba(0, 0, 0, 0.45);} -.ant-comment-actions > li > span {color: rgba(0, 0, 0, 0.45);} -.ant-comment-actions > li > span:hover {color: #595959;} -.ant-picker {color: rgba(0, 0, 0, 0.85);background: #fff;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-picker:hover, .ant-input-rtl .ant-picker-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-picker-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-picker.ant-picker-disabled {background: #f5f5f5;border-color: #d9d9d9;} -.ant-picker.ant-picker-disabled .ant-picker-suffix {color: rgba(0, 0, 0, 0.25);} -.ant-picker.ant-picker-borderless {background-color: transparent !important;border-color: transparent !important;box-shadow: none !important;} -.ant-picker-input > input {color: rgba(0, 0, 0, 0.85);background-color: #fff;background-image: none;border: 1px solid #d9d9d9;border-radius: 2px;background: transparent;border: 0;} -.ant-picker-input > input::placeholder {color: #bfbfbf;} -.ant-picker-input > input:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-picker-input > input:hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-picker-input > input:focus, .ant-picker-input > input-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-picker-input > input:focus, .ant-input-rtl .ant-picker-input > input-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-picker-input > input-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-picker-input > input-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-picker-input > input[disabled] {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-picker-input > input[disabled]:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-picker-input > input-borderless, .ant-picker-input > input-borderless:hover, .ant-picker-input > input-borderless:focus, .ant-picker-input > input-borderless-focused, .ant-picker-input > input-borderless-disabled, .ant-picker-input > input-borderless[disabled] {background-color: transparent;border: none;box-shadow: none;} -.ant-picker-input > input:focus {box-shadow: none;} -.ant-picker-input > input[disabled] {background: transparent;} -.ant-picker-input-placeholder > input {color: #bfbfbf;} -.ant-picker-suffix {color: rgba(0, 0, 0, 0.25);} -.ant-picker-clear {color: rgba(0, 0, 0, 0.25);background: #fff;} -.ant-picker-clear:hover {color: rgba(0, 0, 0, 0.45);} -.ant-picker-separator {color: rgba(0, 0, 0, 0.25);} -.ant-picker-focused .ant-picker-separator {color: rgba(0, 0, 0, 0.45);} -.ant-picker-range .ant-picker-active-bar {background: @primary-color;} -.ant-picker-dropdown {color: rgba(0, 0, 0, 0.85);} -.ant-picker-ranges .ant-picker-preset > .ant-tag-blue {color: @primary-color;background: color(~`colorPalette("@{primary-color}", 1)`);border-color: color(~`colorPalette("@{primary-color}", 3)`);} -.ant-picker-range-arrow {box-shadow: 2px -2px 6px rgba(0, 0, 0, 0.06);} -.ant-picker-range-arrow::after {border: 5px solid #f0f0f0;border-color: #fff #fff transparent transparent;} -.ant-picker-panel-container {background: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-picker-panel-container .ant-picker-panel {background: transparent;border-width: 0 0 1px 0;border-radius: 0;} -.ant-picker-panel-container .ant-picker-panel-focused {border-color: #f0f0f0;} -.ant-picker-panel {background: #fff;border: 1px solid #f0f0f0;border-radius: 2px;} -.ant-picker-panel-focused {border-color: @primary-color;} -.ant-picker-header {color: rgba(0, 0, 0, 0.85);border-bottom: 1px solid #f0f0f0;} -.ant-picker-header button {color: rgba(0, 0, 0, 0.25);background: transparent;border: 0;} -.ant-picker-header > button:hover {color: rgba(0, 0, 0, 0.85);} -.ant-picker-header-view button {color: inherit;} -.ant-picker-header-view button:hover {color: @primary-color;} -.ant-picker-prev-icon::before, .ant-picker-next-icon::before, .ant-picker-super-prev-icon::before, .ant-picker-super-next-icon::before {border: 0 solid currentColor;border-width: 1.5px 0 0 1.5px;} -.ant-picker-super-prev-icon::after, .ant-picker-super-next-icon::after {border: 0 solid currentColor;border-width: 1.5px 0 0 1.5px;} -.ant-picker-content {border-collapse: collapse;} -.ant-picker-content th {color: rgba(0, 0, 0, 0.85);} -.ant-picker-cell {color: rgba(0, 0, 0, 0.25);} -.ant-picker-cell-in-view {color: rgba(0, 0, 0, 0.85);} -.ant-picker-cell .ant-picker-cell-inner {border-radius: 2px;} -.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner, .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner {background: #f5f5f5;} -.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {border: 1px solid @primary-color;border-radius: 2px;} -.ant-picker-cell-in-view.ant-picker-cell-in-range::before {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner, .ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner, .ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {color: #fff;background: @primary-color;} -.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single)::before, .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single)::before {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range)::after {border-top: 1px dashed lighten(@primary-color, 20%);border-bottom: 1px dashed lighten(@primary-color, 20%);} -.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover::before, .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover::before, .ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover::before, .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start::before, .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end::before, .ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start::before, .ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {background: lighten(@primary-color, 35%);} -.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {border-radius: 2px 0 0 2px;} -.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner {border-radius: 0 2px 2px 0;} -.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after, .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {background: lighten(@primary-color, 35%);} -tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child::after, -tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after, .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {border-left: 1px dashed lighten(@primary-color, 20%);border-top-left-radius: 2px;border-bottom-left-radius: 2px;} -tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child::after, -tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::after, .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range)::after, .ant-picker-cell-in-view.ant-picker-cell-range-hover-end::after {border-right: 1px dashed lighten(@primary-color, 20%);border-top-right-radius: 2px;border-bottom-right-radius: 2px;} -.ant-picker-cell-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-picker-cell-disabled .ant-picker-cell-inner {background: transparent;} -.ant-picker-cell-disabled::before {background: rgba(0, 0, 0, 0.04);} -.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner::before {border-color: rgba(0, 0, 0, 0.25);} -.ant-picker-footer {border-bottom: 1px solid transparent;} -.ant-picker-panel .ant-picker-footer {border-top: 1px solid #f0f0f0;} -.ant-picker-footer-extra:not(:last-child) {border-bottom: 1px solid #f0f0f0;} -.ant-picker-today-btn {color: @primary-color;} -.ant-picker-today-btn:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-picker-today-btn:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-picker-today-btn.ant-picker-today-btn-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-picker-year-panel .ant-picker-cell-range-hover-start::after, .ant-picker-quarter-panel .ant-picker-cell-range-hover-start::after, .ant-picker-month-panel .ant-picker-cell-range-hover-start::after {border-left: 1px dashed lighten(@primary-color, 20%);border-radius: 2px 0 0 2px;} -.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start::after, .ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start::after, .ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start::after {border-right: 1px dashed lighten(@primary-color, 20%);border-radius: 0 2px 2px 0;} -.ant-picker-year-panel .ant-picker-cell-range-hover-end::after, .ant-picker-quarter-panel .ant-picker-cell-range-hover-end::after, .ant-picker-month-panel .ant-picker-cell-range-hover-end::after {border-right: 1px dashed lighten(@primary-color, 20%);border-radius: 0 2px 2px 0;} -.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end::after, .ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end::after, .ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end::after {border-left: 1px dashed lighten(@primary-color, 20%);border-radius: 2px 0 0 2px;} -.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner, .ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner, .ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner {background: transparent !important;} -.ant-picker-week-panel-row:hover td {background: #f5f5f5;} -.ant-picker-week-panel-row-selected td, .ant-picker-week-panel-row-selected:hover td {background: @primary-color;} -.ant-picker-week-panel-row-selected td.ant-picker-cell-week, .ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week {color: rgba(255, 255, 255, 0.5);} -.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner::before, .ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner::before {border-color: #fff;} -.ant-picker-week-panel-row-selected td .ant-picker-cell-inner, .ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner {color: #fff;} -.ant-picker-datetime-panel .ant-picker-time-panel {border-left: 1px solid #f0f0f0;} -.ant-picker-time-panel-column:not(:first-child) {border-left: 1px solid #f0f0f0;} -.ant-picker-time-panel-column-active {background: fade(@calendar-item-active-bg, 20%);} -.ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner {color: rgba(0, 0, 0, 0.85);border-radius: 0;} -.ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover {background: #f5f5f5;} -.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner {color: rgba(0, 0, 0, 0.25);background: transparent;} -.ant-picker-cell .ant-picker-cell-inner {border-radius: 2px;} -.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {border-radius: 0 2px 2px 0;} -.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner {border-radius: 2px 0 0 2px;} -.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {border-right: 1px dashed lighten(@primary-color, 20%);border-left: none;border-top-left-radius: 0;border-top-right-radius: 2px;border-bottom-right-radius: 2px;border-bottom-left-radius: 0;} -.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range)::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end::after {border-right: none;border-left: 1px dashed lighten(@primary-color, 20%);border-top-left-radius: 2px;border-top-right-radius: 0;border-bottom-right-radius: 0;border-bottom-left-radius: 2px;} -.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::after, .ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover)::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover)::after, .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover)::after, .ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child::after, .ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child::after {border-right: 1px dashed lighten(@primary-color, 20%);border-left: 1px dashed lighten(@primary-color, 20%);border-radius: 2px;} -.ant-descriptions-title {color: rgba(0, 0, 0, 0.85);} -.ant-descriptions-extra {color: rgba(0, 0, 0, 0.85);} -.ant-descriptions-view {border-radius: 2px;} -.ant-descriptions-row:last-child {border-bottom: none;} -.ant-descriptions-item-label {color: rgba(0, 0, 0, 0.85);} -.ant-descriptions-item-content {color: rgba(0, 0, 0, 0.85);} -.ant-descriptions-bordered .ant-descriptions-view {border: 1px solid #f0f0f0;} -.ant-descriptions-bordered .ant-descriptions-view > table {border-collapse: collapse;} -.ant-descriptions-bordered .ant-descriptions-item-label, .ant-descriptions-bordered .ant-descriptions-item-content {border-right: 1px solid #f0f0f0;} -.ant-descriptions-bordered .ant-descriptions-item-label:last-child, .ant-descriptions-bordered .ant-descriptions-item-content:last-child {border-right: none;} -.ant-descriptions-bordered .ant-descriptions-item-label {background-color: #fafafa;} -.ant-descriptions-bordered .ant-descriptions-row {border-bottom: 1px solid #f0f0f0;} -.ant-descriptions-bordered .ant-descriptions-row:last-child {border-bottom: none;} -.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label, .ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content {border-right: none;border-left: 1px solid #f0f0f0;} -.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label:last-child, .ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content:last-child {border-left: none;} -.ant-divider {color: rgba(0, 0, 0, 0.85);border-top: 1px solid rgba(0, 0, 0, 0.06);} -.ant-divider-vertical {border-top: 0;border-left: 1px solid rgba(0, 0, 0, 0.06);} -.ant-divider-horizontal.ant-divider-with-text {color: rgba(0, 0, 0, 0.85);border-top: 0;border-top-color: rgba(0, 0, 0, 0.06);} -.ant-divider-horizontal.ant-divider-with-text::before, .ant-divider-horizontal.ant-divider-with-text::after {border-top: 1px solid transparent;border-top-color: inherit;border-bottom: 0;} -.ant-divider-dashed {background: none;border-color: rgba(0, 0, 0, 0.06);border-style: dashed;border-width: 1px 0 0;} -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed {border-top: 0;} -.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before, .ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after {border-style: dashed none none;} -.ant-divider-vertical.ant-divider-dashed {border-width: 0 0 0 1px;} -.ant-divider-plain.ant-divider-with-text {color: rgba(0, 0, 0, 0.85);} -.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper {box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);} -.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);} -.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper {box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);} -.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper {box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);} -.ant-drawer-title {color: rgba(0, 0, 0, 0.85);} -.ant-drawer-content {background-color: #fff;background-clip: padding-box;border: 0;} -.ant-drawer-close {color: rgba(0, 0, 0, 0.45);background: transparent;border: 0;} -.ant-drawer-close:focus, .ant-drawer-close:hover {color: rgba(0, 0, 0, 0.75);} -.ant-drawer-header {color: rgba(0, 0, 0, 0.85);background: #fff;border-bottom: 1px solid #f0f0f0;border-radius: 2px 2px 0 0;} -.ant-drawer-header-no-title {color: rgba(0, 0, 0, 0.85);background: #fff;} -.ant-drawer-footer {border-top: 1px solid #f0f0f0;} -.ant-drawer-mask {background-color: rgba(0, 0, 0, 0.45);} -.ant-drawer-open-content {box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-drawer .ant-picker-clear {background: #fff;} -.ant-dropdown-menu-item.ant-dropdown-menu-item-danger {color: #ff4d4f;} -.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover {color: #fff;background-color: #ff4d4f;} -.ant-dropdown {color: rgba(0, 0, 0, 0.85);} -.ant-dropdown-arrow {background: transparent;border-style: solid;border-width: 4.24264069px;} -.ant-dropdown-placement-topCenter > .ant-dropdown-arrow, .ant-dropdown-placement-topLeft > .ant-dropdown-arrow, .ant-dropdown-placement-topRight > .ant-dropdown-arrow {border-top-color: transparent;border-right-color: #fff;border-bottom-color: #fff;border-left-color: transparent;box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);} -.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow, .ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow, .ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {border-top-color: #fff;border-right-color: transparent;border-bottom-color: transparent;border-left-color: #fff;box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);} -.ant-dropdown-menu {background-color: #fff;background-clip: padding-box;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-dropdown-menu-item-group-title {color: rgba(0, 0, 0, 0.45);} -.ant-dropdown-menu-submenu-popup {background: transparent;box-shadow: none;} -.ant-dropdown-menu-title-content > a {color: inherit;} -.ant-dropdown-menu-title-content > a:hover {color: inherit;} -.ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title {color: rgba(0, 0, 0, 0.85);} -.ant-dropdown-menu-item-selected, .ant-dropdown-menu-submenu-title-selected {color: @primary-color;background-color: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover {background-color: #f5f5f5;} -.ant-dropdown-menu-item-disabled, .ant-dropdown-menu-submenu-title-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-dropdown-menu-item-disabled:hover, .ant-dropdown-menu-submenu-title-disabled:hover {color: rgba(0, 0, 0, 0.25);background-color: #fff;} -.ant-dropdown-menu-item-divider, .ant-dropdown-menu-submenu-title-divider {background-color: #f0f0f0;} -.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon, .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {color: rgba(0, 0, 0, 0.45);} -.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title, .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {color: rgba(0, 0, 0, 0.25);background-color: #fff;} -.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title {color: @primary-color;} -.ant-dropdown-menu-dark, .ant-dropdown-menu-dark .ant-dropdown-menu {background: #001529;} -.ant-dropdown-menu-dark .ant-dropdown-menu-item, .ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title, .ant-dropdown-menu-dark .ant-dropdown-menu-item > a, .ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a {color: rgba(255, 255, 255, 0.65);} -.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after, .ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after, .ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after, .ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a .ant-dropdown-menu-submenu-arrow::after {color: rgba(255, 255, 255, 0.65);} -.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover, .ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover, .ant-dropdown-menu-dark .ant-dropdown-menu-item > a:hover, .ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a:hover {color: #fff;background: transparent;} -.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected, .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover, .ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a {color: #fff;background: @primary-color;} -.ant-empty-normal {color: rgba(0, 0, 0, 0.25);} -.ant-empty-small {color: rgba(0, 0, 0, 0.25);} -.ant-form-item .ant-upload {background: transparent;} -.ant-form-item .ant-upload.ant-upload-drag {background: #fafafa;} -.ant-form-item-explain.ant-form-item-explain-error {color: #ff4d4f;} -.ant-form-item-explain.ant-form-item-explain-warning {color: #faad14;} -.ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {color: #52c41a;} -.ant-form-item-has-warning .ant-form-item-split {color: #faad14;} -.ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover, .ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background-color: #fff;border-color: #faad14;} -.ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused, .ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: #ffc53d;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);} -.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: #ffc53d;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);} -.ant-form-item-has-warning .ant-input-prefix {color: #faad14;} -.ant-form-item-has-warning .ant-input-group-addon {color: #faad14;border-color: #faad14;} -.ant-form-item-has-warning .has-feedback {color: #faad14;} -.ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {color: #faad14;} -.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border-color: #faad14 !important;} -.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector {border-color: #ffc53d;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);} -.ant-form-item-has-warning .ant-input-number, .ant-form-item-has-warning .ant-picker {background-color: #fff;border-color: #faad14;} -.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: #ffc53d;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);} -.ant-form-item-has-warning .ant-input-number:not([disabled]):hover, .ant-form-item-has-warning .ant-picker:not([disabled]):hover {background-color: #fff;border-color: #faad14;} -.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: #ffc53d;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);} -.ant-form-item-has-error .ant-form-item-split {color: #ff4d4f;} -.ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover, .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background-color: #fff;border-color: #ff4d4f;} -.ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused, .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: #ff7875;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);} -.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: #ff7875;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);} -.ant-form-item-has-error .ant-input-prefix {color: #ff4d4f;} -.ant-form-item-has-error .ant-input-group-addon {color: #ff4d4f;border-color: #ff4d4f;} -.ant-form-item-has-error .has-feedback {color: #ff4d4f;} -.ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {color: #ff4d4f;} -.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border-color: #ff4d4f !important;} -.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector {border-color: #ff7875;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);} -.ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {background-color: inherit;border: 0;box-shadow: none;} -.ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {border-color: #ff4d4f;} -.ant-form-item-has-error .ant-input-number, .ant-form-item-has-error .ant-picker {background-color: #fff;border-color: #ff4d4f;} -.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: #ff7875;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);} -.ant-form-item-has-error .ant-input-number:not([disabled]):hover, .ant-form-item-has-error .ant-picker:not([disabled]):hover {background-color: #fff;border-color: #ff4d4f;} -.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {background-color: #fff;border-color: #ff4d4f;} -.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: #ff7875;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);} -.ant-form-item-has-error .ant-cascader-picker:hover .ant-cascader-picker-label:hover + .ant-cascader-input.ant-input {border-color: #ff4d4f;} -.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {background-color: #fff;border-color: #ff7875;border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);} -.ant-form-item-has-error .ant-transfer-list {border-color: #ff4d4f;} -.ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {border-color: #d9d9d9;} -.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {border-right-width: 0;border-left-width: 1px !important;} -.ant-form-item-has-error .ant-radio-button-wrapper {border-color: #ff4d4f !important;} -.ant-form-item-has-error .ant-radio-button-wrapper:not(:first-child)::before {background-color: #ff4d4f;} -.ant-form-item-is-validating.ant-form-item-has-feedback .ant-form-item-children-icon {color: @primary-color;} -.ant-form {color: rgba(0, 0, 0, 0.85);} -.ant-form legend {color: rgba(0, 0, 0, 0.45);border: 0;border-bottom: 1px solid #d9d9d9;} -.ant-form output {color: rgba(0, 0, 0, 0.85);} -.ant-form-item {color: rgba(0, 0, 0, 0.85);} -.ant-form-item-label > label {color: rgba(0, 0, 0, 0.85);} -.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {color: #ff4d4f;} -.ant-form-item-label > label .ant-form-item-optional {color: rgba(0, 0, 0, 0.45);} -.ant-form-item-label > label .ant-form-item-tooltip {color: rgba(0, 0, 0, 0.45);} -.ant-form-item-explain, .ant-form-item-extra {color: rgba(0, 0, 0, 0.45);} -.ant-image-img-placeholder {background-color: #f5f5f5;background-repeat: no-repeat;background-position: center center;background-size: 30%;} -.ant-image-mask {color: #fff;background: rgba(0, 0, 0, 0.5);} -.ant-image-preview-mask {background-color: rgba(0, 0, 0, 0.45);} -.ant-image-preview-operations {color: rgba(0, 0, 0, 0.85);color: rgba(255, 255, 255, 0.85);background: fade(@modal-mask-bg, 10%);} -.ant-image-preview-operations-operation-disabled {color: fade(@image-preview-operation-color, 25%);} -.ant-image-preview-switch-left, .ant-image-preview-switch-right {color: rgba(255, 255, 255, 0.85);background: fade(@modal-mask-bg, 10%);border-radius: 50%;} -.ant-image-preview-switch-left-disabled, .ant-image-preview-switch-right-disabled {color: fade(@image-preview-operation-color, 25%);} -.ant-input-affix-wrapper {color: rgba(0, 0, 0, 0.85);background-color: #fff;background-image: none;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-input-affix-wrapper::placeholder {color: #bfbfbf;} -.ant-input-affix-wrapper:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-input-affix-wrapper:hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-input-affix-wrapper:focus, .ant-input-rtl .ant-input-affix-wrapper-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-affix-wrapper-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input-affix-wrapper-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input-affix-wrapper[disabled] {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input-affix-wrapper[disabled]:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input-affix-wrapper-borderless, .ant-input-affix-wrapper-borderless:hover, .ant-input-affix-wrapper-borderless:focus, .ant-input-affix-wrapper-borderless-focused, .ant-input-affix-wrapper-borderless-disabled, .ant-input-affix-wrapper-borderless[disabled] {background-color: transparent;border: none;box-shadow: none;} -.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-affix-wrapper-disabled .ant-input[disabled] {background: transparent;} -.ant-input-affix-wrapper > input.ant-input {border: none;} -.ant-input-affix-wrapper > input.ant-input:focus {box-shadow: none !important;} -.anticon.ant-input-clear-icon {color: rgba(0, 0, 0, 0.25);} -.anticon.ant-input-clear-icon:hover {color: rgba(0, 0, 0, 0.45);} -.anticon.ant-input-clear-icon:active {color: rgba(0, 0, 0, 0.85);} -.ant-input-affix-wrapper-textarea-with-clear-btn {border: 0 !important;} -.ant-input {color: rgba(0, 0, 0, 0.85);background-color: #fff;background-image: none;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-input::placeholder {color: #bfbfbf;} -.ant-input:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-input:hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-input:focus, .ant-input-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-input:focus, .ant-input-rtl .ant-input-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input[disabled] {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input[disabled]:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input-borderless, .ant-input-borderless:hover, .ant-input-borderless:focus, .ant-input-borderless-focused, .ant-input-borderless-disabled, .ant-input-borderless[disabled] {background-color: transparent;border: none;box-shadow: none;} -.ant-input-group {color: rgba(0, 0, 0, 0.85);border-collapse: separate;border-spacing: 0;} -.ant-input-group-addon:not(:first-child):not(:last-child), .ant-input-group-wrap:not(:first-child):not(:last-child), .ant-input-group > .ant-input:not(:first-child):not(:last-child) {border-radius: 0;} -.ant-input-group .ant-input:focus {border-right-width: 1px;} -.ant-input-group .ant-input:hover {border-right-width: 1px;} -.ant-input-group-addon {color: rgba(0, 0, 0, 0.85);background-color: #fafafa;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {background-color: inherit;border: 1px solid transparent;box-shadow: none;} -.ant-input-group-addon .ant-select-open .ant-select-selector, .ant-input-group-addon .ant-select-focused .ant-select-selector {color: @primary-color;} -.ant-input-group-addon .ant-cascader-picker {background-color: transparent;} -.ant-input-group-addon .ant-cascader-picker .ant-cascader-input {border: 0;box-shadow: none;} -.ant-input-group > .ant-input:first-child, .ant-input-group-addon:first-child {border-top-right-radius: 0;border-bottom-right-radius: 0;} -.ant-input-group > .ant-input:first-child .ant-select .ant-select-selector, .ant-input-group-addon:first-child .ant-select .ant-select-selector {border-top-right-radius: 0;border-bottom-right-radius: 0;} -.ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input {border-top-left-radius: 0;border-bottom-left-radius: 0;} -.ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input {border-top-right-radius: 0;border-bottom-right-radius: 0;} -.ant-input-group-addon:first-child {border-right: 0;} -.ant-input-group-addon:last-child {border-left: 0;} -.ant-input-group > .ant-input:last-child, .ant-input-group-addon:last-child {border-top-left-radius: 0;border-bottom-left-radius: 0;} -.ant-input-group > .ant-input:last-child .ant-select .ant-select-selector, .ant-input-group-addon:last-child .ant-select .ant-select-selector {border-top-left-radius: 0;border-bottom-left-radius: 0;} -.ant-input-group .ant-input-affix-wrapper:not(:first-child) {border-top-left-radius: 0;border-bottom-left-radius: 0;} -.ant-input-group .ant-input-affix-wrapper:not(:last-child) {border-top-right-radius: 0;border-bottom-right-radius: 0;} -.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:last-child) {border-top-left-radius: 2px;border-bottom-left-radius: 2px;} -.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child), .ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child), .ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child) {border-right-width: 1px;} -.ant-input-group.ant-input-group-compact > * {border-radius: 0;} -.ant-input-group.ant-input-group-compact > *:not(:last-child) {border-right-width: 1px;} -.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector, .ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input, .ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input, .ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input {border-right-width: 1px;border-radius: 0;} -.ant-input-group.ant-input-group-compact > *:first-child, .ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector, .ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {border-top-left-radius: 2px;border-bottom-left-radius: 2px;} -.ant-input-group.ant-input-group-compact > *:last-child, .ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector, .ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {border-right-width: 1px;border-top-right-radius: 2px;border-bottom-right-radius: 2px;} -.ant-input-group.ant-input-group-compact .ant-input-group-wrapper + .ant-input-group-wrapper .ant-input-affix-wrapper {border-radius: 0;} -.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input-group-addon > .ant-input-search-button {border-radius: 0;} -.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 2px 0 0 2px;} -.ant-input-group > .ant-input-rtl:first-child, .ant-input-group-rtl .ant-input-group-addon:first-child {border-radius: 0 2px 2px 0;} -.ant-input-group-rtl .ant-input-group-addon:first-child {border-right: 1px solid #d9d9d9;border-left: 0;} -.ant-input-group-rtl .ant-input-group-addon:last-child {border-right: 0;border-left: 1px solid #d9d9d9;} -.ant-input-group-rtl.ant-input-group > .ant-input:last-child, .ant-input-group-rtl.ant-input-group-addon:last-child {border-radius: 2px 0 0 2px;} -.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child) {border-radius: 2px 0 0 2px;} -.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child) {border-radius: 0 2px 2px 0;} -.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:not(:last-child) {border-left-width: 1px;} -.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:first-child, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {border-radius: 0 2px 2px 0;} -.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:last-child, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {border-left-width: 1px;border-radius: 2px 0 0 2px;} -.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 0 2px 2px 0;} -.ant-input-password-icon {color: rgba(0, 0, 0, 0.45);} -.ant-input-password-icon:hover {color: rgba(0, 0, 0, 0.85);} -.ant-input-textarea-show-count::after {color: rgba(0, 0, 0, 0.45);} -.ant-input-search .ant-input:hover, .ant-input-search .ant-input:focus {border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-input-search .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary), .ant-input-search .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {border-left-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-input-search .ant-input-affix-wrapper {border-radius: 0;} -.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child {border: 0;} -.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {border-radius: 0 2px 2px 0;} -.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary) {color: rgba(0, 0, 0, 0.45);} -.ant-input-affix-wrapper.ant-input-affix-wrapper-rtl > input.ant-input {border: none;} -.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary), .ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);border-left-color: #d9d9d9;} -.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover, .ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {border-radius: 2px 0 0 2px;} -.ant-input-number {color: rgba(0, 0, 0, 0.85);background-color: #fff;background-image: none;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-input-number::placeholder {color: #bfbfbf;} -.ant-input-number:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-input-number:hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-number:focus, .ant-input-number-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-input-number:focus, .ant-input-rtl .ant-input-number-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-number-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input-number-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input-number[disabled] {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input-number[disabled]:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input-number-borderless, .ant-input-number-borderless:hover, .ant-input-number-borderless:focus, .ant-input-number-borderless-focused, .ant-input-number-borderless-disabled, .ant-input-number-borderless[disabled] {background-color: transparent;border: none;box-shadow: none;} -.ant-input-number-handler {color: rgba(0, 0, 0, 0.45);border-left: 1px solid #d9d9d9;} -.ant-input-number-handler:active {background: #f4f4f4;} -.ant-input-number-handler:hover .ant-input-number-handler-up-inner, .ant-input-number-handler:hover .ant-input-number-handler-down-inner {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-input-number-handler-up-inner, .ant-input-number-handler-down-inner {color: inherit;color: rgba(0, 0, 0, 0.45);} -.ant-input-number:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-number-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-input-number-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-input-number-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-input-number-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-input-number-input {background-color: transparent;border: 0;border-radius: 2px;} -.ant-input-number-input::placeholder {color: #bfbfbf;} -.ant-input-number-handler-wrap {background: #fff;border-radius: 0 2px 2px 0;} -.ant-input-number-borderless .ant-input-number-handler-wrap {border-left-width: 0;} -.ant-input-number-handler-up {border-top-right-radius: 2px;} -.ant-input-number-handler-down {border-top: 1px solid #d9d9d9;border-bottom-right-radius: 2px;} -.ant-input-number-borderless .ant-input-number-handler-down {border-top-width: 0;} -.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner, .ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner {color: rgba(0, 0, 0, 0.25);} -.ant-input-number-borderless {box-shadow: none;} -.ant-input-number-out-of-range input {color: #ff4d4f;} -.ant-input-number-rtl .ant-input-number-handler-wrap {border-right: 1px solid #d9d9d9;border-left: 0;border-radius: 2px 0 0 2px;} -.ant-input-number-rtl.ant-input-number-borderless .ant-input-number-handler-wrap {border-right-width: 0;} -.ant-layout {background: #f0f2f5;} -.ant-layout-header {color: rgba(0, 0, 0, 0.85);background: #001529;} -.ant-layout-footer {color: rgba(0, 0, 0, 0.85);background: #f0f2f5;} -.ant-layout-sider {background: #001529;} -.ant-layout-sider-trigger {color: #fff;background: #002140;} -.ant-layout-sider-zero-width-trigger {color: #fff;background: #001529;border-radius: 0 2px 2px 0;} -.ant-layout-sider-zero-width-trigger::after {background: transparent;} -.ant-layout-sider-zero-width-trigger:hover::after {background: rgba(255, 255, 255, 0.1);} -.ant-layout-sider-zero-width-trigger-right {border-radius: 2px 0 0 2px;} -.ant-layout-sider-light {background: #fff;} -.ant-layout-sider-light .ant-layout-sider-trigger {color: rgba(0, 0, 0, 0.85);background: #fff;} -.ant-layout-sider-light .ant-layout-sider-zero-width-trigger {color: rgba(0, 0, 0, 0.85);background: #fff;} -.ant-list {color: rgba(0, 0, 0, 0.85);} -.ant-list-empty-text {color: rgba(0, 0, 0, 0.25);} -.ant-list-item {color: rgba(0, 0, 0, 0.85);} -.ant-list-item-meta-content {color: rgba(0, 0, 0, 0.85);} -.ant-list-item-meta-title {color: rgba(0, 0, 0, 0.85);} -.ant-list-item-meta-title > a {color: rgba(0, 0, 0, 0.85);} -.ant-list-item-meta-title > a:hover {color: @primary-color;} -.ant-list-item-meta-description {color: rgba(0, 0, 0, 0.45);} -.ant-list-item-action > li {color: rgba(0, 0, 0, 0.45);} -.ant-list-item-action-split {background-color: #f0f0f0;} -.ant-list-header {background: transparent;} -.ant-list-footer {background: transparent;} -.ant-list-empty {color: rgba(0, 0, 0, 0.45);} -.ant-list-split .ant-list-item {border-bottom: 1px solid #f0f0f0;} -.ant-list-split .ant-list-item:last-child {border-bottom: none;} -.ant-list-split .ant-list-header {border-bottom: 1px solid #f0f0f0;} -.ant-list-split.ant-list-empty .ant-list-footer {border-top: 1px solid #f0f0f0;} -.ant-list-split.ant-list-something-after-last-item .ant-spin-container > .ant-list-items > .ant-list-item:last-child {border-bottom: 1px solid #f0f0f0;} -.ant-list-vertical .ant-list-item-meta-title {color: rgba(0, 0, 0, 0.85);} -.ant-list-grid .ant-col > .ant-list-item {border-bottom: none;} -.ant-list-bordered {border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-mentions {color: rgba(0, 0, 0, 0.85);background-color: #fff;background-image: none;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-mentions::placeholder {color: #bfbfbf;} -.ant-mentions:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-mentions:hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-mentions:focus, .ant-mentions-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-mentions:focus, .ant-input-rtl .ant-mentions-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-mentions-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-mentions-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-mentions[disabled] {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-mentions[disabled]:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-mentions-borderless, .ant-mentions-borderless:hover, .ant-mentions-borderless:focus, .ant-mentions-borderless-focused, .ant-mentions-borderless-disabled, .ant-mentions-borderless[disabled] {background-color: transparent;border: none;box-shadow: none;} -.ant-mentions-disabled > textarea {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-mentions-disabled > textarea:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-mentions-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-mentions-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-mentions > textarea {border: none;} -.ant-mentions > textarea::placeholder {color: #bfbfbf;} -.ant-mentions-measure {color: transparent;} -.ant-mentions-dropdown {color: rgba(0, 0, 0, 0.85);background-color: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-mentions-dropdown-menu-item {color: rgba(0, 0, 0, 0.85);} -.ant-mentions-dropdown-menu-item:hover {background-color: #f5f5f5;} -.ant-mentions-dropdown-menu-item:first-child {border-radius: 2px 2px 0 0;} -.ant-mentions-dropdown-menu-item:last-child {border-radius: 0 0 2px 2px;} -.ant-mentions-dropdown-menu-item-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-mentions-dropdown-menu-item-disabled:hover {color: rgba(0, 0, 0, 0.25);background-color: #fff;} -.ant-mentions-dropdown-menu-item-selected {color: rgba(0, 0, 0, 0.85);background-color: #fafafa;} -.ant-mentions-dropdown-menu-item-active {background-color: #f5f5f5;} -.ant-menu-item-danger.ant-menu-item {color: #ff4d4f;} -.ant-menu-item-danger.ant-menu-item:hover, .ant-menu-item-danger.ant-menu-item-active {color: #ff4d4f;} -.ant-menu-item-danger.ant-menu-item:active {background: #fff1f0;} -.ant-menu-item-danger.ant-menu-item-selected {color: #ff4d4f;} -.ant-menu-item-danger.ant-menu-item-selected > a, .ant-menu-item-danger.ant-menu-item-selected > a:hover {color: #ff4d4f;} -.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: #fff1f0;} -.ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {border-right-color: #ff4d4f;} -.ant-menu-dark .ant-menu-item-danger.ant-menu-item, .ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {color: #ff4d4f;} -.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {color: #fff;background-color: #ff4d4f;} -.ant-menu {color: rgba(0, 0, 0, 0.85);background: #fff;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-menu.ant-menu-root:focus-visible {box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-menu-item-group-title {color: rgba(0, 0, 0, 0.45);} -.ant-menu-submenu-selected {color: @primary-color;} -.ant-menu-item:active, .ant-menu-submenu-title:active {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-menu-item a {color: rgba(0, 0, 0, 0.85);} -.ant-menu-item a:hover {color: @primary-color;} -.ant-menu-item a::before {background-color: transparent;} -.ant-menu-item > .ant-badge a {color: rgba(0, 0, 0, 0.85);} -.ant-menu-item > .ant-badge a:hover {color: @primary-color;} -.ant-menu-item-divider {background-color: #f0f0f0;} -.ant-menu-horizontal > .ant-menu-item:hover, .ant-menu-horizontal > .ant-menu-item-active, .ant-menu-horizontal > .ant-menu-submenu .ant-menu-submenu-title:hover {background-color: transparent;} -.ant-menu-item-selected {color: @primary-color;} -.ant-menu-item-selected a, .ant-menu-item-selected a:hover {color: @primary-color;} -.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {background-color: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-menu-inline, .ant-menu-vertical, .ant-menu-vertical-left {border-right: 1px solid #f0f0f0;} -.ant-menu-vertical-right {border-left: 1px solid #f0f0f0;} -.ant-menu-vertical.ant-menu-sub, .ant-menu-vertical-left.ant-menu-sub, .ant-menu-vertical-right.ant-menu-sub {border-right: 0;} -.ant-menu-vertical.ant-menu-sub .ant-menu-item, .ant-menu-vertical-left.ant-menu-sub .ant-menu-item, .ant-menu-vertical-right.ant-menu-sub .ant-menu-item {border-right: 0;} -.ant-menu-vertical.ant-menu-sub .ant-menu-item::after, .ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after, .ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after {border-right: 0;} -.ant-menu-item:focus-visible, .ant-menu-submenu-title:focus-visible {box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-menu > .ant-menu-item-divider {background-color: #f0f0f0;} -.ant-menu-submenu-popup {background: transparent;border-radius: 2px;box-shadow: none;} -.ant-menu-submenu > .ant-menu {background-color: #fff;border-radius: 2px;} -.ant-menu-submenu-popup > .ant-menu {background-color: #fff;} -.ant-menu-submenu-expand-icon, .ant-menu-submenu-arrow {color: rgba(0, 0, 0, 0.85);} -.ant-menu-submenu-arrow::before, .ant-menu-submenu-arrow::after {background-color: currentColor;border-radius: 2px;} -.ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-expand-icon, .ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow {color: @primary-color;} -.ant-menu-vertical .ant-menu-submenu-selected, .ant-menu-vertical-left .ant-menu-submenu-selected, .ant-menu-vertical-right .ant-menu-submenu-selected {color: @primary-color;} -.ant-menu-horizontal {border: 0;border-bottom: 1px solid #f0f0f0;box-shadow: none;} -.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item:hover, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu:hover, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-active, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-active, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-open, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-open, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected {color: @primary-color;} -.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item:hover::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu:hover::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-active::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-active::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-open::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-open::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected::after {border-bottom: 2px solid @primary-color;} -.ant-menu-horizontal > .ant-menu-item::after, .ant-menu-horizontal > .ant-menu-submenu::after {border-bottom: 2px solid transparent;} -.ant-menu-horizontal > .ant-menu-item a {color: rgba(0, 0, 0, 0.85);} -.ant-menu-horizontal > .ant-menu-item a:hover {color: @primary-color;} -.ant-menu-horizontal > .ant-menu-item-selected a {color: @primary-color;} -.ant-menu-vertical .ant-menu-item::after, .ant-menu-vertical-left .ant-menu-item::after, .ant-menu-vertical-right .ant-menu-item::after, .ant-menu-inline .ant-menu-item::after {border-right: 3px solid @primary-color;} -.ant-menu.ant-menu-inline-collapsed-tooltip a {color: rgba(255, 255, 255, 0.85);} -.ant-menu-root.ant-menu-vertical, .ant-menu-root.ant-menu-vertical-left, .ant-menu-root.ant-menu-vertical-right, .ant-menu-root.ant-menu-inline {box-shadow: none;} -.ant-menu-sub.ant-menu-inline {background: #fafafa;border: 0;border-radius: 0;box-shadow: none;} -.ant-menu-item-disabled, .ant-menu-submenu-disabled {color: rgba(0, 0, 0, 0.25) !important;background: none;} -.ant-menu-item-disabled::after, .ant-menu-submenu-disabled::after {border-color: transparent !important;} -.ant-menu-item-disabled a, .ant-menu-submenu-disabled a {color: rgba(0, 0, 0, 0.25) !important;} -.ant-menu-item-disabled > .ant-menu-submenu-title, .ant-menu-submenu-disabled > .ant-menu-submenu-title {color: rgba(0, 0, 0, 0.25) !important;} -.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {background: rgba(0, 0, 0, 0.25) !important;} -.ant-menu-light .ant-menu-item:hover, .ant-menu-light .ant-menu-item-active, .ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open, .ant-menu-light .ant-menu-submenu-active, .ant-menu-light .ant-menu-submenu-title:hover {color: @primary-color;} -.ant-menu.ant-menu-dark, .ant-menu-dark .ant-menu-sub, .ant-menu.ant-menu-dark .ant-menu-sub {color: rgba(255, 255, 255, 0.65);background: #001529;} -.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after, .ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after, .ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before, .ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before {background: #fff;} -.ant-menu-dark.ant-menu-submenu-popup {background: transparent;} -.ant-menu-dark .ant-menu-inline.ant-menu-sub {background: #000c17;} -.ant-menu-dark.ant-menu-horizontal {border-bottom: 0;} -.ant-menu-dark.ant-menu-horizontal > .ant-menu-item, .ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu {border-color: #001529;border-bottom: 0;} -.ant-menu-dark.ant-menu-horizontal > .ant-menu-item:hover {background-color: @primary-color;} -.ant-menu-dark .ant-menu-item, .ant-menu-dark .ant-menu-item-group-title, .ant-menu-dark .ant-menu-item > a, .ant-menu-dark .ant-menu-item > span > a {color: rgba(255, 255, 255, 0.65);} -.ant-menu-dark.ant-menu-inline, .ant-menu-dark.ant-menu-vertical, .ant-menu-dark.ant-menu-vertical-left, .ant-menu-dark.ant-menu-vertical-right {border-right: 0;} -.ant-menu-dark.ant-menu-inline .ant-menu-item, .ant-menu-dark.ant-menu-vertical .ant-menu-item, .ant-menu-dark.ant-menu-vertical-left .ant-menu-item, .ant-menu-dark.ant-menu-vertical-right .ant-menu-item {border-right: 0;} -.ant-menu-dark.ant-menu-inline .ant-menu-item::after, .ant-menu-dark.ant-menu-vertical .ant-menu-item::after, .ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after, .ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after {border-right: 0;} -.ant-menu-dark .ant-menu-item:hover, .ant-menu-dark .ant-menu-item-active, .ant-menu-dark .ant-menu-submenu-active, .ant-menu-dark .ant-menu-submenu-open, .ant-menu-dark .ant-menu-submenu-selected, .ant-menu-dark .ant-menu-submenu-title:hover {color: #fff;background-color: transparent;} -.ant-menu-dark .ant-menu-item:hover > a, .ant-menu-dark .ant-menu-item-active > a, .ant-menu-dark .ant-menu-submenu-active > a, .ant-menu-dark .ant-menu-submenu-open > a, .ant-menu-dark .ant-menu-submenu-selected > a, .ant-menu-dark .ant-menu-submenu-title:hover > a, .ant-menu-dark .ant-menu-item:hover > span > a, .ant-menu-dark .ant-menu-item-active > span > a, .ant-menu-dark .ant-menu-submenu-active > span > a, .ant-menu-dark .ant-menu-submenu-open > span > a, .ant-menu-dark .ant-menu-submenu-selected > span > a, .ant-menu-dark .ant-menu-submenu-title:hover > span > a {color: #fff;} -.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before {background: #fff;} -.ant-menu-dark .ant-menu-item:hover {background-color: transparent;} -.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {background-color: @primary-color;} -.ant-menu-dark .ant-menu-item-selected {color: #fff;border-right: 0;} -.ant-menu-dark .ant-menu-item-selected::after {border-right: 0;} -.ant-menu-dark .ant-menu-item-selected > a, .ant-menu-dark .ant-menu-item-selected > span > a, .ant-menu-dark .ant-menu-item-selected > a:hover, .ant-menu-dark .ant-menu-item-selected > span > a:hover {color: #fff;} -.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon, .ant-menu-dark .ant-menu-item-selected .anticon {color: #fff;} -.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon + span, .ant-menu-dark .ant-menu-item-selected .anticon + span {color: #fff;} -.ant-menu.ant-menu-dark .ant-menu-item-selected, .ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {background-color: @primary-color;} -.ant-menu-dark .ant-menu-item-disabled, .ant-menu-dark .ant-menu-submenu-disabled, .ant-menu-dark .ant-menu-item-disabled > a, .ant-menu-dark .ant-menu-submenu-disabled > a, .ant-menu-dark .ant-menu-item-disabled > span > a, .ant-menu-dark .ant-menu-submenu-disabled > span > a {color: rgba(255, 255, 255, 0.35) !important;} -.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title, .ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title {color: rgba(255, 255, 255, 0.35) !important;} -.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before, .ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after, .ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {background: rgba(255, 255, 255, 0.35) !important;} -.ant-menu-rtl.ant-menu-inline, .ant-menu-rtl.ant-menu-vertical {border-right: none;border-left: 1px solid #f0f0f0;} -.ant-menu-rtl.ant-menu-dark.ant-menu-inline, .ant-menu-rtl.ant-menu-dark.ant-menu-vertical {border-left: none;} -.ant-menu-sub.ant-menu-inline {border: 0;} -.ant-message {color: rgba(0, 0, 0, 0.85);} -.ant-message-notice-content {background: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-message-success .anticon {color: #52c41a;} -.ant-message-error .anticon {color: #ff4d4f;} -.ant-message-warning .anticon {color: #faad14;} -.ant-message-info .anticon, .ant-message-loading .anticon {color: @primary-color;} -.ant-modal {color: rgba(0, 0, 0, 0.85);} -.ant-modal-mask {background-color: rgba(0, 0, 0, 0.45);} -.ant-modal-title {color: rgba(0, 0, 0, 0.85);} -.ant-modal-content {background-color: #fff;background-clip: padding-box;border: 0;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-modal-close {color: rgba(0, 0, 0, 0.45);background: transparent;border: 0;} -.ant-modal-close:focus, .ant-modal-close:hover {color: rgba(0, 0, 0, 0.75);} -.ant-modal-header {color: rgba(0, 0, 0, 0.85);background: #fff;border-bottom: 1px solid #f0f0f0;border-radius: 2px 2px 0 0;} -.ant-modal-footer {background: transparent;border-top: 1px solid #f0f0f0;border-radius: 0 0 2px 2px;} -.ant-modal-confirm-body .ant-modal-confirm-title {color: rgba(0, 0, 0, 0.85);} -.ant-modal-confirm-body .ant-modal-confirm-content {color: rgba(0, 0, 0, 0.85);} -.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {color: #ff4d4f;} -.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon, .ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {color: #faad14;} -.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {color: @primary-color;} -.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {color: #52c41a;} -.ant-notification {color: rgba(0, 0, 0, 0.85);} -.ant-notification-notice {background: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-notification-notice-message {color: rgba(0, 0, 0, 0.85);} -.ant-notification-notice-message-single-line-auto-margin {background-color: transparent;} -.anticon.ant-notification-notice-icon-success {color: #52c41a;} -.anticon.ant-notification-notice-icon-info {color: @primary-color;} -.anticon.ant-notification-notice-icon-warning {color: #faad14;} -.anticon.ant-notification-notice-icon-error {color: #ff4d4f;} -.ant-notification-notice-close {color: rgba(0, 0, 0, 0.45);} -.ant-notification-notice-close:hover {color: shade(@text-color-secondary, 40%);} -.ant-page-header {color: rgba(0, 0, 0, 0.85);background-color: #fff;} -.ant-page-header-ghost {background-color: inherit;} -.ant-page-header-back-button {color: @primary-color;color: #000;} -.ant-page-header-back-button:focus, .ant-page-header-back-button:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-page-header-back-button:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-page-header-heading-title {color: rgba(0, 0, 0, 0.85);} -.ant-page-header-heading-sub-title {color: rgba(0, 0, 0, 0.45);} -.ant-page-header-footer .ant-tabs > .ant-tabs-nav::before {border: none;} -.ant-pagination {color: rgba(0, 0, 0, 0.85);} -.ant-pagination-item {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-pagination-item a {color: rgba(0, 0, 0, 0.85);} -.ant-pagination-item:focus-visible, .ant-pagination-item:hover {border-color: @primary-color;} -.ant-pagination-item:focus-visible a, .ant-pagination-item:hover a {color: @primary-color;} -.ant-pagination-item-active {background: #fff;border-color: @primary-color;} -.ant-pagination-item-active a {color: @primary-color;} -.ant-pagination-item-active:focus-visible, .ant-pagination-item-active:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-pagination-item-active:focus-visible a, .ant-pagination-item-active:hover a {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon, .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {color: @primary-color;} -.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis, .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {color: rgba(0, 0, 0, 0.25);} -.ant-pagination-prev, .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next {color: rgba(0, 0, 0, 0.85);border-radius: 2px;} -.ant-pagination-prev button, .ant-pagination-next button {color: rgba(0, 0, 0, 0.85);} -.ant-pagination-prev:hover button, .ant-pagination-next:hover button {border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-pagination-prev:focus-visible .ant-pagination-item-link, .ant-pagination-next:focus-visible .ant-pagination-item-link, .ant-pagination-prev:hover .ant-pagination-item-link, .ant-pagination-next:hover .ant-pagination-item-link {color: @primary-color;border-color: @primary-color;} -.ant-pagination-disabled .ant-pagination-item-link, .ant-pagination-disabled:hover .ant-pagination-item-link, .ant-pagination-disabled:focus-visible .ant-pagination-item-link {color: rgba(0, 0, 0, 0.25);border-color: #d9d9d9;} -.ant-pagination-options-quick-jumper input {color: rgba(0, 0, 0, 0.85);background-color: #fff;background-image: none;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-pagination-options-quick-jumper input::placeholder {color: #bfbfbf;} -.ant-pagination-options-quick-jumper input:hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-pagination-options-quick-jumper input:hover {border-right-width: 0;border-left-width: 1px !important;} -.ant-pagination-options-quick-jumper input:focus, .ant-pagination-options-quick-jumper input-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-pagination-options-quick-jumper input:focus, .ant-input-rtl .ant-pagination-options-quick-jumper input-focused {border-right-width: 0;border-left-width: 1px !important;} -.ant-pagination-options-quick-jumper input-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-pagination-options-quick-jumper input-disabled:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-pagination-options-quick-jumper input[disabled] {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;box-shadow: none;} -.ant-pagination-options-quick-jumper input[disabled]:hover {border-color: #d9d9d9;border-right-width: 1px !important;} -.ant-pagination-options-quick-jumper input-borderless, .ant-pagination-options-quick-jumper input-borderless:hover, .ant-pagination-options-quick-jumper input-borderless:focus, .ant-pagination-options-quick-jumper input-borderless-focused, .ant-pagination-options-quick-jumper input-borderless-disabled, .ant-pagination-options-quick-jumper input-borderless[disabled] {background-color: transparent;border: none;box-shadow: none;} -.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-simple .ant-pagination-next .ant-pagination-item-link {background-color: transparent;border: 0;} -.ant-pagination-simple .ant-pagination-simple-pager input {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-pagination-simple .ant-pagination-simple-pager input:hover {border-color: @primary-color;} -.ant-pagination-simple .ant-pagination-simple-pager input[disabled] {color: rgba(0, 0, 0, 0.25);background: #f5f5f5;border-color: #d9d9d9;} -.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {background: transparent;border-color: transparent;} -.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link, .ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {background: transparent;border-color: transparent;} -.ant-pagination.ant-pagination-disabled .ant-pagination-item {background: #f5f5f5;border-color: #d9d9d9;} -.ant-pagination.ant-pagination-disabled .ant-pagination-item a {color: rgba(0, 0, 0, 0.25);background: transparent;border: none;} -.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {background: #e6e6e6;} -.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {color: rgba(0, 0, 0, 0.25);} -.ant-pagination.ant-pagination-disabled .ant-pagination-item-link {color: rgba(0, 0, 0, 0.25);background: #f5f5f5;border-color: #d9d9d9;} -.ant-pagination-simple.ant-pagination.ant-pagination-disabled .ant-pagination-item-link {background: transparent;} -.ant-pagination.ant-pagination-disabled .ant-pagination-simple-pager {color: rgba(0, 0, 0, 0.25);} -.ant-popover {color: rgba(0, 0, 0, 0.85);} -.ant-popover::after {background: rgba(255, 255, 255, 0.01);} -.ant-popover-inner {background-color: #fff;background-clip: padding-box;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) ;} -.ant-popover-title {color: rgba(0, 0, 0, 0.85);border-bottom: 1px solid #f0f0f0;} -.ant-popover-inner-content {color: rgba(0, 0, 0, 0.85);} -.ant-popover-message {color: rgba(0, 0, 0, 0.85);} -.ant-popover-message > .anticon {color: #faad14;} -.ant-popover-arrow {background: transparent;} -.ant-popover-arrow-content {background-color: #fff;} -.ant-popover-placement-top .ant-popover-arrow-content, .ant-popover-placement-topLeft .ant-popover-arrow-content, .ant-popover-placement-topRight .ant-popover-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);} -.ant-popover-placement-right .ant-popover-arrow-content, .ant-popover-placement-rightTop .ant-popover-arrow-content, .ant-popover-placement-rightBottom .ant-popover-arrow-content {box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);} -.ant-popover-placement-bottom .ant-popover-arrow-content, .ant-popover-placement-bottomLeft .ant-popover-arrow-content, .ant-popover-placement-bottomRight .ant-popover-arrow-content {box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);} -.ant-popover-placement-left .ant-popover-arrow-content, .ant-popover-placement-leftTop .ant-popover-arrow-content, .ant-popover-placement-leftBottom .ant-popover-arrow-content {box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);} -.ant-popover-pink .ant-popover-inner {background-color: #eb2f96;} -.ant-popover-pink .ant-popover-arrow-content {background-color: #eb2f96;} -.ant-popover-magenta .ant-popover-inner {background-color: #eb2f96;} -.ant-popover-magenta .ant-popover-arrow-content {background-color: #eb2f96;} -.ant-popover-red .ant-popover-inner {background-color: #f5222d;} -.ant-popover-red .ant-popover-arrow-content {background-color: #f5222d;} -.ant-popover-volcano .ant-popover-inner {background-color: #fa541c;} -.ant-popover-volcano .ant-popover-arrow-content {background-color: #fa541c;} -.ant-popover-orange .ant-popover-inner {background-color: #fa8c16;} -.ant-popover-orange .ant-popover-arrow-content {background-color: #fa8c16;} -.ant-popover-yellow .ant-popover-inner {background-color: #fadb14;} -.ant-popover-yellow .ant-popover-arrow-content {background-color: #fadb14;} -.ant-popover-gold .ant-popover-inner {background-color: #faad14;} -.ant-popover-gold .ant-popover-arrow-content {background-color: #faad14;} -.ant-popover-cyan .ant-popover-inner {background-color: #13c2c2;} -.ant-popover-cyan .ant-popover-arrow-content {background-color: #13c2c2;} -.ant-popover-lime .ant-popover-inner {background-color: #a0d911;} -.ant-popover-lime .ant-popover-arrow-content {background-color: #a0d911;} -.ant-popover-green .ant-popover-inner {background-color: #52c41a;} -.ant-popover-green .ant-popover-arrow-content {background-color: #52c41a;} -.ant-popover-blue .ant-popover-inner {background-color: #1890ff;} -.ant-popover-blue .ant-popover-arrow-content {background-color: #1890ff;} -.ant-popover-geekblue .ant-popover-inner {background-color: #2f54eb;} -.ant-popover-geekblue .ant-popover-arrow-content {background-color: #2f54eb;} -.ant-popover-purple .ant-popover-inner {background-color: #722ed1;} -.ant-popover-purple .ant-popover-arrow-content {background-color: #722ed1;} -.ant-progress {color: rgba(0, 0, 0, 0.85);} -.ant-progress-steps-item {background: #f3f3f3;} -.ant-progress-steps-item-active {background: #1890ff;} -.ant-progress-inner {background-color: #f5f5f5;border-radius: 100px;} -.ant-progress-success-bg, .ant-progress-bg {background-color: #1890ff;border-radius: 100px;} -.ant-progress-success-bg {background-color: #52c41a;} -.ant-progress-text {color: rgba(0, 0, 0, 0.85);} -.ant-progress-status-active .ant-progress-bg::before {background: #fff;border-radius: 10px;} -.ant-progress-status-exception .ant-progress-bg {background-color: #ff4d4f;} -.ant-progress-status-exception .ant-progress-text {color: #ff4d4f;} -.ant-progress-status-success .ant-progress-bg {background-color: #52c41a;} -.ant-progress-status-success .ant-progress-text {color: #52c41a;} -.ant-progress-circle .ant-progress-inner {background-color: transparent;} -.ant-progress-circle .ant-progress-text {color: rgba(0, 0, 0, 0.85);} -.ant-progress-circle.ant-progress-status-exception .ant-progress-text {color: #ff4d4f;} -.ant-progress-circle.ant-progress-status-success .ant-progress-text {color: #52c41a;} -.ant-radio-group {color: rgba(0, 0, 0, 0.85);} -.ant-radio-group > .ant-badge:not(:first-child) > .ant-radio-button-wrapper {border-left: none;} -.ant-radio-wrapper {color: rgba(0, 0, 0, 0.85);} -.ant-radio {color: rgba(0, 0, 0, 0.85);} -.ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, .ant-radio-input:focus + .ant-radio-inner {border-color: @primary-color;} -.ant-radio-input:focus + .ant-radio-inner {box-shadow: 0 0 0 3px fade(@radio-dot-color, 8%);} -.ant-radio-checked::after {border: 1px solid @primary-color;border-radius: 50%;} -.ant-radio-inner {background-color: #fff;border-color: #d9d9d9;border-style: solid;border-width: 1px;border-radius: 50%;} -.ant-radio-inner::after {background-color: @primary-color;border-top: 0;border-left: 0;border-radius: 8px;} -.ant-radio-checked .ant-radio-inner {border-color: @primary-color;} -.ant-radio-disabled .ant-radio-inner {background-color: #f5f5f5;border-color: #d9d9d9 !important;} -.ant-radio-disabled .ant-radio-inner::after {background-color: rgba(0, 0, 0, 0.2);} -.ant-radio-disabled + span {color: rgba(0, 0, 0, 0.25);} -.ant-radio-button-wrapper {color: rgba(0, 0, 0, 0.85);background: #fff;border: 1px solid #d9d9d9;border-top-width: 1.02px;border-left-width: 0;} -.ant-radio-button-wrapper a {color: rgba(0, 0, 0, 0.85);} -.ant-radio-button-wrapper:not(:first-child)::before {background-color: #d9d9d9;} -.ant-radio-button-wrapper:first-child {border-left: 1px solid #d9d9d9;border-radius: 2px 0 0 2px;} -.ant-radio-button-wrapper:last-child {border-radius: 0 2px 2px 0;} -.ant-radio-button-wrapper:first-child:last-child {border-radius: 2px;} -.ant-radio-button-wrapper:hover {color: @primary-color;} -.ant-radio-button-wrapper:focus-within {box-shadow: 0 0 0 3px fade(@radio-dot-color, 8%);} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {color: @primary-color;background: #fff;border-color: @primary-color;} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {background-color: @primary-color;} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {border-color: @primary-color;} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {color: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {background-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {background-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {box-shadow: 0 0 0 3px fade(@radio-dot-color, 8%);} -.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {color: #fff;background: @primary-color;border-color: @primary-color;} -.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {color: #fff;background: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {color: #fff;background: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {box-shadow: 0 0 0 3px fade(@radio-dot-color, 8%);} -.ant-radio-button-wrapper-disabled {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;} -.ant-radio-button-wrapper-disabled:first-child, .ant-radio-button-wrapper-disabled:hover {color: rgba(0, 0, 0, 0.25);background-color: #f5f5f5;border-color: #d9d9d9;} -.ant-radio-button-wrapper-disabled:first-child {border-left-color: #d9d9d9;} -.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {color: rgba(0, 0, 0, 0.25);background-color: #e6e6e6;border-color: #d9d9d9;box-shadow: none;} -.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl {border-right-width: 0;border-left-width: 1px;} -.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child {border-right: 1px solid #d9d9d9;border-radius: 0 2px 2px 0;} -.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child {border-radius: 2px 0 0 2px;} -.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child {border-right-color: #d9d9d9;} -.ant-rate {color: rgba(0, 0, 0, 0.85);color: #fadb14;} -.ant-rate-star {color: inherit;} -.ant-rate-star-first, .ant-rate-star-second {color: #f0f0f0;} -.ant-rate-star-half .ant-rate-star-first, .ant-rate-star-full .ant-rate-star-second {color: inherit;} -.ant-result-success .ant-result-icon > .anticon {color: #52c41a;} -.ant-result-error .ant-result-icon > .anticon {color: #ff4d4f;} -.ant-result-info .ant-result-icon > .anticon {color: @primary-color;} -.ant-result-warning .ant-result-icon > .anticon {color: #faad14;} -.ant-result-title {color: rgba(0, 0, 0, 0.85);} -.ant-result-subtitle {color: rgba(0, 0, 0, 0.45);} -.ant-result-content {background-color: #fafafa;} -.ant-select-single.ant-select-open .ant-select-selection-item {color: #bfbfbf;} -.ant-select-disabled.ant-select-multiple .ant-select-selector {background: #f5f5f5;} -.ant-select-multiple .ant-select-selection-item {background: #f5f5f5;border: 1px solid #f0f0f0;border-radius: 2px;} -.ant-select-disabled.ant-select-multiple .ant-select-selection-item {color: #bfbfbf;border-color: #d9d9d9;} -.ant-select-multiple .ant-select-selection-item-remove {color: inherit;color: rgba(0, 0, 0, 0.45);} -.ant-select-multiple .ant-select-selection-item-remove:hover {color: rgba(0, 0, 0, 0.75);} -.ant-select {color: rgba(0, 0, 0, 0.85);} -.ant-select:not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px fade(@primary-color, 20%);} -.ant-input-rtl .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {border-right-width: 0;border-left-width: 1px !important;} -.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {color: rgba(0, 0, 0, 0.25);background: #f5f5f5;} -.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {background: #f5f5f5;} -.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {background: transparent;border: none;} -.ant-select:not(.ant-select-disabled):hover .ant-select-selector {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} -.ant-input-rtl .ant-select:not(.ant-select-disabled):hover .ant-select-selector {border-right-width: 0;border-left-width: 1px !important;} -.ant-select-selection-placeholder {color: #bfbfbf;} -.ant-select-arrow {color: inherit;color: rgba(0, 0, 0, 0.25);} -.ant-select-clear {color: rgba(0, 0, 0, 0.25);background: #fff;} -.ant-select-clear:hover {color: rgba(0, 0, 0, 0.45);} -.ant-select-dropdown {color: rgba(0, 0, 0, 0.85);background-color: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-select-dropdown-empty {color: rgba(0, 0, 0, 0.25);} -.ant-select-item-empty {color: rgba(0, 0, 0, 0.85);color: rgba(0, 0, 0, 0.25);} -.ant-select-item {color: rgba(0, 0, 0, 0.85);} -.ant-select-item-group {color: rgba(0, 0, 0, 0.45);} -.ant-select-item-option-active:not(.ant-select-item-option-disabled) {background-color: #f5f5f5;} -.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {color: rgba(0, 0, 0, 0.85);background-color: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state {color: @primary-color;} -.ant-select-item-option-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-select-item-option-disabled.ant-select-item-option-selected {background-color: #f5f5f5;} -.ant-select-borderless .ant-select-selector {background-color: transparent !important;border-color: transparent !important;box-shadow: none !important;} -.ant-skeleton-header .ant-skeleton-avatar {background: rgba(190, 190, 190, 0.2);} -.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {border-radius: 50%;} -.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {border-radius: 50%;} -.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {border-radius: 50%;} -.ant-skeleton-content .ant-skeleton-title {background: rgba(190, 190, 190, 0.2);border-radius: 4px;} -.ant-skeleton-content .ant-skeleton-paragraph > li {background: rgba(190, 190, 190, 0.2);border-radius: 4px;} -.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title, .ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {border-radius: 100px;} -.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title, .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, shade(@skeleton-color, 5%) 37%, rgba(190, 190, 190, 0.2) 63%);background-size: 400% 100%;} -.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, shade(@skeleton-color, 5%) 37%, rgba(190, 190, 190, 0.2) 63%);background-size: 400% 100%;} -.ant-skeleton.ant-skeleton-active .ant-skeleton-button {background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, shade(@skeleton-color, 5%) 37%, rgba(190, 190, 190, 0.2) 63%);background-size: 400% 100%;} -.ant-skeleton.ant-skeleton-active .ant-skeleton-input {background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, shade(@skeleton-color, 5%) 37%, rgba(190, 190, 190, 0.2) 63%);background-size: 400% 100%;} -.ant-skeleton.ant-skeleton-active .ant-skeleton-image {background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, shade(@skeleton-color, 5%) 37%, rgba(190, 190, 190, 0.2) 63%);background-size: 400% 100%;} -.ant-skeleton-element .ant-skeleton-button {background: rgba(190, 190, 190, 0.2);border-radius: 2px;} -.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {border-radius: 32px;} -.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {border-radius: 40px;} -.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {border-radius: 24px;} -.ant-skeleton-element .ant-skeleton-avatar {background: rgba(190, 190, 190, 0.2);} -.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-input {background: rgba(190, 190, 190, 0.2);} -.ant-skeleton-element .ant-skeleton-image {background: rgba(190, 190, 190, 0.2);} -.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {border-radius: 50%;} -.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {border-radius: 50%;} -.ant-slider {color: rgba(0, 0, 0, 0.85);} -.ant-slider-rail {background-color: #f5f5f5;border-radius: 2px;} -.ant-slider-track {background-color: color(~`colorPalette("@{primary-color}", 3)`);border-radius: 2px;} -.ant-slider-handle {background-color: #fff;border: solid 2px color(~`colorPalette("@{primary-color}", 3)`);border-radius: 50%;box-shadow: 0;} -.ant-slider-handle-dragging.ant-slider-handle-dragging.ant-slider-handle-dragging {border-color: tint(@primary-color, 20%);box-shadow: 0 0 0 5px fade(@primary-color, 12%);} -.ant-slider-handle:focus {border-color: tint(@primary-color, 20%);box-shadow: 0 0 0 5px fade(@primary-color, 12%);} -.ant-slider-handle.ant-tooltip-open {border-color: @primary-color;} -.ant-slider:hover .ant-slider-rail {background-color: #e1e1e1;} -.ant-slider:hover .ant-slider-track {background-color: color(~`colorPalette("@{primary-color}", 4)`);} -.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {border-color: color(~`colorPalette("@{primary-color}", 4)`);} -.ant-slider-mark-text {color: rgba(0, 0, 0, 0.45);} -.ant-slider-mark-text-active {color: rgba(0, 0, 0, 0.85);} -.ant-slider-step {background: transparent;} -.ant-slider-dot {background-color: #fff;border: 2px solid #f0f0f0;border-radius: 50%;} -.ant-slider-dot-active {border-color: tint(@primary-color, 50%);} -.ant-slider-disabled .ant-slider-track {background-color: rgba(0, 0, 0, 0.25) !important;} -.ant-slider-disabled .ant-slider-handle, .ant-slider-disabled .ant-slider-dot {background-color: #fff;border-color: rgba(0, 0, 0, 0.25) !important;box-shadow: none;} -.ant-spin {color: rgba(0, 0, 0, 0.85);color: @primary-color;} -.ant-spin-container::after {background: #fff;} -.ant-spin-tip {color: rgba(0, 0, 0, 0.45);} -.ant-spin-dot-item {background-color: @primary-color;border-radius: 100%;} -.ant-statistic {color: rgba(0, 0, 0, 0.85);} -.ant-statistic-title {color: rgba(0, 0, 0, 0.45);} -.ant-statistic-content {color: rgba(0, 0, 0, 0.85);} -.ant-steps {color: rgba(0, 0, 0, 0.85);} -.ant-steps-item-icon {border: 1px solid rgba(0, 0, 0, 0.25);border-radius: 32px;} -.ant-steps-item-icon .ant-steps-icon {color: @primary-color;} -.ant-steps-item-tail::after {background: #f0f0f0;border-radius: 1px;} -.ant-steps-item-title {color: rgba(0, 0, 0, 0.85);} -.ant-steps-item-title::after {background: #f0f0f0;} -.ant-steps-item-subtitle {color: rgba(0, 0, 0, 0.45);} -.ant-steps-item-description {color: rgba(0, 0, 0, 0.45);} -.ant-steps-item-wait .ant-steps-item-icon {background-color: #fff;border-color: rgba(0, 0, 0, 0.25);} -.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon {color: rgba(0, 0, 0, 0.25);} -.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {background: rgba(0, 0, 0, 0.25);} -.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {color: rgba(0, 0, 0, 0.45);} -.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {background-color: #f0f0f0;} -.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {color: rgba(0, 0, 0, 0.45);} -.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail::after {background-color: #f0f0f0;} -.ant-steps-item-process .ant-steps-item-icon {background-color: #fff;border-color: @primary-color;} -.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {color: @primary-color;} -.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {background: @primary-color;} -.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {color: rgba(0, 0, 0, 0.85);} -.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {background-color: #f0f0f0;} -.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {color: rgba(0, 0, 0, 0.85);} -.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {background-color: #f0f0f0;} -.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {background: @primary-color;} -.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon .ant-steps-icon {color: #fff;} -.ant-steps-item-finish .ant-steps-item-icon {background-color: #fff;border-color: @primary-color;} -.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon {color: @primary-color;} -.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {background: @primary-color;} -.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {color: rgba(0, 0, 0, 0.85);} -.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {background-color: @primary-color;} -.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {color: rgba(0, 0, 0, 0.45);} -.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {background-color: @primary-color;} -.ant-steps-item-error .ant-steps-item-icon {background-color: #fff;border-color: #ff4d4f;} -.ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon {color: #ff4d4f;} -.ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {background: #ff4d4f;} -.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {color: #ff4d4f;} -.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {background-color: #f0f0f0;} -.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {color: #ff4d4f;} -.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-tail::after {background-color: #f0f0f0;} -.ant-steps-item.ant-steps-next-error .ant-steps-item-title::after {background: #ff4d4f;} -.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-title, .ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-subtitle, .ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-description {color: @primary-color;} -.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon {border-color: @primary-color;} -.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon .ant-steps-icon {color: @primary-color;} -.ant-steps-item-custom > .ant-steps-item-container > .ant-steps-item-icon {background: none;border: 0;} -.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {color: @primary-color;} -.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon {background: none;} -.ant-steps-small .ant-steps-item-icon {border-radius: 24px;} -.ant-steps-small .ant-steps-item-description {color: rgba(0, 0, 0, 0.45);} -.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon {background: none;border: 0;border-radius: 0;} -.ant-steps-dot .ant-steps-item-icon, .ant-steps-dot.ant-steps-small .ant-steps-item-icon {background: transparent;border: 0;} -.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot, .ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {border-radius: 100px;} -.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after, .ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot::after {background: rgba(0, 0, 0, 0.001);} -.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon, .ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon {background: none;} -.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {background: none;} -.ant-steps-navigation .ant-steps-item::after {border: 1px solid rgba(0, 0, 0, 0.25);border-bottom: none;border-left: none;} -.ant-steps-navigation .ant-steps-item::before {background-color: @primary-color;} -.ant-switch {color: rgba(0, 0, 0, 0.85);background-color: rgba(0, 0, 0, 0.25);border: 0;border-radius: 100px;} -.ant-switch:focus {box-shadow: 0 0 0 2px fade(@disabled-color, 10%);} -.ant-switch-checked:focus {box-shadow: 0 0 0 2px fade(@switch-color, 20%);} -.ant-switch:focus:hover {box-shadow: none;} -.ant-switch-checked {background-color: @primary-color;} -.ant-switch-loading *, .ant-switch-disabled * {box-shadow: none;} -.ant-switch-inner {color: #fff;} -.ant-switch-handle::before {background-color: #fff;border-radius: 9px;box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);} -.ant-switch-loading-icon {color: rgba(0, 0, 0, 0.65);} -.ant-switch-checked .ant-switch-loading-icon {color: @primary-color;} -.ant-table-small .ant-table-thead > tr > th {background-color: #fafafa;} -.ant-table.ant-table-bordered > .ant-table-title {border: 1px solid #f0f0f0;border-bottom: 0;} -.ant-table.ant-table-bordered > .ant-table-container {border-left: 1px solid #f0f0f0;} -.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > thead > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > tbody > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > tfoot > tr > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > td, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > tfoot > tr > td {border-right: 1px solid #f0f0f0;} -.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr:not(:last-child) > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr:not(:last-child) > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr:not(:last-child) > th, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > thead > tr:not(:last-child) > th {border-bottom: 1px solid #f0f0f0;} -.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th::before, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > th::before, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > th::before, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > thead > tr > th::before {background-color: transparent !important;} -.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > thead > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > tbody > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > .ant-table-cell-fix-right-first::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > tfoot > tr > .ant-table-cell-fix-right-first::after {border-right: 1px solid #f0f0f0;} -.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td > .ant-table-expanded-row-fixed::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed::after, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-summary > table > tbody > tr > td > .ant-table-expanded-row-fixed::after {border-right: 1px solid #f0f0f0;} -.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {border-top: 1px solid #f0f0f0;} -.ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-expanded-row > td, .ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-placeholder > td {border-right: 0;} -.ant-table.ant-table-bordered > .ant-table-footer {border: 1px solid #f0f0f0;border-top: 0;} -.ant-table-cell .ant-table-container:first-child {border-top: 0;} -.ant-table-cell-scrollbar {box-shadow: 0 1px 0 1px #fafafa;} -.ant-table {color: rgba(0, 0, 0, 0.85);background: #fff;border-radius: 2px;} -.ant-table table {border-radius: 2px 2px 0 0;border-collapse: separate;border-spacing: 0;} -.ant-table-footer {color: rgba(0, 0, 0, 0.85);background: #fafafa;} -.ant-table-thead > tr > th {color: rgba(0, 0, 0, 0.85);background: #fafafa;border-bottom: 1px solid #f0f0f0;} -.ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {background-color: rgba(0, 0, 0, 0.06);} -.ant-table-thead > tr:not(:last-child) > th[colspan] {border-bottom: 0;} -.ant-table-tbody > tr > td {border-bottom: 1px solid #f0f0f0;} -.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td, .ant-table-tbody > tr > td > .ant-table-expanded-row-fixed > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td {border-bottom: 0;} -.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:first-child, .ant-table-tbody > tr > td > .ant-table-expanded-row-fixed > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:first-child, .ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:last-child, .ant-table-tbody > tr > td > .ant-table-expanded-row-fixed > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:last-child {border-radius: 0;} -.ant-table-tbody > tr.ant-table-row:hover > td {background: #fafafa;} -.ant-table-tbody > tr.ant-table-row-selected > td {background: color(~`colorPalette("@{primary-color}", 1)`);border-color: rgba(0, 0, 0, 0.03);} -.ant-table-tbody > tr.ant-table-row-selected:hover > td {background: darken(@table-selected-row-bg, 2%);} -.ant-table-summary {background: #fff;} -div.ant-table-summary {box-shadow: 0 -1px 0 #f0f0f0;} -.ant-table-summary > tr > th, .ant-table-summary > tr > td {border-bottom: 1px solid #f0f0f0;} -.ant-table-thead th.ant-table-column-has-sorters:hover {background: rgba(0, 0, 0, 0.04);} -.ant-table-thead th.ant-table-column-has-sorters:hover::before {background-color: transparent !important;} -.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-left:hover, .ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-right:hover {background: #f5f5f5;} -.ant-table-thead th.ant-table-column-sort {background: #f5f5f5;} -.ant-table-thead th.ant-table-column-sort::before {background-color: transparent !important;} -td.ant-table-column-sort {background: #fafafa;} -.ant-table-column-sorter {color: #bfbfbf;} -.ant-table-column-sorter-up.active, .ant-table-column-sorter-down.active {color: @primary-color;} -.ant-table-column-sorters:hover .ant-table-column-sorter {color: #a6a6a6;} -.ant-table-filter-trigger {color: #bfbfbf;border-radius: 2px;} -.ant-table-filter-trigger:hover {color: rgba(0, 0, 0, 0.45);background: rgba(0, 0, 0, 0.04);} -.ant-table-filter-trigger.active {color: @primary-color;} -.ant-table-filter-dropdown {color: rgba(0, 0, 0, 0.85);background-color: #fff;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-table-filter-dropdown .ant-dropdown-menu {border: 0;box-shadow: none;} -.ant-table-filter-dropdown-btns {background-color: inherit;border-top: 1px solid #f0f0f0;} -table tr th.ant-table-selection-column::after {background-color: transparent !important;} -.ant-table-selection-extra .anticon {color: #bfbfbf;} -.ant-table-selection-extra .anticon:hover {color: #a6a6a6;} -.ant-table-row-expand-icon {color: @primary-color;color: inherit;background: #fff;border: 1px solid #f0f0f0;border-radius: 2px;} -.ant-table-row-expand-icon:focus, .ant-table-row-expand-icon:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-table-row-expand-icon:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-table-row-expand-icon:focus, .ant-table-row-expand-icon:hover, .ant-table-row-expand-icon:active {border-color: currentColor;} -.ant-table-row-expand-icon::before, .ant-table-row-expand-icon::after {background: currentColor;} -.ant-table-row-expand-icon-spaced {background: transparent;border: 0;} -tr.ant-table-expanded-row > td, -tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} -.ant-table-empty .ant-table-tbody > tr.ant-table-placeholder {color: rgba(0, 0, 0, 0.25);} -.ant-table-tbody > tr.ant-table-placeholder:hover > td {background: #fff;} -.ant-table-cell-fix-left, .ant-table-cell-fix-right {background: #fff;} -.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container::before {box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);} -.ant-table-ping-left .ant-table-cell-fix-left-first::after, .ant-table-ping-left .ant-table-cell-fix-left-last::after {box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);} -.ant-table-ping-left .ant-table-cell-fix-left-last::before {background-color: transparent !important;} -.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container::after {box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);} -.ant-table-ping-right .ant-table-cell-fix-right-first::after, .ant-table-ping-right .ant-table-cell-fix-right-last::after {box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);} -.ant-table-sticky-holder {background: #fff;} -.ant-table-sticky-scroll {background: lighten(@table-border-color, 80%);border-top: 1px solid #f0f0f0;} -.ant-table-sticky-scroll-bar {background-color: rgba(0, 0, 0, 0.35);border-radius: 4px;} -.ant-table-sticky-scroll-bar:hover {background-color: fade(@table-sticky-scroll-bar-bg, 80%);} -.ant-table-sticky-scroll-bar-active {background-color: fade(@table-sticky-scroll-bar-bg, 80%);} -.ant-table-title {border-radius: 2px 2px 0 0;} -.ant-table-title + .ant-table-container {border-top-left-radius: 0;border-top-right-radius: 0;} -.ant-table-title + .ant-table-container table > thead > tr:first-child th:first-child {border-radius: 0;} -.ant-table-title + .ant-table-container table > thead > tr:first-child th:last-child {border-radius: 0;} -.ant-table-container {border-top-left-radius: 2px;border-top-right-radius: 2px;} -.ant-table-container table > thead > tr:first-child th:first-child {border-top-left-radius: 2px;} -.ant-table-container table > thead > tr:first-child th:last-child {border-top-right-radius: 2px;} -.ant-table-footer {border-radius: 0 0 2px 2px;} -.ant-tabs-top > .ant-tabs-nav::before, .ant-tabs-bottom > .ant-tabs-nav::before, .ant-tabs-top > div > .ant-tabs-nav::before, .ant-tabs-bottom > div > .ant-tabs-nav::before {border-bottom: 1px solid #f0f0f0;} -.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::before, .ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::before, .ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::before, .ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::before {box-shadow: inset 10px 0 8px -8px fade(@shadow-color, 8%);} -.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::after, .ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::after, .ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::after, .ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {box-shadow: inset -10px 0 8px -8px fade(@shadow-color, 8%);} -.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::before, .ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::before, .ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::before, .ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::before {box-shadow: inset 0 10px 8px -8px fade(@shadow-color, 8%);} -.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::after, .ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::after, .ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::after, .ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {box-shadow: inset 0 -10px 8px -8px fade(@shadow-color, 8%);} -.ant-tabs-left > .ant-tabs-content-holder, .ant-tabs-left > div > .ant-tabs-content-holder {border-left: 1px solid #f0f0f0;} -.ant-tabs-right > .ant-tabs-content-holder, .ant-tabs-right > div > .ant-tabs-content-holder {border-right: 1px solid #f0f0f0;} -.ant-tabs-dropdown {color: rgba(0, 0, 0, 0.85);} -.ant-tabs-dropdown-menu {background-color: #fff;background-clip: padding-box;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-tabs-dropdown-menu-item {color: rgba(0, 0, 0, 0.85);} -.ant-tabs-dropdown-menu-item:hover {background: #f5f5f5;} -.ant-tabs-dropdown-menu-item-disabled, .ant-tabs-dropdown-menu-item-disabled:hover {color: rgba(0, 0, 0, 0.25);background: transparent;} -.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab, .ant-tabs-card > div > .ant-tabs-nav .ant-tabs-tab {background: #fafafa;border: 1px solid #f0f0f0;} -.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active, .ant-tabs-card > div > .ant-tabs-nav .ant-tabs-tab-active {color: @primary-color;background: #fff;} -.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab, .ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab {border-radius: 2px 2px 0 0;} -.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab-active, .ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab-active {border-bottom-color: #fff;} -.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab, .ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab {border-radius: 0 0 2px 2px;} -.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab-active, .ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab-active {border-top-color: #fff;} -.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab, .ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab {border-radius: 2px 0 0 2px;} -.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab-active, .ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab-active {border-right-color: #fff;} -.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab, .ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab {border-radius: 0 2px 2px 0;} -.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab-active, .ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab-active {border-left-color: #fff;} -.ant-tabs {color: rgba(0, 0, 0, 0.85);} -.ant-tabs > .ant-tabs-nav .ant-tabs-nav-more, .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-more {background: transparent;border: 0;} -.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add, .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add {background: #fafafa;border: 1px solid #f0f0f0;border-radius: 2px 2px 0 0;} -.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:hover, .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:active, .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:active, .ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:focus, .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:focus {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-tabs-ink-bar {background: @primary-color;} -.ant-tabs-tab {background: transparent;border: 0;} -.ant-tabs-tab-btn:focus, .ant-tabs-tab-remove:focus, .ant-tabs-tab-btn:active, .ant-tabs-tab-remove:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-tabs-tab-remove {color: rgba(0, 0, 0, 0.45);background: transparent;border: none;} -.ant-tabs-tab-remove:hover {color: rgba(0, 0, 0, 0.85);} -.ant-tabs-tab:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {color: @primary-color;} -.ant-tabs-tab.ant-tabs-tab-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:focus, .ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:focus, .ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:active, .ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:active {color: rgba(0, 0, 0, 0.25);} -.ant-tag {color: rgba(0, 0, 0, 0.85);background: #fafafa;border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-tag, .ant-tag a, .ant-tag a:hover {color: rgba(0, 0, 0, 0.85);} -.ant-tag-close-icon {color: rgba(0, 0, 0, 0.45);} -.ant-tag-close-icon:hover {color: rgba(0, 0, 0, 0.85);} -.ant-tag-has-color {border-color: transparent;} -.ant-tag-has-color, .ant-tag-has-color a, .ant-tag-has-color a:hover, .ant-tag-has-color .anticon-close, .ant-tag-has-color .anticon-close:hover {color: #fff;} -.ant-tag-checkable {background-color: transparent;border-color: transparent;} -.ant-tag-checkable:not(.ant-tag-checkable-checked):hover {color: @primary-color;} -.ant-tag-checkable:active, .ant-tag-checkable-checked {color: #fff;} -.ant-tag-checkable-checked {background-color: @primary-color;} -.ant-tag-checkable:active {background-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-tag-pink {color: #c41d7f;background: #fff0f6;border-color: #ffadd2;} -.ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-magenta {color: #c41d7f;background: #fff0f6;border-color: #ffadd2;} -.ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-red {color: #cf1322;background: #fff1f0;border-color: #ffa39e;} -.ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} -.ant-tag-volcano {color: #d4380d;background: #fff2e8;border-color: #ffbb96;} -.ant-tag-volcano-inverse {color: #fff;background: #fa541c;border-color: #fa541c;} -.ant-tag-orange {color: #d46b08;background: #fff7e6;border-color: #ffd591;} -.ant-tag-orange-inverse {color: #fff;background: #fa8c16;border-color: #fa8c16;} -.ant-tag-yellow {color: #d4b106;background: #feffe6;border-color: #fffb8f;} -.ant-tag-yellow-inverse {color: #fff;background: #fadb14;border-color: #fadb14;} -.ant-tag-gold {color: #d48806;background: #fffbe6;border-color: #ffe58f;} -.ant-tag-gold-inverse {color: #fff;background: #faad14;border-color: #faad14;} -.ant-tag-cyan {color: #08979c;background: #e6fffb;border-color: #87e8de;} -.ant-tag-cyan-inverse {color: #fff;background: #13c2c2;border-color: #13c2c2;} -.ant-tag-lime {color: #7cb305;background: #fcffe6;border-color: #eaff8f;} -.ant-tag-lime-inverse {color: #fff;background: #a0d911;border-color: #a0d911;} -.ant-tag-green {color: #389e0d;background: #f6ffed;border-color: #b7eb8f;} -.ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} -.ant-tag-blue {color: #096dd9;background: #e6f7ff;border-color: #91d5ff;} -.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} -.ant-tag-geekblue {color: #1d39c4;background: #f0f5ff;border-color: #adc6ff;} -.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;} -.ant-tag-purple {color: #531dab;background: #f9f0ff;border-color: #d3adf7;} -.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} -.ant-tag-success {color: #52c41a;background: #f6ffed;border-color: #b7eb8f;} -.ant-tag-processing {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} -.ant-tag-error {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} -.ant-tag-warning {color: #fa8c16;background: #fff7e6;border-color: #ffd591;} -.ant-timeline {color: rgba(0, 0, 0, 0.85);} -.ant-timeline-item-tail {border-left: 2px solid #f0f0f0;} -.ant-timeline-item-pending .ant-timeline-item-head {background-color: transparent;} -.ant-timeline-item-head {background-color: #fff;border: 2px solid transparent;border-radius: 100px;} -.ant-timeline-item-head-blue {color: @primary-color;border-color: @primary-color;} -.ant-timeline-item-head-red {color: #ff4d4f;border-color: #ff4d4f;} -.ant-timeline-item-head-green {color: #52c41a;border-color: #52c41a;} -.ant-timeline-item-head-gray {color: rgba(0, 0, 0, 0.25);border-color: rgba(0, 0, 0, 0.25);} -.ant-timeline-item-head-custom {border: 0;border-radius: 0;} -.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {border-left: 2px dotted #f0f0f0;} -.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail {border-left: 2px dotted #f0f0f0;} -.ant-timeline-rtl .ant-timeline-item-tail {border-right: 2px solid #f0f0f0;border-left: none;} -.ant-timeline-rtl.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {border-right: 2px dotted #f0f0f0;border-left: none;} -.ant-timeline-rtl.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail {border-right: 2px dotted #f0f0f0;border-left: none;} -.ant-tooltip {color: rgba(0, 0, 0, 0.85);} -.ant-tooltip-inner {color: #fff;background-color: rgba(0, 0, 0, 0.75);border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.ant-tooltip-arrow {background: transparent;} -.ant-tooltip-arrow-content {background-color: rgba(0, 0, 0, 0.75);} -.ant-tooltip-placement-top .ant-tooltip-arrow-content, .ant-tooltip-placement-topLeft .ant-tooltip-arrow-content, .ant-tooltip-placement-topRight .ant-tooltip-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);} -.ant-tooltip-placement-right .ant-tooltip-arrow-content, .ant-tooltip-placement-rightTop .ant-tooltip-arrow-content, .ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);} -.ant-tooltip-placement-left .ant-tooltip-arrow-content, .ant-tooltip-placement-leftTop .ant-tooltip-arrow-content, .ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content {box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);} -.ant-tooltip-placement-bottom .ant-tooltip-arrow-content, .ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content, .ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content {box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);} -.ant-tooltip-pink .ant-tooltip-inner {background-color: #eb2f96;} -.ant-tooltip-pink .ant-tooltip-arrow-content {background-color: #eb2f96;} -.ant-tooltip-magenta .ant-tooltip-inner {background-color: #eb2f96;} -.ant-tooltip-magenta .ant-tooltip-arrow-content {background-color: #eb2f96;} -.ant-tooltip-red .ant-tooltip-inner {background-color: #f5222d;} -.ant-tooltip-red .ant-tooltip-arrow-content {background-color: #f5222d;} -.ant-tooltip-volcano .ant-tooltip-inner {background-color: #fa541c;} -.ant-tooltip-volcano .ant-tooltip-arrow-content {background-color: #fa541c;} -.ant-tooltip-orange .ant-tooltip-inner {background-color: #fa8c16;} -.ant-tooltip-orange .ant-tooltip-arrow-content {background-color: #fa8c16;} -.ant-tooltip-yellow .ant-tooltip-inner {background-color: #fadb14;} -.ant-tooltip-yellow .ant-tooltip-arrow-content {background-color: #fadb14;} -.ant-tooltip-gold .ant-tooltip-inner {background-color: #faad14;} -.ant-tooltip-gold .ant-tooltip-arrow-content {background-color: #faad14;} -.ant-tooltip-cyan .ant-tooltip-inner {background-color: #13c2c2;} -.ant-tooltip-cyan .ant-tooltip-arrow-content {background-color: #13c2c2;} -.ant-tooltip-lime .ant-tooltip-inner {background-color: #a0d911;} -.ant-tooltip-lime .ant-tooltip-arrow-content {background-color: #a0d911;} -.ant-tooltip-green .ant-tooltip-inner {background-color: #52c41a;} -.ant-tooltip-green .ant-tooltip-arrow-content {background-color: #52c41a;} -.ant-tooltip-blue .ant-tooltip-inner {background-color: #1890ff;} -.ant-tooltip-blue .ant-tooltip-arrow-content {background-color: #1890ff;} -.ant-tooltip-geekblue .ant-tooltip-inner {background-color: #2f54eb;} -.ant-tooltip-geekblue .ant-tooltip-arrow-content {background-color: #2f54eb;} -.ant-tooltip-purple .ant-tooltip-inner {background-color: #722ed1;} -.ant-tooltip-purple .ant-tooltip-arrow-content {background-color: #722ed1;} -.ant-transfer-customize-list .ant-table-wrapper .ant-table-small {border: 0;border-radius: 0;} -.ant-transfer-customize-list .ant-table-wrapper .ant-table-small > .ant-table-content > .ant-table-body > table > .ant-table-thead > tr > th {background: #fafafa;} -.ant-transfer-customize-list .ant-table-wrapper .ant-table-small > .ant-table-content .ant-table-row:last-child td {border-bottom: 1px solid #f0f0f0;} -.ant-transfer-customize-list .ant-input[disabled] {background-color: transparent;} -.ant-transfer {color: rgba(0, 0, 0, 0.85);} -.ant-transfer-disabled .ant-transfer-list {background: #f5f5f5;} -.ant-transfer-list {border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-transfer-list-search-action {color: rgba(0, 0, 0, 0.25);} -.ant-transfer-list-search-action .anticon {color: rgba(0, 0, 0, 0.25);} -.ant-transfer-list-search-action .anticon:hover {color: rgba(0, 0, 0, 0.45);} -.ant-transfer-list-header {color: rgba(0, 0, 0, 0.85);background: #fff;border-bottom: 1px solid #f0f0f0;border-radius: 2px 2px 0 0;} -.ant-transfer-list-content-item-remove {color: @primary-color;color: #d9d9d9;} -.ant-transfer-list-content-item-remove:focus, .ant-transfer-list-content-item-remove:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-transfer-list-content-item-remove:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-transfer-list-content-item-remove:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover {background-color: #f5f5f5;} -.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled).ant-transfer-list-content-item-checked:hover {background-color: darken(@item-active-bg, 2%);} -.ant-transfer-list-content-show-remove .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover {background: transparent;} -.ant-transfer-list-content-item-checked {background-color: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-transfer-list-content-item-disabled {color: rgba(0, 0, 0, 0.25);} -.ant-transfer-list-pagination {border-top: 1px solid #f0f0f0;} -.ant-transfer-list-body-not-found {color: rgba(0, 0, 0, 0.25);} -.ant-transfer-list-footer {border-top: 1px solid #f0f0f0;} -.ant-tree.ant-tree-directory .ant-tree-treenode:hover::before {background: #f5f5f5;} -.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper {border-radius: 0;} -.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover {background: transparent;} -.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected {color: #fff;background: transparent;} -.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover::before, .ant-tree.ant-tree-directory .ant-tree-treenode-selected::before {background: @primary-color;} -.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher {color: #fff;} -.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper {color: #fff;background: transparent;} -.ant-tree-checkbox {color: rgba(0, 0, 0, 0.85);} -.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner, .ant-tree-checkbox:hover .ant-tree-checkbox-inner, .ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner {border-color: @primary-color;} -.ant-tree-checkbox-checked::after {border: 1px solid @primary-color;border-radius: 2px;} -.ant-tree-checkbox-inner {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;border-collapse: separate;} -.ant-tree-checkbox-inner::after {border: 2px solid #fff;border-top: 0;border-left: 0;} -.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {border: 2px solid #fff;border-top: 0;border-left: 0;} -.ant-tree-checkbox-checked .ant-tree-checkbox-inner {background-color: @primary-color;border-color: @primary-color;} -.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {border-color: rgba(0, 0, 0, 0.25);} -.ant-tree-checkbox-disabled .ant-tree-checkbox-inner {background-color: #f5f5f5;border-color: #d9d9d9 !important;} -.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {border-color: #f5f5f5;border-collapse: separate;} -.ant-tree-checkbox-disabled + span {color: rgba(0, 0, 0, 0.25);} -.ant-tree-checkbox-wrapper {color: rgba(0, 0, 0, 0.85);} -.ant-tree-checkbox-group {color: rgba(0, 0, 0, 0.85);} -.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner {background-color: #fff;border-color: #d9d9d9;} -.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner::after {background-color: @primary-color;border: 0;} -.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {background-color: rgba(0, 0, 0, 0.25);border-color: rgba(0, 0, 0, 0.25);} -.ant-tree {color: rgba(0, 0, 0, 0.85);background: #fff;border-radius: 2px;} -.ant-tree-focused:not(:hover):not(.ant-tree-active-focused) {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {color: rgba(0, 0, 0, 0.25);} -.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover {background: transparent;} -.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper {background: #f5f5f5;} -.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title {color: inherit;} -.ant-tree-switcher-loading-icon {color: @primary-color;} -.ant-tree-switcher-leaf-line::before {border-left: 1px solid #d9d9d9;} -.ant-tree-switcher-leaf-line::after {border-bottom: 1px solid #d9d9d9;} -.ant-tree .ant-tree-node-content-wrapper {color: inherit;background: transparent;border-radius: 2px;} -.ant-tree .ant-tree-node-content-wrapper:hover {background-color: #f5f5f5;} -.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {background-color: color(~`colorPalette("@{primary-color}", 2)`);} -.ant-tree-unselectable .ant-tree-node-content-wrapper:hover {background-color: transparent;} -.ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {background-color: @primary-color;border-radius: 1px;} -.ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {background-color: transparent;border: 2px solid @primary-color;border-radius: 50%;} -.ant-tree .ant-tree-treenode.drop-container > [draggable] {box-shadow: 0 0 0 2px @primary-color;} -.ant-tree-show-line .ant-tree-indent-unit::before {border-right: 1px solid #d9d9d9;} -.ant-tree-show-line .ant-tree-switcher {background: #fff;} -.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit::before {border-right: none;border-left: 1px solid #d9d9d9;} -.ant-select-tree-checkbox {color: rgba(0, 0, 0, 0.85);} -.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox-input:focus + .ant-select-tree-checkbox-inner {border-color: @primary-color;} -.ant-select-tree-checkbox-checked::after {border: 1px solid @primary-color;border-radius: 2px;} -.ant-select-tree-checkbox-inner {background-color: #fff;border: 1px solid #d9d9d9;border-radius: 2px;border-collapse: separate;} -.ant-select-tree-checkbox-inner::after {border: 2px solid #fff;border-top: 0;border-left: 0;} -.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after {border: 2px solid #fff;border-top: 0;border-left: 0;} -.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner {background-color: @primary-color;border-color: @primary-color;} -.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after {border-color: rgba(0, 0, 0, 0.25);} -.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner {background-color: #f5f5f5;border-color: #d9d9d9 !important;} -.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after {border-color: #f5f5f5;border-collapse: separate;} -.ant-select-tree-checkbox-disabled + span {color: rgba(0, 0, 0, 0.25);} -.ant-select-tree-checkbox-wrapper {color: rgba(0, 0, 0, 0.85);} -.ant-select-tree-checkbox-group {color: rgba(0, 0, 0, 0.85);} -.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner {background-color: #fff;border-color: #d9d9d9;} -.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after {background-color: @primary-color;border: 0;} -.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after {background-color: rgba(0, 0, 0, 0.25);border-color: rgba(0, 0, 0, 0.25);} -.ant-tree-select-dropdown .ant-select-tree {border-radius: 0;} -.ant-select-tree {color: rgba(0, 0, 0, 0.85);background: #fff;border-radius: 2px;} -.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused) {background: color(~`colorPalette("@{primary-color}", 1)`);} -.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper {color: rgba(0, 0, 0, 0.25);} -.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover {background: transparent;} -.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper {background: #f5f5f5;} -.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title {color: inherit;} -.ant-select-tree-switcher-loading-icon {color: @primary-color;} -.ant-select-tree-switcher-leaf-line::before {border-left: 1px solid #d9d9d9;} -.ant-select-tree-switcher-leaf-line::after {border-bottom: 1px solid #d9d9d9;} -.ant-select-tree .ant-select-tree-node-content-wrapper {color: inherit;background: transparent;border-radius: 2px;} -.ant-select-tree .ant-select-tree-node-content-wrapper:hover {background-color: #f5f5f5;} -.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {background-color: color(~`colorPalette("@{primary-color}", 2)`);} -.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover {background-color: transparent;} -.ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {background-color: @primary-color;border-radius: 1px;} -.ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {background-color: transparent;border: 2px solid @primary-color;border-radius: 50%;} -.ant-select-tree .ant-select-tree-treenode.drop-container > [draggable] {box-shadow: 0 0 0 2px @primary-color;} -.ant-select-tree-show-line .ant-select-tree-indent-unit::before {border-right: 1px solid #d9d9d9;} -.ant-select-tree-show-line .ant-select-tree-switcher {background: #fff;} -.ant-typography {color: rgba(0, 0, 0, 0.85);} -.ant-typography.ant-typography-secondary {color: rgba(0, 0, 0, 0.45);} -.ant-typography.ant-typography-success {color: #52c41a;} -.ant-typography.ant-typography-warning {color: #faad14;} -.ant-typography.ant-typography-danger {color: #ff4d4f;} -a.ant-typography.ant-typography-danger:active, -a.ant-typography.ant-typography-danger:focus, -a.ant-typography.ant-typography-danger:hover {color: #ff7875;} -.ant-typography.ant-typography-disabled {color: rgba(0, 0, 0, 0.25);} -h1.ant-typography, .ant-typography h1 {color: rgba(0, 0, 0, 0.85);} -h2.ant-typography, .ant-typography h2 {color: rgba(0, 0, 0, 0.85);} -h3.ant-typography, .ant-typography h3 {color: rgba(0, 0, 0, 0.85);} -h4.ant-typography, .ant-typography h4 {color: rgba(0, 0, 0, 0.85);} -h5.ant-typography, .ant-typography h5 {color: rgba(0, 0, 0, 0.85);} -a.ant-typography, .ant-typography a {color: @primary-color;} -a.ant-typography:focus, .ant-typography a:focus, -a.ant-typography:hover, .ant-typography a:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -a.ant-typography:active, .ant-typography a:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -a.ant-typography[disabled], .ant-typography a[disabled], -a.ant-typography.ant-typography-disabled, .ant-typography a.ant-typography-disabled {color: rgba(0, 0, 0, 0.25);} -a.ant-typography[disabled]:active, .ant-typography a[disabled]:active, -a.ant-typography.ant-typography-disabled:active, .ant-typography a.ant-typography-disabled:active, -a.ant-typography[disabled]:hover, .ant-typography a[disabled]:hover, -a.ant-typography.ant-typography-disabled:hover, .ant-typography a.ant-typography-disabled:hover {color: rgba(0, 0, 0, 0.25);} -.ant-typography code {background: rgba(150, 150, 150, 0.1);border: 1px solid rgba(100, 100, 100, 0.2);border-radius: 3px;} -.ant-typography kbd {background: rgba(150, 150, 150, 0.06);border: 1px solid rgba(100, 100, 100, 0.2);border-bottom-width: 2px;border-radius: 3px;} -.ant-typography mark {background-color: #ffe58f;} -.ant-typography-expand, .ant-typography-edit, .ant-typography-copy {color: @primary-color;} -.ant-typography-expand:focus, .ant-typography-edit:focus, .ant-typography-copy:focus, .ant-typography-expand:hover, .ant-typography-edit:hover, .ant-typography-copy:hover {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-typography-expand:active, .ant-typography-edit:active, .ant-typography-copy:active {color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-typography-copy-success, .ant-typography-copy-success:hover, .ant-typography-copy-success:focus {color: #52c41a;} -.ant-typography-edit-content-confirm {color: rgba(0, 0, 0, 0.45);} -.ant-typography pre {background: rgba(150, 150, 150, 0.1);border: 1px solid rgba(100, 100, 100, 0.2);border-radius: 3px;} -.ant-typography pre code {background: transparent;border: 0;} -.ant-typography blockquote {border-left: 4px solid rgba(100, 100, 100, 0.2);} -.ant-upload {color: rgba(0, 0, 0, 0.85);} -.ant-upload.ant-upload-select-picture-card {background-color: #fafafa;border: 1px dashed #d9d9d9;border-radius: 2px;} -.ant-upload.ant-upload-select-picture-card:hover {border-color: @primary-color;} -.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover {border-color: #d9d9d9;} -.ant-upload.ant-upload-drag {background: #fafafa;border: 1px dashed #d9d9d9;border-radius: 2px;} -.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled) {border-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon {color: color(~`colorPalette("@{primary-color}", 5)`);} -.ant-upload.ant-upload-drag p.ant-upload-text {color: rgba(0, 0, 0, 0.85);} -.ant-upload.ant-upload-drag p.ant-upload-hint {color: rgba(0, 0, 0, 0.45);} -.ant-upload.ant-upload-drag .anticon-plus {color: rgba(0, 0, 0, 0.25);} -.ant-upload.ant-upload-drag .anticon-plus:hover {color: rgba(0, 0, 0, 0.45);} -.ant-upload.ant-upload-drag:hover .anticon-plus {color: rgba(0, 0, 0, 0.45);} -.ant-upload-list {color: rgba(0, 0, 0, 0.85);} -.ant-upload-list-item-card-actions .anticon {color: rgba(0, 0, 0, 0.45);} -.ant-upload-list-item-info .anticon-loading .anticon, .ant-upload-list-item-info .ant-upload-text-icon .anticon {color: rgba(0, 0, 0, 0.45);} -.ant-upload-list-item .anticon-close {color: rgba(0, 0, 0, 0.45);} -.ant-upload-list-item .anticon-close:hover {color: rgba(0, 0, 0, 0.85);} -.ant-upload-list-item:hover .ant-upload-list-item-info {background-color: #f5f5f5;} -.ant-upload-list-item-error, .ant-upload-list-item-error .ant-upload-text-icon > .anticon, .ant-upload-list-item-error .ant-upload-list-item-name {color: #ff4d4f;} -.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {color: #ff4d4f;} -.ant-upload-list-picture .ant-upload-list-item, .ant-upload-list-picture-card .ant-upload-list-item {border: 1px solid #d9d9d9;border-radius: 2px;} -.ant-upload-list-picture .ant-upload-list-item:hover, .ant-upload-list-picture-card .ant-upload-list-item:hover {background: transparent;} -.ant-upload-list-picture .ant-upload-list-item-error, .ant-upload-list-picture-card .ant-upload-list-item-error {border-color: #ff4d4f;} -.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info, .ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {background: transparent;} -.ant-upload-list-picture .ant-upload-list-item-uploading, .ant-upload-list-picture-card .ant-upload-list-item-uploading {border-style: dashed;} -.ant-upload-list-picture-card .ant-upload-list-item-info::before {background-color: rgba(0, 0, 0, 0.5);} -.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {color: rgba(255, 255, 255, 0.85);} -.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover {color: #fff;} -.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item {background-color: #fafafa;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -body {color: rgba(0, 0, 0, 0.85);background: #fff;} -.main-wrapper {background: #fff;} -.main-container {background: #fff;} -.aside-container.ant-menu-inline > .ant-menu-item-group > .ant-menu-item-group-title::after {background: #f0f0f0;} -.aside-container a[disabled] {color: #ccc;} -.aside-container .menu-item-link-outside .anticon {color: @primary-color;} -.outside-link-icon {color: #aaa;} -.menu-site .ant-menu-item > a {color: rgba(0, 0, 0, 0.85);} -.menu-site .ant-menu-item-selected > a, .menu-site .ant-menu-item > a:hover {color: @primary-color;} -.drawer-content-wrapper {background-color: #fff;} -#_hj_feedback_container [class$='icon_emotion_path1']::before {color: @primary-color !important;} -.fixed-widgets-active {color: @primary-color;} -.fixed-widgets .fixed-widgets-avatar {color: #000;background-color: #fff;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.fixed-widgets .fixed-widgets-avatar:hover {color: @primary-color;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -[data-theme='dark'] input:-webkit-autofill, -[data-theme='dark'] input:-webkit-autofill:hover, -[data-theme='dark'] input:-webkit-autofill:focus, -[data-theme='dark'] textarea:-webkit-autofill, -[data-theme='dark'] textarea:-webkit-autofill:hover, -[data-theme='dark'] textarea:-webkit-autofill:focus, -[data-theme='dark'] select:-webkit-autofill, -[data-theme='dark'] select:-webkit-autofill:hover, -[data-theme='dark'] select:-webkit-autofill:focus {border: 1px solid #d9d9d9;box-shadow: none;-webkit-text-fill-color: rgba(0, 0, 0, 0.85);} -[data-theme='dark'] #header {box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.65);} -[data-theme='dark'] #search-box input::placeholder {color: rgba(255, 255, 255, 0.3);} -[data-theme='dark'] .toc-affix .ant-affix {background: #fff;} -[data-theme='dark'] :not(pre) > code[class*='language-'], -[data-theme='dark'] pre[class*='language-'] {color: rgba(255, 255, 255, 0.65);background: #262626;} -[data-theme='dark'] .code-box {border: 1px solid #f0f0f0;} -[data-theme='dark'] .code-box .markdown pre code {background: #262626;} -[data-theme='dark'] .code-box-debug {border-color: #d3adf7;} -[data-theme='dark'] .code-box-expand-trigger {color: #fff;} -[data-theme='dark'] .code-box-demo {border-bottom: 1px solid #f0f0f0;} -[data-theme='dark'] .code-box-actions > [data-theme='dark'] .code-box-code-action {color: rgba(0, 0, 0, 0.45);} -[data-theme='dark'] .code-box-actions > [data-theme='dark'] .code-box-code-action:hover {color: rgba(0, 0, 0, 0.85);} -[data-theme='dark'] ul.anticons-list li {color: #acacac;} -[data-theme='dark'] ul.anticons-list li.TwoTone:hover {background-color: #15395b;} -[data-theme='dark'] ul.anticons-list li:hover .anticon {color: #fff;} -[data-theme='dark'] a[disabled] {color: rgba(255, 255, 255, 0.25);} -[data-theme='dark'] h1, -[data-theme='dark'] h2, -[data-theme='dark'] h3, -[data-theme='dark'] h4, -[data-theme='dark'] h5, -[data-theme='dark'] h6 {color: rgba(0, 0, 0, 0.85);} -[data-theme='dark'] .markdown code, -[data-theme='dark'] .markdown pre, -[data-theme='dark'] .markdown pre code {background: #262626;} -[data-theme='dark'] .markdown.api-container table tbody tr:hover {background: #262626;} -[data-theme='dark'] .markdown code {background: rgba(255, 255, 255, 0.08);} -[data-theme='dark'] .prev-next-nav > a.prev-page .footer-nav-icon-before {color: rgba(255, 255, 255, 0.45);} -[data-theme='dark'] .prev-next-nav > a.prev-page:hover .footer-nav-icon-before {color: @primary-color;} -[data-theme='dark'] .prev-next-nav > .next-page .footer-nav-icon-after {color: rgba(255, 255, 255, 0.45);} -[data-theme='dark'] .prev-next-nav > .next-page:hover .footer-nav-icon-after {color: @primary-color;} -[data-theme='dark'] .grid-demo .demo-row, -[data-theme='dark'] [id^='components-grid-demo-'] .demo-row, -[data-theme='dark'] .grid-demo .code-box-demo .demo-row, -[data-theme='dark'] [id^='components-grid-demo-'] .code-box-demo .demo-row {background-image: linear-gradient(90deg, #1d1d1d 4.16666667%, transparent 4.16666667%, transparent 8.33333333%, #1d1d1d 8.33333333%, #1d1d1d 12.5%, transparent 12.5%, transparent 16.66666667%, #1d1d1d 16.66666667%, #1d1d1d 20.83333333%, transparent 20.83333333%, transparent 25%, #1d1d1d 25%, #1d1d1d 29.16666667%, transparent 29.16666667%, transparent 33.33333333%, #1d1d1d 33.33333333%, #1d1d1d 37.5%, transparent 37.5%, transparent 41.66666667%, #1d1d1d 41.66666667%, #1d1d1d 45.83333333%, transparent 45.83333333%, transparent 50%, #1d1d1d 50%, #1d1d1d 54.16666667%, transparent 54.16666667%, transparent 58.33333333%, #1d1d1d 58.33333333%, #1d1d1d 62.5%, transparent 62.5%, transparent 66.66666667%, #1d1d1d 66.66666667%, #1d1d1d 70.83333333%, transparent 70.83333333%, transparent 75%, #1d1d1d 75%, #1d1d1d 79.16666667%, transparent 79.16666667%, transparent 83.33333333%, #1d1d1d 83.33333333%, #1d1d1d 87.5%, transparent 87.5%, transparent 91.66666667%, #1d1d1d 91.66666667%, #1d1d1d 95.83333333%, transparent 95.83333333%);} -[data-theme='dark'] .grid-demo .code-box-demo .ant-row > div:not(.gutter-row), -[data-theme='dark'] [id^='components-grid-demo-'] .code-box-demo .ant-row > div:not(.gutter-row) {background: #028ac8;} -[data-theme='dark'] .grid-demo .code-box-demo .ant-row > div:not(.gutter-row):nth-child(2n + 1), -[data-theme='dark'] [id^='components-grid-demo-'] .code-box-demo .ant-row > div:not(.gutter-row):nth-child(2n + 1) {background: rgba(0, 136, 198, 0.7);} -[data-theme='dark'] .grid-demo .ant-row .demo-col, -[data-theme='dark'] [id^='components-grid-demo-'] .ant-row .demo-col, -[data-theme='dark'] .grid-demo .code-box-demo .ant-row .demo-col, -[data-theme='dark'] [id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col {color: #000;border: none;} -[data-theme='dark'] .grid-demo .ant-row .demo-col-1, -[data-theme='dark'] [id^='components-grid-demo-'] .ant-row .demo-col-1 {background: rgba(0, 136, 198, 0.7);} -[data-theme='dark'] .grid-demo .ant-row .demo-col-3, -[data-theme='dark'] [id^='components-grid-demo-'] .ant-row .demo-col-3, -[data-theme='dark'] .grid-demo .code-box-demo .ant-row .demo-col-3, -[data-theme='dark'] [id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col-3 {color: rgba(0, 0, 0, 0.45);background: unset;} -[data-theme='dark'] .grid-demo .ant-row .demo-col-5, -[data-theme='dark'] [id^='components-grid-demo-'] .ant-row .demo-col-5, -[data-theme='dark'] .grid-demo .code-box-demo .ant-row .demo-col-5, -[data-theme='dark'] [id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col-5 {color: rgba(0, 0, 0, 0.45);background: unset;} -[data-theme='dark'] .markdown > table th {color: rgba(255, 255, 255, 0.65);background: #1d1d1d;} -[data-theme='dark'] .copied-code {background: rgba(255, 255, 255, 0.08);} -[data-theme='dark'] .browser-mockup.with-url::after {background-color: #fff;} -[data-theme='dark'] .browser-mockup {border-top: 2em solid #262626;} -[data-theme='dark'] .browser-mockup::before {background-color: #fb4742;box-shadow: 0 0 0 2px #fb4742, 1.5em 0 0 2px #99bc2e, 3em 0 0 2px #ffba5a;} -[data-theme='dark'] .browser-mockup.with-tab::after {border-bottom: 2em solid #fff;} -[data-theme='dark'] .algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] {background: #fff;} -[data-theme='dark'] .algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] .algolia-docsearch-suggestion {background: #fff;} -[data-theme='dark'] .algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content {background-color: rgba(255, 255, 255, 0.08);} -[data-theme='dark'] .algolia-autocomplete .algolia-docsearch-suggestion--category-header {color: rgba(255, 255, 255, 0.65);border-bottom: 1px solid #f0f0f0;} -[data-theme='dark'] .algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column::before {background: #f0f0f0;} -[data-theme='dark'] .algolia-autocomplete .algolia-docsearch-suggestion--content::before {background: #f0f0f0;} -[data-theme='dark'] .token.comment, -[data-theme='dark'] .token.quote {color: #b6b18b;} -[data-theme='dark'] .token.property, -[data-theme='dark'] .token.variable, -[data-theme='dark'] .token.template-variable, -[data-theme='dark'] .token.tag, -[data-theme='dark'] .token.number, -[data-theme='dark'] .token.name, -[data-theme='dark'] .token.selector-id, -[data-theme='dark'] .token.selector-class, -[data-theme='dark'] .token.regexp, -[data-theme='dark'] .token.deletion {color: #eb3c54;} -[data-theme='dark'] .token.built_in, -[data-theme='dark'] .token.builtin-name, -[data-theme='dark'] .token.literal, -[data-theme='dark'] .token.type, -[data-theme='dark'] .token.params, -[data-theme='dark'] .token.meta, -[data-theme='dark'] .token.link {color: #e7ce56;} -[data-theme='dark'] .token.attribute {color: #ee7c2b;} -[data-theme='dark'] .token.string, -[data-theme='dark'] .token.symbol, -[data-theme='dark'] .token.bullet, -[data-theme='dark'] .token.addition {color: @primary-color;} -[data-theme='dark'] .token.title, -[data-theme='dark'] .token.section {color: #78bb65;} -[data-theme='dark'] .token.function, -[data-theme='dark'] .token.keyword, -[data-theme='dark'] .token.selector-tag {color: #b45ea4;} -[data-theme='dark'] .hljs {color: #c0c5ce;background: #1c1d21;} -[data-theme='dark'] .components-overview-img {background-color: rgba(255, 255, 255, 0.1);} -[data-theme='dark'] .components-overview-search input {color: rgba(255, 255, 255, 0.65);} -[data-theme='dark'] #antd_algolia_search_modal {--docsearch-logo-color: #fff;} -[data-theme='dark'] #antd_algolia_search_modal .DocSearch {--docsearch-primary-color: #1890ff;--docsearch-text-color: rgba(0, 0, 0, 0.85);--docsearch-muted-color: rgba(0, 0, 0, 0.45);--docsearch-container-background: rgba(0, 0, 0, 0.45);--docsearch-searchbox-shadow: inset 0 0 0 2px #1890ff;--docsearch-modal-background: #fff;--docsearch-searchbox-background: #fff;--docsearch-searchbox-focus-background: #fff;--docsearch-footer-background: #fff;--docsearch-hit-background: #fff;--docsearch-hit-color: #1890ff;--docsearch-hit-active-color: #fff;--docsearch-highlight-color: #1890ff;} -[data-theme='dark'] #antd_algolia_search_modal .DocSearch .DocSearch-Footer {border-top: 1px solid #f0f0f0;} -[data-theme='dark'] #antd_algolia_search_modal .DocSearch-Modal, -[data-theme='dark'] #antd_algolia_search_modal .DocSearch-Commands-Key {box-shadow: none;} -[data-theme='dark'] #antd_algolia_search_modal .DocSearch-Hit a {box-shadow: none;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.code-box {border: 1px solid #f0f0f0;border-radius: 2px;} -.code-box .code-box-title, .code-box .code-box-title a {color: rgba(0, 0, 0, 0.85);background: #fff;} -.code-box, .code-box .code-box-demo {background-color: #fff;} -.code-box .markdown pre code {background: #f5f5f5;} -.code-box:target {border: 1px solid @primary-color;} -.code-box-expand-trigger {color: #3b4357;} -.code-box-title {color: #777;background: #fff;border-radius: 2px 2px 0 0;} -.ant-row-rtl .code-box-title {border-radius: 2px 0 0 2px;} -.code-box-title a, .code-box-title a:hover {color: rgba(0, 0, 0, 0.85);} -.code-box a.edit-button {background: inherit;} -.code-box a.edit-button .anticon {color: rgba(0, 0, 0, 0.45);} -.code-box a.edit-button .anticon:hover {color: rgba(0, 0, 0, 0.85);} -.code-box-demo {color: rgba(0, 0, 0, 0.85);border-bottom: 1px solid #f0f0f0;} -.code-box iframe {border: 0;} -.code-box-meta.markdown {border-radius: 0 0 2px 2px;} -.code-box.expand .code-box-meta {border-bottom: 1px dashed #f0f0f0;border-radius: 0;} -.code-box .code-expand-icon-show, .code-box .code-expand-icon-hide {box-shadow: none;} -.code-box .highlight-wrapper {border-radius: 0 0 2px 2px;} -.code-box .highlight pre {background: #fff;} -.code-box .highlight:not(:first-child) {border-top: 1px dashed #f0f0f0;} -.code-box-actions {border-top: 1px dashed #f0f0f0;} -.code-box-actions > .code-box-code-action {color: rgba(0, 0, 0, 0.45);} -.code-box-actions > .code-box-code-action:hover {color: rgba(0, 0, 0, 0.85);} -.code-box-code-copy {background: #fff;} -.code-box-code-copy.anticon-check {color: #52c41a !important;} -.code-box-codepen {border: 0;} -.code-box-riddle {border: 0;} -.code-box-codesandbox {border: 0;} -.code-box pre code {background: #fff;border: none;} -.code-box-debug {border-color: #d3adf7;} -.code-box-debug .code-box-title a {color: #722ed1;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.algolia-autocomplete .ds-dropdown-menu {border: none;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} -.algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] {background: #fff;border: none;} -.algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] .algolia-docsearch-suggestion {background: #fff;} -.algolia-autocomplete .algolia-docsearch-suggestion--title {color: rgba(0, 0, 0, 0.85);} -.algolia-autocomplete .algolia-docsearch-suggestion--highlight {color: @primary-color;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -#header.home-header {background: transparent;box-shadow: none;} -#header.home-header .ant-menu {background: transparent;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -pre code {color: rgba(0, 0, 0, 0.85);background: white;border: 1px solid #e9e9e9;border-radius: 2px;} -code[class*='language-'], -pre[class*='language-'] {color: black;background: none;} -pre[class*='language-']::-moz-selection, -pre[class*='language-'] ::-moz-selection, -code[class*='language-']::-moz-selection, -code[class*='language-'] ::-moz-selection {background: #b3d4fc;} -pre[class*='language-']::selection, -pre[class*='language-'] ::selection, -code[class*='language-']::selection, -code[class*='language-'] ::selection {background: #b3d4fc;} -:not(pre) > code[class*='language-'], -pre[class*='language-'] {background: #f5f5f5;} -:not(pre) > code[class*='language-'] {border-radius: 0.3em;} -.token.comment, .token.prolog, .token.doctype, .token.cdata {color: slategray;} -.token.punctuation {color: #999;} -.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted {color: #f81d22;} -.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted {color: #0b8235;} -.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {color: #0b8235;} -.token.atrule, .token.attr-value, .token.keyword {color: #008dff;} -.token.function {color: #f81d22;} -.token.regex, .token.important, .token.variable {color: #e90;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.icon-pic-searcher .icon-pic-btn {color: rgba(0, 0, 0, 0.45);} -.icon-pic-searcher .icon-pic-btn:hover {color: rgba(0, 0, 0, 0.85);} -.icon-pic-preview {border: 1px solid #d9d9d9;border-radius: 4px;} -.icon-pic-search-result > .result-tip {color: rgba(0, 0, 0, 0.45);} -.icon-pic-search-result > table .col-icon > .anticon :hover {color: #40a9ff;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -ul.anticons-list li {color: #555;background-color: inherit;border-radius: 4px;} -ul.anticons-list li:hover {color: #fff;background-color: @primary-color;} -ul.anticons-list li:hover .ant-badge {color: #fff;} -ul.anticons-list li.TwoTone:hover {background-color: #8ecafe;} -ul.anticons-list li.copied:hover {color: rgba(255, 255, 255, 0.2);} -ul.anticons-list li::after {color: #fff;} -.copied-code {background: #f5f5f5;border-radius: 2px;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.markdown {color: rgba(0, 0, 0, 0.85);} -.markdown p > img {box-shadow: 0 8px 20px rgba(143, 168, 191, 0.35);} -.markdown p > img.markdown-inline-image {box-shadow: none;} -.markdown h1 {color: rgba(0, 0, 0, 0.85);} -.markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {color: rgba(0, 0, 0, 0.85);} -.markdown hr {background: #f0f0f0;border: 0;} -.markdown code {background: #f2f4f5;border: 1px solid #f0f0f0;border-radius: 3px;} -.markdown pre {background: #f2f4f5;border-radius: 2px;} -.markdown pre code {color: rgba(0, 0, 0, 0.85);background: #f5f5f5;border: none;} -.markdown > table {border: 1px solid #f0f0f0;border-collapse: collapse;border-spacing: 0;} -.markdown > table th {color: #5c6b77;background: rgba(0, 0, 0, 0.02);} -.markdown > table th, .markdown > table td {border: 1px solid #f0f0f0;} -.markdown blockquote {color: rgba(0, 0, 0, 0.45);border-left: 4px solid #f0f0f0;} -.rtl .markdown blockquote {border-right: 4px solid #f0f0f0;border-left: none;} -.markdown .waiting {color: #ccc;} -.markdown a.edit-button .anticon {color: rgba(0, 0, 0, 0.45);} -.markdown a.edit-button .anticon:hover {color: rgba(0, 0, 0, 0.85);} -.markdown.api-container table {border: 0;} -.markdown.api-container table th, .markdown.api-container table td {border-color: #f0f0f0;border-width: 1px 0;} -.markdown.api-container table th:first-child, .markdown.api-container table td:first-child {border-left: 1px solid #f0f0f0;} -.markdown.api-container table th:last-child, .markdown.api-container table td:last-child {border-right: 1px solid #f0f0f0;} -.markdown.api-container table th {border-width: 1px 0 2px 0;} -.markdown.api-container table tbody tr:hover {background: rgba(60, 90, 100, 0.04);} -.markdown.api-container table td:first-child {color: #595959;} -.markdown.api-container table td:nth-child(3) {color: #c41d7f;} -.grid-demo .demo-row, -[id^='components-grid-demo-'] .demo-row, .grid-demo .code-box-demo .demo-row, -[id^='components-grid-demo-'] .code-box-demo .demo-row {background-image: linear-gradient(90deg, #f5f5f5 4.16666667%, transparent 4.16666667%, transparent 8.33333333%, #f5f5f5 8.33333333%, #f5f5f5 12.5%, transparent 12.5%, transparent 16.66666667%, #f5f5f5 16.66666667%, #f5f5f5 20.83333333%, transparent 20.83333333%, transparent 25%, #f5f5f5 25%, #f5f5f5 29.16666667%, transparent 29.16666667%, transparent 33.33333333%, #f5f5f5 33.33333333%, #f5f5f5 37.5%, transparent 37.5%, transparent 41.66666667%, #f5f5f5 41.66666667%, #f5f5f5 45.83333333%, transparent 45.83333333%, transparent 50%, #f5f5f5 50%, #f5f5f5 54.16666667%, transparent 54.16666667%, transparent 58.33333333%, #f5f5f5 58.33333333%, #f5f5f5 62.5%, transparent 62.5%, transparent 66.66666667%, #f5f5f5 66.66666667%, #f5f5f5 70.83333333%, transparent 70.83333333%, transparent 75%, #f5f5f5 75%, #f5f5f5 79.16666667%, transparent 79.16666667%, transparent 83.33333333%, #f5f5f5 83.33333333%, #f5f5f5 87.5%, transparent 87.5%, transparent 91.66666667%, #f5f5f5 91.66666667%, #f5f5f5 95.83333333%, transparent 95.83333333%);} -.grid-demo .ant-row > div, -[id^='components-grid-demo-'] .ant-row > div, .grid-demo .code-box-demo .ant-row > div, -[id^='components-grid-demo-'] .code-box-demo .ant-row > div {color: #fff;border-radius: 0;} -.grid-demo .code-box-demo .ant-row > div:not(.gutter-row), -[id^='components-grid-demo-'] .code-box-demo .ant-row > div:not(.gutter-row) {background: #0092ff;} -.grid-demo .code-box-demo .ant-row > div:not(.gutter-row):nth-child(2n + 1), -[id^='components-grid-demo-'] .code-box-demo .ant-row > div:not(.gutter-row):nth-child(2n + 1) {background: rgba(0, 146, 255, 0.75);} -.grid-demo .ant-row .demo-col, -[id^='components-grid-demo-'] .ant-row .demo-col, .grid-demo .code-box-demo .ant-row .demo-col, -[id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col {color: #fff;border: none;} -.grid-demo .ant-row .demo-col-1, -[id^='components-grid-demo-'] .ant-row .demo-col-1 {background: rgba(0, 146, 255, 0.75);} -.grid-demo .ant-row .demo-col-2, -[id^='components-grid-demo-'] .ant-row .demo-col-2, .grid-demo .code-box-demo .ant-row .demo-col-2, -[id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col-2 {background: rgba(0, 146, 255, 0.5);} -.grid-demo .ant-row .demo-col-3, -[id^='components-grid-demo-'] .ant-row .demo-col-3, .grid-demo .code-box-demo .ant-row .demo-col-3, -[id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col-3 {color: #999;background: rgba(255, 255, 255, 0.2);} -.grid-demo .ant-row .demo-col-4, -[id^='components-grid-demo-'] .ant-row .demo-col-4, .grid-demo .code-box-demo .ant-row .demo-col-4, -[id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col-4 {background: rgba(0, 146, 255, 0.6);} -.grid-demo .ant-row .demo-col-5, -[id^='components-grid-demo-'] .ant-row .demo-col-5, .grid-demo .code-box-demo .ant-row .demo-col-5, -[id^='components-grid-demo-'] .code-box-demo .ant-row .demo-col-5 {color: #999;background: rgba(255, 255, 255, 0.2);} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.browser-mockup {border-top: 2em solid rgba(230, 230, 230, 0.7);border-radius: 3px 3px 0 0;box-shadow: 0 0.1em 0.5em 0 rgba(0, 0, 0, 0.28);} -.browser-mockup::before {background-color: #f44;border-radius: 50%;box-shadow: 0 0 0 2px #f44, 1.5em 0 0 2px #9b3, 3em 0 0 2px #fb5;} -.browser-mockup.with-tab::after {border-right: 0.8em solid transparent;border-bottom: 2em solid white;border-left: 0.8em solid transparent;} -.browser-mockup.with-url::after {background-color: white;border-radius: 2px;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.motion-example {color: #fff;border-radius: 8px;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -#page-404 {background-color: #fff;background-repeat: no-repeat;background-position: center;background-size: 100%;background-attachment: fixed;} -#page-404 h1 {color: @primary-color;} -#page-404 p {color: rgba(0, 0, 0, 0.85);} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -#nprogress .bar {background: @primary-color;} -#nprogress .peg {box-shadow: 0 0 10px @primary-color, 0 0 5px #1890ff;} -#nprogress .spinner-icon {border-top-color: @primary-color;border-left-color: @primary-color;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.prev-next-nav {border-top: 1px solid #f0f0f0;} -.prev-next-nav > a.prev-page .footer-nav-icon-before {color: rgba(0, 0, 0, 0.45);} -.prev-next-nav > a.prev-page:hover .footer-nav-icon-before {color: @primary-color;} -.prev-next-nav > .next-page .footer-nav-icon-after {color: rgba(0, 0, 0, 0.45);} -.prev-next-nav > .next-page:hover .footer-nav-icon-after {color: @primary-color;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.preview-image-wrapper {background: #f2f4f5;} -.preview-image-wrapper.video {background: 0;} -.preview-image-wrapper.good::after {background: @primary-color;} -.preview-image-wrapper.bad::after {background: #ff4d4f;} -.preview-image-title {color: rgba(0, 0, 0, 0.85);} -.preview-image-description {color: rgba(0, 0, 0, 0.45);} -.preview-image-description hr {background: none;border: 0;} -.preview-image-box img {background: #fff;border-radius: 2px;} -.preview-image-box img.no-padding {background: none;} -.preview-image-boxes.preview-image-boxes-with-carousel img {box-shadow: 0 1px 0 0 #ddd, 0 3px 0 0 #fff, 0 4px 0 0 #ddd, 0 6px 0 0 #fff, 0 7px 0 0 #ddd;} -.preview-image-box img:hover {box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);} -.image-modal .ant-carousel .slick-dots li button {background: #888;} -.principle-wrapper .principle {border: 1px solid #e8e8e8;border-radius: 4px;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.color-palettes-dark {background-color: #141414;} -.color-palettes-dark .color-title {color: rgba(255, 255, 255, 0.85);} -.color-palettes-dark .color-description {color: rgba(255, 255, 255, 0.45);} -.color-palette-picker-validation {color: #ff4d4f;} -.main-color .palette-blue-1 {background: #e6f7ff;} -.main-color .palette-blue-2 {background: #bae7ff;} -.main-color .palette-blue-3 {background: #91d5ff;} -.main-color .palette-blue-4 {background: #69c0ff;} -.main-color .palette-blue-5 {background: #40a9ff;} -.main-color .palette-blue-6 {background: #1890ff;} -.main-color .palette-blue-7 {background: #096dd9;} -.main-color .palette-blue-8 {background: #0050b3;} -.main-color .palette-blue-9 {background: #003a8c;} -.main-color .palette-blue-10 {background: #002766;} -.main-color .palette-purple-1 {background: #f9f0ff;} -.main-color .palette-purple-2 {background: #efdbff;} -.main-color .palette-purple-3 {background: #d3adf7;} -.main-color .palette-purple-4 {background: #b37feb;} -.main-color .palette-purple-5 {background: #9254de;} -.main-color .palette-purple-6 {background: #722ed1;} -.main-color .palette-purple-7 {background: #531dab;} -.main-color .palette-purple-8 {background: #391085;} -.main-color .palette-purple-9 {background: #22075e;} -.main-color .palette-purple-10 {background: #120338;} -.main-color .palette-cyan-1 {background: #e6fffb;} -.main-color .palette-cyan-2 {background: #b5f5ec;} -.main-color .palette-cyan-3 {background: #87e8de;} -.main-color .palette-cyan-4 {background: #5cdbd3;} -.main-color .palette-cyan-5 {background: #36cfc9;} -.main-color .palette-cyan-6 {background: #13c2c2;} -.main-color .palette-cyan-7 {background: #08979c;} -.main-color .palette-cyan-8 {background: #006d75;} -.main-color .palette-cyan-9 {background: #00474f;} -.main-color .palette-cyan-10 {background: #002329;} -.main-color .palette-green-1 {background: #f6ffed;} -.main-color .palette-green-2 {background: #d9f7be;} -.main-color .palette-green-3 {background: #b7eb8f;} -.main-color .palette-green-4 {background: #95de64;} -.main-color .palette-green-5 {background: #73d13d;} -.main-color .palette-green-6 {background: #52c41a;} -.main-color .palette-green-7 {background: #389e0d;} -.main-color .palette-green-8 {background: #237804;} -.main-color .palette-green-9 {background: #135200;} -.main-color .palette-green-10 {background: #092b00;} -.main-color .palette-magenta-1 {background: #fff0f6;} -.main-color .palette-magenta-2 {background: #ffd6e7;} -.main-color .palette-magenta-3 {background: #ffadd2;} -.main-color .palette-magenta-4 {background: #ff85c0;} -.main-color .palette-magenta-5 {background: #f759ab;} -.main-color .palette-magenta-6 {background: #eb2f96;} -.main-color .palette-magenta-7 {background: #c41d7f;} -.main-color .palette-magenta-8 {background: #9e1068;} -.main-color .palette-magenta-9 {background: #780650;} -.main-color .palette-magenta-10 {background: #520339;} -.main-color .palette-red-1 {background: #fff1f0;} -.main-color .palette-red-2 {background: #ffccc7;} -.main-color .palette-red-3 {background: #ffa39e;} -.main-color .palette-red-4 {background: #ff7875;} -.main-color .palette-red-5 {background: #ff4d4f;} -.main-color .palette-red-6 {background: #f5222d;} -.main-color .palette-red-7 {background: #cf1322;} -.main-color .palette-red-8 {background: #a8071a;} -.main-color .palette-red-9 {background: #820014;} -.main-color .palette-red-10 {background: #5c0011;} -.main-color .palette-volcano-1 {background: #fff2e8;} -.main-color .palette-volcano-2 {background: #ffd8bf;} -.main-color .palette-volcano-3 {background: #ffbb96;} -.main-color .palette-volcano-4 {background: #ff9c6e;} -.main-color .palette-volcano-5 {background: #ff7a45;} -.main-color .palette-volcano-6 {background: #fa541c;} -.main-color .palette-volcano-7 {background: #d4380d;} -.main-color .palette-volcano-8 {background: #ad2102;} -.main-color .palette-volcano-9 {background: #871400;} -.main-color .palette-volcano-10 {background: #610b00;} -.main-color .palette-orange-1 {background: #fff7e6;} -.main-color .palette-orange-2 {background: #ffe7ba;} -.main-color .palette-orange-3 {background: #ffd591;} -.main-color .palette-orange-4 {background: #ffc069;} -.main-color .palette-orange-5 {background: #ffa940;} -.main-color .palette-orange-6 {background: #fa8c16;} -.main-color .palette-orange-7 {background: #d46b08;} -.main-color .palette-orange-8 {background: #ad4e00;} -.main-color .palette-orange-9 {background: #873800;} -.main-color .palette-orange-10 {background: #612500;} -.main-color .palette-gold-1 {background: #fffbe6;} -.main-color .palette-gold-2 {background: #fff1b8;} -.main-color .palette-gold-3 {background: #ffe58f;} -.main-color .palette-gold-4 {background: #ffd666;} -.main-color .palette-gold-5 {background: #ffc53d;} -.main-color .palette-gold-6 {background: #faad14;} -.main-color .palette-gold-7 {background: #d48806;} -.main-color .palette-gold-8 {background: #ad6800;} -.main-color .palette-gold-9 {background: #874d00;} -.main-color .palette-gold-10 {background: #613400;} -.main-color .palette-yellow-1 {background: #feffe6;} -.main-color .palette-yellow-2 {background: #ffffb8;} -.main-color .palette-yellow-3 {background: #fffb8f;} -.main-color .palette-yellow-4 {background: #fff566;} -.main-color .palette-yellow-5 {background: #ffec3d;} -.main-color .palette-yellow-6 {background: #fadb14;} -.main-color .palette-yellow-7 {background: #d4b106;} -.main-color .palette-yellow-8 {background: #ad8b00;} -.main-color .palette-yellow-9 {background: #876800;} -.main-color .palette-yellow-10 {background: #614700;} -.main-color .palette-lime-1 {background: #fcffe6;} -.main-color .palette-lime-2 {background: #f4ffb8;} -.main-color .palette-lime-3 {background: #eaff8f;} -.main-color .palette-lime-4 {background: #d3f261;} -.main-color .palette-lime-5 {background: #bae637;} -.main-color .palette-lime-6 {background: #a0d911;} -.main-color .palette-lime-7 {background: #7cb305;} -.main-color .palette-lime-8 {background: #5b8c00;} -.main-color .palette-lime-9 {background: #3f6600;} -.main-color .palette-lime-10 {background: #254000;} -.main-color .palette-geekblue-1 {background: #f0f5ff;} -.main-color .palette-geekblue-2 {background: #d6e4ff;} -.main-color .palette-geekblue-3 {background: #adc6ff;} -.main-color .palette-geekblue-4 {background: #85a5ff;} -.main-color .palette-geekblue-5 {background: #597ef7;} -.main-color .palette-geekblue-6 {background: #2f54eb;} -.main-color .palette-geekblue-7 {background: #1d39c4;} -.main-color .palette-geekblue-8 {background: #10239e;} -.main-color .palette-geekblue-9 {background: #061178;} -.main-color .palette-geekblue-10 {background: #030852;} -.main-color .palette-gray-1 {background: #fff;} -.main-color .palette-gray-2 {background: #fafafa;} -.main-color .palette-gray-3 {background: #f5f5f5;} -.main-color .palette-gray-4 {background: #f0f0f0;} -.main-color .palette-gray-5 {background: #d9d9d9;} -.main-color .palette-gray-6 {background: #bfbfbf;} -.main-color .palette-gray-7 {background: #8c8c8c;} -.main-color .palette-gray-8 {background: #595959;} -.main-color .palette-gray-9 {background: #434343;} -.main-color .palette-gray-10 {background: #262626;} -.main-color .palette-gray-11 {background: #1f1f1f;} -.main-color .palette-gray-12 {background: #141414;} -.main-color .palette-gray-13 {background: #000;} -.main-color-item:first-child {border-radius: 4px 4px 0 0;} -.main-color-item:last-child {border-radius: 0 0 4px 4px;} -.main-color-item:hover {border-radius: 0 4px 4px 0;} -.color-title {color: #5c6b77;} -.color-description {color: #777;} -.color-palette-horizontal-dark {background-color: #141414;} -.color-palette-horizontal-dark .color-palette-pick {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal-dark .color-palette-pick-hex {color: rgba(255, 255, 255, 0.65);} -.color-palette-horizontal .main-color-item {border-radius: 0;} -.color-palette-horizontal .main-color-item:hover {border-radius: 4px 4px 0 0;} -.toc {border-left: 1px solid #f0f0f0;} -.ant-row-rtl .toc {border-right: 1px solid #f0f0f0;border-left: none;} -ul.toc > li.toc-debug a {color: #722ed1;} -.toc a {color: rgba(0, 0, 0, 0.85);border-left: 1px solid transparent;} -.ant-row-rtl .toc a {border-right: 1px solid transparent;border-left: none;} -.toc a:hover {color: @primary-color;} -.toc a.current {color: @primary-color;border-color: @primary-color;} -.toc-affix .ant-affix {background: #fff;} -.toc-affix-bottom .ant-affix {background: #fff;} -.bezierEasingMixin() { -@functions: ~`(function() {var NEWTON_ITERATIONS = 4;var NEWTON_MIN_SLOPE = 0.001;var SUBDIVISION_PRECISION = 0.0000001;var SUBDIVISION_MAX_ITERATIONS = 10;var kSplineTableSize = 11;var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);var float32ArraySupported = typeof Float32Array === 'function';function A (aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; } - function B (aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1; } - function C (aA1) { return 3.0 * aA1; } - function calcBezier (aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; } - function getSlope (aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); } - function binarySubdivide (aX, aA, aB, mX1, mX2) {var currentX, currentT, i = 0;do {currentT = aA + (aB - aA) / 2.0;currentX = calcBezier(currentT, mX1, mX2) - aX;if (currentX > 0.0) {aB = currentT;} else {aA = currentT;} - } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);return currentT;} - function newtonRaphsonIterate (aX, aGuessT, mX1, mX2) {for (var i = 0; i < NEWTON_ITERATIONS; ++i) {var currentSlope = getSlope(aGuessT, mX1, mX2);if (currentSlope === 0.0) {return aGuessT;} - var currentX = calcBezier(aGuessT, mX1, mX2) - aX;aGuessT -= currentX / currentSlope;} - return aGuessT;} - var BezierEasing = function (mX1, mY1, mX2, mY2) {if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) {throw new Error('bezier x values must be in [0, 1] range');} - var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);if (mX1 !== mY1 || mX2 !== mY2) {for (var i = 0; i < kSplineTableSize; ++i) {sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);} - } - function getTForX (aX) {var intervalStart = 0.0;var currentSample = 1;var lastSample = kSplineTableSize - 1;for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {intervalStart += kSampleStepSize;} - --currentSample;var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);var guessForT = intervalStart + dist * kSampleStepSize;var initialSlope = getSlope(guessForT, mX1, mX2);if (initialSlope >= NEWTON_MIN_SLOPE) {return newtonRaphsonIterate(aX, guessForT, mX1, mX2);} else if (initialSlope === 0.0) {return guessForT;} else {return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);} - } - return function BezierEasing (x) {if (mX1 === mY1 && mX2 === mY2) {return x; - } - if (x === 0) {return 0;} - if (x === 1) {return 1;} - return calcBezier(getTForX(x), mY1, mY2);};};this.colorEasing = BezierEasing(0.26, 0.09, 0.37, 0.18);return '';})()`;} -.bezierEasingMixin(); -.tinyColorMixin() { -@functions: ~`(function() { -var trimLeft = /^\s+/, - trimRight = /\s+$/, - tinyCounter = 0, - mathRound = Math.round, - mathMin = Math.min, - mathMax = Math.max, - mathRandom = Math.random; -function tinycolor (color, opts) {color = (color) ? color : '';opts = opts || { };if (color instanceof tinycolor) {return color;} - if (!(this instanceof tinycolor)) {return new tinycolor(color, opts);} - var rgb = inputToRGB(color);this._originalInput = color, - this._r = rgb.r, - this._g = rgb.g, - this._b = rgb.b, - this._a = rgb.a, - this._roundA = mathRound(100*this._a) / 100, - this._format = opts.format || rgb.format;this._gradientType = opts.gradientType;if (this._r < 1) { this._r = mathRound(this._r); } - if (this._g < 1) { this._g = mathRound(this._g); } - if (this._b < 1) { this._b = mathRound(this._b); } - this._ok = rgb.ok;this._tc_id = tinyCounter++;} -tinycolor.prototype = {isDark: function() {return this.getBrightness() < 128;}, - isLight: function() {return !this.isDark();}, - isValid: function() {return this._ok;}, - getOriginalInput: function() {return this._originalInput;}, - getFormat: function() {return this._format;}, - getAlpha: function() {return this._a;}, - getBrightness: function() {var rgb = this.toRgb();return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;}, - getLuminance: function() {var rgb = this.toRgb();var RsRGB, GsRGB, BsRGB, R, G, B;RsRGB = rgb.r/255;GsRGB = rgb.g/255;BsRGB = rgb.b/255;if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} - if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} - if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} - return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);}, - setAlpha: function(value) {this._a = boundAlpha(value);this._roundA = mathRound(100*this._a) / 100;return this;}, - toHsv: function() {var hsv = rgbToHsv(this._r, this._g, this._b);return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };}, - toHsvString: function() {var hsv = rgbToHsv(this._r, this._g, this._b);var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);return (this._a == 1) ? - "hsv(" + h + ", " + s + "%, " + v + "%)" : - "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";}, - toHsl: function() {var hsl = rgbToHsl(this._r, this._g, this._b);return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };}, - toHslString: function() {var hsl = rgbToHsl(this._r, this._g, this._b);var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);return (this._a == 1) ? - "hsl(" + h + ", " + s + "%, " + l + "%)" : - "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";}, - toHex: function(allow3Char) {return rgbToHex(this._r, this._g, this._b, allow3Char);}, - toHexString: function(allow3Char) {return '#' + this.toHex(allow3Char);}, - toHex8: function(allow4Char) {return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);}, - toHex8String: function(allow4Char) {return '#' + this.toHex8(allow4Char);}, - toRgb: function() {return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };}, - toRgbString: function() {return (this._a == 1) ? - "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : - "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";}, - toPercentageRgb: function() {return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };}, - toPercentageRgbString: function() {return (this._a == 1) ? - "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : - "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";}, - toName: function() {if (this._a === 0) {return "transparent";} - if (this._a < 1) {return false;} - return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;}, - toFilter: function(secondColor) {var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);var secondHex8String = hex8String;var gradientType = this._gradientType ? "GradientType = 1, " : "";if (secondColor) {var s = tinycolor(secondColor);secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);} - return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";}, - toString: function(format) {var formatSet = !!format;format = format || this._format;var formattedString = false;var hasAlpha = this._a < 1 && this._a >= 0;var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");if (needsAlphaFormat) {if (format === "name" && this._a === 0) {return this.toName();} - return this.toRgbString();} - if (format === "rgb") {formattedString = this.toRgbString();} - if (format === "prgb") {formattedString = this.toPercentageRgbString();} - if (format === "hex" || format === "hex6") {formattedString = this.toHexString();} - if (format === "hex3") {formattedString = this.toHexString(true);} - if (format === "hex4") {formattedString = this.toHex8String(true);} - if (format === "hex8") {formattedString = this.toHex8String();} - if (format === "name") {formattedString = this.toName();} - if (format === "hsl") {formattedString = this.toHslString();} - if (format === "hsv") {formattedString = this.toHsvString();} - return formattedString || this.toHexString();}, - clone: function() {return tinycolor(this.toString());}, - _applyModification: function(fn, args) {var color = fn.apply(null, [this].concat([].slice.call(args)));this._r = color._r;this._g = color._g;this._b = color._b;this.setAlpha(color._a);return this;}, - lighten: function() {return this._applyModification(lighten, arguments);}, - brighten: function() {return this._applyModification(brighten, arguments);}, - darken: function() {return this._applyModification(darken, arguments);}, - desaturate: function() {return this._applyModification(desaturate, arguments);}, - saturate: function() {return this._applyModification(saturate, arguments);}, - greyscale: function() {return this._applyModification(greyscale, arguments);}, - spin: function() {return this._applyModification(spin, arguments);}, - _applyCombination: function(fn, args) {return fn.apply(null, [this].concat([].slice.call(args)));}, - analogous: function() {return this._applyCombination(analogous, arguments);}, - complement: function() {return this._applyCombination(complement, arguments);}, - monochromatic: function() {return this._applyCombination(monochromatic, arguments);}, - splitcomplement: function() {return this._applyCombination(splitcomplement, arguments);}, - triad: function() {return this._applyCombination(triad, arguments);}, - tetrad: function() {return this._applyCombination(tetrad, arguments);} -}; -tinycolor.fromRatio = function(color, opts) {if (typeof color == "object") {var newColor = {};for (var i in color) {if (color.hasOwnProperty(i)) {if (i === "a") {newColor[i] = color[i];} - else {newColor[i] = convertToPercentage(color[i]);} - } - } - color = newColor;} - return tinycolor(color, opts);}; -function inputToRGB(color) {var rgb = { r: 0, g: 0, b: 0 };var a = 1;var s = null;var v = null;var l = null;var ok = false;var format = false;if (typeof color == "string") {color = stringInputToObject(color);} - if (typeof color == "object") {if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {rgb = rgbToRgb(color.r, color.g, color.b);ok = true;format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";} - else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {s = convertToPercentage(color.s);v = convertToPercentage(color.v);rgb = hsvToRgb(color.h, s, v);ok = true;format = "hsv";} - else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {s = convertToPercentage(color.s);l = convertToPercentage(color.l);rgb = hslToRgb(color.h, s, l);ok = true;format = "hsl";} - if (color.hasOwnProperty("a")) {a = color.a;} - } - a = boundAlpha(a);return {ok: ok, - format: color.format || format, - r: mathMin(255, mathMax(rgb.r, 0)), - g: mathMin(255, mathMax(rgb.g, 0)), - b: mathMin(255, mathMax(rgb.b, 0)), - a: a - };} -function rgbToRgb(r, g, b){return {r: bound01(r, 255) * 255, - g: bound01(g, 255) * 255, - b: bound01(b, 255) * 255 - };} -function rgbToHsl(r, g, b) {r = bound01(r, 255);g = bound01(g, 255);b = bound01(b, 255);var max = mathMax(r, g, b), min = mathMin(r, g, b);var h, s, l = (max + min) / 2;if(max == min) {h = s = 0; - } - else {var d = max - min;s = l > 0.5 ? d / (2 - max - min) : d / (max + min);switch(max) {case r: h = (g - b) / d + (g < b ? 6 : 0); break;case g: h = (b - r) / d + 2; break;case b: h = (r - g) / d + 4; break;} - h /= 6;} - return { h: h, s: s, l: l };} -function hslToRgb(h, s, l) {var r, g, b;h = bound01(h, 360);s = bound01(s, 100);l = bound01(l, 100);function hue2rgb(p, q, t) {if(t < 0) t += 1;if(t > 1) t -= 1;if(t < 1/6) return p + (q - p) * 6 * t;if(t < 1/2) return q;if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;return p;} - if(s === 0) {r = g = b = l; - } - else {var q = l < 0.5 ? l * (1 + s) : l + s - l * s;var p = 2 * l - q;r = hue2rgb(p, q, h + 1/3);g = hue2rgb(p, q, h);b = hue2rgb(p, q, h - 1/3);} - return { r: r * 255, g: g * 255, b: b * 255 };} -function rgbToHsv(r, g, b) {r = bound01(r, 255);g = bound01(g, 255);b = bound01(b, 255);var max = mathMax(r, g, b), min = mathMin(r, g, b);var h, s, v = max;var d = max - min;s = max === 0 ? 0 : d / max;if(max == min) {h = 0; - } - else {switch(max) {case r: h = (g - b) / d + (g < b ? 6 : 0); break;case g: h = (b - r) / d + 2; break;case b: h = (r - g) / d + 4; break;} - h /= 6;} - return { h: h, s: s, v: v };} - function hsvToRgb(h, s, v) {h = bound01(h, 360) * 6;s = bound01(s, 100);v = bound01(v, 100);var i = Math.floor(h), - f = h - i, - p = v * (1 - s), - q = v * (1 - f * s), - t = v * (1 - (1 - f) * s), - mod = i % 6, - r = [v, q, p, p, t, v][mod], - g = [t, v, v, q, p, p][mod], - b = [p, p, t, v, v, q][mod];return { r: r * 255, g: g * 255, b: b * 255 };} -function rgbToHex(r, g, b, allow3Char) {var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ];if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);} - return hex.join("");} -function rgbaToHex(r, g, b, a, allow4Char) {var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)), - pad2(convertDecimalToHex(a)) - ];if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);} - return hex.join("");} -function rgbaToArgbHex(r, g, b, a) {var hex = [ - pad2(convertDecimalToHex(a)), - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ];return hex.join("");} -tinycolor.equals = function (color1, color2) {if (!color1 || !color2) { return false; } - return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();}; -tinycolor.random = function() {return tinycolor.fromRatio({r: mathRandom(), - g: mathRandom(), - b: mathRandom() - });}; -function desaturate(color, amount) {amount = (amount === 0) ? 0 : (amount || 10);var hsl = tinycolor(color).toHsl();hsl.s -= amount / 100;hsl.s = clamp01(hsl.s);return tinycolor(hsl);} -function saturate(color, amount) {amount = (amount === 0) ? 0 : (amount || 10);var hsl = tinycolor(color).toHsl();hsl.s += amount / 100;hsl.s = clamp01(hsl.s);return tinycolor(hsl);} -function greyscale(color) {return tinycolor(color).desaturate(100);} -function lighten (color, amount) {amount = (amount === 0) ? 0 : (amount || 10);var hsl = tinycolor(color).toHsl();hsl.l += amount / 100;hsl.l = clamp01(hsl.l);return tinycolor(hsl);} -function brighten(color, amount) {amount = (amount === 0) ? 0 : (amount || 10);var rgb = tinycolor(color).toRgb();rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));return tinycolor(rgb);} -function darken (color, amount) {amount = (amount === 0) ? 0 : (amount || 10);var hsl = tinycolor(color).toHsl();hsl.l -= amount / 100;hsl.l = clamp01(hsl.l);return tinycolor(hsl);} -function spin(color, amount) {var hsl = tinycolor(color).toHsl();var hue = (hsl.h + amount) % 360;hsl.h = hue < 0 ? 360 + hue : hue;return tinycolor(hsl);} -function complement(color) {var hsl = tinycolor(color).toHsl();hsl.h = (hsl.h + 180) % 360;return tinycolor(hsl);} -function triad(color) {var hsl = tinycolor(color).toHsl();var h = hsl.h;return [ - tinycolor(color), - tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) - ];} -function tetrad(color) {var hsl = tinycolor(color).toHsl();var h = hsl.h;return [ - tinycolor(color), - tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) - ];} -function splitcomplement(color) {var hsl = tinycolor(color).toHsl();var h = hsl.h;return [ - tinycolor(color), - tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), - tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) - ];} -function analogous(color, results, slices) {results = results || 6;slices = slices || 30;var hsl = tinycolor(color).toHsl();var part = 360 / slices;var ret = [tinycolor(color)];for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {hsl.h = (hsl.h + part) % 360;ret.push(tinycolor(hsl));} - return ret;} -function monochromatic(color, results) {results = results || 6;var hsv = tinycolor(color).toHsv();var h = hsv.h, s = hsv.s, v = hsv.v;var ret = [];var modification = 1 / results;while (results--) {ret.push(tinycolor({ h: h, s: s, v: v}));v = (v + modification) % 1;} - return ret;} -tinycolor.mix = function(color1, color2, amount) {amount = (amount === 0) ? 0 : (amount || 50);var rgb1 = tinycolor(color1).toRgb();var rgb2 = tinycolor(color2).toRgb();var p = amount / 100;var rgba = {r: ((rgb2.r - rgb1.r) * p) + rgb1.r, - g: ((rgb2.g - rgb1.g) * p) + rgb1.g, - b: ((rgb2.b - rgb1.b) * p) + rgb1.b, - a: ((rgb2.a - rgb1.a) * p) + rgb1.a - };return tinycolor(rgba);}; -tinycolor.readability = function(color1, color2) {var c1 = tinycolor(color1);var c2 = tinycolor(color2);return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);}; -tinycolor.isReadable = function(color1, color2, wcag2) {var readability = tinycolor.readability(color1, color2);var wcag2Parms, out;out = false;wcag2Parms = validateWCAG2Parms(wcag2);switch (wcag2Parms.level + wcag2Parms.size) {case "AAsmall": - case "AAAlarge": - out = readability >= 4.5;break;case "AAlarge": - out = readability >= 3;break;case "AAAsmall": - out = readability >= 7;break;} - return out;}; -tinycolor.mostReadable = function(baseColor, colorList, args) {var bestColor = null;var bestScore = 0;var readability;var includeFallbackColors, level, size ;args = args || {};includeFallbackColors = args.includeFallbackColors ;level = args.level;size = args.size;for (var i= 0; i < colorList.length ; i++) {readability = tinycolor.readability(baseColor, colorList[i]);if (readability > bestScore) {bestScore = readability;bestColor = tinycolor(colorList[i]);} - } - if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {return bestColor;} - else {args.includeFallbackColors=false;return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);} -}; -var names = tinycolor.names = {aliceblue: "f0f8ff", - antiquewhite: "faebd7", - aqua: "0ff", - aquamarine: "7fffd4", - azure: "f0ffff", - beige: "f5f5dc", - bisque: "ffe4c4", - black: "000", - blanchedalmond: "ffebcd", - blue: "00f", - blueviolet: "8a2be2", - brown: "a52a2a", - burlywood: "deb887", - burntsienna: "ea7e5d", - cadetblue: "5f9ea0", - chartreuse: "7fff00", - chocolate: "d2691e", - coral: "ff7f50", - cornflowerblue: "6495ed", - cornsilk: "fff8dc", - crimson: "dc143c", - cyan: "0ff", - darkblue: "00008b", - darkcyan: "008b8b", - darkgoldenrod: "b8860b", - darkgray: "a9a9a9", - darkgreen: "006400", - darkgrey: "a9a9a9", - darkkhaki: "bdb76b", - darkmagenta: "8b008b", - darkolivegreen: "556b2f", - darkorange: "ff8c00", - darkorchid: "9932cc", - darkred: "8b0000", - darksalmon: "e9967a", - darkseagreen: "8fbc8f", - darkslateblue: "483d8b", - darkslategray: "2f4f4f", - darkslategrey: "2f4f4f", - darkturquoise: "00ced1", - darkviolet: "9400d3", - deeppink: "ff1493", - deepskyblue: "00bfff", - dimgray: "696969", - dimgrey: "696969", - dodgerblue: "1e90ff", - firebrick: "b22222", - floralwhite: "fffaf0", - forestgreen: "228b22", - fuchsia: "f0f", - gainsboro: "dcdcdc", - ghostwhite: "f8f8ff", - gold: "ffd700", - goldenrod: "daa520", - gray: "808080", - green: "008000", - greenyellow: "adff2f", - grey: "808080", - honeydew: "f0fff0", - hotpink: "ff69b4", - indianred: "cd5c5c", - indigo: "4b0082", - ivory: "fffff0", - khaki: "f0e68c", - lavender: "e6e6fa", - lavenderblush: "fff0f5", - lawngreen: "7cfc00", - lemonchiffon: "fffacd", - lightblue: "add8e6", - lightcoral: "f08080", - lightcyan: "e0ffff", - lightgoldenrodyellow: "fafad2", - lightgray: "d3d3d3", - lightgreen: "90ee90", - lightgrey: "d3d3d3", - lightpink: "ffb6c1", - lightsalmon: "ffa07a", - lightseagreen: "20b2aa", - lightskyblue: "87cefa", - lightslategray: "789", - lightslategrey: "789", - lightsteelblue: "b0c4de", - lightyellow: "ffffe0", - lime: "0f0", - limegreen: "32cd32", - linen: "faf0e6", - magenta: "f0f", - maroon: "800000", - mediumaquamarine: "66cdaa", - mediumblue: "0000cd", - mediumorchid: "ba55d3", - mediumpurple: "9370db", - mediumseagreen: "3cb371", - mediumslateblue: "7b68ee", - mediumspringgreen: "00fa9a", - mediumturquoise: "48d1cc", - mediumvioletred: "c71585", - midnightblue: "191970", - mintcream: "f5fffa", - mistyrose: "ffe4e1", - moccasin: "ffe4b5", - navajowhite: "ffdead", - navy: "000080", - oldlace: "fdf5e6", - olive: "808000", - olivedrab: "6b8e23", - orange: "ffa500", - orangered: "ff4500", - orchid: "da70d6", - palegoldenrod: "eee8aa", - palegreen: "98fb98", - paleturquoise: "afeeee", - palevioletred: "db7093", - papayawhip: "ffefd5", - peachpuff: "ffdab9", - peru: "cd853f", - pink: "ffc0cb", - plum: "dda0dd", - powderblue: "b0e0e6", - purple: "800080", - rebeccapurple: "663399", - red: "f00", - rosybrown: "bc8f8f", - royalblue: "4169e1", - saddlebrown: "8b4513", - salmon: "fa8072", - sandybrown: "f4a460", - seagreen: "2e8b57", - seashell: "fff5ee", - sienna: "a0522d", - silver: "c0c0c0", - skyblue: "87ceeb", - slateblue: "6a5acd", - slategray: "708090", - slategrey: "708090", - snow: "fffafa", - springgreen: "00ff7f", - steelblue: "4682b4", - tan: "d2b48c", - teal: "008080", - thistle: "d8bfd8", - tomato: "ff6347", - turquoise: "40e0d0", - violet: "ee82ee", - wheat: "f5deb3", - white: "fff", - whitesmoke: "f5f5f5", - yellow: "ff0", - yellowgreen: "9acd32" -}; -var hexNames = tinycolor.hexNames = flip(names); -function flip(o) {var flipped = { };for (var i in o) {if (o.hasOwnProperty(i)) {flipped[o[i]] = i;} - } - return flipped;} -function boundAlpha(a) {a = parseFloat(a);if (isNaN(a) || a < 0 || a > 1) {a = 1;} - return a;} -function bound01(n, max) {if (isOnePointZero(n)) { n = "100%"; } - var processPercent = isPercentage(n);n = mathMin(max, mathMax(0, parseFloat(n)));if (processPercent) {n = parseInt(n * max, 10) / 100;} - if ((Math.abs(n - max) < 0.000001)) {return 1;} - return (n % max) / parseFloat(max);} -function clamp01(val) {return mathMin(1, mathMax(0, val));} -function parseIntFromHex(val) {return parseInt(val, 16);} -function isOnePointZero(n) {return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;} -function isPercentage(n) {return typeof n === "string" && n.indexOf('%') != -1;} -function pad2(c) {return c.length == 1 ? '0' + c : '' + c;} -function convertToPercentage(n) {if (n <= 1) {n = (n * 100) + "%";} - return n;} -function convertDecimalToHex(d) {return Math.round(parseFloat(d) * 255).toString(16);} -function convertHexToDecimal(h) {return (parseIntFromHex(h) / 255);} -var matchers = (function() {var CSS_INTEGER = "[-\\+]?\\d+%?";var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";return {CSS_UNIT: new RegExp(CSS_UNIT), - rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), - rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), - hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), - hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), - hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), - hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ - };})(); -function isValidCSSUnit(color) {return !!matchers.CSS_UNIT.exec(color);} -function stringInputToObject(color) {color = color.replace(trimLeft, '').replace(trimRight, '').toLowerCase();var named = false;if (names[color]) {color = names[color];named = true;} - else if (color == 'transparent') {return { r: 0, g: 0, b: 0, a: 0, format: "name" };} - var match;if ((match = matchers.rgb.exec(color))) {return { r: match[1], g: match[2], b: match[3] };} - if ((match = matchers.rgba.exec(color))) {return { r: match[1], g: match[2], b: match[3], a: match[4] };} - if ((match = matchers.hsl.exec(color))) {return { h: match[1], s: match[2], l: match[3] };} - if ((match = matchers.hsla.exec(color))) {return { h: match[1], s: match[2], l: match[3], a: match[4] };} - if ((match = matchers.hsv.exec(color))) {return { h: match[1], s: match[2], v: match[3] };} - if ((match = matchers.hsva.exec(color))) {return { h: match[1], s: match[2], v: match[3], a: match[4] };} - if ((match = matchers.hex8.exec(color))) {return {r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - a: convertHexToDecimal(match[4]), - format: named ? "name" : "hex8" - };} - if ((match = matchers.hex6.exec(color))) {return {r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - format: named ? "name" : "hex" - };} - if ((match = matchers.hex4.exec(color))) {return {r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - a: convertHexToDecimal(match[4] + '' + match[4]), - format: named ? "name" : "hex8" - };} - if ((match = matchers.hex3.exec(color))) {return {r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - format: named ? "name" : "hex" - };} - return false;} -function validateWCAG2Parms(parms) {var level, size;parms = parms || {"level":"AA", "size":"small"};level = (parms.level || "AA").toUpperCase();size = (parms.size || "small").toLowerCase();if (level !== "AA" && level !== "AAA") {level = "AA";} - if (size !== "small" && size !== "large") {size = "small";} - return {"level":level, "size":size};} -this.tinycolor = tinycolor;})()`;} -.tinyColorMixin(); -.colorPaletteMixin() { -@functions: ~`(function() {var hueStep = 2;var saturationStep = 0.16;var saturationStep2 = 0.05;var brightnessStep1 = 0.05;var brightnessStep2 = 0.15;var lightColorCount = 5;var darkColorCount = 4;var getHue = function(hsv, i, isLight) {var hue;if (hsv.h >= 60 && hsv.h <= 240) {hue = isLight ? hsv.h - hueStep * i : hsv.h + hueStep * i;} else {hue = isLight ? hsv.h + hueStep * i : hsv.h - hueStep * i;} - if (hue < 0) {hue += 360;} else if (hue >= 360) {hue -= 360;} - return Math.round(hue);};var getSaturation = function(hsv, i, isLight) {var saturation;if (isLight) {saturation = hsv.s - saturationStep * i;} else if (i === darkColorCount) {saturation = hsv.s + saturationStep;} else {saturation = hsv.s + saturationStep2 * i;} - if (saturation > 1) {saturation = 1;} - if (isLight && i === lightColorCount && saturation > 0.1) {saturation = 0.1;} - if (saturation < 0.06) {saturation = 0.06;} - return Number(saturation.toFixed(2));};var getValue = function(hsv, i, isLight) {var value;if (isLight) {value = hsv.v + brightnessStep1 * i;}else{value = hsv.v - brightnessStep2 * i - } - if (value > 1) {value = 1;} - return Number(value.toFixed(2)) - };this.colorPalette = function(color, index) {var isLight = index <= 6;var hsv = tinycolor(color).toHsv();var i = isLight ? lightColorCount + 1 - index : index - lightColorCount - 1;return tinycolor({h: getHue(hsv, i, isLight), - s: getSaturation(hsv, i, isLight), - v: getValue(hsv, i, isLight), - }).toHexString();};})()`;} -.colorPaletteMixin(); -@blue-base: #1890ff; -@blue-1: color(~`colorPalette('@{blue-6}', 1) `); -@blue-2: color(~`colorPalette('@{blue-6}', 2) `); -@blue-3: color(~`colorPalette('@{blue-6}', 3) `); -@blue-4: color(~`colorPalette('@{blue-6}', 4) `); -@blue-5: color(~`colorPalette('@{blue-6}', 5) `); -@blue-6: @blue-base; -@blue-7: color(~`colorPalette('@{blue-6}', 7) `); -@blue-8: color(~`colorPalette('@{blue-6}', 8) `); -@blue-9: color(~`colorPalette('@{blue-6}', 9) `); -@blue-10: color(~`colorPalette('@{blue-6}', 10) `); -@purple-base: #722ed1; -@purple-1: color(~`colorPalette('@{purple-6}', 1) `); -@purple-2: color(~`colorPalette('@{purple-6}', 2) `); -@purple-3: color(~`colorPalette('@{purple-6}', 3) `); -@purple-4: color(~`colorPalette('@{purple-6}', 4) `); -@purple-5: color(~`colorPalette('@{purple-6}', 5) `); -@purple-6: @purple-base; -@purple-7: color(~`colorPalette('@{purple-6}', 7) `); -@purple-8: color(~`colorPalette('@{purple-6}', 8) `); -@purple-9: color(~`colorPalette('@{purple-6}', 9) `); -@purple-10: color(~`colorPalette('@{purple-6}', 10) `); -@cyan-base: #13c2c2; -@cyan-1: color(~`colorPalette('@{cyan-6}', 1) `); -@cyan-2: color(~`colorPalette('@{cyan-6}', 2) `); -@cyan-3: color(~`colorPalette('@{cyan-6}', 3) `); -@cyan-4: color(~`colorPalette('@{cyan-6}', 4) `); -@cyan-5: color(~`colorPalette('@{cyan-6}', 5) `); -@cyan-6: @cyan-base; -@cyan-7: color(~`colorPalette('@{cyan-6}', 7) `); -@cyan-8: color(~`colorPalette('@{cyan-6}', 8) `); -@cyan-9: color(~`colorPalette('@{cyan-6}', 9) `); -@cyan-10: color(~`colorPalette('@{cyan-6}', 10) `); -@green-base: #52c41a; -@green-1: color(~`colorPalette('@{green-6}', 1) `); -@green-2: color(~`colorPalette('@{green-6}', 2) `); -@green-3: color(~`colorPalette('@{green-6}', 3) `); -@green-4: color(~`colorPalette('@{green-6}', 4) `); -@green-5: color(~`colorPalette('@{green-6}', 5) `); -@green-6: @green-base; -@green-7: color(~`colorPalette('@{green-6}', 7) `); -@green-8: color(~`colorPalette('@{green-6}', 8) `); -@green-9: color(~`colorPalette('@{green-6}', 9) `); -@green-10: color(~`colorPalette('@{green-6}', 10) `); -@magenta-base: #eb2f96; -@magenta-1: color(~`colorPalette('@{magenta-6}', 1) `); -@magenta-2: color(~`colorPalette('@{magenta-6}', 2) `); -@magenta-3: color(~`colorPalette('@{magenta-6}', 3) `); -@magenta-4: color(~`colorPalette('@{magenta-6}', 4) `); -@magenta-5: color(~`colorPalette('@{magenta-6}', 5) `); -@magenta-6: @magenta-base; -@magenta-7: color(~`colorPalette('@{magenta-6}', 7) `); -@magenta-8: color(~`colorPalette('@{magenta-6}', 8) `); -@magenta-9: color(~`colorPalette('@{magenta-6}', 9) `); -@magenta-10: color(~`colorPalette('@{magenta-6}', 10) `); -@pink-base: #eb2f96; -@pink-1: color(~`colorPalette('@{pink-6}', 1) `); -@pink-2: color(~`colorPalette('@{pink-6}', 2) `); -@pink-3: color(~`colorPalette('@{pink-6}', 3) `); -@pink-4: color(~`colorPalette('@{pink-6}', 4) `); -@pink-5: color(~`colorPalette('@{pink-6}', 5) `); -@pink-6: @pink-base; -@pink-7: color(~`colorPalette('@{pink-6}', 7) `); -@pink-8: color(~`colorPalette('@{pink-6}', 8) `); -@pink-9: color(~`colorPalette('@{pink-6}', 9) `); -@pink-10: color(~`colorPalette('@{pink-6}', 10) `); -@red-base: #f5222d; -@red-1: color(~`colorPalette('@{red-6}', 1) `); -@red-2: color(~`colorPalette('@{red-6}', 2) `); -@red-3: color(~`colorPalette('@{red-6}', 3) `); -@red-4: color(~`colorPalette('@{red-6}', 4) `); -@red-5: color(~`colorPalette('@{red-6}', 5) `); -@red-6: @red-base; -@red-7: color(~`colorPalette('@{red-6}', 7) `); -@red-8: color(~`colorPalette('@{red-6}', 8) `); -@red-9: color(~`colorPalette('@{red-6}', 9) `); -@red-10: color(~`colorPalette('@{red-6}', 10) `); -@orange-base: #fa8c16; -@orange-1: color(~`colorPalette('@{orange-6}', 1) `); -@orange-2: color(~`colorPalette('@{orange-6}', 2) `); -@orange-3: color(~`colorPalette('@{orange-6}', 3) `); -@orange-4: color(~`colorPalette('@{orange-6}', 4) `); -@orange-5: color(~`colorPalette('@{orange-6}', 5) `); -@orange-6: @orange-base; -@orange-7: color(~`colorPalette('@{orange-6}', 7) `); -@orange-8: color(~`colorPalette('@{orange-6}', 8) `); -@orange-9: color(~`colorPalette('@{orange-6}', 9) `); -@orange-10: color(~`colorPalette('@{orange-6}', 10) `); -@yellow-base: #fadb14; -@yellow-1: color(~`colorPalette('@{yellow-6}', 1) `); -@yellow-2: color(~`colorPalette('@{yellow-6}', 2) `); -@yellow-3: color(~`colorPalette('@{yellow-6}', 3) `); -@yellow-4: color(~`colorPalette('@{yellow-6}', 4) `); -@yellow-5: color(~`colorPalette('@{yellow-6}', 5) `); -@yellow-6: @yellow-base; -@yellow-7: color(~`colorPalette('@{yellow-6}', 7) `); -@yellow-8: color(~`colorPalette('@{yellow-6}', 8) `); -@yellow-9: color(~`colorPalette('@{yellow-6}', 9) `); -@yellow-10: color(~`colorPalette('@{yellow-6}', 10) `); -@volcano-base: #fa541c; -@volcano-1: color(~`colorPalette('@{volcano-6}', 1) `); -@volcano-2: color(~`colorPalette('@{volcano-6}', 2) `); -@volcano-3: color(~`colorPalette('@{volcano-6}', 3) `); -@volcano-4: color(~`colorPalette('@{volcano-6}', 4) `); -@volcano-5: color(~`colorPalette('@{volcano-6}', 5) `); -@volcano-6: @volcano-base; -@volcano-7: color(~`colorPalette('@{volcano-6}', 7) `); -@volcano-8: color(~`colorPalette('@{volcano-6}', 8) `); -@volcano-9: color(~`colorPalette('@{volcano-6}', 9) `); -@volcano-10: color(~`colorPalette('@{volcano-6}', 10) `); -@geekblue-base: #2f54eb; -@geekblue-1: color(~`colorPalette('@{geekblue-6}', 1) `); -@geekblue-2: color(~`colorPalette('@{geekblue-6}', 2) `); -@geekblue-3: color(~`colorPalette('@{geekblue-6}', 3) `); -@geekblue-4: color(~`colorPalette('@{geekblue-6}', 4) `); -@geekblue-5: color(~`colorPalette('@{geekblue-6}', 5) `); -@geekblue-6: @geekblue-base; -@geekblue-7: color(~`colorPalette('@{geekblue-6}', 7) `); -@geekblue-8: color(~`colorPalette('@{geekblue-6}', 8) `); -@geekblue-9: color(~`colorPalette('@{geekblue-6}', 9) `); -@geekblue-10: color(~`colorPalette('@{geekblue-6}', 10) `); -@lime-base: #a0d911; -@lime-1: color(~`colorPalette('@{lime-6}', 1) `); -@lime-2: color(~`colorPalette('@{lime-6}', 2) `); -@lime-3: color(~`colorPalette('@{lime-6}', 3) `); -@lime-4: color(~`colorPalette('@{lime-6}', 4) `); -@lime-5: color(~`colorPalette('@{lime-6}', 5) `); -@lime-6: @lime-base; -@lime-7: color(~`colorPalette('@{lime-6}', 7) `); -@lime-8: color(~`colorPalette('@{lime-6}', 8) `); -@lime-9: color(~`colorPalette('@{lime-6}', 9) `); -@lime-10: color(~`colorPalette('@{lime-6}', 10) `); -@gold-base: #faad14; -@gold-1: color(~`colorPalette('@{gold-6}', 1) `); -@gold-2: color(~`colorPalette('@{gold-6}', 2) `); -@gold-3: color(~`colorPalette('@{gold-6}', 3) `); -@gold-4: color(~`colorPalette('@{gold-6}', 4) `); -@gold-5: color(~`colorPalette('@{gold-6}', 5) `); -@gold-6: @gold-base; -@gold-7: color(~`colorPalette('@{gold-6}', 7) `); -@gold-8: color(~`colorPalette('@{gold-6}', 8) `); -@gold-9: color(~`colorPalette('@{gold-6}', 9) `); -@gold-10: color(~`colorPalette('@{gold-6}', 10) `); -@preset-colors: pink, magenta, red, volcano, orange, yellow, gold, cyan, lime, green, blue, geekblue, - purple; -@theme: default; -@ant-prefix: ant; -@html-selector: html; -@info-color: @primary-color; -@success-color: @green-6; -@processing-color: @blue-6; -@error-color: @red-5; -@highlight-color: @red-5; -@warning-color: @gold-6; -@normal-color: #d9d9d9; -@white: #fff; -@black: #000; -@primary-1: color(~`colorPalette('@{primary-color}', 1) `); -@primary-2: color(~`colorPalette('@{primary-color}', 2) `); -@primary-3: color(~`colorPalette('@{primary-color}', 3) `); -@primary-4: color(~`colorPalette('@{primary-color}', 4) `); -@primary-5: color( - ~`colorPalette('@{primary-color}', 5) ` -); -@primary-6: @primary-color; -@primary-7: color(~`colorPalette('@{primary-color}', 7) `); -@primary-8: color(~`colorPalette('@{primary-color}', 8) `); -@primary-9: color(~`colorPalette('@{primary-color}', 9) `); -@primary-10: color(~`colorPalette('@{primary-color}', 10) `); -@body-background: #fff; -@component-background: #fff; -@popover-background: @component-background; -@popover-customize-border-color: @border-color-split; -@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, - 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', - 'Noto Color Emoji'; -@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; -@text-color: fade(@black, 85%); -@text-color-secondary: fade(@black, 45%); -@text-color-inverse: @white; -@icon-color: inherit; -@icon-color-hover: fade(@black, 75%); -@heading-color: fade(@black, 85%); -@text-color-dark: fade(@white, 85%); -@text-color-secondary-dark: fade(@white, 65%); -@text-selection-bg: @primary-color; -@font-variant-base: tabular-nums; -@font-feature-settings-base: 'tnum'; -@font-size-base: 14px; -@font-size-lg: @font-size-base + 2px; -@font-size-sm: 12px; -@heading-1-size: ceil(@font-size-base * 2.71); -@heading-2-size: ceil(@font-size-base * 2.14); -@heading-3-size: ceil(@font-size-base * 1.71); -@heading-4-size: ceil(@font-size-base * 1.42); -@heading-5-size: ceil(@font-size-base * 1.14); -@line-height-base: 1.5715; -@border-radius-base: 2px; -@border-radius-sm: @border-radius-base; -@padding-lg: 24px; -@padding-md: 16px; -@padding-sm: 12px; -@padding-xs: 8px; -@padding-xss: 4px; -@control-padding-horizontal: @padding-sm; -@control-padding-horizontal-sm: @padding-xs; -@margin-lg: 24px; -@margin-md: 16px; -@margin-sm: 12px; -@margin-xs: 8px; -@margin-xss: 4px; -@height-base: 32px; -@height-lg: 40px; -@height-sm: 24px; -@item-active-bg: @primary-1; -@item-hover-bg: #f5f5f5; -@iconfont-css-prefix: anticon; -@link-color: @primary-color; -@link-hover-color: color(~`colorPalette('@{link-color}', 5) `); -@link-active-color: color(~`colorPalette('@{link-color}', 7) `); -@link-decoration: none; -@link-hover-decoration: none; -@link-focus-decoration: none; -@link-focus-outline: 0; -@ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1); -@ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7); -@ease-out: cubic-bezier(0.215, 0.61, 0.355, 1); -@ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19); -@ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1); -@ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46); -@ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6); -@ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46); -@ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1); -@ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34); -@ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86); -@ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1); -@ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); -@ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1); -@border-color-base: hsv(0, 0, 85%); -@border-color-split: hsv(0, 0, 94%); -@border-color-inverse: @white; -@border-width-base: 1px; -@border-style-base: solid; -@outline-blur-size: 0; -@outline-width: 2px; -@outline-color: @primary-color; -@outline-fade: 20%; -@background-color-light: hsv(0, 0, 98%); -@background-color-base: hsv(0, 0, 96%); -@disabled-color: fade(#000, 25%); -@disabled-bg: @background-color-base; -@disabled-active-bg: tint(@black, 90%); -@disabled-color-dark: fade(#fff, 35%); -@shadow-color: rgba(0, 0, 0, 0.15); -@shadow-color-inverse: @component-background; -@box-shadow-base: @shadow-2; -@shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), - 0 -12px 48px 16px rgba(0, 0, 0, 0.03); -@shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), - 0 12px 48px 16px rgba(0, 0, 0, 0.03); -@shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), - -12px 0 48px 16px rgba(0, 0, 0, 0.03); -@shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), - 12px 0 48px 16px rgba(0, 0, 0, 0.03); -@shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 9px 28px 8px rgba(0, 0, 0, 0.05); -@btn-font-weight: 400; -@btn-border-radius-base: @border-radius-base; -@btn-border-radius-sm: @border-radius-base; -@btn-border-width: @border-width-base; -@btn-border-style: @border-style-base; -@btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015); -@btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045); -@btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12); -@btn-primary-color: #fff; -@btn-primary-bg: @primary-color; -@btn-default-color: @text-color; -@btn-default-bg: @component-background; -@btn-default-border: @border-color-base; -@btn-danger-color: #fff; -@btn-danger-bg: @error-color; -@btn-danger-border: @error-color; -@btn-disable-color: @disabled-color; -@btn-disable-bg: @disabled-bg; -@btn-disable-border: @border-color-base; -@btn-default-ghost-color: @component-background; -@btn-default-ghost-bg: transparent; -@btn-default-ghost-border: @component-background; -@btn-font-size-lg: @font-size-lg; -@btn-font-size-sm: @font-size-base; -@btn-padding-horizontal-base: @padding-md - 1px; -@btn-padding-horizontal-lg: @btn-padding-horizontal-base; -@btn-padding-horizontal-sm: @padding-xs - 1px; -@btn-height-base: @height-base; -@btn-height-lg: @height-lg; -@btn-height-sm: @height-sm; -@btn-line-height: @line-height-base; -@btn-circle-size: @btn-height-base; -@btn-circle-size-lg: @btn-height-lg; -@btn-circle-size-sm: @btn-height-sm; -@btn-square-size: @btn-height-base; -@btn-square-size-lg: @btn-height-lg; -@btn-square-size-sm: @btn-height-sm; -@btn-square-only-icon-size: @font-size-base + 2px; -@btn-square-only-icon-size-sm: @font-size-base; -@btn-square-only-icon-size-lg: @btn-font-size-lg + 2px; -@btn-group-border: @primary-5; -@btn-link-hover-bg: transparent; -@btn-text-hover-bg: rgba(0, 0, 0, 0.018); -@checkbox-size: 16px; -@checkbox-color: @primary-color; -@checkbox-check-color: #fff; -@checkbox-check-bg: @checkbox-check-color; -@checkbox-border-width: @border-width-base; -@checkbox-group-item-margin-right: 8px; -@descriptions-bg: #fafafa; -@descriptions-title-margin-bottom: 20px; -@descriptions-default-padding: @padding-md @padding-lg; -@descriptions-middle-padding: @padding-sm @padding-lg; -@descriptions-small-padding: @padding-xs @padding-md; -@descriptions-item-padding-bottom: @padding-md; -@descriptions-item-trailing-colon: true; -@descriptions-item-label-colon-margin-right: 8px; -@descriptions-item-label-colon-margin-left: 2px; -@descriptions-extra-color: @text-color; -@divider-text-padding: 1em; -@divider-orientation-margin: 5%; -@divider-color: rgba(0, 0, 0, 6%); -@dropdown-selected-color: @primary-color; -@dropdown-menu-submenu-disabled-bg: @component-background; -@empty-font-size: @font-size-base; -@radio-size: 16px; -@radio-top: 0.2em; -@radio-border-width: 1px; -@radio-dot-size: @radio-size - 8px; -@radio-dot-color: @primary-color; -@radio-dot-disabled-color: fade(@black, 20%); -@radio-solid-checked-color: @component-background; -@radio-button-bg: @btn-default-bg; -@radio-button-checked-bg: @btn-default-bg; -@radio-button-color: @btn-default-color; -@radio-button-hover-color: @primary-5; -@radio-button-active-color: @primary-7; -@radio-disabled-button-checked-bg: @disabled-active-bg; -@radio-disabled-button-checked-color: @disabled-color; -@radio-wrapper-margin-right: 8px; -@screen-xs: 480px; -@screen-xs-min: @screen-xs; -@screen-sm: 576px; -@screen-sm-min: @screen-sm; -@screen-md: 768px; -@screen-md-min: @screen-md; -@screen-lg: 992px; -@screen-lg-min: @screen-lg; -@screen-xl: 1200px; -@screen-xl-min: @screen-xl; -@screen-xxl: 1600px; -@screen-xxl-min: @screen-xxl; -@screen-xs-max: (@screen-sm-min - 1px); -@screen-sm-max: (@screen-md-min - 1px); -@screen-md-max: (@screen-lg-min - 1px); -@screen-lg-max: (@screen-xl-min - 1px); -@screen-xl-max: (@screen-xxl-min - 1px); -@grid-columns: 24; -@layout-body-background: #f0f2f5; -@layout-header-background: #001529; -@layout-header-height: 64px; -@layout-header-padding: 0 50px; -@layout-header-color: @text-color; -@layout-footer-padding: 24px 50px; -@layout-footer-background: @layout-body-background; -@layout-sider-background: @layout-header-background; -@layout-trigger-height: 48px; -@layout-trigger-background: #002140; -@layout-trigger-color: #fff; -@layout-zero-trigger-width: 36px; -@layout-zero-trigger-height: 42px; -@layout-sider-background-light: #fff; -@layout-trigger-background-light: #fff; -@layout-trigger-color-light: @text-color; -@zindex-badge: auto; -@zindex-table-fixed: 2; -@zindex-affix: 10; -@zindex-back-top: 10; -@zindex-picker-panel: 10; -@zindex-popup-close: 10; -@zindex-modal: 1000; -@zindex-modal-mask: 1000; -@zindex-message: 1010; -@zindex-notification: 1010; -@zindex-popover: 1030; -@zindex-dropdown: 1050; -@zindex-picker: 1050; -@zindex-popoconfirm: 1060; -@zindex-tooltip: 1070; -@zindex-image: 1080; -@animation-duration-slow: 0.3s; -@animation-duration-base: 0.2s; -@animation-duration-fast: 0.1s; -@collapse-panel-border-radius: @border-radius-base; -@dropdown-menu-bg: @component-background; -@dropdown-vertical-padding: 5px; -@dropdown-edge-child-vertical-padding: 4px; -@dropdown-font-size: @font-size-base; -@dropdown-line-height: 22px; -@label-required-color: @highlight-color; -@label-color: @heading-color; -@form-warning-input-bg: @input-bg; -@form-item-margin-bottom: 24px; -@form-item-trailing-colon: true; -@form-vertical-label-padding: 0 0 8px; -@form-vertical-label-margin: 0; -@form-item-label-font-size: @font-size-base; -@form-item-label-height: @input-height-base; -@form-item-label-colon-margin-right: 8px; -@form-item-label-colon-margin-left: 2px; -@form-error-input-bg: @input-bg; -@input-height-base: @height-base; -@input-height-lg: @height-lg; -@input-height-sm: @height-sm; -@input-padding-horizontal: @control-padding-horizontal - 1px; -@input-padding-horizontal-base: @input-padding-horizontal; -@input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px; -@input-padding-horizontal-lg: @input-padding-horizontal; -@input-padding-vertical-base: max( - (round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) - - @border-width-base, - 3px -); -@input-padding-vertical-sm: max( - (round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) - - @border-width-base, - 0 -); -@input-padding-vertical-lg: ( - ceil(((@input-height-lg - @font-size-lg * @line-height-base) / 2) * 10) / 10 - ) - @border-width-base; -@input-placeholder-color: hsv(0, 0, 75%); -@input-color: @text-color; -@input-icon-color: @input-color; -@input-border-color: @border-color-base; -@input-bg: @component-background; -@input-number-hover-border-color: @input-hover-border-color; -@input-number-handler-active-bg: #f4f4f4; -@input-number-handler-hover-bg: @primary-5; -@input-number-handler-bg: @component-background; -@input-number-handler-border-color: @border-color-base; -@input-addon-bg: @background-color-light; -@input-hover-border-color: @primary-5; -@input-disabled-bg: @disabled-bg; -@input-outline-offset: 0 0; -@input-icon-hover-color: fade(@black, 85%); -@input-disabled-color: @disabled-color; -@mentions-dropdown-bg: @component-background; -@mentions-dropdown-menu-item-hover-bg: @mentions-dropdown-bg; -@select-border-color: @border-color-base; -@select-item-selected-color: @text-color; -@select-item-selected-font-weight: 600; -@select-dropdown-bg: @component-background; -@select-item-selected-bg: @primary-1; -@select-item-active-bg: @item-hover-bg; -@select-dropdown-vertical-padding: @dropdown-vertical-padding; -@select-dropdown-font-size: @dropdown-font-size; -@select-dropdown-line-height: @dropdown-line-height; -@select-dropdown-height: 32px; -@select-background: @component-background; -@select-clear-background: @select-background; -@select-selection-item-bg: @background-color-base; -@select-selection-item-border-color: @border-color-split; -@select-single-item-height-lg: 40px; -@select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; -@select-multiple-item-height-lg: 32px; -@select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2)); -@select-multiple-disabled-background: @input-disabled-bg; -@select-multiple-item-disabled-color: #bfbfbf; -@select-multiple-item-disabled-border-color: @select-border-color; -@cascader-bg: @component-background; -@cascader-item-selected-bg: @primary-1; -@cascader-menu-bg: @component-background; -@cascader-menu-border-color-split: @border-color-split; -@cascader-dropdown-vertical-padding: @dropdown-vertical-padding; -@cascader-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding; -@cascader-dropdown-font-size: @dropdown-font-size; -@cascader-dropdown-line-height: @dropdown-line-height; -@anchor-bg: transparent; -@anchor-border-color: @border-color-split; -@anchor-link-top: 7px; -@anchor-link-left: 16px; -@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left; -@tooltip-max-width: 250px; -@tooltip-color: #fff; -@tooltip-bg: rgba(0, 0, 0, 0.75); -@tooltip-arrow-width: 5px; -@tooltip-distance: @tooltip-arrow-width - 1px + 4px; -@tooltip-arrow-color: @tooltip-bg; -@popover-bg: @component-background; -@popover-color: @text-color; -@popover-min-width: 177px; -@popover-min-height: 32px; -@popover-arrow-width: 6px; -@popover-arrow-color: @popover-bg; -@popover-arrow-outer-color: @popover-bg; -@popover-distance: @popover-arrow-width + 4px; -@popover-padding-horizontal: @padding-md; -@modal-header-padding-vertical: @padding-md; -@modal-header-padding-horizontal: @padding-lg; -@modal-body-padding: @padding-lg; -@modal-header-bg: @component-background; -@modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal; -@modal-header-border-width: @border-width-base; -@modal-header-border-style: @border-style-base; -@modal-header-title-line-height: 22px; -@modal-header-title-font-size: @font-size-lg; -@modal-header-border-color-split: @border-color-split; -@modal-header-close-size: 56px; -@modal-content-bg: @component-background; -@modal-heading-color: @heading-color; -@modal-close-color: @text-color-secondary; -@modal-footer-bg: transparent; -@modal-footer-border-color-split: @border-color-split; -@modal-footer-border-style: @border-style-base; -@modal-footer-padding-vertical: 10px; -@modal-footer-padding-horizontal: 16px; -@modal-footer-border-width: @border-width-base; -@modal-mask-bg: fade(@black, 45%); -@modal-confirm-body-padding: 32px 32px 24px; -@progress-default-color: @processing-color; -@progress-remaining-color: @background-color-base; -@progress-info-text-color: @progress-text-color; -@progress-radius: 100px; -@progress-steps-item-bg: #f3f3f3; -@progress-text-font-size: 1em; -@progress-text-color: @text-color; -@progress-circle-text-font-size: 1em; -@menu-inline-toplevel-item-height: 40px; -@menu-item-height: 40px; -@menu-item-group-height: @line-height-base; -@menu-collapsed-width: 80px; -@menu-bg: @component-background; -@menu-popup-bg: @component-background; -@menu-item-color: @text-color; -@menu-inline-submenu-bg: @background-color-light; -@menu-highlight-color: @primary-color; -@menu-highlight-danger-color: @error-color; -@menu-item-active-bg: @primary-1; -@menu-item-active-danger-bg: @red-1; -@menu-item-active-border-width: 3px; -@menu-item-group-title-color: @text-color-secondary; -@menu-item-vertical-margin: 4px; -@menu-item-font-size: @font-size-base; -@menu-item-boundary-margin: 8px; -@menu-item-padding-horizontal: 20px; -@menu-item-padding: 0 @menu-item-padding-horizontal; -@menu-horizontal-line-height: 46px; -@menu-icon-margin-right: 10px; -@menu-icon-size: @menu-item-font-size; -@menu-icon-size-lg: @font-size-lg; -@menu-item-group-title-font-size: @menu-item-font-size; -@menu-dark-color: @text-color-secondary-dark; -@menu-dark-danger-color: @error-color; -@menu-dark-bg: @layout-header-background; -@menu-dark-arrow-color: #fff; -@menu-dark-inline-submenu-bg: #000c17; -@menu-dark-highlight-color: #fff; -@menu-dark-item-active-bg: @primary-color; -@menu-dark-item-active-danger-bg: @error-color; -@menu-dark-selected-item-icon-color: @white; -@menu-dark-selected-item-text-color: @white; -@menu-dark-item-hover-bg: transparent; -@spin-dot-size-sm: 14px; -@spin-dot-size: 20px; -@spin-dot-size-lg: 32px; -@table-bg: @component-background; -@table-header-bg: @background-color-light; -@table-header-color: @heading-color; -@table-header-sort-bg: @background-color-base; -@table-body-sort-bg: #fafafa; -@table-row-hover-bg: @background-color-light; -@table-selected-row-color: inherit; -@table-selected-row-bg: @primary-1; -@table-body-selected-sort-bg: @table-selected-row-bg; -@table-selected-row-hover-bg: darken(@table-selected-row-bg, 2%); -@table-expanded-row-bg: #fbfbfb; -@table-padding-vertical: 16px; -@table-padding-horizontal: 16px; -@table-padding-vertical-md: (@table-padding-vertical * 3 / 4); -@table-padding-horizontal-md: (@table-padding-horizontal / 2); -@table-padding-vertical-sm: (@table-padding-vertical / 2); -@table-padding-horizontal-sm: (@table-padding-horizontal / 2); -@table-border-color: @border-color-split; -@table-border-radius-base: @border-radius-base; -@table-footer-bg: @background-color-light; -@table-footer-color: @heading-color; -@table-header-bg-sm: @table-header-bg; -@table-font-size: @font-size-base; -@table-font-size-md: @table-font-size; -@table-font-size-sm: @table-font-size; -@table-header-cell-split-color: rgba(0, 0, 0, 0.06); -@table-header-sort-active-bg: rgba(0, 0, 0, 0.04); -@table-fixed-header-sort-active-bg: hsv(0, 0, 96%); -@table-header-filter-active-bg: rgba(0, 0, 0, 0.04); -@table-filter-btns-bg: inherit; -@table-filter-dropdown-bg: @component-background; -@table-expand-icon-bg: @component-background; -@table-selection-column-width: 32px; -@table-sticky-scroll-bar-bg: fade(#000, 35%); -@table-sticky-scroll-bar-radius: 4px; -@tag-default-bg: @background-color-light; -@tag-default-color: @text-color; -@tag-font-size: @font-size-sm; -@tag-line-height: 20px; -@picker-bg: @component-background; -@picker-basic-cell-hover-color: @item-hover-bg; -@picker-basic-cell-active-with-range-color: @primary-1; -@picker-basic-cell-hover-with-range-color: lighten(@primary-color, 35%); -@picker-basic-cell-disabled-bg: rgba(0, 0, 0, 0.04); -@picker-border-color: @border-color-split; -@picker-date-hover-range-border-color: lighten(@primary-color, 20%); -@picker-date-hover-range-color: @picker-basic-cell-hover-with-range-color; -@picker-time-panel-column-width: 56px; -@picker-time-panel-column-height: 224px; -@picker-time-panel-cell-height: 28px; -@picker-panel-cell-height: 24px; -@picker-panel-cell-width: 36px; -@picker-text-height: 40px; -@picker-panel-without-time-cell-height: 66px; -@calendar-bg: @component-background; -@calendar-input-bg: @input-bg; -@calendar-border-color: @border-color-inverse; -@calendar-item-active-bg: @item-active-bg; -@calendar-full-bg: @calendar-bg; -@calendar-full-panel-bg: @calendar-full-bg; -@carousel-dot-width: 16px; -@carousel-dot-height: 3px; -@carousel-dot-active-width: 24px; -@badge-height: 20px; -@badge-height-sm: 14px; -@badge-dot-size: 6px; -@badge-font-size: @font-size-sm; -@badge-font-size-sm: @font-size-sm; -@badge-font-weight: normal; -@badge-status-size: 6px; -@badge-text-color: @component-background; -@badge-color: @highlight-color; -@rate-star-color: @yellow-6; -@rate-star-bg: @border-color-split; -@rate-star-size: 20px; -@rate-star-hover-scale: scale(1.1); -@card-head-color: @heading-color; -@card-head-background: transparent; -@card-head-font-size: @font-size-lg; -@card-head-font-size-sm: @font-size-base; -@card-head-padding: 16px; -@card-head-padding-sm: (@card-head-padding / 2); -@card-head-height: 48px; -@card-head-height-sm: 36px; -@card-inner-head-padding: 12px; -@card-padding-base: 24px; -@card-padding-base-sm: (@card-padding-base / 2); -@card-actions-background: @component-background; -@card-actions-li-margin: 12px 0; -@card-skeleton-bg: #cfd8dc; -@card-background: @component-background; -@card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), - 0 5px 12px 4px rgba(0, 0, 0, 0.09); -@card-radius: @border-radius-base; -@card-head-tabs-margin-bottom: -17px; -@card-head-extra-color: @text-color; -@comment-bg: inherit; -@comment-padding-base: @padding-md 0; -@comment-nest-indent: 44px; -@comment-font-size-base: @font-size-base; -@comment-font-size-sm: @font-size-sm; -@comment-author-name-color: @text-color-secondary; -@comment-author-time-color: #ccc; -@comment-action-color: @text-color-secondary; -@comment-action-hover-color: #595959; -@comment-actions-margin-bottom: inherit; -@comment-actions-margin-top: @margin-sm; -@comment-content-detail-p-margin-bottom: inherit; -@tabs-card-head-background: @background-color-light; -@tabs-card-height: 40px; -@tabs-card-active-color: @primary-color; -@tabs-card-horizontal-padding: ( - (@tabs-card-height - floor(@font-size-base * @line-height-base)) / 2 - ) - @border-width-base @padding-md; -@tabs-card-horizontal-padding-sm: 6px @padding-md; -@tabs-card-horizontal-padding-lg: 7px @padding-md 6px; -@tabs-title-font-size: @font-size-base; -@tabs-title-font-size-lg: @font-size-lg; -@tabs-title-font-size-sm: @font-size-base; -@tabs-ink-bar-color: @primary-color; -@tabs-bar-margin: 0 0 @margin-md 0; -@tabs-horizontal-gutter: 32px; -@tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter; -@tabs-horizontal-margin-rtl: 0 0 0 32px; -@tabs-horizontal-padding: @padding-sm 0; -@tabs-horizontal-padding-lg: @padding-md 0; -@tabs-horizontal-padding-sm: @padding-xs 0; -@tabs-vertical-padding: @padding-xs @padding-lg; -@tabs-vertical-margin: @margin-md 0 0 0; -@tabs-scrolling-size: 32px; -@tabs-highlight-color: @primary-color; -@tabs-hover-color: @primary-5; -@tabs-active-color: @primary-7; -@tabs-card-gutter: 2px; -@tabs-card-tab-active-border-top: 2px solid transparent; -@back-top-color: #fff; -@back-top-bg: @text-color-secondary; -@back-top-hover-bg: @text-color; -@avatar-size-base: 32px; -@avatar-size-lg: 40px; -@avatar-size-sm: 24px; -@avatar-font-size-base: 18px; -@avatar-font-size-lg: 24px; -@avatar-font-size-sm: 14px; -@avatar-bg: #ccc; -@avatar-color: #fff; -@avatar-border-radius: @border-radius-base; -@avatar-group-overlapping: -8px; -@avatar-group-space: 3px; -@avatar-group-border-color: #fff; -@switch-height: 22px; -@switch-sm-height: 16px; -@switch-min-width: 44px; -@switch-sm-min-width: 28px; -@switch-disabled-opacity: 0.4; -@switch-color: @primary-color; -@switch-bg: @component-background; -@switch-shadow-color: fade(#00230b, 20%); -@switch-padding: 2px; -@switch-inner-margin-min: ceil(@switch-height * 0.3); -@switch-inner-margin-max: ceil(@switch-height * 1.1); -@switch-sm-inner-margin-min: ceil(@switch-sm-height * 0.3); -@switch-sm-inner-margin-max: ceil(@switch-sm-height * 1.1); -@pagination-item-bg: @component-background; -@pagination-item-size: @height-base; -@pagination-item-size-sm: 24px; -@pagination-font-family: @font-family; -@pagination-font-weight-active: 500; -@pagination-item-bg-active: @component-background; -@pagination-item-link-bg: @component-background; -@pagination-item-disabled-color-active: @disabled-color; -@pagination-item-disabled-bg-active: @disabled-active-bg; -@pagination-item-input-bg: @component-background; -@pagination-mini-options-size-changer-top: 0px; -@page-header-padding: @padding-lg; -@page-header-padding-vertical: @padding-md; -@page-header-padding-breadcrumb: @padding-sm; -@page-header-content-padding-vertical: @padding-sm; -@page-header-back-color: #000; -@page-header-ghost-bg: inherit; -@page-header-heading-title: @heading-4-size; -@page-header-heading-sub-title: 14px; -@page-header-tabs-tab-font-size: 16px; -@breadcrumb-base-color: @text-color-secondary; -@breadcrumb-last-item-color: @text-color; -@breadcrumb-font-size: @font-size-base; -@breadcrumb-icon-font-size: @font-size-base; -@breadcrumb-link-color: @text-color-secondary; -@breadcrumb-link-color-hover: @primary-5; -@breadcrumb-separator-color: @text-color-secondary; -@breadcrumb-separator-margin: 0 @padding-xs; -@slider-margin: 10px 6px 10px; -@slider-rail-background-color: @background-color-base; -@slider-rail-background-color-hover: #e1e1e1; -@slider-track-background-color: @primary-3; -@slider-track-background-color-hover: @primary-4; -@slider-handle-border-width: 2px; -@slider-handle-background-color: @component-background; -@slider-handle-color: @primary-3; -@slider-handle-color-hover: @primary-4; -@slider-handle-color-focus: tint(@primary-color, 20%); -@slider-handle-color-focus-shadow: fade(@primary-color, 12%); -@slider-handle-color-tooltip-open: @primary-color; -@slider-handle-size: 14px; -@slider-handle-margin-top: -5px; -@slider-handle-shadow: 0; -@slider-dot-border-color: @border-color-split; -@slider-dot-border-color-active: tint(@primary-color, 50%); -@slider-disabled-color: @disabled-color; -@slider-disabled-background-color: @component-background; -@tree-bg: @component-background; -@tree-title-height: 24px; -@tree-child-padding: 18px; -@tree-directory-selected-color: #fff; -@tree-directory-selected-bg: @primary-color; -@tree-node-hover-bg: @item-hover-bg; -@tree-node-selected-bg: @primary-2; -@collapse-header-padding: @padding-sm @padding-md; -@collapse-header-padding-extra: 40px; -@collapse-header-bg: @background-color-light; -@collapse-content-padding: @padding-md; -@collapse-content-bg: @component-background; -@collapse-header-arrow-left: 16px; -@skeleton-color: rgba(190, 190, 190, 0.2); -@skeleton-to-color: shade(@skeleton-color, 5%); -@skeleton-paragraph-margin-top: 28px; -@skeleton-paragraph-li-margin-top: @margin-md; -@skeleton-paragraph-li-height: 16px; -@skeleton-title-height: 16px; -@skeleton-title-paragraph-margin-top: @margin-lg; -@transfer-header-height: 40px; -@transfer-item-height: @height-base; -@transfer-disabled-bg: @disabled-bg; -@transfer-list-height: 200px; -@transfer-item-hover-bg: @item-hover-bg; -@transfer-item-padding-vertical: 6px; -@transfer-list-search-icon-top: 12px; -@message-notice-content-padding: 10px 16px; -@message-notice-content-bg: @component-background; -@wave-animation-width: 6px; -@alert-success-border-color: ~`colorPalette('@{success-color}', 3) `; -@alert-success-bg-color: ~`colorPalette('@{success-color}', 1) `; -@alert-success-icon-color: @success-color; -@alert-info-border-color: ~`colorPalette('@{info-color}', 3) `; -@alert-info-bg-color: ~`colorPalette('@{info-color}', 1) `; -@alert-info-icon-color: @info-color; -@alert-warning-border-color: ~`colorPalette('@{warning-color}', 3) `; -@alert-warning-bg-color: ~`colorPalette('@{warning-color}', 1) `; -@alert-warning-icon-color: @warning-color; -@alert-error-border-color: ~`colorPalette('@{error-color}', 3) `; -@alert-error-bg-color: ~`colorPalette('@{error-color}', 1) `; -@alert-error-icon-color: @error-color; -@alert-message-color: @heading-color; -@alert-text-color: @text-color; -@alert-close-color: @text-color-secondary; -@alert-close-hover-color: @icon-color-hover; -@alert-no-icon-padding-vertical: @padding-xs; -@alert-with-description-no-icon-padding-vertical: @padding-md - 1px; -@alert-with-description-padding-vertical: @padding-md - 1px; -@alert-with-description-padding: @alert-with-description-padding-vertical 15px - @alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size; -@alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2); -@alert-with-description-icon-size: 24px; -@list-header-background: transparent; -@list-footer-background: transparent; -@list-empty-text-padding: @padding-md; -@list-item-padding: @padding-sm 0; -@list-item-padding-sm: @padding-xs @padding-md; -@list-item-padding-lg: 16px 24px; -@list-item-meta-margin-bottom: @padding-md; -@list-item-meta-avatar-margin-right: @padding-md; -@list-item-meta-title-margin-bottom: @padding-sm; -@list-customize-card-bg: @component-background; -@list-item-meta-description-font-size: @font-size-base; -@statistic-title-font-size: @font-size-base; -@statistic-content-font-size: 24px; -@statistic-unit-font-size: 24px; -@statistic-font-family: @font-family; -@drawer-header-padding: @padding-md @padding-lg; -@drawer-body-padding: @padding-lg; -@drawer-bg: @component-background; -@drawer-footer-padding-vertical: @modal-footer-padding-vertical; -@drawer-footer-padding-horizontal: @modal-footer-padding-horizontal; -@drawer-header-close-size: 56px; -@timeline-width: 2px; -@timeline-color: @border-color-split; -@timeline-dot-border-width: 2px; -@timeline-dot-color: @primary-color; -@timeline-dot-bg: @component-background; -@timeline-item-padding-bottom: 20px; -@typography-title-font-weight: 600; -@typography-title-margin-top: 1.2em; -@typography-title-margin-bottom: 0.5em; -@upload-actions-color: @text-color-secondary; -@process-tail-color: @border-color-split; -@steps-nav-arrow-color: fade(@black, 25%); -@steps-background: @component-background; -@steps-icon-size: 32px; -@steps-icon-custom-size: @steps-icon-size; -@steps-icon-custom-top: 0px; -@steps-icon-custom-font-size: 24px; -@steps-icon-top: -0.5px; -@steps-icon-font-size: @font-size-lg; -@steps-icon-margin: 0 8px 0 0; -@steps-title-line-height: @height-base; -@steps-small-icon-size: 24px; -@steps-small-icon-margin: 0 8px 0 0; -@steps-dot-size: 8px; -@steps-dot-top: 2px; -@steps-current-dot-size: 10px; -@steps-description-max-width: 140px; -@steps-nav-content-max-width: auto; -@steps-vertical-icon-width: 16px; -@steps-vertical-tail-width: 16px; -@steps-vertical-tail-width-sm: 12px; -@notification-bg: @component-background; -@notification-padding-vertical: 16px; -@notification-padding-horizontal: 24px; -@result-title-font-size: 24px; -@result-subtitle-font-size: @font-size-base; -@result-icon-font-size: 72px; -@result-extra-margin: 24px 0 0 0; -@image-size-base: 48px; -@image-font-size-base: 24px; -@image-bg: #f5f5f5; -@image-color: #fff; -@image-mask-font-size: 16px; -@image-preview-operation-size: 18px; -@image-preview-operation-color: @text-color-dark; -@image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%); \ No newline at end of file diff --git a/tests/AntDesign.Tests.Js/tests/modules/components/overlay.test.ts b/tests/AntDesign.Tests.Js/tests/modules/components/overlay.test.ts index 1c77b417..8300e3a3 100644 --- a/tests/AntDesign.Tests.Js/tests/modules/components/overlay.test.ts +++ b/tests/AntDesign.Tests.Js/tests/modules/components/overlay.test.ts @@ -220,8 +220,8 @@ const theoryHorizontalCalculationData: Array = [ expected: { position1: 951, position2: -1051 } }, { - coversPlacementScenarios: "TopCenter & Top & BottomCenter & Bottom", - placement: Placement.TopCenter, + coversPlacementScenarios: "Top & Top & Bottom & Bottom", + placement: Placement.Top, position: "left", trigger: { startingPosition: 790, width: 157, domInfoResult: {