all: add horizontalComponentOffset, better match variables.less, closes #34, thanks...
[bootswatch] / spruce / variables.less
1 // Variables
2 // Swatch: Spruce
3 // Version: 2.1.1
4 // --------------------------------------------------
5
6 // Global values
7 // --------------------------------------------------
8
9
10 // Grays
11 // -------------------------
12 @black:                 #000;
13 @grayDarker:            #222;
14 @grayDark:              #333;
15 @gray:                  #555;
16 @grayLight:             #999;
17 @grayLighter:           #eee;
18 @white:                 #fff;
19
20
21 // Accent colors
22 // -------------------------
23 @blue:                  #01584C;
24 @blueDark:              #013435;
25 @green:                 #015B4E;
26 @red:                   #D14432;
27 @yellow:                #EBD90B;
28 @orange:                #EE7026;
29 @pink:                  #A15B66;
30 @purple:                #7073CF;
31
32
33 // Scaffolding
34 // -------------------------
35 @bodyBackground:        #90A38F;
36 @textColor:             @blueDark;
37
38
39 // Links
40 // -------------------------
41 @linkColor:             @yellow;
42 @linkColorHover:        @yellow;
43
44
45 // Typography
46 // -------------------------
47 @sansFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
48 @serifFontFamily:       Georgia, "Times New Roman", Times, serif;
49 @monoFontFamily:        Menlo, Monaco, Consolas, "Courier New", monospace;
50
51 @baseFontSize:          14px;
52 @baseFontFamily:        @sansFontFamily;
53 @baseLineHeight:        21px;
54 @altFontFamily:         @serifFontFamily;
55
56 @headingsFontFamily:    'Josefin Slab', serif; // empty to use BS default, @baseFontFamily
57 @headingsFontWeight:    700;    // instead of browser default, bold
58 @headingsColor:         #F5F3DC; // empty to use BS default, @textColor
59
60 // Tables
61 // -------------------------
62 @tableBackground:                   #C3C7AE; // overall background-color
63 @tableBackgroundAccent:             darken(#C3C7AE, 5%); // for striping
64 @tableBackgroundHover:              darken(#C3C7AE, 10%); // for hover
65 @tableBorder:                       @headingsColor; // table and cell border
66
67 // Buttons
68 // -------------------------
69 @btnBackground:                     @white;
70 @btnBackgroundHighlight:            darken(@white, 10%);
71 @btnBorder:                         darken(@white, 20%);
72
73 @btnPrimaryBackground:              lighten(@blueDark, 10%);
74 @btnPrimaryBackgroundHighlight:     lighten(@blueDark, 5%);
75
76 @btnInfoBackground:                 #5bc0de;
77 @btnInfoBackgroundHighlight:        #2f96b4;
78
79 @btnSuccessBackground:              lighten(@blue, 10%);
80 @btnSuccessBackgroundHighlight:     lighten(@blue, 5%);
81
82 @btnWarningBackground:              lighten(@orange, 15%);
83 @btnWarningBackgroundHighlight:     @orange;
84
85 @btnDangerBackground:               lighten(@red, 5%);
86 @btnDangerBackgroundHighlight:      @red;
87
88 @btnInverseBackground:              @yellow;
89 @btnInverseBackgroundHighlight:     darken(@yellow, 5%);
90
91
92 // Forms
93 // -------------------------
94 @inputBackground:               @white;
95 @inputBorder:                   #ccc;
96 @inputBorderRadius:             3px;
97 @inputDisabledBackground:       @grayLighter;
98 @formActionsBackground:         transparent;
99
100 // Dropdowns
101 // -------------------------
102 @dropdownBackground:            @headingsColor;
103 @dropdownBorder:                rgba(0,0,0,.2);
104 @dropdownDividerTop:            transparent;
105 @dropdownDividerBottom:         @bodyBackground;
106
107 @dropdownLinkColor:             @grayDark;
108 @dropdownLinkColorHover:        @white;
109 @dropdownLinkColorActive:       @dropdownLinkColorHover;
110
111 @dropdownLinkBackgroundActive:  @dropdownLinkBackgroundHover;
112 @dropdownLinkBackgroundHover:   darken(@bodyBackground, 10%);
113
114
115
116 // COMPONENT VARIABLES
117 // --------------------------------------------------
118
119 // Z-index master list
120 // -------------------------
121 // Used for a bird's eye view of components dependent on the z-axis
122 // Try to avoid customizing these :)
123 @zindexDropdown:          1000;
124 @zindexPopover:           1010;
125 @zindexTooltip:           1030;
126 @zindexFixedNavbar:       1030;
127 @zindexModalBackdrop:     1040;
128 @zindexModal:             1050;
129
130
131 // Sprite icons path
132 // -------------------------
133 @iconSpritePath:          "../img/glyphicons-halflings.png";
134 @iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
135
136
137 // Input placeholder text color
138 // -------------------------
139 @placeholderText:         #ccc;
140
141
142 // Hr border color
143 // -------------------------
144 @hrBorder:                @linkColor;
145
146
147 // Horizontal forms & lists
148 // -------------------------
149 @horizontalComponentOffset:       180px;
150
151
152 // Wells
153 // -------------------------
154 @wellBackground:                  darken(@bodyBackground, 10%);
155
156
157 // Navbar
158 // -------------------------
159 @navbarCollapseWidth:             979px;
160
161 @navbarHeight:                    50px;
162 @navbarBackgroundHighlight:       @navbarBackground;
163 @navbarBackground:                @blueDark;
164 @navbarBorder:                    darken(@navbarBackground, 5%);
165
166 @navbarText:                      @grayLight;
167 @navbarLinkColor:                 @headingsColor;
168 @navbarLinkColorHover:            @yellow;
169 @navbarLinkColorActive:           @navbarLinkColorHover;
170 @navbarLinkBackgroundHover:       transparent;
171 @navbarLinkBackgroundActive:      @navbarBackground;
172
173 @navbarBrandColor:                @headingsColor;
174
175 // Inverted navbar
176 @navbarInverseBackground:                @wellBackground;
177 @navbarInverseBackgroundHighlight:       lighten(@wellBackground, 5%);
178 @navbarInverseBorder:                    darken(@navbarInverseBackground, 5%);
179
180 @navbarInverseText:                      @grayLight;
181 @navbarInverseLinkColor:                 @headingsColor;
182 @navbarInverseLinkColorHover:            @yellow;
183 @navbarInverseLinkColorActive:           @yellow;
184 @navbarInverseLinkBackgroundHover:       transparent;
185 @navbarInverseLinkBackgroundActive:      @navbarInverseBackground;
186
187 @navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
188 @navbarInverseSearchBackgroundFocus:     @white;
189 @navbarInverseSearchBorder:              @navbarInverseBackground;
190 @navbarInverseSearchPlaceholderColor:    @white;
191
192 @navbarInverseBrandColor:                @navbarInverseLinkColor;
193
194
195 // Pagination
196 // -------------------------
197 @paginationBackground:                darken(@bodyBackground, 10%);
198 @paginationBorder:                    transparent;
199 @paginationActiveBackground:          #A2CDB5;
200
201
202 // Hero unit
203 // -------------------------
204 @heroUnitBackground:              darken(@bodyBackground, 10%);
205 @heroUnitHeadingColor:            @headingsColor;
206 @heroUnitLeadColor:               inherit;
207
208
209 // Form states and alerts
210 // -------------------------
211 @warningText:             @white;
212 @warningBackground:       @orange;
213 @warningBorder:           darken(spin(@warningBackground, -10), 3%);
214
215 @errorText:               @white;
216 @errorBackground:         @red;
217 @errorBorder:             darken(spin(@errorBackground, -10), 3%);
218
219 @successText:             @white;
220 @successBackground:       #24C00B;
221 @successBorder:           darken(spin(@successBackground, -10), 5%);
222
223 @infoText:                @white;
224 @infoBackground:          #185AF9;
225 @infoBorder:              darken(spin(@infoBackground, -10), 7%);
226
227
228 // Tooltips and popovers
229 // -------------------------
230 @tooltipColor:            #fff;
231 @tooltipBackground:       #000;
232 @tooltipArrowWidth:       5px;
233 @tooltipArrowColor:       @tooltipBackground;
234
235 @popoverBackground:       #fff;
236 @popoverArrowWidth:       10px;
237 @popoverArrowColor:       #fff;
238 @popoverTitleBackground:  darken(@popoverBackground, 3%);
239
240 // Special enhancement for popovers
241 @popoverArrowOuterWidth:  @popoverArrowWidth + 1;
242 @popoverArrowOuterColor:  rgba(0,0,0,.25);
243
244
245
246 // GRID
247 // --------------------------------------------------
248
249
250 // Default 940px grid
251 // -------------------------
252 @gridColumns:             12;
253 @gridColumnWidth:         60px;
254 @gridGutterWidth:         20px;
255 @gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
256
257 // 1200px min
258 @gridColumnWidth1200:     70px;
259 @gridGutterWidth1200:     30px;
260 @gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
261
262 // 768px-979px
263 @gridColumnWidth768:      42px;
264 @gridGutterWidth768:      20px;
265 @gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
266
267
268 // Fluid grid
269 // -------------------------
270 @fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
271 @fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);
272
273 // 1200px min
274 @fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
275 @fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);
276
277 // 768px-979px
278 @fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
279 @fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);