iview/src/styles/themes/default/custom.less

121 lines
3.6 KiB
Text
Raw Normal View History

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-09-09 14:29:19 +08:00
// Color
@primary-color : #3399ff;
2016-09-09 14:29:19 +08:00
@info-color : #2db7f5;
@success-color : #00cc66;
@warning-color : #ff9900;
2016-09-09 14:29:19 +08:00
@error-color : #ff5500;
@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%);
@selected-color : fade(@primary-color, 90%);
@tooltip-color : #fff;
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;
@title-color : #464c5b;
@text-color : #657180;
2016-09-09 14:29:19 +08:00
@font-size-base : 14px;
@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
@border-color-base : #d7dde4; // outside
@border-color-split : #e3e8ee; // inside
2016-09-15 23:43:50 +08:00
// Background color
@background-color-base : #f7f7f7; // base
@background-color-select-hover: @input-disabled-bg;
@tooltip-bg : #373737;
2016-09-15 23:43:50 +08:00
// Shadow
@shadow-color : rgba(100, 100, 100, .2);
@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
@btn-font-weight : 400;
@btn-padding-base : 4px 15px;
@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%);
@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;
@btn-circle-size : 28px;
@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;
// Legend
@legend-color : #999;
2016-09-21 16:59:19 +08:00
// Input
@input-height-base : 28px;
@input-height-large : 32px;
@input-height-small : 22px;
@input-padding-horizontal : 7px;
@input-padding-vertical-base : 4px;
@input-padding-vertical-small: 1px;
@input-padding-vertical-large: 6px;
@input-placeholder-color : #ccc;
@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-09-09 14:29:19 +08:00
// Z-index
@zindex-spin : 8;
2016-09-09 14:29:19 +08:00
@zindex-affix : 10;
@zindex-back-top : 10;
@zindex-select : 900;
@zindex-modal : 1000;
@zindex-message : 1010;
@zindex-notification : 1010;
@zindex-tooltip : 1060;
@zindex-loading-bar : 2000;
2016-09-09 14:29:19 +08:00
// Animation
@animation-time : .3s;
2016-09-09 14:29:19 +08:00
@transition-time : .2s;
@ease-in-out : ease-in-out;