variables.less 9.1 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Cerulean 2.2.1
Thomas Park's avatar
Thomas Park committed
2
3
4
// Variables
// --------------------------------------------------

Thomas Park's avatar
Thomas Park committed
5

Thomas Park's avatar
Thomas Park committed
6
7
8
9
10
// GLOBAL VALUES
// --------------------------------------------------


// Grays
Thomas Park's avatar
Thomas Park committed
11
// -------------------------
Thomas Park's avatar
Thomas Park committed
12
13
14
15
16
@black:                 #000;
@grayDarker:            #222;
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #999;
Thomas Park's avatar
Thomas Park committed
17
@grayLighter:           #F5F5F5;
Thomas Park's avatar
Thomas Park committed
18
19
@white:                 #fff;

Thomas Park's avatar
Thomas Park committed
20

Thomas Park's avatar
Thomas Park committed
21
// Accent colors
Thomas Park's avatar
Thomas Park committed
22
// -------------------------
23
@blue:                  #2FA4E7;
Thomas Park's avatar
Thomas Park committed
24
25
26
27
28
29
30
31
@blueDark:              #033C73;
@green:                 #73A839;
@red:                   #C71C22;
@yellow:                #F7B42C;
@orange:                #DD5600;
@pink:                  #F49AC1;
@purple:                #9760B3;

Thomas Park's avatar
Thomas Park committed
32
33
34
35
36
37
38
39
40

// Scaffolding
// -------------------------
@bodyBackground:        @white;
@textColor:             @gray;


// Links
// -------------------------
41
@linkColor:             @blue;
Thomas Park's avatar
Thomas Park committed
42
43
44
@linkColorHover:        darken(@linkColor, 15%);


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

51
@baseFontSize:          14px;
52
@baseFontFamily:        @sansFontFamily;
53
@baseLineHeight:        20px;
54
@altFontFamily:         @monoFontFamily;
Thomas Park's avatar
Thomas Park committed
55
56
57
58
59

@headingsFontFamily:    'Telex', sans-serif; // empty to use BS default, @baseFontFamily
@headingsFontWeight:    bold;    // instead of browser default, bold
@headingsColor:         #317EAC; // empty to use BS default, @textColor

Thomas Park's avatar
Thomas Park committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

// 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
@paddingMini:           1px 6px;   // 24px

@baseBorderRadius:      4px;
@borderRadiusLarge:     6px;
@borderRadiusSmall:     3px;


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

Thomas Park's avatar
Thomas Park committed
85
// Buttons
Thomas Park's avatar
Thomas Park committed
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// -------------------------
@btnBackground:                     @white;
@btnBackgroundHighlight:            darken(@white, 10%);
@btnBorder:                         darken(@white, 20%);

@btnPrimaryBackground:              @linkColor;
@btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 15%);

@btnInfoBackground:                 @purple;
@btnInfoBackgroundHighlight:        #2f96b4;

@btnSuccessBackground:              @green;
@btnSuccessBackgroundHighlight:     #51a351;

@btnWarningBackground:              @orange;
@btnWarningBackgroundHighlight:     @orange;

@btnDangerBackground:               @red;
@btnDangerBackgroundHighlight:      #bd362f;

106
@btnInverseBackground:              @blueDark;
Thomas Park's avatar
Thomas Park committed
107
108
109
110
111
112
113
@btnInverseBackgroundHighlight:     @grayDarker;


// Forms
// -------------------------
@inputBackground:               @white;
@inputBorder:                   #ccc;
Thomas Park's avatar
Thomas Park committed
114
@inputBorderRadius:             @baseBorderRadius;
Thomas Park's avatar
Thomas Park committed
115
@inputDisabledBackground:       @grayLighter;
116
@formActionsBackground:         #f5f5f5;
Thomas Park's avatar
Thomas Park committed
117
118
@inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border

Thomas Park's avatar
Thomas Park committed
119
120
121
122
123

// Dropdowns
// -------------------------
@dropdownBackground:            @white;
@dropdownBorder:                rgba(0,0,0,.2);
Thomas Park's avatar
Thomas Park committed
124
125
@dropdownDividerTop:            #e5e5e5;
@dropdownDividerBottom:         @white;
Thomas Park's avatar
Thomas Park committed
126

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

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

Thomas Park's avatar
Thomas Park committed
134
135
136
137
138


// COMPONENT VARIABLES
// --------------------------------------------------

Thomas Park's avatar
Thomas Park committed
139

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

Thomas Park's avatar
Thomas Park committed
151

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

Thomas Park's avatar
Thomas Park committed
157

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

Thomas Park's avatar
Thomas Park committed
162

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

Thomas Park's avatar
Thomas Park committed
167

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


Thomas Park's avatar
Thomas Park committed
173
174
175
176
177
// Wells
// -------------------------
@wellBackground:                  #f5f5f5;


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

Thomas Park's avatar
Thomas Park committed
183
@navbarHeight:                    50px;
184
@navbarBackgroundHighlight:       lighten(@navbarBackground, 8%);
185
@navbarBackground:                @blue;
186
@navbarBorder:                    darken(@navbarBackground, 8%);
Thomas Park's avatar
Thomas Park committed
187
188

@navbarText:                      @grayLighter;
189
@navbarLinkColor:                 @white;
Thomas Park's avatar
Thomas Park committed
190
@navbarLinkColorHover:            @white;
Thomas Park's avatar
Thomas Park committed
191
@navbarLinkColorActive:           @navbarLinkColorHover;
192
193
@navbarLinkBackgroundHover:       darken(@navbarBackground, 12%);
@navbarLinkBackgroundActive:      darken(@navbarBackground, 12%);
Thomas Park's avatar
Thomas Park committed
194

195
@navbarBrandColor:                @navbarLinkColor;
Thomas Park's avatar
Thomas Park committed
196

Thomas Park's avatar
Thomas Park committed
197
// Inverted navbar
198
@navbarInverseBackground:                @blueDark;
Thomas Park's avatar
Thomas Park committed
199
@navbarInverseBackgroundHighlight:       lighten(@navbarInverseBackground, 5%);
200
@navbarInverseBorder:                    darken(@navbarInverseBackground, 3%);
Thomas Park's avatar
Thomas Park committed
201

202
203
204
205
@navbarInverseText:                      @white;
@navbarInverseLinkColor:                 @white;
@navbarInverseLinkColorHover:            @white;
@navbarInverseLinkColorActive:           @white;
206
207
@navbarInverseLinkBackgroundHover:       darken(@navbarInverseBackground, 6%);
@navbarInverseLinkBackgroundActive:      darken(@navbarInverseBackground, 6%);
Thomas Park's avatar
Thomas Park committed
208

209
@navbarInverseSearchBackground:          @white;
Thomas Park's avatar
Thomas Park committed
210
211
@navbarInverseSearchBackgroundFocus:     @white;
@navbarInverseSearchBorder:              @navbarInverseBackground;
212
@navbarInverseSearchPlaceholderColor:    @grayLight;
Thomas Park's avatar
Thomas Park committed
213
214
215
216
217
218
219
220
221
222

@navbarInverseBrandColor:                @navbarInverseLinkColor;


// Pagination
// -------------------------
@paginationBackground:                #fff;
@paginationBorder:                    #ddd;
@paginationActiveBackground:          #f5f5f5;

Thomas Park's avatar
Thomas Park committed
223
224
225
226
227
228
229

// Hero unit
// -------------------------
@heroUnitBackground:              @grayLighter;
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;

Thomas Park's avatar
Thomas Park committed
230
231

// Form states and alerts
Thomas Park's avatar
Thomas Park committed
232
// -------------------------
233
234
@warningText:             darken(@linkColor, 20%);
@warningBackground:       lighten(@linkColor, 20%);
Thomas Park's avatar
Thomas Park committed
235
236
@warningBorder:           darken(spin(@warningBackground, -10), 3%);

237
@errorText:               darken(#C45559, 5%);
Thomas Park's avatar
Thomas Park committed
238
239
240
@errorBackground:         #EDDBE3;
@errorBorder:             darken(spin(@errorBackground, -10), 3%);

241
@successText:             darken(@green, 5%);
Thomas Park's avatar
Thomas Park committed
242
243
244
@successBackground:       #CDB;
@successBorder:           darken(spin(@successBackground, -10), 5%);

245
@infoText:                darken(#908A62, 5%);
Thomas Park's avatar
Thomas Park committed
246
@infoBackground:          #A7DFF1;
Thomas Park's avatar
Thomas Park committed
247
248
249
@infoBorder:              darken(spin(@infoBackground, -10), 7%);


Thomas Park's avatar
Thomas Park committed
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
// Tooltips and popovers
// -------------------------
@tooltipColor:            #fff;
@tooltipBackground:       #000;
@tooltipArrowWidth:       5px;
@tooltipArrowColor:       @tooltipBackground;

@popoverBackground:       #fff;
@popoverArrowWidth:       10px;
@popoverArrowColor:       #fff;
@popoverTitleBackground:  darken(@popoverBackground, 3%);

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


Thomas Park's avatar
Thomas Park committed
267
268
269
270

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

Thomas Park's avatar
Thomas Park committed
271

Thomas Park's avatar
Thomas Park committed
272
// Default 940px grid
Thomas Park's avatar
Thomas Park committed
273
// -------------------------
Thomas Park's avatar
Thomas Park committed
274
275
276
277
278
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

Thomas Park's avatar
Thomas Park committed
279
280
281
282
283
284
285
286
287
288
289
// 1200px min
@gridColumnWidth1200:     70px;
@gridGutterWidth1200:     30px;
@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));

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


Thomas Park's avatar
Thomas Park committed
290
// Fluid grid
Thomas Park's avatar
Thomas Park committed
291
// -------------------------
Thomas Park's avatar
Thomas Park committed
292
293
294
295
296
297
298
299
300
301
@fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
@fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);

// 1200px min
@fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
@fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);

// 768px-979px
@fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
@fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);