318ad31c48ffc815f09a4e1f5297051c2b15e2e2
[bootswatch] / cyborg / variables.less
1 //
2 // Variables
3 // Swatch: Cyborg
4 // Version: 2.1.1
5 // --------------------------------------------------
6
7
8 // Global values
9 // --------------------------------------------------
10
11
12 // Grays
13 // -------------------------
14 @black:                 #000;
15 @grayDarker:            #020202;
16 @grayDark:              #282828;
17 @gray:                  #999;
18 @grayLight:             #ADAFAE;
19 @grayLighter:           #eee;
20 @white:                 #fff;
21
22
23 // Accent colors
24 // -------------------------
25 @blue:                  #33B5E5;
26 @blueDark:              #0099CC;
27 @green:                 #669900;
28 @red:                   #CC0000;
29 @yellow:                #ECBB13;
30 @orange:                #FF8800;
31 @pink:                  #FF4444;
32 @purple:                #9933CC;
33
34
35 // Scaffolding
36 // -------------------------
37 @bodyBackground:        #060606;
38 @textColor:             @gray;
39
40
41 // Links
42 // -------------------------
43 @linkColor:             @blue;
44 @linkColorHover:        @white;
45
46
47 // Typography
48 // -------------------------
49 @sansFontFamily:        'Droid Sans', sans-serif;
50 @serifFontFamily:       Georgia, "Times New Roman", Times, serif;
51 @monoFontFamily:        Menlo, Monaco, Consolas, "Courier New", monospace;
52
53 @baseFontSize:          14px;
54 @baseFontFamily:        @sansFontFamily;
55 @baseLineHeight:        20px;
56 @altFontFamily:         @serifFontFamily;
57
58 @headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
59 @headingsFontWeight:    normal;    // instead of browser default, bold
60 @headingsColor:         @white; // empty to use BS default, @textColor
61
62
63 // Tables
64 // -------------------------
65 @tableBackground:                   transparent; // overall background-color
66 @tableBackgroundAccent:             rgba(100, 100, 100, 0.1); // for striping
67 @tableBackgroundHover:              @grayDark; // for hover
68 @tableBorder:                       #222; // table and cell border
69
70
71 // Buttons
72 // -------------------------
73 @btnBackground:                     darken(@gray, 20%);
74 @btnBackgroundHighlight:            darken(@gray, 25%);
75 @btnBorder:                         rgba(0, 0, 0, 0);
76
77 @btnPrimaryBackground:              @blueDark;
78 @btnPrimaryBackgroundHighlight:     darken(@blueDark, 10%);
79
80 @btnInfoBackground:                 darken(@gray, 40%);
81 @btnInfoBackgroundHighlight:        darken(@gray, 50%);
82
83 @btnSuccessBackground:              lighten(@green, 10%);
84 @btnSuccessBackgroundHighlight:     @green;
85
86 @btnWarningBackground:              lighten(@orange, 15%);
87 @btnWarningBackgroundHighlight:     @orange;
88
89 @btnDangerBackground:               lighten(@red, 10%);
90 @btnDangerBackgroundHighlight:      @red;
91
92 @btnInverseBackground:              lighten(@purple, 5%);
93 @btnInverseBackgroundHighlight:     @purple;
94
95
96 // Forms
97 // -------------------------
98 @inputBackground:               #ccc;
99 @inputBorder:                   #bbb;
100 @inputBorderRadius:             3px;
101 @inputDisabledBackground:       @grayLighter;
102 @formActionsBackground:         transparent;
103
104 // Dropdowns
105 // -------------------------
106 @dropdownBackground:            @white;
107 @dropdownBorder:                rgba(0,0,0,.2);
108 @dropdownDividerTop:            transparent;
109 @dropdownDividerBottom:         #222;
110
111 @dropdownLinkColor:             @textColor;
112
113 @dropdownLinkColorHover:        @white;
114 @dropdownLinkBackgroundHover:   @linkColor;
115
116 @dropdownLinkColorActive:       @dropdownLinkColor;
117 @dropdownLinkBackgroundActive:  @linkColor;
118
119
120
121 // COMPONENT VARIABLES
122 // --------------------------------------------------
123
124 // Z-index master list
125 // -------------------------
126 // Used for a bird's eye view of components dependent on the z-axis
127 // Try to avoid customizing these :)
128 @zindexDropdown:          1000;
129 @zindexPopover:           1010;
130 @zindexTooltip:           1020;
131 @zindexFixedNavbar:       1030;
132 @zindexModalBackdrop:     1040;
133 @zindexModal:             1050;
134
135
136 // Sprite icons path
137 // -------------------------
138 @iconSpritePath:          "../img/glyphicons-halflings.png";
139 @iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
140
141
142 // Input placeholder text color
143 // -------------------------
144 @placeholderText:         @grayLight;
145
146
147 // Hr border color
148 // -------------------------
149 @hrBorder:                @gray;
150
151
152 // Wells
153 // -------------------------
154 @wellBackground:                  #131517;
155
156
157 // Navbar
158 // -------------------------
159 @navbarCollapseWidth:             979px;
160
161 @navbarHeight:                    40px;
162 @navbarBackground:                @grayDarker;
163 @navbarBackgroundHighlight:       @grayDarker;
164 @navbarBorder:                    darken(@navbarBackground, 12%);
165
166 @navbarText:                      @grayLight;
167 @navbarLinkColor:                 @grayLight;
168 @navbarLinkColorHover:            @white;
169 @navbarLinkColorActive:           @navbarLinkColorHover;
170 @navbarLinkBackgroundHover:       transparent;
171 @navbarLinkBackgroundActive:      @navbarBackground;
172
173 @navbarBrandColor:                @navbarLinkColor;
174
175 // Inverted navbar
176 @navbarInverseBackground:                #252A30;
177 @navbarInverseBackgroundHighlight:       #252A30;
178 @navbarInverseBorder:                    transparent;
179
180 @navbarInverseText:                      @grayLighter;
181 @navbarInverseLinkColor:                 @grayLighter;
182 @navbarInverseLinkColorHover:            @white;
183 @navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
184 @navbarInverseLinkBackgroundHover:       @black;
185 @navbarInverseLinkBackgroundActive:      @navbarInverseLinkBackgroundHover;
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:                @bodyBackground;
198 @paginationBorder:                    #ddd;
199 @paginationActiveBackground:          @blue;
200
201
202 // Hero unit
203 // -------------------------
204 @heroUnitBackground:              #131517;
205 @heroUnitHeadingColor:            inherit;
206 @heroUnitLeadColor:               inherit;
207
208
209 // Form states and alerts
210 // -------------------------
211 @warningText:             darken(#c09853, 10%);
212 @warningBackground:       @grayLighter;
213 @warningBorder:           transparent;
214
215 @errorText:               #b94a48;
216 @errorBackground:         @grayLighter;
217 @errorBorder:             darken(spin(@errorBackground, -10), 3%);
218
219 @successText:             #468847;
220 @successBackground:       @grayLighter;
221 @successBorder:           darken(spin(@successBackground, -10), 5%);
222
223 @infoText:                @blueDark;
224 @infoBackground:          @grayLighter;
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);