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