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

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


// Grays
Thomas Park's avatar
Thomas Park committed
11
// -------------------------
Thomas Park's avatar
Thomas Park committed
12
@black:                 #000;
13
@grayDarker:            #282828;
Thomas Park's avatar
Thomas Park committed
14
15
16
17
18
19
@grayDark:              #333;
@gray:                  #777;
@grayLight:             #999;
@grayLighter:           #CDCDCD;
@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
// -------------------------
Thomas Park's avatar
Thomas Park committed
23
24
25
26
27
28
29
30
31
@blue:                  #049cdb;
@blueDark:              #0064cd;
@green:                 #46a546;
@red:                   #9C0001;
@yellow:                #ffc40d;
@orange:                #f89406;
@pink:                  #c3325f;
@purple:                #7a43b6;

Thomas Park's avatar
Thomas Park committed
32
33
34

// Scaffolding
// -------------------------
35
36
@bodyBackground:        #FAFDFA;
@textColor:             @grayDarker;
Thomas Park's avatar
Thomas Park committed
37
38
39
40
41
42
43
44


// Links
// -------------------------
@linkColor:             @red;
@linkColorHover:        lighten(@linkColor, 8%);


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

51
@baseFontSize:          16px;
52
@baseFontFamily:        @serifFontFamily;
53
@baseLineHeight:        1.4em;
54
@altFontFamily:         @serifFontFamily;
Thomas Park's avatar
Thomas Park committed
55
56
57
58
59
60
61
62
63
64
65
66

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

// Tables
// -------------------------
@tableBackground:                   transparent; // overall background-color
@tableBackgroundAccent:             darken(@bodyBackground, 2%); // for striping
@tableBackgroundHover:              darken(@bodyBackground, 4%); // for hover
@tableBorder:                       #ddd; // table and cell border

Thomas Park's avatar
Thomas Park committed
67
// Buttons
Thomas Park's avatar
Thomas Park committed
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// -------------------------
@btnBackground:                     @white;
@btnBackgroundHighlight:            darken(@white, 10%);
@btnBorder:                         darken(@white, 20%);

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

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

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

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

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

@btnInverseBackground:              @gray;
@btnInverseBackgroundHighlight:     @grayDarker;


// Forms
// -------------------------
@inputBackground:               @white;
@inputBorder:                   #ccc;
96
@inputBorderRadius:             3px;
Thomas Park's avatar
Thomas Park committed
97
@inputDisabledBackground:       @grayLighter;
98
@formActionsBackground:         transparent;
Thomas Park's avatar
Thomas Park committed
99
100
101
102
103

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

Thomas Park's avatar
Thomas Park committed
107
108
109
@dropdownLinkColor:             @linkColor;
@dropdownLinkColorHover:        @linkColorHover;
@dropdownLinkColorActive:       @dropdownLinkColor;
110

Thomas Park's avatar
Thomas Park committed
111
@dropdownLinkBackgroundActive:  @linkColor;
112
@dropdownLinkBackgroundHover:   rgba(255,255,255,0);
Thomas Park's avatar
Thomas Park committed
113

Thomas Park's avatar
Thomas Park committed
114
115
116
117
118
119


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

// Z-index master list
Thomas Park's avatar
Thomas Park committed
120
// -------------------------
Thomas Park's avatar
Thomas Park committed
121
122
123
124
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown:          1000;
@zindexPopover:           1010;
Thomas Park's avatar
Thomas Park committed
125
@zindexTooltip:           1030;
Thomas Park's avatar
Thomas Park committed
126
127
128
129
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

Thomas Park's avatar
Thomas Park committed
130

Thomas Park's avatar
Thomas Park committed
131
// Sprite icons path
Thomas Park's avatar
Thomas Park committed
132
// -------------------------
Thomas Park's avatar
Thomas Park committed
133
134
135
@iconSpritePath:          "../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";

Thomas Park's avatar
Thomas Park committed
136

Thomas Park's avatar
Thomas Park committed
137
// Input placeholder text color
Thomas Park's avatar
Thomas Park committed
138
139
140
// -------------------------
@placeholderText:         @grayLight;

Thomas Park's avatar
Thomas Park committed
141
142

// Hr border color
Thomas Park's avatar
Thomas Park committed
143
// -------------------------
Thomas Park's avatar
Thomas Park committed
144
145
@hrBorder:                @grayLighter;

Thomas Park's avatar
Thomas Park committed
146

147
148
149
150
151
// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset:       180px;


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


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;

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

@navbarText:                      @textColor;
167
@navbarLinkColor:                 @textColor;
Thomas Park's avatar
Thomas Park committed
168
169
@navbarLinkColorHover:            @linkColor;
@navbarLinkColorActive:           @linkColor;
Thomas Park's avatar
Thomas Park committed
170
171
172
@navbarLinkBackgroundHover:       transparent;
@navbarLinkBackgroundActive:      @navbarBackground;

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:                @linkColor;
@navbarInverseBackgroundHighlight:       lighten(@linkColor, 3%);
@navbarInverseBorder:                    darken(@linkColor, 3%);

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

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

@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:              @white;
@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);