variables.less 5.52 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
// -------------------------
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
@btnBackground:                     @white;
@btnBackgroundHighlight:            darken(@white, 10%);
70
@btnBorder:                         darken(@white, 20%);
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

@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
@inputBackground:               @white;
@inputBorder:                   #ccc;
@inputDisabledBackground:       @grayLighter;

Mark Otto's avatar
Mark Otto committed
97

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

105
106


Mark Otto's avatar
Mark Otto committed
107

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

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

Mark Otto's avatar
Mark Otto committed
122

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

Mark Otto's avatar
Mark Otto committed
128

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

Mark Otto's avatar
Mark Otto committed
133

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

Mark Otto's avatar
Mark Otto committed
138

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

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

Mark Otto's avatar
Mark Otto committed
152
153
154
@navbarSearchBackground:          lighten(@navbarBackground, 25%);
@navbarSearchBackgroundFocus:     @white;
@navbarSearchBorder:              darken(@navbarSearchBackground, 30%);
155
156
@navbarSearchPlaceholderColor:    #ccc;

157

158
// Hero unit
Mark Otto's avatar
Mark Otto committed
159
// -------------------------
160
161
162
@heroUnitBackground:              @grayLighter;
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;
163

Mark Otto's avatar
Mark Otto committed
164

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

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

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

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

183

184

Mark Otto's avatar
Mark Otto committed
185

186
187
188
189
// GRID
// --------------------------------------------------

// Default 940px grid
Mark Otto's avatar
Mark Otto committed
190
// -------------------------
191
192
193
194
195
@gridColumns:             12;
@gridColumnWidth:         60px;
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

Mark Otto's avatar
Mark Otto committed
196

197
// Fluid grid
Mark Otto's avatar
Mark Otto committed
198
// -------------------------
199
200
@fluidGridColumnWidth:    6.382978723%;
@fluidGridGutterWidth:    2.127659574%;