forked from ev3dev/ev3dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.scss
More file actions
85 lines (68 loc) · 1.69 KB
/
bootstrap.scss
File metadata and controls
85 lines (68 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
---
// Bootstrap + bootswatch imports
@import "custom-variables";
@import "bootstrap/bootstrap";
@import "bootswatch";
// Custom alert styles
.alert {
border-left-width: 10px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
@mixin alert-variant($color, $border, $text-color) {
background-color: darken($color, 20%);
border-color: $border;
color: $text-color;
}
.alert-success {
@include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text);
}
.alert-info {
@include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
}
.alert-warning {
@include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
}
.alert-danger {
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
}
// Custom panel styles
.panel {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
.panel-heading {
border-left-width: 9px;
border-left-style: solid;
}
}
@mixin panel-variant($color) {
.panel-heading {
background-color: darken($color, 20%);
}
}
.panel-success {
@include panel-variant($panel-success-heading-bg);
}
.panel-info {
@include panel-variant($panel-info-heading-bg);
}
.panel-warning {
@include panel-variant($panel-warning-heading-bg);
}
.panel-danger {
@include panel-variant($panel-danger-heading-bg);
}
// Custom breadcrumb separator
.breadcrumb > li + li::before {
content: ">"
}
// Horizontally-scrollable <pre>
// thanks http://stackoverflow.com/a/32772238/2422874
pre, pre > code {
overflow: auto;
-ms-word-wrap: normal;
word-wrap: normal;
overflow-wrap: normal;
white-space: pre;
}