variables.less 8.31 KB
Newer Older
1
2
3
//
// Variables
// --------------------------------------------------
4
5


6
// Global values
Mark Otto's avatar
Mark Otto committed
7
8
// --------------------------------------------------

Mark Otto's avatar
Mark Otto committed
9

Mark Otto's avatar
Mark Otto committed
10
// Grays
Mark Otto's avatar
Mark Otto committed
11
// -------------------------
Mark Otto's avatar
Mark Otto committed
12
@black:                 #000;
Jon Stevens's avatar
Jon Stevens committed
13
@grayDarker:            #222;
Mark Otto's avatar
Mark Otto committed
14
15
16
17
18
19
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #999;
@grayLighter:           #eee;
@white:                 #fff;

Mark Otto's avatar
Mark Otto committed
20

Mark Otto's avatar
Mark Otto committed
21
// Accent colors
Mark Otto's avatar
Mark Otto committed
22
// -------------------------
23
@blue:                  #049cdb;
Mark Otto's avatar
Mark Otto committed
24
25
26
27
28
29
30
@green:                 #46a546;
@red:                   #9d261d;
@yellow:                #ffc40d;
@orange:                #f89406;
@pink:                  #c3325f;
@purple:                #7a43b6;

Mark Otto's avatar
Mark Otto committed
31

32
// Scaffolding
Mark Otto's avatar
Mark Otto committed
33
// -------------------------
34
35
36
@bodyBackground:        @white;
@textColor:             @grayDark;

Mark Otto's avatar
Mark Otto committed
37

38
// Links
Mark Otto's avatar
Mark Otto committed
39
// -------------------------
40
@linkColor:             #08c;
41
@linkColorHover:        darken(@linkColor, 15%);
42

Mark Otto's avatar
Mark Otto committed
43

Mark Otto's avatar
Mark Otto committed
44
// Typography
Mark Otto's avatar
Mark Otto committed
45
// -------------------------
46
47
@sansFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
@serifFontFamily:       Georgia, "Times New Roman", Times, serif;
48
@monoFontFamily:        Monaco, Menlo, Consolas, "Courier New", monospace;
49

Mark Otto's avatar
Mark Otto committed
50
@baseFontSize:          14px;
51
@baseFontFamily:        @sansFontFamily;
Mark Otto's avatar
Mark Otto committed
52
@baseLineHeight:        20px;
53
@altFontFamily:         @serifFontFamily;
54

55
@headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
Mark Otto's avatar
Mark Otto committed
56
@headingsFontWeight:    bold;    // instead of browser default, bold
57

58

59
60
61
62
63
64
65
66
67
68
// Component sizing
// -------------------------
// Based on 14px font-size and 20px line-height

@fontSizeLarge:         @baseFontSize * 1.25; // ~18px
@fontSizeSmall:         @baseFontSize * 0.85; // ~12px
@fontSizeMini:          @baseFontSize * 0.75; // ~11px

@paddingLarge:          11px 19px; // 44px
@paddingSmall:          2px 10px;  // 26px
69
@paddingMini:           0 6px;   // 22px
70
71

@baseBorderRadius:      4px;
72
@borderRadiusLarge:     6px;
73
74
75
@borderRadiusSmall:     3px;


Mark Otto's avatar
Mark Otto committed
76
77
78
79
80
81
82
// Tables
// -------------------------
@tableBackground:                   transparent; // overall background-color
@tableBackgroundAccent:             #f9f9f9; // for striping
@tableBackgroundHover:              #f5f5f5; // for hover
@tableBorder:                       #ddd; // table and cell border

Mark Otto's avatar
Mark Otto committed
83

Mark Otto's avatar
Mark Otto committed
84
// Buttons
Mark Otto's avatar
Mark Otto committed
85
// -------------------------
86
87
@btnBackground:                     @white;
@btnBackgroundHighlight:            darken(@white, 10%);
88
@btnBorder:                         #bbb;
89
90

@btnPrimaryBackground:              @linkColor;
91
@btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 20%);
92
93
94
95
96
97
98
99
100
101
102
103
104

@btnInfoBackground:                 #5bc0de;
@btnInfoBackgroundHighlight:        #2f96b4;

@btnSuccessBackground:              #62c462;
@btnSuccessBackgroundHighlight:     #51a351;

@btnWarningBackground:              lighten(@orange, 15%);
@btnWarningBackgroundHighlight:     @orange;

@btnDangerBackground:               #ee5f5b;
@btnDangerBackgroundHighlight:      #bd362f;

Mark Otto's avatar
Mark Otto committed
105
@btnInverseBackground:              #444;
106
107
@btnInverseBackgroundHighlight:     @grayDarker;

Mark Otto's avatar
Mark Otto committed
108

109
// Forms
Mark Otto's avatar
Mark Otto committed
110
// -------------------------
111
112
@inputBackground:               @white;
@inputBorder:                   #ccc;
113
@inputBorderRadius:             @baseBorderRadius;
114
@inputSearchBorderRadius:       20px;
115
@inputDisabledBackground:       @grayLighter;
116
@formActionsBackground:         #f5f5f5;
117
@inputHeight:                   @baseLineHeight + 14px; // base line-height + 12px vertical padding + 2px top/bottom border
Mark Otto's avatar
Mark Otto committed
118
119


120
// Dropdowns
Mark Otto's avatar
Mark Otto committed
121
// -------------------------
Mark Otto's avatar
Mark Otto committed
122
@dropdownBackground:            @white;
123
@dropdownBorder:                rgba(0,0,0,.2);
124
125
@dropdownDividerTop:            #e5e5e5;
@dropdownDividerBottom:         @white;
126

127
128
@dropdownLinkColor:             @grayDark;
@dropdownLinkColorHover:        @white;
129
@dropdownLinkColorActive:       @white;
Mark Otto's avatar
Mark Otto committed
130

131
@dropdownLinkBackgroundActive:  @linkColor;
UTGuy's avatar
UTGuy committed
132
@dropdownLinkBackgroundHover:   @dropdownLinkBackgroundActive;
133

134

Mark Otto's avatar
Mark Otto committed
135

Mark Otto's avatar
Mark Otto committed
136
137
// COMPONENT VARIABLES
// --------------------------------------------------
138

139

Mark Otto's avatar
Mark Otto committed
140
// Z-index master list
Mark Otto's avatar
Mark Otto committed
141
// -------------------------
Mark Otto's avatar
Mark Otto committed
142
// Used for a bird's eye view of components dependent on the z-axis
143
// Try to avoid customizing these :)
144
145
@zindexDropdown:          1000;
@zindexPopover:           1010;
146
@zindexTooltip:           1030;
147
148
149
150
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

Mark Otto's avatar
Mark Otto committed
151

152
// Sprite icons path
Mark Otto's avatar
Mark Otto committed
153
// -------------------------
154
155
@iconSpritePath:          "../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
156

Mark Otto's avatar
Mark Otto committed
157

158
// Input placeholder text color
Mark Otto's avatar
Mark Otto committed
159
// -------------------------
160
@placeholderText:         @grayLight;
161

Mark Otto's avatar
Mark Otto committed
162

Mark Otto's avatar
Mark Otto committed
163
// Hr border color
Mark Otto's avatar
Mark Otto committed
164
// -------------------------
Mark Otto's avatar
Mark Otto committed
165
166
@hrBorder:                @grayLighter;

Mark Otto's avatar
Mark Otto committed
167

168
169
170
171
172
// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset:       180px;


173
174
175
176
177
// Wells
// -------------------------
@wellBackground:                  #f5f5f5;


178
// Navbar
Mark Otto's avatar
Mark Otto committed
179
// -------------------------
180
@navbarCollapseWidth:             979px;
181
@navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;
182

183
@navbarHeight:                    44px;
Mark Otto's avatar
Mark Otto committed
184
@navbarBackgroundHighlight:       #ffffff;
UTGuy's avatar
UTGuy committed
185
@navbarBackground:                darken(@navbarBackgroundHighlight, 5%);
Mark Otto's avatar
Mark Otto committed
186
187
@navbarBorder:                    darken(@navbarBackground, 12%);

188
189
@navbarText:                      #777;
@navbarLinkColor:                 #777;
Mark Otto's avatar
Mark Otto committed
190
191
@navbarLinkColorHover:            @grayDark;
@navbarLinkColorActive:           @gray;
Mark Otto's avatar
Mark Otto committed
192
@navbarLinkBackgroundHover:       transparent;
Mark Otto's avatar
Mark Otto committed
193
@navbarLinkBackgroundActive:      darken(@navbarBackground, 5%);
Mark Otto's avatar
Mark Otto committed
194

195
@navbarBrandColor:                @navbarLinkColor;
196

Mark Otto's avatar
Mark Otto committed
197
198
199
// Inverted navbar
@navbarInverseBackground:                #111111;
@navbarInverseBackgroundHighlight:       #222222;
Mark Otto's avatar
Mark Otto committed
200
@navbarInverseBorder:                    #111111;
Mark Otto's avatar
Mark Otto committed
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216

@navbarInverseText:                      @grayLight;
@navbarInverseLinkColor:                 @grayLight;
@navbarInverseLinkColorHover:            @white;
@navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
@navbarInverseLinkBackgroundHover:       transparent;
@navbarInverseLinkBackgroundActive:      @navbarInverseBackground;

@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus:     @white;
@navbarInverseSearchBorder:              @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor:    #ccc;

@navbarInverseBrandColor:                @navbarInverseLinkColor;


217
218
219
220
221
222
// Pagination
// -------------------------
@paginationBackground:                #fff;
@paginationBorder:                    #ddd;
@paginationActiveBackground:          #f5f5f5;

223

224
// Hero unit
Mark Otto's avatar
Mark Otto committed
225
// -------------------------
226
227
228
@heroUnitBackground:              @grayLighter;
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;
229

Mark Otto's avatar
Mark Otto committed
230

231
// Form states and alerts
Mark Otto's avatar
Mark Otto committed
232
// -------------------------
233
234
@warningText:             #c09853;
@warningBackground:       #fcf8e3;
235
@warningBorder:           darken(spin(@warningBackground, -10), 3%);
236
237
238

@errorText:               #b94a48;
@errorBackground:         #f2dede;
239
@errorBorder:             darken(spin(@errorBackground, -10), 3%);
240
241
242

@successText:             #468847;
@successBackground:       #dff0d8;
243
@successBorder:           darken(spin(@successBackground, -10), 5%);
244
245
246

@infoText:                #3a87ad;
@infoBackground:          #d9edf7;
247
@infoBorder:              darken(spin(@infoBackground, -10), 7%);
248

249

250
251
// Tooltips and popovers
// -------------------------
252
@tooltipColor:            #fff;
Mark Otto's avatar
Mark Otto committed
253
@tooltipBackground:       rgba(0,0,0,.9);
254
@tooltipArrowWidth:       5px;
255
@tooltipArrowColor:       @tooltipBackground;
256

257
@popoverBackground:       #fff;
258
259
@popoverArrowWidth:       10px;
@popoverArrowColor:       #fff;
260
@popoverTitleBackground:  darken(@popoverBackground, 3%);
261
262
263

// Special enhancement for popovers
@popoverArrowOuterWidth:  @popoverArrowWidth + 1;
264
@popoverArrowOuterColor:  rgba(0,0,0,.25);
265
266


267
268
269
270
271
272
273
274

// GRID
// --------------------------------------------------

// Default 940px grid
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
275
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
276

277
278
279
// 1200px min
@gridColumnWidth1200:     70px;
@gridGutterWidth1200:     30px;
280
@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
281
282
283
284

// 768px-979px
@gridColumnWidth768:      42px;
@gridGutterWidth768:      20px;
285
@gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));