]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - static/scss/style.scss
Arrow at the bottom to scroll down now white on hover.
[people/shoehn/ipfire.org.git] / static / scss / style.scss
1 /*!
2 * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)
3 * Copyright 2011-2017 The Bootstrap Authors
4 * Copyright 2011-2017 Twitter, Inc.
5 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6 */
7
8 // Core variables and mixins
9 @import "bootstrap-4.0.0-alpha.6/scss/variables";
10 @import "bootstrap-4.0.0-alpha.6/scss/mixins";
11 @import "bootstrap-4.0.0-alpha.6/scss/custom";
12
13 // Reset and dependencies
14 @import "bootstrap-4.0.0-alpha.6/scss/normalize";
15 // @import "bootstrap-4.0.0-alpha.6/scss/print";
16
17 // Core CSS
18 @import "bootstrap-4.0.0-alpha.6/scss/reboot";
19 @import "bootstrap-4.0.0-alpha.6/scss/type";
20 //@import "bootstrap-4.0.0-alpha.6/scss/images";
21 // @import "bootstrap-4.0.0-alpha.6/scss/code";
22 @import "bootstrap-4.0.0-alpha.6/scss/grid";
23 // @import "bootstrap-4.0.0-alpha.6/scss/tables";
24 // @import "bootstrap-4.0.0-alpha.6/scss/forms";
25 @import "bootstrap-4.0.0-alpha.6/scss/buttons";
26
27 // Components
28 @import "bootstrap-4.0.0-alpha.6/scss/transitions";
29 //@import "bootstrap-4.0.0-alpha.6/scss/dropdown";
30 @import "bootstrap-4.0.0-alpha.6/scss/button-group";
31 //@import "bootstrap-4.0.0-alpha.6/scss/input-group";
32 //@import "bootstrap-4.0.0-alpha.6/scss/custom-forms";
33 @import "bootstrap-4.0.0-alpha.6/scss/nav";
34 @import "bootstrap-4.0.0-alpha.6/scss/navbar";
35 //@import "bootstrap-4.0.0-alpha.6/scss/card";
36 // @import "bootstrap-4.0.0-alpha.6/scss/breadcrumb";
37 // @import "bootstrap-4.0.0-alpha.6/scss/pagination";
38 // @import "bootstrap-4.0.0-alpha.6/scss/badge";
39 // @import "bootstrap-4.0.0-alpha.6/scss/jumbotron";
40 // @import "bootstrap-4.0.0-alpha.6/scss/alert";
41 @import "bootstrap-4.0.0-alpha.6/scss/progress";
42 @import "bootstrap-4.0.0-alpha.6/scss/media";
43 @import "bootstrap-4.0.0-alpha.6/scss/list-group";
44 // @import "bootstrap-4.0.0-alpha.6/scss/responsive-embed";
45 // @import "bootstrap-4.0.0-alpha.6/scss/close";
46
47 // Components w/ JavaScript
48 // @import "bootstrap-4.0.0-alpha.6/scss/modal";
49 // @import "bootstrap-4.0.0-alpha.6/scss/tooltip";
50 // @import "bootstrap-4.0.0-alpha.6/scss/popover";
51 // @import "bootstrap-4.0.0-alpha.6/scss/carousel";
52
53 // Utility classes
54 @import "bootstrap-4.0.0-alpha.6/scss/utilities";
55
56
57 // Colors
58
59 .amber-800 {
60 color: $amber-800;
61 }
62
63 // Fonts
64
65 h1 {
66 line-height: 3rem;
67 }
68
69 h2 {
70 line-height: 2.75rem;
71 }
72
73 h3 {
74 line-height: 2rem;
75 }
76
77 h4 {
78 font-weight: 600;
79 line-height: 1.75rem;
80 }
81
82 h5 {
83 line-height: 1.5rem;
84 }
85
86 p {
87 line-height: 1.5rem;
88 &.lead {
89 line-height: 2rem;
90 @include media-breakpoint-down(md) {
91 font-size: 1.5rem;
92 line-height: 2rem;
93 }
94 @include media-breakpoint-down(sm) {
95 font-size: 1rem;
96 line-height: 1.5rem;
97 }
98 }
99 }
100
101 .display-2 {
102 margin-bottom: 4rem;
103 @include media-breakpoint-down(md) {
104 font-size: 2.5rem;
105 line-height: 3.5rem;
106 margin-bottom: 3rem;
107 }
108 @include media-breakpoint-down(sm) {
109 font-size: 2rem;
110 line-height: 2.75rem;
111 }
112 }
113
114 .display-4 {
115 @include media-breakpoint-down(sm) {
116 font-size: .875rem;
117 line-height: 1.25rem;
118 }
119 }
120
121 small {
122 line-height: 1rem;
123 }
124
125 .truncate {
126 width: 100%;
127 white-space: nowrap;
128 overflow: hidden;
129 text-overflow: ellipsis;
130 }
131
132 // Images
133 img {
134 &.img-fluid {
135 width: 100%;
136 max-width: 100%;
137 height: auto;
138 }
139 }
140
141 // Icons
142
143 .icon {
144 width: 1.5rem;
145 height: 1.5rem;
146 fill: currentColor;
147 vertical-align: -.15rem;
148 overflow: hidden;
149 margin-right: .5rem;
150 }
151
152 .i_arrow_down {
153 margin: 0;
154 position: absolute;
155 left: .75rem;
156 top: -.25rem;
157 animation: scroll 3s infinite;
158 @include media-breakpoint-down(sm) {
159 width: 2rem !important;
160 height: 2rem !important;
161 left: .15rem;
162 top: -.75rem;
163 }
164 }
165
166 .i_lg {
167 width: 2.5rem;
168 height: 2.5rem;
169 margin: 0;
170 transform: translateY(-.35rem);
171 fill: $red_900;
172 }
173
174 .i_sm {
175 vertical-align: top;
176 transform: translateY(-.10rem);
177 }
178
179 footer {
180 .btn-toolbar .icon {
181 height: 2.25rem;
182 width: 2.25rem;
183 fill: rgba($blue-grey-900, .6);
184 }
185 .i_heart {
186 vertical-align: top;
187 transform: translateY(-.15rem);
188 @include media-breakpoint-down(sm) {
189 transform: translateY(-.75rem);
190 }
191 }
192 }
193
194 // Buttons
195
196 .btn-red900 {
197 @include button-variant($btn-red900-color, $btn-red900-bg, $btn-red900-border);
198 }
199 .btn-white {
200 @include button-variant($btn-white-color, $btn-white-bg, $btn-white-border);
201 }
202 .btn-bluegrey900 {
203 @include button-variant($btn-bluegrey900-color, $btn-bluegrey900-bg, $btn-bluegrey900-border);
204 }
205
206 button.navbar-toggler div {
207 font-family: 'Ubuntu', sans-serif;
208 font-size: 1rem;
209 display: inline-block;
210 margin-left: 12px;
211 }
212
213 .btn {
214 height: 36px;
215 text-transform: uppercase;
216 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15), 0 1px 2px 0 rgba(0, 0, 0, .25);
217 transition: box-shadow .25s ease-in-out;
218 &:hover {
219 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15), 0 3px 6px 0 rgba(0, 0, 0, .25);
220 transition: box-shadow .25s ease-in-out;
221 }
222 @include media-breakpoint-down(sm) {
223 font-size: .875rem;
224 }
225 }
226
227 .btn-outline-primary,
228 .btn-outline-secondary {
229 transition: background-color .25s ease-in-out;
230 &:hover {
231 transition: background-color .25s ease-in-out;
232 }
233 }
234
235 .btn-lg {
236 height: 48px;
237 margin: 0 24px;
238 @include media-breakpoint-down(sm) {
239 height: 36px;
240 margin: 0 8px;
241 padding: 1rem;
242 font-size: .875rem;
243 line-height: 0;
244 }
245 }
246
247 .btn-md {
248 font-size: 0.875rem;
249 line-height: 1.25rem;
250 padding: .4rem 1rem .5rem 1rem;
251 }
252
253 .btn-block {
254 margin: 0 0 1.5rem 0;
255 @include media-breakpoint-up(md) {
256 margin: 0 0 2rem 0;
257 }
258 @include media-breakpoint-down(sm) {
259 font-size: .875rem;
260 line-height: 0;
261 }
262 }
263
264 // Top Navigation
265
266 .fixed-top {
267 transition: background-color 700ms linear;
268 .navbar {
269 width: 100%;
270 @include media-breakpoint-down(md) {
271 padding: .5rem 0;
272 }
273 .navbar-toggler-left {
274 left: -1rem;
275 }
276 }
277 .navbar-brand {
278 opacity: 0;
279 transition: opacity 700ms linear;
280 @include media-breakpoint-up(lg) {
281 opacity: 1;
282 }
283 }
284 }
285
286 .scrolled {
287 background-color: rgba(255, 255, 255, .96);
288 .navbar-brand {
289 opacity: 1;
290 transition: opacity 700ms linear;
291 }
292 }
293
294 .menu-text.hidden {
295 display: none;
296 visibility: hidden;
297 }
298
299 .navbar {
300 a {
301 color: $blue-grey-900;
302 }
303 .btn {
304 margin-top: .15rem;
305 }
306 }
307
308 .navbar-brand {
309 font-size: 1.25rem;
310 @include media-breakpoint-up(sm) {
311 font-size: 2rem;
312 }
313 font-weight: 300;
314 strong {
315 font-weight: 900;
316 }
317 img {
318 margin-right: 1rem;
319 transform: translateY(-5px);
320 }
321 }
322
323 // Sections
324
325 section.intro {
326 min-height: 100vh;
327 background-image: url('../img/header-background.jpg');
328 background-size: cover;
329 background-attachment: fixed;
330 background-position: center top;
331 position: relative;
332 .branding {
333 padding-top: 6rem;
334 @include media-breakpoint-up(md) {
335 padding-top: 192px;
336 }
337 margin-bottom: 64px;
338 text-align: center;
339 color: $blue-grey-600;
340 h1 {
341 font-weight: 300 !important;
342 color: $blue-grey-900;
343 @include media-breakpoint-down(sm) {
344 font-size: 4.5rem;
345 }
346 strong {
347 font-weight: 700 !important;
348 }
349 }
350 h1:before {
351 content: "";
352 height: 60px;
353 width: 76px;
354 background-image: url('../img/ipfire-tux.png');
355 background-repeat: no-repeat;
356 background-position: center center;
357 background-size: contain;
358 display: inline-block;
359 position: relative;
360 top: 4px;
361 @include media-breakpoint-up(md) {
362 height: 120px;
363 width: 93px;
364 margin-right: 32px;
365 top: 8px;
366 }
367 }
368 }
369 .page-scroll {
370 position: absolute;
371 bottom: 48px;
372 left: 50%;
373 transform: translateX(-50%);
374 .btn {
375 width: 32px;
376 height: 32px;
377 fill: $red_900;
378 @include media-breakpoint-up(md) {
379 width: 64px;
380 height: 64px;
381 }
382 &:hover .i_arrow_down {
383 fill: white;
384 }
385 }
386 }
387 }
388
389 section.content-section {
390 padding: 3rem 0;
391 @include media-breakpoint-up(md) {
392 padding: 72px 0;
393 }
394 }
395
396 .feature_icons {
397 width: 40px;
398 height: 100%;
399 float: left;
400 margin-right: .75rem;
401 }
402
403 section#news,
404 footer {
405 background-color: rgba($blue-grey-900, .06);
406 }
407
408 section#news {
409 color: rgba($blue-grey-900, .6);
410 h2 {
411 color: $blue-grey-900;
412 }
413 }
414
415 section#wishlist {
416 background-image: url('../img/wishlist-background.jpg');
417 background-size: cover;
418 background-position: center center;
419 }
420
421 .bg-progress {
422 background-image: linear-gradient(to right, $yellow-700, $amber-800);
423 }
424
425 section#fireinfo {
426 border-bottom: 1px solid rgba($blue-grey-900, .2);
427 }
428
429 .circle {
430 position: relative;
431 p.lead {
432 color: $blue-grey-600;
433 position: absolute;
434 top: calc(50% - 1.25rem);
435 width: 100%;
436 }
437 }
438
439 footer {
440 padding: 3rem 0 0 0;
441 h4 {
442 margin-bottom: 1.25rem;
443 color: rgba($blue-grey-900, .6);
444 }
445 ul {
446 li {
447 font-size: $small-font-size;
448 margin-bottom: .75rem;
449 a {
450 color: rgba($blue-grey-900, .6);
451 text-decoration: none;
452 &:hover {
453 color: $blue-grey-900;
454 text-decoration: underline;
455 }
456 }
457 }
458 }
459 .btn-lg {
460 margin-bottom: 2.75rem;
461 }
462 .btn-sm {
463 box-shadow: none;
464 &:hover {
465 box-shadow: none;
466 }
467 }
468 }
469
470 #copyright {
471 background-color: rgba($blue-grey-900, .06);
472 padding: 1rem 0;
473 }
474
475 // Animation
476
477 @keyframes scroll {
478 0% { transform: translateY(30%); }
479 50% { transform: translateY(50%); }
480 100% { transform: translateY(30%); }
481 }