// Riten-Base
@riten-default-bg: @main-background-color; // 默认背景色
@riten-layout-bg: #161C35; // 右侧区域底色
@riten-container-bg: #1D233B; // 白色背景下色块背景
@riten-card-bg: #102154; // 亮蓝色卡片底色
// Riten-Theme
@riten-nice-blue: #82BEFB;
// Riten-FontSize
@riten-font-size-12: 0.857rem;
@riten-font-size-13: 0.929rem;
@riten-font-size-14: 1rem;
@riten-font-size-15: 1.071rem;
@riten-font-size-16: 1.143rem;
@riten-font-size-18: 1.286rem;
@riten-font-size-20: 1.429rem;
// Riten-Color * 待完善
@riten-color-success: #27BF6B;
@riten-color-pending: @riten-nice-blue;
@riten-color-error: #C03632;
@riten-color-warn: #FAAD10;
@riten-color-unfinished: #8697A8;
// Riten-Color-Text
@riten-text-color-default: #FFFFFF; // 默认颜色
@riten-text-color-content: #CCCCCC; // 正文颜色
@riten-text-color-desc: fade(@riten-text-color-default, 60%); // 描述文字
@riten-text-color-active: @riten-nice-blue; // a标签颜色
@riten-text-color-weak: fade(@riten-text-color-default, 40%); // 辅助文字
@riten-text-color-placeholder: #CCCCCC; // placeholder颜色
@riten-text-color-disabled: #9DAFC0; // disabled颜色
// Riten-Color-Scroll
@riten-scroll-bar-color: #404658;
@riten-scroll-bg: #161E34;
// Riten-Border-Color
@riten-border-color: #1E263B; // 边线
@riten-border-weight-color: @riten-nice-blue; // 深色边线 || 白色按钮边框色
// Riten-Bg-Color
@riten-bg-color-item-selected: @riten-nice-blue; // 选中背景色
@riten-bg-color-item-hover: fade(@riten-nice-blue, 80%); // 移入背景色
@riten-bg-color-disabled: fade(@riten-nice-blue, 40%); // 禁用背景颜色
// Riten-Device-Text-Color
@riten-device-text-color-normal: #3164B1;
@riten-device-text-color-fire: #C03632;
@riten-device-text-color-warn: #D66B38;
@riten-device-text-color-fault: #D3AC3B;
@riten-device-text-color-offline: #A4A6AB;
@riten-device-text-color-maintain: #40485F;
@riten-device-text-color-shield: #40485F;
@riten-device-text-color-start: #5D2891;
@riten-device-text-color-feedback: #177087;
// Riten-Device-Color
@riten-device-color-normal: @riten-device-text-color-normal;
@riten-device-color-fire: @riten-device-text-color-fire;
@riten-device-color-warn: @riten-device-text-color-warn;
@riten-device-color-fault: @riten-device-text-color-fault;
@riten-device-color-offline: @riten-device-text-color-offline;
@riten-device-color-maintain: @riten-device-text-color-maintain;
@riten-device-color-shield: @riten-device-text-color-shield;
@riten-device-color-start: @riten-device-text-color-start;
@riten-device-color-feedback: @riten-device-text-color-feedback;

/** riten主题颜色 **/

/*主题背景*/
@main-background-color: linear-gradient(180deg, #181E37 0%, #030C24 100%);  ;

/*字体颜色*/
@title-text-color: @riten-text-color-content;
@title-text-black-color: @riten-text-color-default;
@text-color-warn: @riten-color-error;

// BASE
@text-color: @riten-text-color-default;
@text-color-secondary: @riten-text-color-content;
@icon-color: inherit;
@icon-color-hover: @riten-text-color-content;
//@heading-color: fade(#000, 85%);
//@heading-color-dark: fade(@white, 100%);
//@text-color-dark: fade(@white, 85%);
//@text-color-secondary-dark: fade(@white, 65%);

// Color
@primary-color: @riten-nice-blue;
@primary-text-color: @riten-text-color-default;

// Border color
@border-color-base: @riten-border-weight-color;
@border-radius-base: 2px;

// Button
@btn-height-base: 32px;
@btn-default-bg: @riten-card-bg;
@btn-default-border: #214282;
@btn-default-color: @riten-text-color-default;
@btn-border-radius-base: 2px;
@btn-border-radius-sm: 2px;
@btn-disable-color: #8697A8;
//@btn-default-bg: #FFFFFF;
//@btn-default-border:  #DCDFE6;
@btn-height-sm: 26px;
@btn-padding-base: 0 12px;

// Checkbox
@checkbox-color: #077EF4;

// Radio
@radio-dot-color: #077EF4;

//Input
@input-height-base: 32px;
@input-border-color: fade(@riten-nice-blue, 30%);
@input-placeholder-color: @riten-text-color-placeholder;
@input-color: @riten-text-color-default;
@input-bg: @riten-card-bg;
@input-disabled-bg: fade(@riten-card-bg, 30%);

// TressSelect
@disabled-background-color: #F3F3F3;
@placeholder-color: @riten-text-color-placeholder;
@validate-fail-color: @riten-color-error;

// Cascader
@cascader-dropdown-vertical-padding: 0;
@cascader-dropdown-edge-child-vertical-padding: 0.571rem; // 8px
@cascader-dropdown-font-size: @riten-font-size-14;
@cascader-dropdown-line-height: 2.286rem; // 32px
@cascader-dropdown-selected-font-weight: normal;
@cascader-dropdown-selected-font-color: @riten-nice-blue;
@cascader-dropdown-selected-hover-bg: @riten-bg-color-item-selected;

// Select
@select-border-color: fade(@riten-nice-blue, 30%);
@select-item-selected-color: @riten-text-color-default;
@select-item-selected-font-weight: normal;
@select-dropdown-bg: @riten-card-bg;
@select-dropdown-vertical-padding: 0;
@select-dropdown-edge-child-vertical-padding: 0.571rem; // 8px
@select-dropdown-font-size: @riten-font-size-14;
@select-dropdown-line-height: 2.857rem; // 40px
@select-item-active-bg: @riten-bg-color-item-hover;
@select-item-selected-bg: @riten-nice-blue;
@select-background: @riten-card-bg;

// 选中项、移入项背景色覆盖
@item-active-bg: @riten-bg-color-item-hover;
@item-hover-bg: @riten-bg-color-item-hover;

// Select图标颜色
@disabled-color: @riten-text-color-content;

// 边线色 覆盖
@border-color-split: @riten-border-color;

// table
@table-header-bg: @riten-layout-bg;
@table-header-color: @riten-text-color-default;
@table-padding-vertical: 0;
@table-padding-horizontal: 20px;
@table-selected-row-bg: @riten-bg-color-item-selected;
@table-row-hover-bg: @riten-bg-color-item-selected;
@table-body-selected-sort-bg: @riten-bg-color-item-selected;
@table-selected-row-hover-bg: @riten-bg-color-item-selected;
@table-thead-bg: @riten-default-bg;
@table-td-stripe-bg: @riten-layout-bg;

// Animation
@animation-time         : 0.3s;
@animation-time-quick   : 0.15s;
@transition-time        : 0.2s;
@ease-in-out            : ease-in-out;

/* 消息提示背景色 */
.ant-message-notice-content{
  background: #1D233B;
}

/* animation/index内，重写make-motion方法，解决animation-name: ~"@{keyframeName}In";问题 */
.motion-common(@time) {
  animation-duration: @time;
  animation-fill-mode: both;
}

.make-motion(@className, @keyframeName, @time) {
  .@{className}-enter-active, .@{className}-appear {
    .motion-common(@time);
    animation-play-state: paused;
  }
  .@{className}-leave-active {
    .motion-common(@time);
    animation-play-state: paused;
  }
  .@{className}-enter-active, .@{className}-appear {
    animation-name: "@{keyframeName}In";
    animation-play-state: running;
  }
  .@{className}-leave-active {
    animation-name: "@{keyframeName}Out";
    animation-play-state: running;
  }
}
