// 全局样式变量修改

/** riten主题颜色 **/

// Riten-Base
@riten-default-bg: @main-background-color; // 默认背景色
@riten-layout-bg: #F0F2F5; // 右侧区域底色
@riten-container-bg: #F7F7F7; // 白色背景下色块背景
// Riten-Theme
@riten-nice-blue: #077EF4;
// 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: #EE6A4D;
@riten-color-warn: #FAAD10;
@riten-color-unfinished: #8697A8;
// Riten-Color-Text
@riten-text-color-default: #212122; // 默认颜色
@riten-text-color-content: #333333; // 正文颜色
@riten-text-color-desc: #666666; // 描述文字
@riten-text-color-active: @riten-nice-blue; // a标签颜色
@riten-text-color-weak: #999999; // 辅助文字
@riten-text-color-placeholder: #CCCCCC; // placeholder颜色
@riten-text-color-disabled: #999999; // disabled颜色
// Riten-Color-Scroll
@riten-scroll-bar-color: #CCCCCC;
@riten-scroll-bg: fade(@riten-scroll-bar-color, 20%);;
// Riten-Border-Color
@riten-border-color: #F1F1F1; // 边线
@riten-border-weight-color: #E2E2E2; // 深色边线 || 白色按钮边框色
// Riten-Bg-Color
@riten-bg-color-item-selected: #E6F2FD; // 选中背景色
@riten-bg-color-item-hover: #F7F7F7; // 移入背景色
@riten-bg-color-disabled: #F1F1F1; // 禁用背景颜色
// Riten-Device-Text-Color
@riten-device-text-color-normal: #055FB8;
@riten-device-text-color-fire: #AF3F3F;
@riten-device-text-color-warn: #E15E1F;
@riten-device-text-color-fault: #D1910E;
@riten-device-text-color-shield: #999999;
@riten-device-text-color-start: #5D2891;
@riten-device-text-color-feedback: #177087;
// Riten-Device-Color
@riten-device-color-normal: #3495F5;
@riten-device-color-fire: #EE6A4D;
@riten-device-color-warn: #FD8C5B;
@riten-device-color-fault: #FDC450;
@riten-device-color-shield: #CCCCCC;
@riten-device-color-start: #AD7AE1;
@riten-device-color-feedback: #55BCD6;

/** riten主题颜色 **/

/*主题背景*/
@main-background-color: #FFFFFF;

/*字体颜色*/
@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-default-bg;
@btn-default-border: @riten-border-weight-color;
@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:@riten-border-weight-color;
@input-placeholder-color:@riten-text-color-placeholder;
@input-color:@riten-text-color-default;
@input-disabled-bg: @riten-bg-color-disabled;

// 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: @riten-border-weight-color;
@select-item-selected-color: @riten-nice-blue;
@select-item-selected-font-weight: normal;
@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-selected;
@select-item-selected-bg: @riten-bg-color-item-selected;

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

// 边线色 覆盖
@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;

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