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

Thomas Park's avatar
Thomas Park committed
7

Thomas Park's avatar
Thomas Park committed
8
// Global values
Thomas Park's avatar
Thomas Park committed
9
10
11
12
// --------------------------------------------------


// Grays
Thomas Park's avatar
Thomas Park committed
13
// -------------------------
Thomas Park's avatar
Thomas Park committed
14
15
16
17
18
19
20
21
@black:                 #000;
@grayDarker:            #111;
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #aaa;
@grayLighter:           #ddd;
@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
@blue:                  #00BCE1;
@blueDark:              #1269B0;
Thomas Park's avatar
Thomas Park committed
27
@green:                 #48CA3B;
Thomas Park's avatar
Thomas Park committed
28
@red:                   #E51925;
Thomas Park's avatar
Thomas Park committed
29
@yellow:                #DEBB27;
Thomas Park's avatar
Thomas Park committed
30
31
@orange:                #DF6E1E;
@pink:                  #FFBCB9;
Thomas Park's avatar
Thomas Park committed
32
@purple:                #4D3A7D;
Thomas Park's avatar
Thomas Park committed
33

Thomas Park's avatar
Thomas Park committed
34
35
36
37

// Scaffolding
// -------------------------
@bodyBackground:        #003F4D;
38
@textColor:             rgba(255, 255, 255, 0.9);
Thomas Park's avatar
Thomas Park committed
39
40
41
42
43
44
45
46


// Links
// -------------------------
@linkColor:             lighten(@yellow, 15%);
@linkColorHover:        @linkColor;


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

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

@headingsFontFamily:    'Lobster', cursive; // empty to use BS default, @baseFontFamily
@headingsFontWeight:    normal;    // instead of browser default, bold
@headingsColor:         inherit; // empty to use BS default, @textColor


// Tables
// -------------------------
@tableBackground:                   lighten(#147E88, 10%); // overall background-color
@tableBackgroundAccent:             lighten(#147E88, 15%); // for striping
67
@tableBackgroundHover:              rgba(255, 255, 255, 0.4); // for hover
Thomas Park's avatar
Thomas Park committed
68
69
@tableBorder:                       lighten(#147E88, 12%); // 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
// -------------------------
@btnBackground:                     @grayLighter;
@btnBackgroundHighlight:            @grayLighter;
@btnBorder:                         rgba(0, 0, 0, 0);

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

@btnInfoBackground:                 @purple;
@btnInfoBackgroundHighlight:        @purple;

@btnSuccessBackground:              @green;
@btnSuccessBackgroundHighlight:     @green;

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

Thomas Park's avatar
Thomas Park committed
89
90
@btnDangerBackground:               @yellow;
@btnDangerBackgroundHighlight:      @yellow;
Thomas Park's avatar
Thomas Park committed
91
92
93
94
95
96
97
98
99

@btnInverseBackground:              #27666D;
@btnInverseBackgroundHighlight:     #27666D;


// Forms
// -------------------------
@inputBackground:               @white;
@inputBorder:                   transparent;
100
@inputBorderRadius:             0;
Thomas Park's avatar
Thomas Park committed
101
@inputDisabledBackground:       @grayLighter;
102
@formActionsBackground:         transparent;
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:   @red;

@dropdownLinkColorActive:       @dropdownLinkColor;
@dropdownLinkBackgroundActive:  @red;

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
128
129
130
131
132
133
134
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1020;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

Thomas Park's avatar
Thomas Park committed
135

Thomas Park's avatar
Thomas Park committed
136
// Sprite icons path
Thomas Park's avatar
Thomas Park committed
137
// -------------------------
Thomas Park's avatar
Thomas Park committed
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
// -------------------------
Thomas Park's avatar
Thomas Park committed
144
145
@placeholderText:         @grayLight;

Thomas Park's avatar
Thomas Park committed
146

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

Thomas Park's avatar
Thomas Park committed
151

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


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
162
163
@navbarHeight:                    50px;
@navbarBackground:                #AD1D28;
@navbarBackgroundHighlight:       #AD1D28;
Thomas Park's avatar
Thomas Park committed
164
@navbarBorder:                    darken(@navbarBackground, 12%);
Thomas Park's avatar
Thomas Park committed
165

Thomas Park's avatar
Thomas Park committed
166
167
@navbarText:                      @white;
@navbarLinkColor:                 @white;
Thomas Park's avatar
Thomas Park committed
168
@navbarLinkColorHover:            @white;
Thomas Park's avatar
Thomas Park committed
169
170
171
172
@navbarLinkColorActive:           @navbarLinkColorHover;
@navbarLinkBackgroundHover:       lighten(@navbarBackground, 10%);
@navbarLinkBackgroundActive:      lighten(@navbarBackground, 10%);

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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// Inverted navbar
@navbarInverseBackground:                @yellow;
@navbarInverseBackgroundHighlight:       @yellow;
@navbarInverseBorder:                    rgba(0, 0, 0, 0.1);

@navbarInverseText:                      @white;
@navbarInverseLinkColor:                 @white;
@navbarInverseLinkColorHover:            @white;
@navbarInverseLinkColorActive:           @white;
@navbarInverseLinkBackgroundHover:       rgba(255, 255, 255, 0.2);
@navbarInverseLinkBackgroundActive:      rgba(255, 255, 255, 0.2);

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

@navbarInverseBrandColor:                @navbarInverseLinkColor;


// Pagination
// -------------------------
@paginationBackground:                #3CB9C6;
@paginationBorder:                    transparent;
@paginationActiveBackground:          rgba(255, 255, 255, 0.4);

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

// Hero unit
// -------------------------
@heroUnitBackground:              #3CB9C6;
@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
// -------------------------
Thomas Park's avatar
Thomas Park committed
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
@warningText:             #c09853;
@warningBackground:       #fcf8e3;
@warningBorder:           darken(spin(@warningBackground, -10), 3%);

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

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

@infoText:                #3a87ad;
@infoBackground:          #d9edf7;
@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);