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
|
2016-10-31 22:28:13 +08:00
|
|
|
@primary-color : #3399ff;
|
2016-09-09 14:29:19 +08:00
|
|
|
@info-color : #2db7f5;
|
2016-10-31 22:28:13 +08:00
|
|
|
@success-color : #00cc66;
|
|
|
|
@warning-color : #ff9900;
|
2016-09-09 14:29:19 +08:00
|
|
|
@error-color : #ff5500;
|
2016-10-31 22:28:13 +08:00
|
|
|
@link-color : #3399ff;
|
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;
|
2016-11-08 17:53:04 +08:00
|
|
|
@subsidiary-color : #9ea7b4;
|
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;
|
2016-11-02 15:38:37 +08:00
|
|
|
@title-color : #464c5b;
|
2016-10-31 22:28:13 +08:00
|
|
|
@text-color : #657180;
|
2016-09-09 14:29:19 +08:00
|
|
|
@font-size-base : 14px;
|
2016-10-26 10:03:16 +08:00
|
|
|
@font-size-small : 12px;
|
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
|
2016-10-31 22:28:13 +08:00
|
|
|
@border-color-base : #d7dde4; // outside
|
|
|
|
@border-color-split : #e3e8ee; // inside
|
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;
|
2016-11-24 15:27:46 +08:00
|
|
|
@table-thead-bg : #f5f7f9;
|
|
|
|
@table-td-stripe-bg : #f5f7f9;
|
|
|
|
@table-td-hover-bg : #ebf7ff;
|
|
|
|
@table-td-highlight-bg : #ebf7ff;
|
2016-12-08 14:13:17 +08:00
|
|
|
@menu-dark-active-bg : #313540;
|
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;
|
2016-11-09 17:36:40 +08:00
|
|
|
@btn-padding-base : 6px 15px;
|
2016-11-01 17:01:59 +08:00
|
|
|
@btn-padding-large : 6px 15px 7px 15px;
|
|
|
|
@btn-padding-small : 2px 7px;
|
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%);
|
|
|
|
|
2016-10-31 22:28:13 +08:00
|
|
|
@btn-disable-color : #c3cbd6;
|
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;
|
|
|
|
@btn-default-bg : @background-color-base;
|
|
|
|
@btn-default-border : @border-color-base;
|
|
|
|
|
|
|
|
@btn-primary-color : #fff;
|
|
|
|
@btn-primary-bg : @primary-color;
|
|
|
|
|
|
|
|
@btn-ghost-color : @text-color;
|
|
|
|
@btn-ghost-bg : transparent;
|
|
|
|
@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
|
|
|
|
@grid-columns : 24;
|
|
|
|
@grid-gutter-width : 0;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
@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;
|
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;
|
2016-09-22 13:42:59 +08:00
|
|
|
@zindex-loading-bar : 2000;
|
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;
|
|
|
|
@slider-button-wrap-offset : -5px;
|
|
|
|
@slider-disabled-color : #ccc;
|