variables.less 5.26 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
43
44
@linkColor:             #08c;
@linkColorHover:        #069;

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
// -------------------------
Mark Otto's avatar
Mark Otto committed
48
49
50
@baseFontSize:          13px;
@baseFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
@baseLineHeight:        18px;
51
52
@altFontFamily:         Georgia, "Times New Roman", Times, serif;

53
@headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
Mark Otto's avatar
Mark Otto committed
54
@headingsFontWeight:    bold;    // instead of browser default, bold
55
@headingsColor:         inherit; // empty to use BS default, @textColor
56

Mark Otto's avatar
Mark Otto committed
57
58
59
60
61
62
63
64
65

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

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

91
// Forms
Mark Otto's avatar
Mark Otto committed
92
// -------------------------
93
94
95
96
97
@inputBackground:               @white;
@inputBorder:                   #ccc;

@inputDisabledBackground:       @grayLighter;

Mark Otto's avatar
Mark Otto committed
98

99
// Dropdowns
Mark Otto's avatar
Mark Otto committed
100
// -------------------------
Mark Otto's avatar
Mark Otto committed
101
@dropdownBackground:            @white;
102
103
@dropdownLinkColor:             @grayDark;
@dropdownLinkColorHover:        @white;
104
@dropdownLinkBackgroundHover:   @linkColor;
105

106
107


Mark Otto's avatar
Mark Otto committed
108

Mark Otto's avatar
Mark Otto committed
109
110
// COMPONENT VARIABLES
// --------------------------------------------------
111

Mark Otto's avatar
Mark Otto committed
112
// Z-index master list
Mark Otto's avatar
Mark Otto committed
113
// -------------------------
Mark Otto's avatar
Mark Otto committed
114
// Used for a bird's eye view of components dependent on the z-axis
115
// Try to avoid customizing these :)
116
117
118
119
120
121
122
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1020;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

Mark Otto's avatar
Mark Otto committed
123

124
// Sprite icons path
Mark Otto's avatar
Mark Otto committed
125
// -------------------------
126
127
@iconSpritePath:          "../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
128

Mark Otto's avatar
Mark Otto committed
129

130
// Input placeholder text color
Mark Otto's avatar
Mark Otto committed
131
// -------------------------
132
@placeholderText:         @grayLight;
133

Mark Otto's avatar
Mark Otto committed
134

Mark Otto's avatar
Mark Otto committed
135
// Hr border color
Mark Otto's avatar
Mark Otto committed
136
// -------------------------
Mark Otto's avatar
Mark Otto committed
137
138
@hrBorder:                @grayLighter;

Mark Otto's avatar
Mark Otto committed
139

140
// Navbar
Mark Otto's avatar
Mark Otto committed
141
// -------------------------
142
@navbarHeight:                    40px;
143
144
@navbarBackground:                @grayDarker;
@navbarBackgroundHighlight:       @grayDark;
145

146
147
148
@navbarText:                      @grayLight;
@navbarLinkColor:                 @grayLight;
@navbarLinkColorHover:            @white;
Mark Otto's avatar
Mark Otto committed
149
150
151
152
@navbarLinkColorActive:           @navbarLinkColorHover;
@navbarLinkBackgroundHover:       transparent;
@navbarLinkBackgroundActive:      @navbarBackground;

153

154
// Hero unit
Mark Otto's avatar
Mark Otto committed
155
// -------------------------
156
157
158
159
@heroUnitBackground:              #312f2e;
@heroUnitHeadingColor:            @white;
@heroUnitLeadColor:               @white;

Mark Otto's avatar
Mark Otto committed
160

161
// Form states and alerts
Mark Otto's avatar
Mark Otto committed
162
// -------------------------
163
164
@warningText:             #c09853;
@warningBackground:       #fcf8e3;
165
@warningBorder:           darken(spin(@warningBackground, -10), 3%);
166
167
168

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

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

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

179

180

Mark Otto's avatar
Mark Otto committed
181

182
183
184
185
// GRID
// --------------------------------------------------

// Default 940px grid
Mark Otto's avatar
Mark Otto committed
186
// -------------------------
187
188
189
190
191
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

Mark Otto's avatar
Mark Otto committed
192

193
// Fluid grid
Mark Otto's avatar
Mark Otto committed
194
// -------------------------
195
196
@fluidGridColumnWidth:    6.382978723%;
@fluidGridGutterWidth:    2.127659574%;