]> git.ipfire.org Git - ipfire.org.git/blame - src/scss/style.scss
Refactor mirrors
[ipfire.org.git] / src / scss / style.scss
CommitLineData
bc5b7100 1@import "variables";
91e44d91 2
8e1ad516 3// Use all Bootstrap modules that we want
bc5b7100
MT
4@import "../bootstrap/scss/functions";
5@import "../bootstrap/scss/variables";
6@import "../bootstrap/scss/mixins";
8e1ad516 7@import "../bootstrap/scss/root";
bc5b7100 8@import "../bootstrap/scss/reboot";
bc5b7100 9@import "../bootstrap/scss/type";
8e1ad516
MT
10@import "../bootstrap/scss/images";
11@import "../bootstrap/scss/code";
bc5b7100
MT
12@import "../bootstrap/scss/grid";
13@import "../bootstrap/scss/tables";
14@import "../bootstrap/scss/forms";
15@import "../bootstrap/scss/buttons";
bc5b7100 16@import "../bootstrap/scss/transitions";
8e1ad516 17@import "../bootstrap/scss/dropdown";
bc5b7100 18@import "../bootstrap/scss/button-group";
8e1ad516 19@import "../bootstrap/scss/input-group";
54e768a2 20@import "../bootstrap/scss/custom-forms";
bc5b7100
MT
21@import "../bootstrap/scss/nav";
22@import "../bootstrap/scss/navbar";
8e1ad516
MT
23@import "../bootstrap/scss/card";
24@import "../bootstrap/scss/pagination";
bc5b7100 25@import "../bootstrap/scss/badge";
8e1ad516 26@import "../bootstrap/scss/alert";
bc5b7100
MT
27@import "../bootstrap/scss/progress";
28@import "../bootstrap/scss/media";
29@import "../bootstrap/scss/list-group";
8e1ad516 30@import "../bootstrap/scss/close";
95b30f84 31@import "../bootstrap/scss/modal";
bc5b7100 32@import "../bootstrap/scss/utilities";
8e1ad516 33@import "../bootstrap/scss/print";
1423222c 34
616bd6a5
MT
35// Include fonts
36@import "fonts";
37
5236a99a 38// Custom stuff
95483f04 39@import "icons";
5236a99a 40
60ad7705
MT
41// Makes everything white with dark text on it
42.inverse {
43 background-color: $body-color;
44 color: $body-bg;
45}
46
d5389cd7 47body {
13ddfd7a 48 display: flex;
a2b09808 49 min-height: 100vh;
13ddfd7a 50 flex-flow: column;
cc59f0e1
MT
51}
52
41f3d31d
MT
53// Buttons
54.btn {
55 text-transform: uppercase;
56}
57
dd06f761 58@each $color, $value in $theme-colors {
3e486013 59 .btn-glow-#{$color} {
dcaed004 60 color: white;
dd06f761
MT
61 background-color: rgba($value, .15);
62 }
63}
64
25346297 65.card {
60ad7705 66 @extend .inverse;
f0c48740
MT
67
68 // Reset padding for sections
69 section {
70 padding: 0;
71 }
25346297
MT
72}
73
f4672785
MT
74.list-group {
75 .list-group-item {
d8f64b59 76 color: $body-bg;
f4672785
MT
77 }
78}
79
9f043320
MT
80.nav {
81 .nav-link {
25346297 82 color: $white;
9f043320
MT
83
84 &.active {
85 color: $link-color;
86 border-left: 2px solid $link-color;
87 }
88 }
89}
90
56fdd02c 91.navbar {
c56cbe8c
MT
92 background-color: rgba($gray-400, .06);
93
7dadc6f7
MT
94 // Webkit is being stupid and cannot figure out the height
95 // of the navbar by itself
96 min-height: $navbar-height;
97
a9a5d02b
MT
98 .navbar-brand {
99 color: inherit;
56fdd02c 100 }
dce6f905
MT
101
102 .navbar-nav {
103 .nav-link {
a9a5d02b 104 color: inherit;
dce6f905
MT
105
106 &.active {
107 border-bottom: 2px solid $link-color;
108 }
109 }
110 }
56fdd02c
MT
111}
112
a2b09808
MT
113header {
114 &.cover {
115 position: relative;
116 width: 100%;
117 height: auto;
118 min-height: 35rem;
119
120 @include media-breakpoint-up(lg) {
121 height: calc(100vh - #{$navbar-height});
122 }
123 }
124}
125
c2cbe16d 126footer {
13ddfd7a 127 margin-top: auto;
252d95b6 128
c819ecf2 129 .footer {
0509f6fd 130 margin-top: $spacer * 3;
2597b512 131
0509f6fd
MT
132 .footer-info {
133 padding: 2rem 0 0 0;
252d95b6 134
0509f6fd
MT
135 color: $white;
136 background-color: rgba($gray-400, .04);
2597b512 137
0509f6fd
MT
138 @include media-breakpoint-down(md) {
139 padding-top: 31px;
140 }
c819ecf2 141
0509f6fd 142 a, .btn-link {
c819ecf2 143 color: inherit;
0509f6fd
MT
144
145 &:hover {
146 color: inherit;
147 }
c819ecf2 148 }
252d95b6 149
0509f6fd
MT
150 ul {
151 li {
152 margin-bottom: $spacer / 4;
153 }
c819ecf2 154 }
252d95b6 155 }
252d95b6 156
0509f6fd
MT
157 .copyright {
158 background-color: rgba($gray-400, .06);
159 padding: $spacer 0;
252d95b6 160
0509f6fd 161 font-size: $small-font-size;
252d95b6 162
0509f6fd
MT
163 a {
164 color: $text-muted;
165 }
252d95b6
MT
166 }
167 }
c2cbe16d
S
168}
169
c2cbe16d 170// Sections
319dd276 171
00026d8b 172section {
8ad3de4a 173 padding: 3rem 1rem;
00026d8b 174
8ad3de4a 175 @include media-breakpoint-up(md) {
bbaf0fc1 176 padding: 5rem 0;
8ad3de4a
MT
177 }
178
179 @include media-breakpoint-up(md) {
180 // Reset large headlines to normal size on mobile devices
181 h1 {
182 font-size: $display1-size;
183 font-weight: $display1-weight;
184 line-height: $display-line-height;
185 }
00026d8b 186 }
319dd276
MT
187}
188
12e5de7e 189.blog-post {
4b2975d2
MT
190 .blog-header {
191 h5 {
192 a {
9632ca8b 193 color: $dark;
4b2975d2 194 }
60e77f07
MT
195 }
196 }
8ebc98d4 197
fb37ac29
MT
198 .blog-content {
199 h1, h2, h3, h4, h5, h6 {
2ee63634 200 font-size: 1.375rem;
fb37ac29 201 font-weight: $headings-font-weight;
2ee63634 202 line-height: $headings-line-height;
fb37ac29
MT
203 margin-bottom: 0.25rem;
204 }
c5cfd0d5
MT
205
206 img {
207 @include img-fluid;
208 }
fb37ac29
MT
209 }
210
8ebc98d4 211 &.lightning-wire-labs {
4b2975d2
MT
212 .blog-header {
213 h5 {
214 a {
215 color: $lwl;
216 }
217 }
218
219 a {
220 color: $lwl;
221 }
222 }
223
224 .blog-content {
225 a {
226 color: $lwl;
227 }
8ebc98d4
MT
228 }
229 }
12e5de7e
MT
230}
231
9f043320
MT
232// Sidebar navigation
233
61975d93
S
234.progress {
235 background-color: rgba(255, 255, 255, .2);
236}
237
c2cbe16d
S
238.circle {
239 position: relative;
f8c4f791 240 p.fireinfo_per {
25346297 241 color: $gray-800;
c2cbe16d 242 position: absolute;
d56f505e 243 top: calc(50% - 18px);
c2cbe16d
S
244 width: 100%;
245 }
20df8773 246}