Debian Codegraph @

inst/lib/bsw3/lumen/_bootswatch.scss

raw
1 // Lumen 3.4.1
2 // Bootswatch
3 // -----------------------------------------------------
4
5 $web-font-path: "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic" !default;
6 @import url($web-font-path);
7
8 @mixin shadow($width: 4px){
9 border-width: 0 1px $width 1px;
10 }
11
12 // Navbar =====================================================================
13
14 .navbar {
15 @include shadow();
16 }
17
18 // Buttons ====================================================================
19
20 .btn {
21 padding: ($padding-base-vertical + 2) $padding-base-horizontal $padding-base-vertical;
22 @include shadow();
23 font-size: 12px;
24 font-weight: bold;
25 text-transform: uppercase;
26
27 &:hover {
28 margin-top: 1px;
29 border-bottom-width: 3px;
30 }
31
32 &:active {
33 margin-top: 2px;
34 border-bottom-width: 2px;
35 @include box-shadow(none);
36 }
37
38 &-lg,
39 &-group-lg > .btn {
40 padding: ($padding-large-vertical + 2) $padding-large-horizontal $padding-large-vertical;
41 line-height: 15px;
42 }
43
44 &-sm,
45 &-group-sm > .btn {
46 padding: ($padding-small-vertical + 2) $padding-small-horizontal $padding-small-vertical;
47 }
48
49 &-xs,
50 &-group-xs > .btn {
51 padding: ($padding-xs-vertical + 2) $padding-xs-horizontal $padding-xs-vertical;
52 }
53
54 &-default:hover,
55 &-default:focus,
56 &-group.open .dropdown-toggle.btn-default {
57 background-color: $btn-default-bg;
58 border-color: $btn-default-border;
59 }
60
61 &-primary:hover,
62 &-primary:focus,
63 &-group.open .dropdown-toggle.btn-primary {
64 background-color: $btn-primary-bg;
65 border-color: $btn-primary-border;
66 }
67
68 &-success:hover,
69 &-success:focus,
70 &-group.open .dropdown-toggle.btn-success {
71 background-color: $btn-success-bg;
72 border-color: $btn-success-border;
73 }
74
75 &-info:hover,
76 &-info:focus,
77 &-group.open .dropdown-toggle.btn-info {
78 background-color: $btn-info-bg;
79 border-color: $btn-info-border;
80 }
81
82 &-warning:hover,
83 &-warning:focus,
84 &-group.open .dropdown-toggle.btn-warning {
85 background-color: $btn-warning-bg;
86 border-color: $btn-warning-border;
87 }
88
89 &-danger:hover,
90 &-danger:focus,
91 &-group.open .dropdown-toggle.btn-danger {
92 background-color: $btn-danger-bg;
93 border-color: $btn-danger-border;
94 }
95
96 &-group.open .dropdown-toggle {
97 @include box-shadow(none);
98 }
99 }
100
101 .navbar-btn {
102 &:hover {
103 margin-top: 8px
104 }
105
106 &:active {
107 margin-top: 9px
108 }
109
110 &.btn-sm {
111 &:hover {
112 margin-top: 11px
113 }
114
115 &:active {
116 margin-top: 12px
117 }
118 }
119
120 &.btn-xs {
121 &:hover {
122 margin-top: 15px
123 }
124
125 &:active {
126 margin-top: 16px
127 }
128 }
129 }
130
131 .btn-group-vertical {
132 .btn + .btn {
133 &:hover {
134 border-top-width: 1px;
135 }
136
137 &:active {
138 border-top-width: 2px;
139 }
140 }
141 }
142
143 // Typography =================================================================
144
145 .text-primary,
146 .text-primary:hover {
147 color: $brand-primary;
148 }
149
150 .text-success,
151 .text-success:hover {
152 color: $brand-success;
153 }
154
155 .text-danger,
156 .text-danger:hover {
157 color: $brand-danger;
158 }
159
160 .text-warning,
161 .text-warning:hover {
162 color: $brand-warning;
163 }
164
165 .text-info,
166 .text-info:hover {
167 color: $brand-info;
168 }
169
170 // Tables =====================================================================
171
172 table,
173 .table {
174
175 a:not(.btn) {
176 text-decoration: underline;
177 }
178
179 .dropdown-menu a {
180 text-decoration: none;
181 }
182
183 .success,
184 .warning,
185 .danger,
186 .info {
187 color: #fff;
188
189 a:not(.btn) {
190 color: #fff;
191 }
192 }
193
194 &:not(.table-bordered) {
195 > thead > tr > th,
196 > tbody > tr > th,
197 > tfoot > tr > th,
198 > thead > tr > td,
199 > tbody > tr > td,
200 > tfoot > tr > td {
201 border-color: transparent;
202 }
203 }
204 }
205
206 // Forms ======================================================================
207
208 .form-control {
209 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.075));
210 }
211
212 label {
213 font-weight: normal;
214 }
215
216 .has-warning {
217 .help-block,
218 .control-label,
219 .radio,
220 .checkbox,
221 .radio-inline,
222 .checkbox-inline,
223 &.radio label,
224 &.checkbox label,
225 &.radio-inline label,
226 &.checkbox-inline label,
227 .form-control-feedback {
228 color: $brand-warning;
229 }
230
231 .form-control,
232 .form-control:focus {
233 border: 1px solid $brand-warning;
234 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.075));
235 }
236
237 .input-group-addon {
238 border: 1px solid $brand-warning;
239 }
240 }
241
242 .has-error {
243 .help-block,
244 .control-label,
245 .radio,
246 .checkbox,
247 .radio-inline,
248 .checkbox-inline,
249 &.radio label,
250 &.checkbox label,
251 &.radio-inline label,
252 &.checkbox-inline label,
253 .form-control-feedback {
254 color: $brand-danger;
255 }
256
257 .form-control,
258 .form-control:focus {
259 border: 1px solid $brand-danger;
260 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.075));
261 }
262
263 .input-group-addon {
264 border: 1px solid $brand-danger;
265 }
266 }
267
268 .has-success {
269 .help-block,
270 .control-label,
271 .radio,
272 .checkbox,
273 .radio-inline,
274 .checkbox-inline,
275 &.radio label,
276 &.checkbox label,
277 &.radio-inline label,
278 &.checkbox-inline label,
279 .form-control-feedback {
280 color: $brand-success;
281 }
282
283 .form-control,
284 .form-control:focus {
285 border: 1px solid $brand-success;
286 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.075));
287 }
288
289 .input-group-addon {
290 border: 1px solid $brand-success;
291 }
292 }
293
294 // Navs =======================================================================
295
296 .nav {
297 .open > a,
298 .open > a:hover,
299 .open > a:focus {
300 border-color: transparent;
301 }
302 }
303
304 .nav-tabs {
305
306 > li > a {
307 margin-top: 6px;
308 border-color: $navbar-default-border;
309 color: $gray-dark;
310 @include transition(all 0.2s ease-in-out);
311 }
312
313 > li > a:hover,
314 > li > a:focus,
315 > li.active > a,
316 > li.active > a:hover,
317 > li.active > a:focus,
318 .open > a,
319 .open > a:hover,
320 .open > a:focus {
321 padding-bottom: ($padding-large-vertical + 3);
322 margin-top: 0;
323 }
324
325 .open > a,
326 .open > a:hover,
327 .open > a:focus {
328 border-color: $navbar-default-border;
329 }
330
331 > li.disabled > a:hover,
332 > li.disabled > a:focus {
333 padding-top: 10px;
334 padding-bottom: 10px;
335 margin-top: 6px;
336 }
337
338 &.nav-justified > li {
339 vertical-align: bottom;
340 }
341 }
342
343 .dropdown-menu {
344 margin-top: 0;
345 @include shadow();
346 border-top-width: 1px;
347 @include box-shadow(none);
348 }
349
350 .breadcrumb {
351 border-color: darken($breadcrumb-bg, 5%);
352 border-style: solid;
353 @include shadow();
354 }
355
356 .pagination,
357 .pager {
358
359 > li > a,
360 > li > span {
361 position: relative;
362 top: 0;
363 @include shadow();
364 color: $pagination-color;
365 font-size: 12px;
366 font-weight: bold;
367 text-transform: uppercase;
368
369 &:hover {
370 top: 1px;
371 border-bottom-width: 3px;
372 }
373
374 &:active {
375 top: 2px;
376 border-bottom-width: 2px;
377 }
378 }
379
380 > .disabled > a,
381 > .disabled > span {
382
383 &:hover {
384 top: 0;
385 @include shadow();
386 }
387
388 &:active {
389 top: 0;
390 @include shadow();
391 }
392 }
393 }
394
395 .pager {
396
397 > li > a,
398 > li > span,
399 > .disabled > a,
400 > .disabled > span {
401
402 &,
403 &:hover,
404 &:active {
405 border-left-width: 2px;
406 border-right-width: 2px;
407 }
408 }
409 }
410
411 // Indicators =================================================================
412
413 .close {
414 color: #fff;
415 text-decoration: none;
416 opacity: 0.4;
417
418 &:hover,
419 &:focus {
420 color: #fff;
421 opacity: 1;
422 }
423 }
424
425 .alert {
426 @include shadow();
427
428 .alert-link {
429 font-weight: normal;
430 color: #fff;
431 text-decoration: underline;
432 }
433 }
434
435 .label {
436 font-weight: normal;
437 }
438
439 // Progress bars ==============================================================
440
441 .progress {
442 border: 1px solid $navbar-default-border;
443 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.1));
444
445 &-bar {
446 @include box-shadow(inset 0 -4px 0 rgba(0, 0, 0, 0.15));
447 }
448 }
449
450 // Containers =================================================================
451
452 .well {
453 border: 1px solid $navbar-default-border;
454 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.05));
455 }
456
457 a.list-group-item {
458
459 &.active,
460 &.active:hover,
461 &.active:focus {
462 border-color: $list-group-border;
463 }
464
465 &-success {
466 &.active {
467 background-color: $state-success-bg;
468 }
469
470 &.active:hover,
471 &.active:focus {
472 background-color: darken($state-success-bg, 5%);
473 }
474 }
475
476 &-warning {
477 &.active {
478 background-color: $state-warning-bg;
479 }
480
481 &.active:hover,
482 &.active:focus {
483 background-color: darken($state-warning-bg, 5%);
484 }
485 }
486
487 &-danger {
488 &.active {
489 background-color: $state-danger-bg;
490 }
491
492 &.active:hover,
493 &.active:focus {
494 background-color: darken($state-danger-bg, 5%);
495 }
496 }
497 }
498
499 .jumbotron {
500 border: 1px solid $navbar-default-border;
501 @include box-shadow(inset 0 2px 0 rgba(0, 0, 0, 0.05));
502 }
503
504 .panel {
505 border: 1px solid $navbar-default-border;
506 @include shadow();
507
508 &-default {
509 .close {
510 color: $text-color;
511 }
512 }
513 }
514
515 .modal {
516 .close {
517 color: $text-color;
518 }
519 }
520
521 .popover {
522 color: $text-color;
523 }