variables.less 8.31 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
2
//
// Variables
Thomas Park's avatar
Thomas Park committed
3
// Swatch: Cerulean
Thomas Park's avatar
Thomas Park committed
4
// Version: 2.1.1
Thomas Park's avatar
Thomas Park committed
5
6
// --------------------------------------------------

Thomas Park's avatar
Thomas Park committed
7
8
9
10
11
12

// GLOBAL VALUES
// --------------------------------------------------


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

Thomas Park's avatar
Thomas Park committed
22

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

Thomas Park's avatar
Thomas Park committed
34
35
36
37
38
39
40
41
42

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


// Links
// -------------------------
43
@linkColor:             #2FA4E7;
Thomas Park's avatar
Thomas Park committed
44
45
46
@linkColorHover:        darken(@linkColor, 15%);


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

53
@baseFontSize:          14px;
54
@baseFontFamily:        @sansFontFamily;
55
@baseLineHeight:        20px;
56
@altFontFamily:         @monoFontFamily;
Thomas Park's avatar
Thomas Park committed
57
58
59
60
61
62
63
64
65
66
67
68
69

@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


// 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
70
71

// Buttons
Thomas Park's avatar
Thomas Park committed
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// -------------------------
@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;

@btnInverseBackground:              @yellow;
@btnInverseBackgroundHighlight:     @grayDarker;


// Forms
// -------------------------
@inputBackground:               @white;
@inputBorder:                   #ccc;
100
@inputBorderRadius:             3px;
Thomas Park's avatar
Thomas Park committed
101
@inputDisabledBackground:       @grayLighter;
102
@formActionsBackground:         #f5f5f5;
Thomas Park's avatar
Thomas Park committed
103
104
105
106
107

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

Thomas Park's avatar
Thomas Park committed
111
112
113
114
115
116
117
118
@dropdownLinkColor:             @grayDark;

@dropdownLinkColorHover:        @white;
@dropdownLinkBackgroundHover:   @dropdownLinkBackgroundActive;

@dropdownLinkColorActive:       @dropdownLinkColor;
@dropdownLinkBackgroundActive:  @linkColor;

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


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

// Z-index master list
Thomas Park's avatar
Thomas Park committed
125
// -------------------------
Thomas Park's avatar
Thomas Park committed
126
127
// 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
128
129
130
131
132
133
134
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1020;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

Thomas Park's avatar
Thomas Park committed
135

136
// Sprite icons path
Thomas Park's avatar
Thomas Park committed
137
// -------------------------
138
139
140
@iconSpritePath:          "../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";

Thomas Park's avatar
Thomas Park committed
141

Thomas Park's avatar
Thomas Park committed
142
// Input placeholder text color
Thomas Park's avatar
Thomas Park committed
143
144
145
// -------------------------
@placeholderText:         @grayLight;

Thomas Park's avatar
Thomas Park committed
146

147
// Hr border color
Thomas Park's avatar
Thomas Park committed
148
// -------------------------
149
150
@hrBorder:                @grayLighter;

Thomas Park's avatar
Thomas Park committed
151

Thomas Park's avatar
Thomas Park committed
152
153
154
155
156
// Wells
// -------------------------
@wellBackground:                  #f5f5f5;


Thomas Park's avatar
Thomas Park committed
157
// Navbar
Thomas Park's avatar
Thomas Park committed
158
// -------------------------
Thomas Park's avatar
Thomas Park committed
159
160
@navbarCollapseWidth:             979px;

Thomas Park's avatar
Thomas Park committed
161
@navbarHeight:                    50px;
Thomas Park's avatar
Thomas Park committed
162
@navbarBackground:                @linkColor;
Thomas Park's avatar
Thomas Park committed
163
164
@navbarBackgroundHighlight:       lighten(@linkColor, 8%);
@navbarBorder:                    darken(@navbarBackground, 12%);
Thomas Park's avatar
Thomas Park committed
165
166

@navbarText:                      @grayLighter;
167
@navbarLinkColor:                 @white;
Thomas Park's avatar
Thomas Park committed
168
@navbarLinkColorHover:            @white;
Thomas Park's avatar
Thomas Park committed
169
@navbarLinkColorActive:           @navbarLinkColorHover;
170
@navbarLinkBackgroundHover:       rgba(0,0,0,.2);
171
@navbarLinkBackgroundActive:      rgba(0,0,0,.2);
Thomas Park's avatar
Thomas Park committed
172

173
@navbarBrandColor:                @navbarLinkColor;
Thomas Park's avatar
Thomas Park committed
174

Thomas Park's avatar
Thomas Park committed
175
176
177
178
179
180
181
// Inverted navbar
@navbarInverseBackground:                #eee;
@navbarInverseBackgroundHighlight:       lighten(@navbarInverseBackground, 5%);
@navbarInverseBorder:                    rgba(0, 0, 0, 0.1);

@navbarInverseText:                      @textColor;
@navbarInverseLinkColor:                 @textColor;
182
183
184
185
@navbarInverseLinkColorHover:            @textColor;
@navbarInverseLinkColorActive:           @textColor;
@navbarInverseLinkBackgroundHover:       rgba(0,0,0,.05);
@navbarInverseLinkBackgroundActive:      rgba(0,0,0,.05);
Thomas Park's avatar
Thomas Park committed
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200

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

@navbarInverseBrandColor:                @navbarInverseLinkColor;


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

Thomas Park's avatar
Thomas Park committed
201
202
203
204
205
206
207

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

Thomas Park's avatar
Thomas Park committed
208
209

// Form states and alerts
Thomas Park's avatar
Thomas Park committed
210
// -------------------------
211
212
@warningText:             darken(@linkColor, 20%);
@warningBackground:       lighten(@linkColor, 20%);
Thomas Park's avatar
Thomas Park committed
213
214
@warningBorder:           darken(spin(@warningBackground, -10), 3%);

215
@errorText:               darken(#C45559, 5%);
Thomas Park's avatar
Thomas Park committed
216
217
218
@errorBackground:         #EDDBE3;
@errorBorder:             darken(spin(@errorBackground, -10), 3%);

219
@successText:             darken(@green, 5%);
Thomas Park's avatar
Thomas Park committed
220
221
222
@successBackground:       #CDB;
@successBorder:           darken(spin(@successBackground, -10), 5%);

223
@infoText:                darken(#908A62, 5%);
Thomas Park's avatar
Thomas Park committed
224
@infoBackground:          #A7DFF1;
Thomas Park's avatar
Thomas Park committed
225
226
227
@infoBorder:              darken(spin(@infoBackground, -10), 7%);


Thomas Park's avatar
Thomas Park committed
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
// 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
245
246
247
248

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

Thomas Park's avatar
Thomas Park committed
249

Thomas Park's avatar
Thomas Park committed
250
// Default 940px grid
Thomas Park's avatar
Thomas Park committed
251
// -------------------------
Thomas Park's avatar
Thomas Park committed
252
253
254
255
256
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

Thomas Park's avatar
Thomas Park committed
257
258
259
260
261
262
263
264
265
266
267
// 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
268
// Fluid grid
Thomas Park's avatar
Thomas Park committed
269
// -------------------------
Thomas Park's avatar
Thomas Park committed
270
271
272
273
274
275
276
277
278
279
@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);