style for btn-inverse
[bootswatch] / cyborg / bootswatch.less
1 // Bootswatch.less
2 // Swatch: Cyborg
3 // -----------------------------------------------------
4
5 // TYPOGRAPHY
6 // -----------------------------------------------------
7
8 // Ubuntu web font
9 @import url('http://fonts.googleapis.com/css?family=Droid+Sans:400,700');
10
11 h1, h2, h3, h4, h5, .navbar .brand, .navbar .nav-collapse.collapse .nav li > a {
12         color: @grayLighter;
13         font-weight: normal;
14         text-shadow: none;
15 }
16
17 .navbar {
18         font-size: 16px;
19 }
20
21 label, input, button, select, textarea {
22         font-family: 'Droid Sans', sans-serif;
23         color: @gray;
24 }
25
26 .navbar .search-query:-moz-placeholder {
27         font-family: 'Droid Sans', sans-serif;
28         color: @gray;
29 }
30         
31 .navbar .search-query::-webkit-input-placeholder {
32         font-family: 'Droid Sans', sans-serif;
33 }
34
35 blockquote {
36         border-left: 5px solid @blue;
37         
38         &.pull-right {
39                 border-right: 5px solid @blue;
40         }
41 }
42
43 // SCAFFOLDING
44 // -----------------------------------------------------
45
46 body {
47         background-color: #060606;
48         #gradient > .vertical (#060606, #252A30);
49 }
50
51 .page-header {
52         border-bottom: 2px solid @blue
53 }
54
55 // NAVBAR
56 // -----------------------------------------------------
57
58 .navbar-inner {
59   .border-radius(0);
60   @shadow: none;
61   .box-shadow(@shadow);
62   border-bottom: 2px solid @blue
63 }
64
65 .navbar .nav li > a {
66         padding: 13px 10px 8px;
67         border-bottom: 3px solid rgba(0, 0, 0, 0);
68 }
69
70 .navbar .brand {
71         padding: 12px 20px 8px;
72 }
73
74 .navbar .search-query,
75 .navbar .search-query:focus,
76 .navbar .search-query.focused {
77         color: @grayLight;
78         text-shadow: none;
79         background-color: #222;
80         .border-radius(1px);
81         .placeholder(@gray);
82 }
83
84 .navbar .nav .active > a,
85 .navbar .nav li > a:hover,
86 .navbar .brand:hover {
87         border-bottom: 3px solid @blue
88 }
89
90 // Added dividers to items
91 .navbar .nav > li > a {
92         border-left: 1px solid #222;    
93 }
94
95 .dropdown-menu {
96         background-color: #191A1A;
97         border-left: solid 1px rgba(256,256,256,.1);
98         .box-shadow(0 2px 4px rgba(0,0,0,.8));
99 }
100
101 .dropdown-menu li > a:hover {
102         background-color: @blue;
103         border-bottom: 3px solid transparent;
104 }
105
106 .dropdown-menu .divider {
107         background-color: #222;
108         border-bottom: 0px solid white;
109 }
110
111 .navbar .dropdown-menu::before,
112 .navbar .dropdown-menu::after {
113         display: none;
114 }
115
116 .navbar .nav-collapse.collapse .nav > li > a {
117         border-left: 0;
118 }
119
120 .navbar .nav-collapse.collapse .nav a:hover {
121         background-color: @blue;
122 }
123
124 div.subnav {
125         position: static;
126         background-color: @grayDarker;
127         background-image: none;
128         border: 0;
129 }
130
131 div.subnav.subnav-fixed {
132         position: relative;
133         left: -1px;
134         top: auto;
135 }
136
137 div.subnav .nav li > a,
138 div.subnav .nav .active a {
139         border-left: 1px solid #222;
140         border-right: 0;
141         color: @grayLighter;
142         background-color: @grayDarker;
143 }
144
145 .subnav .nav > li > a:hover,
146 .subnav .nav > li.active > a:hover,
147 .subnav .nav > li:first-child > a:hover {
148         background: transparent;
149         border-bottom: 2px solid @blue;
150         border-left: 1px solid #222;
151         color: @white;
152 }
153
154 div.subnav .nav .dropdown.open {
155
156         .dropdown-toggle {
157                 border: 0;
158                 border-left: 1px solid #222;
159             border-bottom: 2px solid @blue;
160                 background-color: #060606;
161         }
162
163         .dropdown-menu {
164                 background-color: @grayDarker;
165                 border-left: 0;
166                 
167                 li > a:hover {
168                         border-bottom: 0;
169                         background: @blue;
170                 }
171         }
172 }
173
174 @media (max-width: 768px) {
175         div.subnav .nav > li + li > a,
176         div.subnav .nav > li:first-child > a {
177                 border-top: 1px solid #222;
178                 border-left: 1px solid #222;
179         }
180         
181         .subnav .nav > li + li > a:hover,
182         .subnav .nav > li:first-child > a:hover {
183                         border-bottom: 0;
184                         background-color: @blue;
185         }
186         
187 }
188
189 // TABLES
190 // -----------------------------------------------------
191
192 .table-bordered {
193   border: 1px solid #222;
194   
195   th + th,
196   td + td,
197   th + td,
198   td + th {
199     border-left: 1px solid #222;
200   }
201   // Prevent a double border
202   thead:first-child tr:first-child th,
203   tbody:first-child tr:first-child th,
204   tbody:first-child tr:first-child td {
205     border-top: 0;
206   }
207 }
208
209 .table th, .table td {
210         border-top: 1px solid #222;
211 }
212
213 // make shaded elements light gray
214 .breadcrumb,
215 .table-striped tbody tr:nth-child(odd) td,
216 .table-striped tbody tr:nth-child(odd) th {
217         background-color: rgba(40, 40, 40, 0.5);
218 }
219
220 .table-striped tbody tr:nth-child(even) td,
221 .table-striped tbody tr:nth-child(even) th {
222         background-color: transparent;
223 }
224
225 .table tbody tr:hover th,
226 .table tbody tr:hover td {
227         background-color: @grayDark;
228 }
229
230 code, pre, pre.prettyprint {
231         background-color: @grayLighter;
232 }
233
234 .well {
235         background-color: rgba(40, 40, 40, 0.5);
236         background-color: #131517;
237         border-top: solid 1px rgba(256,256,256,.1);
238         .box-shadow(0 2px 4px rgba(0,0,0,.8));
239 }
240
241
242 .table, .well, .prettyprint, input, textarea, select {
243         .border-radius(1px);
244 }
245
246 input, textarea, select, .uneditable-input {
247         color: @grayDark;
248 }
249
250
251 // NAVIGATION
252 // -----------------------------------------------------
253
254
255 .nav-list > li > a, .nav-list .nav-header {
256         text-shadow: none;
257 }
258
259 .nav-list li > a:hover,
260 .nav-tabs li > a:hover,
261 .nav-tabs li.active > a,
262 .nav-pills li > a:hover,
263 .nav-stacked li > a:hover,
264 .nav-stacked li.active > a {
265         background-color: @blue;
266         color: @white;
267 }
268
269 .nav-tabs {
270         border-bottom: 1px solid #222;
271 }
272
273 .nav-stacked > li > a,
274 .nav-tabs > li > a:hover,
275 .nav-tabs > .active > a,
276 .nav-tabs > .active > a:hover {
277         border: 1px solid #222 !important;
278 }
279
280 .nav.nav-tabs .active a:hover {
281         background-color: @blue;
282         color: @white;
283 }
284
285 .nav.nav-tabs .dropdown.open,
286 .nav.nav-pills .dropdown.open {
287         .dropdown-toggle {
288                 background-color: #060606 !important;
289                 border-top: 0;
290                 border: 1px solid #222;
291         }
292         
293         .dropdown-menu li > a:hover { border-bottom: 0; }
294 }
295
296 .tabbable .nav-tabs, .thumbnail {
297         border-color: #222;
298 }
299
300 .breadcrumb {
301         background-color: transparent;
302         background-image: none;
303         border-width: 0;
304         .box-shadow(none);
305         font-size: 14px;
306         
307         li > a {
308                 color: @blue;
309                 text-shadow: none;
310         }
311         
312         li.active {
313                 text-shadow: none;
314         }
315 }
316
317 .pagination {
318         ul {
319                 .box-shadow(none);
320         }
321         
322         a {
323                 border: 0;
324                 font-size: 14px;
325         }
326         
327         a:hover, .active a {
328                 background-color: @blue;
329                 color: @white;
330         }       
331 }
332
333 // BUTTONS
334 // -----------------------------------------------------
335
336 .btn, {
337         border: 0;
338         .border-radius(3px);
339         .box-shadow(1px 1px 2px #111);
340         .buttonBackground(darken(@gray, 20%), darken(@gray, 30%));
341         color: @white;
342         text-shadow: none;
343         
344         &:hover {
345             background-color: darken(@gray, 35%);
346                 text-shadow: none;
347                 color: @white;
348         }
349 }
350
351 .btn-primary {
352   .buttonBackground(@blueDark, darken(@blueDark, 10%));
353 }
354
355 .btn-warning {
356   .buttonBackground(lighten(@orange, 10%), @orange);
357 }
358
359 .btn-danger {
360   .buttonBackground(lighten(@red, 10%), @red);
361 }
362
363 .btn-success {
364   .buttonBackground(lighten(@green, 10%), @green);
365 }
366
367 .btn-info {
368   .buttonBackground(darken(@gray, 40%), darken(@gray, 50%));
369 }
370
371 .btn-inverse {
372   .buttonBackground(lighten(@purple, 5%), @purple);
373 }
374
375 .btn-group .btn:first-child {
376     -webkit-border-top-left-radius: 3px;
377        -moz-border-top-left-radius: 3px;
378             border-top-left-radius: 3px;
379
380     -webkit-border-bottom-left-radius: 3px;
381        -moz-border-bottom-left-radius: 3px;
382             border-bottom-left-radius: 3px;
383 }
384
385 .btn-group .btn:last-child, .btn-group .dropdown-toggle {
386     -webkit-border-top-right-radius: 3px;
387        -moz-border-top-right-radius: 3px;
388             border-top-right-radius: 3px;
389
390     -webkit-border-bottom-right-radius: 3px;
391        -moz-border-bottom-right-radius: 3px;
392             border-bottom-right-radius: 3px;
393         
394 }
395
396 .btn .caret {
397         border-top: 4px solid black;
398         opacity: 0.3;
399 }
400
401 .btn-group > .dropdown-menu > li > a:hover {
402         border-bottom: 0;
403 }
404
405 .btn.disabled, .btn[disabled] {
406         background-color: @grayLight;
407 }
408
409 // FORMS
410 // -----------------------------------------------------
411
412 input, textarea, select {
413         background-color: #ccc;
414         border-color: #bbb;
415         border-width: 2px;
416         .placeholder(@gray);
417
418
419 legend, label {
420         color: @textColor;
421         border-bottom: 0px solid #222;
422 }
423
424 input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .uneditable-input {
425         background-color: #555;
426         border-color: #444;
427 }
428
429 input:focus,
430 textarea:focus,
431 input.focused,
432 textarea.focused {
433   border-color: rgba(82,168,236,1);
434   outline: 0;
435   outline: thin dotted \9; /* IE6-9 */
436 }
437
438 input[type="file"]:focus,
439 input[type="radio"]:focus,
440 input[type="checkbox"]:focus,
441 select:focus {
442   .box-shadow(none); // override for file inputs
443   .tab-focus();
444 }
445
446 .form-actions {
447         background: transparent;
448 }
449
450 .form-actions, footer.footer {
451         border-top: 1px solid #222;
452 }
453
454
455 // MISCELLANEOUS
456 // -----------------------------------------------------
457
458
459 .progress {
460         background-color: #060606;
461         background-image: none;
462         .border-radius(0);
463 }
464
465 .label {
466         color: @grayLighter;
467 }
468
469 .label, .alert { background-color: darken(@gray, 20%); }
470
471 .label:hover { background-color: darken(@gray, 30%); }
472
473
474 .label-important, .alert-danger,
475 .alert-error { background-color: @red; }
476
477 .label-important:hover { background-color: darken(@red, 10%); }
478
479 .label-warning   { background-color: darken(@orange, 10%); }
480
481 .label-warning:hover { background-color: darken(@orange, 20%); }
482
483 .label-success, .alert-success { background-color: darken(@green, 3%); }
484
485 .label-success:hover { background-color: darken(@green, 13%); }
486
487 .label-info, .alert-info { background-color: darken(@blueDark, 10%); }
488
489 .label-info:hover { background-color: darken(@blueDark, 20%); }
490
491 .alert,
492 .alert .alert-heading,
493 .alert-success,
494 .alert-success .alert-heading,
495 .alert-danger,
496 .alert-error,
497 .alert-danger .alert-heading,
498 .alert-error .alert-heading,
499 .alert-info,
500 .alert-info .alert-heading {
501   color: @grayLighter;
502   text-shadow: none;
503   border: none;
504 }