Blame view

src/styles/themes/default/custom.less 4.83 KB
7fa943eb   梁灏   init
1
2
  // Prefix
  @css-prefix             : ivu-;
e1596b7e   梁灏   add Button UI
3
  @css-prefix-iconfont    : ivu-icon;
69576f47   梁灏   add Slider component
4
  
7fa943eb   梁灏   init
5
  // Color
d2203972   梁灏   add gutter to Row...
6
  @primary-color          : #3399ff;
7fa943eb   梁灏   init
7
  @info-color             : #2db7f5;
d2203972   梁灏   add gutter to Row...
8
9
  @success-color          : #00cc66;
  @warning-color          : #ff9900;
7fa943eb   梁灏   init
10
  @error-color            : #ff5500;
d2203972   梁灏   add gutter to Row...
11
  @link-color             : #3399ff;
7fa943eb   梁灏   init
12
13
  @link-hover-color       : tint(@link-color, 20%);
  @link-active-color      : shade(@link-color, 5%);
e355dd49   梁灏   add Select Component
14
  @selected-color         : fade(@primary-color, 90%);
dce3e753   梁灏   add Tooltip compo...
15
  @tooltip-color          : #fff;
0f822c9b   梁灏   add Input component
16
  @subsidiary-color       : #9ea7b4;
7fa943eb   梁灏   init
17
18
19
  
  // Base
  @body-background        : #fff;
7fa943eb   梁灏   init
20
21
  @font-family            : "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  @code-family            : Consolas,Menlo,Courier,monospace;
a901da64   梁灏   optimize Alert style
22
  @title-color            : #464c5b;
d2203972   梁灏   add gutter to Row...
23
  @text-color             : #657180;
7fa943eb   梁灏   init
24
  @font-size-base         : 14px;
dce3e753   梁灏   add Tooltip compo...
25
  @font-size-small        : 12px;
7fa943eb   梁灏   init
26
27
28
  @line-height-base       : 1.5;
  @line-height-computed   : floor((@font-size-base * @line-height-base));
  @border-radius-base     : 6px;
15bae144   梁灏   add Card component
29
  @border-radius-small    : 4px;
e1596b7e   梁灏   add Button UI
30
  @cursor-disabled        : not-allowed;
15bae144   梁灏   add Card component
31
32
  
  // Border color
d2203972   梁灏   add gutter to Row...
33
34
  @border-color-base      : #d7dde4;  // outside
  @border-color-split     : #e3e8ee;  // inside
15bae144   梁灏   add Card component
35
36
  
  // Background color
e355dd49   梁灏   add Select Component
37
38
  @background-color-base        : #f7f7f7;  // base
  @background-color-select-hover: @input-disabled-bg;
650ce7b8   梁灏   optimize Tooltip ...
39
  @tooltip-bg                   : rgba(70, 76, 91, .9);
122e69ee   梁灏   update Transfer
40
  @head-bg                      : #f9fafc;
0d136465   梁灏   update Table
41
42
43
44
  @table-thead-bg               : #f5f7f9;
  @table-td-stripe-bg           : #f5f7f9;
  @table-td-hover-bg            : #ebf7ff;
  @table-td-highlight-bg        : #ebf7ff;
21cc957a   梁灏   update Menu
45
  @menu-dark-active-bg          : #313540;
50637863   梁灏   update DatePicker
46
  @date-picker-cell-hover-bg    : #e1f0fe;
15bae144   梁灏   add Card component
47
48
  
  // Shadow
3fa1c31e   梁灏   optimize Poptip s...
49
  @shadow-color           : rgba(0, 0, 0, .2);
15bae144   梁灏   add Card component
50
51
52
53
54
55
  @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;
7fa943eb   梁灏   init
56
  
e1596b7e   梁灏   add Button UI
57
  // Button
3e855e34   梁灏   fixed #46
58
  @btn-font-weight        : normal;
3c01d81a   梁灏   fixed Modal bug,w...
59
  @btn-padding-base       : 6px 15px;
698e3b61   梁灏   iButton add some ...
60
61
  @btn-padding-large      : 6px 15px 7px 15px;
  @btn-padding-small      : 2px 7px;
e1596b7e   梁灏   add Button UI
62
63
64
65
66
67
  @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%);
  
d2203972   梁灏   add gutter to Row...
68
  @btn-disable-color      : #c3cbd6;
e1596b7e   梁灏   add Button UI
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  @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;
  
3c01d81a   梁灏   fixed Modal bug,w...
83
  @btn-circle-size        : 32px;
f1b3ed30   梁灏   Button add circle...
84
85
  @btn-circle-size-large  : 36px;
  @btn-circle-size-small  : 24px;
e1596b7e   梁灏   add Button UI
86
  
7fa943eb   梁灏   init
87
88
89
90
  // Layout and Grid
  @grid-columns           : 24;
  @grid-gutter-width      : 0;
  
9d69bab6   梁灏   add Alert component
91
92
93
  // Legend
  @legend-color           : #999;
  
95436eeb   梁灏   add InputNumber UI
94
  // Input
3c01d81a   梁灏   fixed Modal bug,w...
95
  @input-height-base           : 32px;
0f822c9b   梁灏   add Input component
96
97
  @input-height-large          : 36px;
  @input-height-small          : 24px;
95436eeb   梁灏   add InputNumber UI
98
99
100
101
102
103
  
  @input-padding-horizontal    : 7px;
  @input-padding-vertical-base : 4px;
  @input-padding-vertical-small: 1px;
  @input-padding-vertical-large: 6px;
  
e96fa06d   梁灏   update Cascader s...
104
  @input-placeholder-color     : @btn-disable-color;
95436eeb   梁灏   add InputNumber UI
105
106
107
108
109
110
111
112
  @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;
  
4ec205b6   梁灏   add Tag UI
113
114
115
  // Tag
  @tag-font-size          : 12px;
  
84a351df   梁灏   Layout support re...
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
  // 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);
  
7fa943eb   梁灏   init
137
  // Z-index
be966e9f   梁灏   add Modal component
138
  @zindex-spin            : 8;
7fa943eb   梁灏   init
139
140
  @zindex-affix           : 10;
  @zindex-back-top        : 10;
e355dd49   梁灏   add Select Component
141
  @zindex-select          : 900;
be966e9f   梁灏   add Modal component
142
  @zindex-modal           : 1000;
7c15ac9e   梁灏   add Message compo...
143
  @zindex-message         : 1010;
40f8606f   梁灏   add Notice component
144
  @zindex-notification    : 1010;
dce3e753   梁灏   add Tooltip compo...
145
  @zindex-tooltip         : 1060;
9dde24b6   梁灏   add LoadingBar co...
146
  @zindex-loading-bar     : 2000;
7fa943eb   梁灏   init
147
148
  
  // Animation
7c15ac9e   梁灏   add Message compo...
149
  @animation-time         : .3s;
7fa943eb   梁灏   init
150
  @transition-time        : .2s;
69576f47   梁灏   add Slider component
151
152
153
  @ease-in-out            : ease-in-out;
  
  // Slider
41d90ccf   梁灏   Slider can show s...
154
  @slider-color              : tint(@primary-color, 20%);
69576f47   梁灏   add Slider component
155
156
157
158
159
  @slider-height             : 4px;
  @slider-margin             : 16px 0;
  @slider-button-wrap-size   : 18px;
  @slider-button-wrap-offset : -5px;
  @slider-disabled-color     : #ccc;