2018-06-22 17:05:36 +08:00
|
|
|
@import "color/colors";
|
|
|
|
|
2016-09-09 14:29:19 +08:00
|
|
|
// Prefix
|
|
|
|
@css-prefix : ivu-;
|
2016-09-20 17:10:17 +08:00
|
|
|
@css-prefix-iconfont : ivu-icon;
|
2016-11-11 15:08:12 +08:00
|
|
|
|
2016-09-09 14:29:19 +08:00
|
|
|
// Color
|
2017-05-26 17:29:58 +08:00
|
|
|
@primary-color : #2d8cf0;
|
2016-09-09 14:29:19 +08:00
|
|
|
@info-color : #2db7f5;
|
2017-05-26 17:29:58 +08:00
|
|
|
@success-color : #19be6b;
|
2018-06-21 11:47:10 +08:00
|
|
|
@processing-color : @primary-color;
|
2016-10-31 22:28:13 +08:00
|
|
|
@warning-color : #ff9900;
|
2018-07-02 10:19:33 +08:00
|
|
|
@error-color : #ed4014;
|
2018-06-21 15:04:49 +08:00
|
|
|
@normal-color : #e6ebf1;
|
2017-05-26 17:29:58 +08:00
|
|
|
@link-color : #2D8cF0;
|
2016-09-09 14:29:19 +08:00
|
|
|
@link-hover-color : tint(@link-color, 20%);
|
|
|
|
@link-active-color : shade(@link-color, 5%);
|
2016-10-17 12:34:20 +08:00
|
|
|
@selected-color : fade(@primary-color, 90%);
|
2016-10-26 10:03:16 +08:00
|
|
|
@tooltip-color : #fff;
|
2018-07-02 10:19:33 +08:00
|
|
|
@subsidiary-color : #808695;
|
2017-01-17 11:26:02 +08:00
|
|
|
@rate-star-color : #f5a623;
|
2016-09-09 14:29:19 +08:00
|
|
|
|
|
|
|
// Base
|
|
|
|
@body-background : #fff;
|
|
|
|
@font-family : "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
|
|
|
|
@code-family : Consolas,Menlo,Courier,monospace;
|
2018-07-02 10:19:33 +08:00
|
|
|
@title-color : #17233d;
|
|
|
|
@text-color : #515a6e;
|
2016-09-09 14:29:19 +08:00
|
|
|
@font-size-base : 14px;
|
2016-10-26 10:03:16 +08:00
|
|
|
@font-size-small : 12px;
|
2018-06-20 11:47:36 +08:00
|
|
|
@font-size-large : 16px;
|
2016-09-09 14:29:19 +08:00
|
|
|
@line-height-base : 1.5;
|
|
|
|
@line-height-computed : floor((@font-size-base * @line-height-base));
|
|
|
|
@border-radius-base : 6px;
|
2016-09-15 23:43:50 +08:00
|
|
|
@border-radius-small : 4px;
|
2016-09-20 17:10:17 +08:00
|
|
|
@cursor-disabled : not-allowed;
|
2016-09-15 23:43:50 +08:00
|
|
|
|
|
|
|
// Border color
|
2018-07-02 10:19:33 +08:00
|
|
|
@border-color-base : #dcdee2; // outside
|
|
|
|
@border-color-split : #e8eaec; // inside
|
2018-06-25 10:10:18 +08:00
|
|
|
@border-width-base : 1px; // width of the border for a component
|
|
|
|
@border-style-base : solid; // style of a components border
|
2016-09-15 23:43:50 +08:00
|
|
|
|
|
|
|
// Background color
|
2016-10-17 12:34:20 +08:00
|
|
|
@background-color-base : #f7f7f7; // base
|
|
|
|
@background-color-select-hover: @input-disabled-bg;
|
2016-11-07 18:33:58 +08:00
|
|
|
@tooltip-bg : rgba(70, 76, 91, .9);
|
2016-11-18 14:37:02 +08:00
|
|
|
@head-bg : #f9fafc;
|
2017-05-26 17:29:58 +08:00
|
|
|
@table-thead-bg : #f8f8f9;
|
|
|
|
@table-td-stripe-bg : #f8f8f9;
|
2016-11-24 15:27:46 +08:00
|
|
|
@table-td-hover-bg : #ebf7ff;
|
|
|
|
@table-td-highlight-bg : #ebf7ff;
|
2018-07-02 10:19:33 +08:00
|
|
|
@menu-dark-title : #515a6e;
|
2017-06-30 17:15:37 +08:00
|
|
|
@menu-dark-active-bg : #363e4f;
|
|
|
|
@menu-dark-subsidiary-color : rgba(255,255,255,.7);
|
|
|
|
@menu-dark-group-title-color : rgba(255,255,255,.36);
|
2016-12-14 23:08:57 +08:00
|
|
|
@date-picker-cell-hover-bg : #e1f0fe;
|
2016-09-15 23:43:50 +08:00
|
|
|
|
|
|
|
// Shadow
|
2016-11-08 20:32:20 +08:00
|
|
|
@shadow-color : rgba(0, 0, 0, .2);
|
2016-09-15 23:43:50 +08:00
|
|
|
@shadow-base : @shadow-down;
|
|
|
|
@shadow-card : 0 1px 1px 0 rgba(0,0,0,.1);
|
|
|
|
@shadow-up : 0 -1px 6px @shadow-color;
|
|
|
|
@shadow-down : 0 1px 6px @shadow-color;
|
|
|
|
@shadow-left : -1px 0 6px @shadow-color;
|
|
|
|
@shadow-right : 1px 0 6px @shadow-color;
|
2016-09-09 14:29:19 +08:00
|
|
|
|
2016-09-20 17:10:17 +08:00
|
|
|
// Button
|
2016-11-03 13:54:21 +08:00
|
|
|
@btn-font-weight : normal;
|
2018-07-02 14:57:54 +08:00
|
|
|
@btn-padding-base : 5px 15px 6px;
|
|
|
|
@btn-padding-large : 6px 15px 6px 15px;
|
|
|
|
@btn-padding-small : 1px 7px 2px;
|
2018-07-02 15:23:53 +08:00
|
|
|
@btn-padding-base-icon : 5px 15px 6px;
|
|
|
|
@btn-padding-large-icon : 6px 15px 6px 15px;
|
|
|
|
@btn-padding-small-icon : 1px 7px 2px;
|
2016-09-20 17:10:17 +08:00
|
|
|
@btn-font-size : 12px;
|
|
|
|
@btn-font-size-large : 14px;
|
|
|
|
@btn-border-radius : 4px;
|
|
|
|
@btn-border-radius-small: 3px;
|
|
|
|
@btn-group-border : shade(@primary-color, 5%);
|
|
|
|
|
2018-07-02 10:19:33 +08:00
|
|
|
@btn-disable-color : #c5c8ce;
|
2016-09-20 17:10:17 +08:00
|
|
|
@btn-disable-bg : @background-color-base;
|
|
|
|
@btn-disable-border : @border-color-base;
|
|
|
|
|
|
|
|
@btn-default-color : @text-color;
|
2018-06-26 15:47:32 +08:00
|
|
|
@btn-default-bg : #fff;
|
2016-09-20 17:10:17 +08:00
|
|
|
@btn-default-border : @border-color-base;
|
|
|
|
|
|
|
|
@btn-primary-color : #fff;
|
|
|
|
@btn-primary-bg : @primary-color;
|
|
|
|
|
|
|
|
@btn-ghost-color : @text-color;
|
2018-06-26 15:47:32 +08:00
|
|
|
@btn-ghost-bg : #fff;
|
2016-09-20 17:10:17 +08:00
|
|
|
@btn-ghost-border : @border-color-base;
|
|
|
|
|
2016-11-09 17:36:40 +08:00
|
|
|
@btn-circle-size : 32px;
|
2016-11-01 20:22:38 +08:00
|
|
|
@btn-circle-size-large : 36px;
|
|
|
|
@btn-circle-size-small : 24px;
|
2016-09-20 17:10:17 +08:00
|
|
|
|
2016-09-09 14:29:19 +08:00
|
|
|
// Layout and Grid
|
2017-12-18 18:25:16 +08:00
|
|
|
@grid-columns : 24;
|
|
|
|
@grid-gutter-width : 0;
|
|
|
|
@layout-body-background : #f5f7f9;
|
2018-07-02 10:19:33 +08:00
|
|
|
@layout-header-background : #515a6e;
|
2017-12-18 18:25:16 +08:00
|
|
|
@layout-header-height : 64px;
|
|
|
|
@layout-header-padding : 0 50px;
|
|
|
|
@layout-footer-padding : 24px 50px;
|
|
|
|
@layout-footer-background : @layout-body-background;
|
|
|
|
@layout-sider-background : @layout-header-background;
|
|
|
|
@layout-trigger-height : 48px;
|
|
|
|
@layout-trigger-color : #fff;
|
|
|
|
@layout-zero-trigger-width : 36px;
|
|
|
|
@layout-zero-trigger-height : 42px;
|
2016-09-09 14:29:19 +08:00
|
|
|
|
2016-09-12 11:59:15 +08:00
|
|
|
// Legend
|
|
|
|
@legend-color : #999;
|
|
|
|
|
2016-09-21 16:59:19 +08:00
|
|
|
// Input
|
2016-11-09 17:36:40 +08:00
|
|
|
@input-height-base : 32px;
|
2016-11-08 17:53:04 +08:00
|
|
|
@input-height-large : 36px;
|
|
|
|
@input-height-small : 24px;
|
2016-09-21 16:59:19 +08:00
|
|
|
|
|
|
|
@input-padding-horizontal : 7px;
|
|
|
|
@input-padding-vertical-base : 4px;
|
|
|
|
@input-padding-vertical-small: 1px;
|
|
|
|
@input-padding-vertical-large: 6px;
|
|
|
|
|
2016-11-21 17:03:23 +08:00
|
|
|
@input-placeholder-color : @btn-disable-color;
|
2016-09-21 16:59:19 +08:00
|
|
|
@input-color : @text-color;
|
|
|
|
@input-border-color : @border-color-base;
|
|
|
|
@input-bg : #fff;
|
2018-06-27 11:12:51 +08:00
|
|
|
@input-group-bg : #f8f8f9;
|
2016-09-21 16:59:19 +08:00
|
|
|
|
|
|
|
@input-hover-border-color : @primary-color;
|
|
|
|
@input-focus-border-color : @primary-color;
|
|
|
|
@input-disabled-bg : #f3f3f3;
|
|
|
|
|
2016-09-21 18:44:07 +08:00
|
|
|
// Tag
|
|
|
|
@tag-font-size : 12px;
|
|
|
|
|
2016-12-09 15:42:22 +08:00
|
|
|
// Media queries breakpoints
|
|
|
|
// Extra small screen / phone
|
|
|
|
@screen-xs : 480px;
|
|
|
|
@screen-xs-min : @screen-xs;
|
|
|
|
@screen-xs-max : (@screen-xs-min - 1);
|
|
|
|
|
|
|
|
// Small screen / tablet
|
|
|
|
@screen-sm : 768px;
|
|
|
|
@screen-sm-min : @screen-sm;
|
|
|
|
@screen-sm-max : (@screen-sm-min - 1);
|
|
|
|
|
|
|
|
// Medium screen / desktop
|
|
|
|
@screen-md : 992px;
|
|
|
|
@screen-md-min : @screen-md;
|
|
|
|
@screen-md-max : (@screen-md-min - 1);
|
|
|
|
|
|
|
|
// Large screen / wide desktop
|
|
|
|
@screen-lg : 1200px;
|
|
|
|
@screen-lg-min : @screen-lg;
|
|
|
|
@screen-lg-max : (@screen-lg-min - 1);
|
|
|
|
|
2016-09-09 14:29:19 +08:00
|
|
|
// Z-index
|
2016-09-29 15:47:19 +08:00
|
|
|
@zindex-spin : 8;
|
2016-09-09 14:29:19 +08:00
|
|
|
@zindex-affix : 10;
|
|
|
|
@zindex-back-top : 10;
|
2016-10-17 12:34:20 +08:00
|
|
|
@zindex-select : 900;
|
2016-09-29 15:47:19 +08:00
|
|
|
@zindex-modal : 1000;
|
2018-08-24 11:49:02 +08:00
|
|
|
@zindex-drawer : 1000;
|
2016-09-19 14:50:32 +08:00
|
|
|
@zindex-message : 1010;
|
2016-09-20 09:30:35 +08:00
|
|
|
@zindex-notification : 1010;
|
2016-10-26 10:03:16 +08:00
|
|
|
@zindex-tooltip : 1060;
|
2017-07-20 10:37:12 +08:00
|
|
|
@zindex-transfer : 1060;
|
2016-09-22 13:42:59 +08:00
|
|
|
@zindex-loading-bar : 2000;
|
2017-09-19 14:26:46 +08:00
|
|
|
@zindex-spin-fullscreen : 2010;
|
2016-09-09 14:29:19 +08:00
|
|
|
|
|
|
|
// Animation
|
2016-09-19 14:50:32 +08:00
|
|
|
@animation-time : .3s;
|
2016-09-09 14:29:19 +08:00
|
|
|
@transition-time : .2s;
|
2016-11-11 15:08:12 +08:00
|
|
|
@ease-in-out : ease-in-out;
|
|
|
|
|
|
|
|
// Slider
|
2016-11-11 16:14:25 +08:00
|
|
|
@slider-color : tint(@primary-color, 20%);
|
2016-11-11 15:08:12 +08:00
|
|
|
@slider-height : 4px;
|
|
|
|
@slider-margin : 16px 0;
|
|
|
|
@slider-button-wrap-size : 18px;
|
2017-01-04 14:55:16 +08:00
|
|
|
@slider-button-wrap-offset : -4px;
|
2017-08-15 11:03:20 +08:00
|
|
|
@slider-disabled-color : #ccc;
|
|
|
|
|
|
|
|
// 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;
|
2018-04-12 17:49:55 +08:00
|
|
|
@avatar-border-radius: @border-radius-small;
|
|
|
|
|
|
|
|
// Anchor
|
|
|
|
@anchor-border-width: 2px;
|