/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
@import "../color/colors"; // 遗留

// The prefix to use on all css classes from dt.
@dt-prefix              : dt;

// -------- Colors -----------
@primary-1              : #ebf9fe; // 主色主要 遗留 10% 左右
@primary-color          : #00b4ed; // 主色主要
@primary-color-1        : #19A8DE; // 主色次要 hover
@primary-color-b        : #00b4ed; // 主色第二种命名，区别green
@primary-color-b1       : #19A8DE; // 主色第二种命名，区别green hover
@primary-2              : #19A8DE; // 主色次要 遗留 calendar background
@primary-4              : #19A8DE; // 主色次要 遗留 table hover
@primary-5              : #00b4ed; // 主色次要 遗留 hover
@primary-6              : #19A8DE; // 主色次要 遗留 background
@primary-7              : #19A8DE; // 主色次要 遗留 active
@primary-color-g        : #6FBA2C; // 主色 green
@primary-color-g1       : #64B022; // 主色 green hover

// info color
@success-color          : #33C358;
@success-color-1        : fade(@success-color, 10%);
@warning-color          : #F7A500;
@warning-color-1        : fade(@warning-color, 10%);
@danger-color           : #F54747;
@danger-color-1         : fade(@danger-color, 10%);
@error-color            : @danger-color; // unused
@highlight-color        : @danger-color; // unused
@info-color             : #0CA6FF;
@info-color-1           : fade(@info-color, 10%);
@processing-color       : @primary-color; // unused
@normal-color           : #d9d9d9; // unused

// 字体
@font-family-no-number  : "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
@font-family            : "Helvetica Neue", Helvetica, Arial, "Monospaced Number", @font-family-no-number;
@code-family            : Consolas, Menlo, Courier, monospace;
@heading-color          : #101010;
@text-color             : #333;
@text-color-secondary   : #505050;
@text-color-assist-1    : #666;
@text-color-assist-2    : #999;
@text-color-assist-3    : #b6b6b6;
@text-color-disable     : #ccc;
@text-color-link        : #2687D0; // unused

// 边框
@border-color           : #c5c5c5;
@table-border-color     : #dcdcdc;
@form-border-color      : #dcdcdc;
@other-border-color     : #e7e7e7;

// Background color for `<body>`
@body-background        : #edeff0;
// Base background color for most components
@component-background   : #fff;
// @bg2-background   : #e7e7e7;
@title-content-background     : #f3f3f3;
@heading-color-dark     : fade(#fff, 100%);
@text-color-dark        : fade(#fff,85%);
@text-color-secondary-dark : fade(#fff, 65%);
@font-size-base         : 14px;
@font-size-lg           : @font-size-base + 2px;
@font-size-sm           : 12px;
@line-height-base       : 1.5;
@border-radius-base     : 4px;
@border-radius-sm       : 4px;

// 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

// vertical padding for all form controls
@control-padding-horizontal: @padding-sm;
@control-padding-horizontal-sm: @padding-xs;

// The background colors for active and hover states for things like
// list items or table cells.
@item-active-bg         : @primary-1;
@item-hover-bg          : @primary-1;

// ICONFONT, 用于组件内部, 如果icon变更, 注意修改这里的值
@iconfont-css-prefix    : icon;
@dtdicon-css-prefix     : dtdicon;
@icon-url               : "./iconfont/iconfont";
@dtdicon-url            : "./dtdicon/iconfont";
@icon-loading           : "\e6b6"; // loading: e6b6; loading-small: e656
@icon-left              : "\e633";
@icon-right             : "\e63a";
@icon-up                : "\e613";
@icon-down              : "\e612";
@icon-caret-right       : "\e638";
@icon-caret-down        : "\e611";
@icon-calendar          : "\e635";
@icon-plus              : "\e640"; // input-number
@icon-minus             : "\e63f"; // input-number
@icon-check             : "\e642";
@icon-check-circle      : "\e622";
@icon-exclamation-circle: "\e620";
@icon-close             : "\e618";
@icon-close-circle      : "\e659"; // time-picker
@icon-clock-circle-o    : "\e655";
@icon-minus-square-o    : "\e6c3";
@icon-plus-square-o     : "\e6d3";
@icon-file              : "\ee97";

// LINK
@link-color             : #2687d0;
@link-hover-color       : @link-color;
@link-active-color      : @link-color;
@link-decoration        : none;
@link-hover-decoration  : underline; // underline?

// Animation
@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-base-in        : cubic-bezier(0.9, 0, 0.3, 0.7);
@ease-base-out       : cubic-bezier(0.7, 0.3, 0.1, 1);
@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      : #d8d8d8;  // base border outline a component
@border-color-split     : #dcdcdc;  // split border inside a component
@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;
@background-color-light : #f3f3f3; // 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            : #f7f7f7;
@disabled-color-dark    : fade(#fff, 35%);

// Shadow
@shadow-color           : rgba(0, 0, 0, .15);
@box-shadow-base        : @shadow-1-down;
@shadow-1-up            : 0 2px 8px @shadow-color;
@shadow-1-down          : 0 2px 8px @shadow-color;
@shadow-1-left          : -2px 0 8px @shadow-color;
@shadow-1-right         : 2px 0 8px @shadow-color;
@shadow-2               : 0 4px 12px @shadow-color;

// Buttons
@btn-font-weight        : 400;
@btn-border-radius-base : 4px;
@btn-border-radius-sm   : 4px;
@btn-border-radius-mini : 4px;

@btn-primary-color      : #fff;
@btn-primary-bg         : @primary-color;

@btn-default-color      : @text-color;
@btn-default-bg         : #fff;
@btn-default-border     : @border-color-base;

@btn-danger-color       : @error-color;
@btn-danger-bg          : #f3f3f3;
@btn-danger-border      : #dcdcdc;

@btn-disable-color      : #f9f9f9;
@btn-disable-bg         : #ccc;
@btn-disable-border     : #ccc;

@btn-padding-base       : 0 @padding-md - 1px;
@btn-font-size-lg       : @font-size-lg;
@btn-font-size-sm       : @font-size-base;
@btn-font-size-mini     : @font-size-base;
@btn-padding-lg         : @btn-padding-base;
@btn-padding-sm         : 0 @padding-sm - 1px;
@btn-padding-mini       : 0 @padding-xs - 1px;

@btn-height-lg          : 40px;
@btn-height-base        : 32px;
@btn-height-sm          : 28px;
@btn-height-mini        : 24px;

@btn-circle-size        : @btn-height-base;
@btn-circle-size-lg     : @btn-height-lg;
@btn-circle-size-sm     : @btn-height-sm;
@btn-circle-size-mini   : @btn-height-mini;

@btn-group-border       : #00ace2;

// Checkbox
@checkbox-size          : 14px;
@checkbox-color         : @primary-color;
@checkbox-radius        : 2px;
@checkbox-check-color   : #fff;

// Radio
@radio-size             : 14px;
@radio-dot-color        : @primary-color;
@radio-dot-size         : 6px;

// Radio buttons
@radio-button-bg           : @btn-default-bg;
@radio-button-color        : @btn-default-color;
@radio-button-hover-color  : @primary-5;
@radio-button-active-color : @primary-7;

// Media queries breakpoints
// Extra small screen / phone
@screen-xs              : 480px;
@screen-xs-min          : @screen-xs;

// 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 descktop
@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;
@grid-gutter-width      : 0;

// Layout
@layout-body-background      : #edeff0;
@layout-header-background    : #2c3c4c;
@layout-footer-background    : @layout-body-background;
@layout-header-height        : 60px;
@layout-header-padding       : 0 50px;
@layout-footer-padding       : 24px 50px;
@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;

// z-index list
@zindex-affix           : 10;
@zindex-back-top        : 10;
@zindex-modal-mask      : 1000;
@zindex-modal           : 1000;
@zindex-notification    : 1010;
@zindex-message         : 1010;
@zindex-popover         : 1030;
@zindex-picker          : 1050;
@zindex-dropdown        : 1050;
@zindex-tooltip         : 1060;

// Animation
@animation-duration-slow: .3s; // Modal
@animation-duration-base: .2s;
@animation-duration-fast: .1s; // Tooltip

// Form
// ---
@label-required-color        : @highlight-color;
@label-color                 : #999;
@form-item-margin-bottom     : 24px;
@form-item-trailing-colon    : true;
@form-vertical-label-padding : 0 0 8px;
@form-vertical-label-margin  : 0;

// Input
// ---
@input-height-base           : 32px;
@input-height-lg             : 40px;
@input-height-sm             : 24px;
@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 : 4px;
@input-padding-vertical-sm   : 1px;
@input-padding-vertical-lg   : 6px;
@input-placeholder-color     : #b6b6b6;
@input-color                 : #666;
@input-border-color          : #d8d8d8;
@input-bg                    : #fff;
@input-addon-bg              : @background-color-light;
@input-hover-border-color    : @primary-color;
@input-disabled-bg           : @disabled-bg;

// Tooltip
// ---
//* Tooltip max width
@tooltip-max-width: 250px;
//** Tooltip text color
@tooltip-color: #fff;
//** Tooltip background color
@tooltip-bg: rgba(43, 59, 75, .8);
//** Tooltip arrow width
@tooltip-arrow-width: 5px;
//** Tooltip distance with trigger
@tooltip-distance: 5px;
//** Tooltip arrow color
@tooltip-arrow-color: @tooltip-bg;
//** Tooltip border radius
@tooltip-border-radius: 0;
//** Tooltip min height
@tooltip-min-height: 24px;

// Popover
// ---
//** Popover body background color
@popover-bg: #fff;
//** Popover text color
@popover-color: #666;
//** Popover maximum width
@popover-min-width: 177px;
//** Popover arrow width
@popover-arrow-width: 5px;
//** 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-heading-color: #2b3b4b;
@popover-heading-bg-color: @disabled-bg;
@popover-error-shadow: 0 2px 8px @error-color;
@popover-padding: 16px;
@popover-padding-sm: 8px;

// Modal
// --
@modal-mask-bg: fade(#333, 40%);
@modal-border-radius: 4px;

// Progress
// --
@progress-default-color: @processing-color;
@progress-remaining-color: #e5e9ee;
@progress-text-color: #24344e;

// Menu
// ---
@menu-inline-toplevel-item-height: 40px;
@menu-item-height: 40px;
@menu-collapsed-width: 60px;
@menu-bg: @component-background;
@menu-item-color: @text-color;
@menu-highlight-color: @primary-color;
@menu-item-active-bg: @item-active-bg;
@menu-item-group-title-color: @text-color-secondary;
// dark theme
@menu-dark-color: @text-color-secondary-dark;
@menu-dark-bg: @layout-header-background;
@menu-dark-arrow-color: #fff;
@menu-dark-submenu-bg: #2c3c4c;
@menu-dark-highlight-color: #fff;
@menu-dark-item-selected-bg: @primary-color;

// Spin
// ---
@spin-dot-size-sm: 10px;
@spin-dot-size: 16px;
@spin-dot-size-lg: 22px;

// Table
// --
@table-header-bg: @background-color-light;
@table-header-sort-bg: @background-color-base;
@table-row-hover-bg: #f4fafd;
@table-selected-row-bg: none;
@table-padding-vertical: 9px;
@table-padding-horizontal: 10px;

// Tag
// --
@tag-default-bg: @background-color-light;
@tag-default-color: @text-color;
@tag-font-size: @font-size-sm;

// TimePicker
// ---
@time-picker-panel-column-width: 50px;
@time-picker-panel-width: @time-picker-panel-column-width * 3;
@time-picker-selected-bg: @background-color-base;

// Carousel
// ---
@carousel-dot-width: 16px;
@carousel-dot-height: 3px;
@carousel-dot-active-width: 24px;

// Badge
// ---
@badge-height: 18px;
@badge-dot-size: 6px;
@badge-font-size: @font-size-sm;
@badge-font-weight: normal;
@badge-status-size: 10px;

@badge-success: @success-color;
@badge-processing: @processing-color;
@badge-error: @error-color;
@badge-warning: @warning-color;
@badge-default: #666;

@badge-success-bg: #6dcc50;
@badge-processing-bg: @badge-processing;
@badge-error-bg: #ff625c;
@badge-warning-bg: #f2c200;
@badge-default-bg: #a4a4a7;

@badge-success-border-color: #2dc12d;
@badge-processing-border-color: darken(@badge-processing, 1%);
@badge-error-border-color: #ff3930;
@badge-warning-border-color: #ebb700;
@badge-default-border-color: #8e8e91;

// Rate
// ---
@rate-star-color: #f7a500;
@rate-star-bg: @border-color-split;

// Card
// ---
@card-head-color: @heading-color;
@card-head-background: #fff;
@card-head-padding: 8px;
@card-inner-head-padding: 12px;
@card-padding-base: 20px;
@card-padding-wider: 32px;
@card-actions-background: #f5f8fa;
@card-shadow: 0 2px 8px rgba(0, 0, 0, .09);

// Tabs
// ---
@tabs-card-head-background: @background-color-light;
@tabs-card-height: 40px;
@tabs-card-active-color: @primary-color;
@tabs-title-font-size: @font-size-base;
@tabs-ink-bar-bg-color: @primary-color;
@tab-bar-margin: 0 0 16px 0;
@tab-horizontal-margin: 0 32px 0 0;
@tab-vertical-margin: 0 0 16px 0;
@tab-horizontal-padding: 12px 16px;
@tab-vertical-padding: 8px 24px;
@tab-scrolling-size: 32px;
@tab-highlight-color: @primary-color;
@tab-hover-color: @primary-5;
@tab-active-color: @primary-7;

// 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;

// Switch
// ---
@switch-height: 20px;
@switch-sm-height: 12px;
@switch-disabled-opacity: 0.4;
@switch-color: #68b326;
@switch-close-color: #ccd0d6;
@switch-disabled-close-color: #f7f7f7;
@switch-disabled-font-color: @border-color-base;

// Pagination
// ---
@pagination-item-size: 32px;
@pagination-item-size-sm: 24px;
@pagination-font-family: Arial;

// Breadcrumb
// ---
@breadcrumb-base-color:        #bbb;
@breadcrumb-last-item-color:   #333;
@breadcrumb-font-size:         @font-size-base;
@breadcrumb-icon-font-size:    @font-size-lg;
@breadcrumb-link-color:        @text-color-secondary;
@breadcrumb-link-color-hover:  #2687d0;
@breadcrumb-separator-color:   #bbb;
@breadcrumb-separator-margin:  0 @padding-xs;

// Slider
// ---
@slider-margin:                       14px 6px 10px;
@slider-rail-background-color:        @background-color-base;
@slider-rail-background-color-hover:  #e1e1e1;
@slider-track-background-color:       @primary-color;
@slider-track-background-color-hover: @primary-color;
@slider-handle-color:                 @primary-color;
@slider-handle-color-hover:           @primary-color;
@slider-handle-color-focus:           tint(@primary-color, 20%);
@slider-handle-color-focus-shadow:    tint(@primary-color, 50%);
@slider-handle-color-tooltip-open:    @primary-color;
@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
// ---
@tree-title-height:                   24px;
@tree-child-padding:                  18px;
@tree-directory-selected-color:       @text-color;
@tree-directory-selected-bg:          @primary-1;

// Timeline
@timeline-base-padding:               20px;
@timeline-right-padding:              24px;
@timeline-wait-color:              #e5e9ee;

// Transfer
@transfer-color-base:                             #666;
@transfer-font-size-base:                         @font-size-base;
@transfer-text-color:                             #666;
@transfer-border-width-base:                      @border-width-base;
@transfer-border-style-base:                      @border-style-base;
@transfer-border-color-base:                      @border-color-base;
@transfer-border-color-hover:                     @primary-color;
@transfer-border-radius-base:                     @border-radius-base;
@transfer-list-width:                             180px;
@transfer-list-height:                            206px;
@transfer-list-header-height:                     39px;
@transfer-list-footer-height:                     36px;
@transfer-list-search-margin:                     2px;
@transfer-list-search-height:                     @input-height-base;
@transfer-list-search-action-color:               #d8d8d8;
@transfer-list-header-padding-vertical:           8px;
@transfer-list-padding-horizontal:                10px;
@transfer-list-checkbox-text-padding:             10px;
@transfer-list-item-padding-vertical:             5px;
@transfer-list-item-height:                       26px;
@transfer-list-item-background-hover:             @primary-1;
@transfer-list-not-found-color:                   #999;
@transfer-list-item-color-disabled:               #ccc;
@transfer-list-item-color-checked:                @primary-color;
