variables.less 6.37 KB
Newer Older
1
2
3
// Variables.less
// Variables to customize the look and feel of Bootstrap
// -----------------------------------------------------
4
5
6



Mark Otto's avatar
Mark Otto committed
7
8
9
// GLOBAL VALUES
// --------------------------------------------------

Mark Otto's avatar
Mark Otto committed
10

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

Mark Otto's avatar
Mark Otto committed
21

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

Mark Otto's avatar
Mark Otto committed
33

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

Mark Otto's avatar
Mark Otto committed
39

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

Mark Otto's avatar
Mark Otto committed
45

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

Mark Otto's avatar
Mark Otto committed
52
@baseFontSize:          13px;
53
@baseFontFamily:        @sansFontFamily;
Mark Otto's avatar
Mark Otto committed
54
@baseLineHeight:        18px;
55
@altFontFamily:         @serifFontFamily;
56

57
@headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
Mark Otto's avatar
Mark Otto committed
58
@headingsFontWeight:    bold;    // instead of browser default, bold
59
@headingsColor:         inherit; // empty to use BS default, @textColor
60

Mark Otto's avatar
Mark Otto committed
61
62
63
64
65
66
67
68
69

// 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
70
// Buttons
Mark Otto's avatar
Mark Otto committed
71
// -------------------------
72
73
@btnBackground:                     @white;
@btnBackgroundHighlight:            darken(@white, 10%);
74
@btnBorder:                         #ccc;
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

@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;

Mark Otto's avatar
Mark Otto committed
94

95
// Forms
Mark Otto's avatar
Mark Otto committed
96
// -------------------------
97
98
@inputBackground:               @white;
@inputBorder:                   #ccc;
99
@inputBorderRadius:             3px;
100
@inputDisabledBackground:       @grayLighter;
101
@formActionsBackground:         #f5f5f5;
Mark Otto's avatar
Mark Otto committed
102

103
// Dropdowns
Mark Otto's avatar
Mark Otto committed
104
// -------------------------
Mark Otto's avatar
Mark Otto committed
105
@dropdownBackground:            @white;
106
@dropdownBorder:                rgba(0,0,0,.2);
107
108
@dropdownDividerTop:            #e5e5e5;
@dropdownDividerBottom:         @white;
109

110
111
112
113
114
115
116
117
@dropdownLinkColor:             @grayDark;

@dropdownLinkColorHover:        @white;
@dropdownLinkBackgroundHover:   @grayLighter;

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

118

Mark Otto's avatar
Mark Otto committed
119

Mark Otto's avatar
Mark Otto committed
120
121
// COMPONENT VARIABLES
// --------------------------------------------------
122

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

Mark Otto's avatar
Mark Otto committed
134

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

Mark Otto's avatar
Mark Otto committed
140

141
// Input placeholder text color
Mark Otto's avatar
Mark Otto committed
142
// -------------------------
143
@placeholderText:         @grayLight;
144

Mark Otto's avatar
Mark Otto committed
145

Mark Otto's avatar
Mark Otto committed
146
// Hr border color
Mark Otto's avatar
Mark Otto committed
147
// -------------------------
Mark Otto's avatar
Mark Otto committed
148
149
@hrBorder:                @grayLighter;

Mark Otto's avatar
Mark Otto committed
150

151
// Navbar
Mark Otto's avatar
Mark Otto committed
152
// -------------------------
153
@navbarHeight:                    40px;
154
155
@navbarBackground:                @grayDarker;
@navbarBackgroundHighlight:       @grayDark;
156

157
158
159
@navbarText:                      @grayLight;
@navbarLinkColor:                 @grayLight;
@navbarLinkColorHover:            @white;
Mark Otto's avatar
Mark Otto committed
160
161
162
163
@navbarLinkColorActive:           @navbarLinkColorHover;
@navbarLinkBackgroundHover:       transparent;
@navbarLinkBackgroundActive:      @navbarBackground;

Mark Otto's avatar
Mark Otto committed
164
165
166
@navbarSearchBackground:          lighten(@navbarBackground, 25%);
@navbarSearchBackgroundFocus:     @white;
@navbarSearchBorder:              darken(@navbarSearchBackground, 30%);
167
@navbarSearchPlaceholderColor:    #ccc;
168
@navbarBrandColor:                @navbarLinkColor;
169

170

171
// Hero unit
Mark Otto's avatar
Mark Otto committed
172
// -------------------------
173
174
175
@heroUnitBackground:              @grayLighter;
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;
176

Mark Otto's avatar
Mark Otto committed
177

178
// Form states and alerts
Mark Otto's avatar
Mark Otto committed
179
// -------------------------
180
181
@warningText:             #c09853;
@warningBackground:       #fcf8e3;
182
@warningBorder:           darken(spin(@warningBackground, -10), 3%);
183
184
185

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

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

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

196

197
198
199
200

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

201

202
// Default 940px grid
Mark Otto's avatar
Mark Otto committed
203
// -------------------------
204
205
206
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
207
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
208

209
210
211
212
213
214
215
216
217
// 1200px min
@gridColumnWidth1200:     70px;
@gridGutterWidth1200:     30px;

// 768px-979px
@gridColumnWidth768:      42px;
@gridGutterWidth768:      20px;


218
// Fluid grid
Mark Otto's avatar
Mark Otto committed
219
// -------------------------
220
221
@fluidGridColumnWidth:    6.382978723%;
@fluidGridGutterWidth:    2.127659574%;
222
223
224
225
226
227
228
229

// 1200px min
@fluidGridColumnWidth1200:     5.982905983%;
@fluidGridGutterWidth1200:     2.564102564%;

// 768px-979px
@fluidGridColumnWidth768:      5.801104972%;
@fluidGridGutterWidth768:      2.762430939%;