]> git.ipfire.org Git - ipfire.org.git/blob - src/scss/style.scss
CSS: Make news section white
[ipfire.org.git] / src / scss / style.scss
1 @import "variables";
2
3 // Use all Bootstrap modules that we want
4 @import "../bootstrap/scss/functions";
5 @import "../bootstrap/scss/variables";
6 @import "../bootstrap/scss/mixins";
7 @import "../bootstrap/scss/root";
8 @import "../bootstrap/scss/reboot";
9 @import "../bootstrap/scss/type";
10 @import "../bootstrap/scss/images";
11 @import "../bootstrap/scss/code";
12 @import "../bootstrap/scss/grid";
13 @import "../bootstrap/scss/tables";
14 @import "../bootstrap/scss/forms";
15 @import "../bootstrap/scss/buttons";
16 @import "../bootstrap/scss/transitions";
17 @import "../bootstrap/scss/dropdown";
18 @import "../bootstrap/scss/button-group";
19 @import "../bootstrap/scss/input-group";
20 @import "../bootstrap/scss/nav";
21 @import "../bootstrap/scss/navbar";
22 @import "../bootstrap/scss/card";
23 @import "../bootstrap/scss/pagination";
24 @import "../bootstrap/scss/badge";
25 @import "../bootstrap/scss/alert";
26 @import "../bootstrap/scss/progress";
27 @import "../bootstrap/scss/media";
28 @import "../bootstrap/scss/list-group";
29 @import "../bootstrap/scss/close";
30 @import "../bootstrap/scss/modal";
31 @import "../bootstrap/scss/utilities";
32 @import "../bootstrap/scss/print";
33
34 // Include fonts
35 @import "fonts";
36
37 // Custom stuff
38 @import '_icons';
39
40 body {
41 // For scrollspy
42 position: relative;
43
44 padding-top: 6rem;
45 }
46
47 // Buttons
48 .btn {
49 text-transform: uppercase;
50 }
51
52 // Headings
53
54 h1 {
55 line-height: 4rem;
56 font-weight: 300;
57 }
58
59 h2 {
60 line-height: 3.5rem;
61 }
62
63 h3 {
64 line-height: 3rem;
65 }
66
67 h4 {
68 line-height: 2.75rem;
69 }
70
71 h5 {
72 line-height: 2rem;
73 }
74
75 h6 {
76 line-height: 1.75rem;
77 }
78
79 .card {
80 color: $dark;
81
82 .card-body {
83 h1, h2, h3, h4, h5, h6 {
84 color: inherit;
85 }
86 }
87 }
88
89 .nav {
90 .nav-link {
91 color: $white;
92
93 &.active {
94 color: $link-color;
95 border-left: 2px solid $link-color;
96 }
97 }
98 }
99
100 .navbar {
101 &.scrolled {
102 background-color: white;
103
104 transition: background-color 200ms linear;
105 }
106
107 .navbar-nav {
108 .nav-link {
109 color: $white;
110
111 &.active {
112 border-bottom: 2px solid $link-color;
113 }
114 }
115 }
116 }
117
118 footer {
119 .btn-toolbar .icon {
120 height: 2.25rem;
121 width: 2.25rem;
122 fill: rgba($gray-400, .6);
123 }
124 .i_heart {
125 vertical-align: top;
126 transform: translateY(-.15rem);
127 @include media-breakpoint-down(sm) {
128 transform: translateY(-.75rem);
129 }
130 }
131 }
132
133 // Sections
134
135 .main {
136 section {
137 padding: 3rem 0;
138
139 @include media-breakpoint-up(sm) {
140 padding: 72px 0;
141 }
142
143 h1 {
144 margin-bottom: 64px;
145 }
146 }
147
148 section.intro {
149 // Make it cover the navbar, too
150 margin-top: -6rem;
151 padding-top: 6rem;
152
153 min-height: 100vh;
154 position: relative;
155
156 .branding {
157 margin-top: 7.5rem;
158 margin-bottom: 4rem;
159
160 @include media-breakpoint-down(xs) {
161 margin-top: 2.5rem;
162 }
163
164 text-align: center;
165
166 h1 {
167 margin-bottom: 0;
168
169 @include media-breakpoint-down(xs) {
170 font-size: 72px;
171 line-height: 88px;
172 }
173 }
174
175 h1:before {
176 content: "";
177 height: 60px;
178 width: 76px;
179 background-image: url('img/ipfire-tux.png');
180 background-repeat: no-repeat;
181 background-position: center center;
182 background-size: contain;
183 display: inline-block;
184 position: relative;
185 top: 4px;
186
187 @include media-breakpoint-up(sm) {
188 height: 120px;
189 width: 93px;
190 margin-right: 32px;
191 top: 8px;
192 }
193 }
194
195 h5 {
196 color: $white;
197
198 @include media-breakpoint-down(xs) {
199 font-size: 14px;
200 line-height: 20px;
201 }
202 }
203 }
204 }
205
206 section#news, section#support, footer {
207 background-color: $body-color;
208 color: $body-bg;
209
210 h1 {
211 color: inherit;
212 }
213 }
214
215 section#fireinfo {
216 border-bottom: 1px solid rgba($gray-800, .2);
217 }
218
219 section#appliances {
220 padding-bottom: 48px;
221 }
222 }
223
224 .blog-post {
225 .blog-header {
226 h5 {
227 a {
228 color: $dark;
229 }
230 }
231 }
232
233 .blog-content {
234 h1, h2, h3, h4, h5, h6 {
235 font-size: 20px;
236 font-weight: $headings-font-weight;
237
238 line-height: 28px;
239
240 margin-bottom: 0.25rem;
241 }
242
243 img {
244 @include img-fluid;
245 }
246 }
247
248 &.lightning-wire-labs {
249 .blog-header {
250 h5 {
251 a {
252 color: $lwl;
253 }
254 }
255
256 a {
257 color: $lwl;
258 }
259 }
260
261 .blog-content {
262 a {
263 color: $lwl;
264 }
265 }
266 }
267 }
268
269 // Donations
270
271 .faq {
272 a {
273 color: $body-color;
274 }
275 }
276
277 .donation-explanation {
278 margin-bottom: 2rem;
279
280 p {
281 color: $text-muted;
282 }
283
284 @include media-breakpoint-down(sm) {
285 background-color: $dark;
286 color: $white;
287
288 padding: 1.5rem;
289
290 h5, p {
291 color: inherit;
292 }
293 }
294 }
295
296 // Sidebar navigation
297
298 #sidebar .nav {
299 position: fixed;
300 }
301
302 .page-scroll {
303 display: block;
304 visibility: visible;
305 position: absolute;
306 bottom: 48px;
307 left: 50%;
308 transform: translateX(-50%);
309 .btn {
310 width: 36px;
311 height: 36px;
312 fill: $red;
313 @include media-breakpoint-up(sm) {
314 width: 64px;
315 height: 64px;
316 }
317 &:hover .i_arrow_down {
318 fill: white;
319 }
320 }
321 }
322
323 .feature_icons {
324 width: 40px;
325 height: 100%;
326 float: left;
327 margin-right: .75rem;
328 }
329
330 .progress {
331 background-color: rgba(255, 255, 255, .2);
332 }
333
334 .circle {
335 position: relative;
336 p.fireinfo_per {
337 color: $gray-800;
338 position: absolute;
339 top: calc(50% - 18px);
340 width: 100%;
341 }
342 }
343
344 .fixed-top + .blog-content {
345 padding-top: 88px;
346 margin-bottom: 40px;
347 @include media-breakpoint-up(lg) {
348 padding-top: 161px;
349 }
350 .content {
351 background: white;
352 border-radius: 4px;
353 padding: 40px 24px;
354 position: relative;
355 }
356 }
357
358 .blog-content {
359 margin-bottom: 80px;
360 }
361
362 .divider {
363 width: 128px;
364 height: 4px;
365 border-radius: 2px;
366 background-image: linear-gradient(to right, $red, $gray-400);
367 margin: 40px auto 24px auto;
368 @include media-breakpoint-up(sm) {
369 margin: 56px auto 40px auto;
370 }
371 }
372
373 footer {
374 padding: 3rem 0 0 0;
375 @include media-breakpoint-down(md) {
376 padding-top: 31px;
377 }
378 h4 {
379 margin-bottom: 1.25rem;
380 color: rgba($gray-400, .6);
381 font-size: 20px;
382 line-height: 28px;
383 }
384 ul {
385 li {
386 font-size: 14px;
387 margin-bottom: .75rem;
388 a {
389 color: rgba($gray-400, .6);
390 text-decoration: none;
391 &:hover {
392 color: $gray-400;
393 text-decoration: underline;
394 }
395 }
396 }
397 }
398 .btn-lg {
399 margin-bottom: 2.75rem;
400 }
401
402 .copyright {
403 background-color: rgba($gray-400, .06);
404 padding: $spacer 0;
405
406 font-size: $small-font-size;
407
408 a {
409 color: $text-muted;
410 }
411 }
412 }
413
414 // Animation
415 @keyframes scroll {
416 0%, 100% { transform: translateY(30%); }
417 50% { transform: translateY(50%); }
418 }