]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - static/scss/style.scss
774e127bd1ad7b40c9a6276603f6190a7cd3491d
[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 .icon {
143 width: 1.5rem;
144 height: 1.5rem;
145 fill: currentColor;
146 vertical-align: -.15rem;
147 overflow: hidden;
148 margin-right: .5rem;
149 }
150
151 .i_arrow_down {
152 margin: 0;
153 position: absolute;
154 left: .75rem;
155 top: -.25rem;
156 animation: scroll 1.5s ease-in-out infinite;
157 @include media-breakpoint-down(sm) {
158 width: 2rem !important;
159 height: 2rem !important;
160 left: .15rem;
161 top: -.75rem;
162 }
163 }
164
165 .i_lg {
166 width: 2.5rem;
167 height: 2.5rem;
168 margin: 0;
169 transform: translateY(-.35rem);
170 fill: $red_900;
171 }
172
173 .i_sm {
174 vertical-align: top;
175 transform: translateY(-.10rem);
176 }
177
178 footer {
179 .btn-toolbar .icon {
180 height: 2.25rem;
181 width: 2.25rem;
182 fill: rgba($blue-grey-900, .6);
183 }
184 .i_heart {
185 vertical-align: top;
186 transform: translateY(-.15rem);
187 @include media-breakpoint-down(sm) {
188 transform: translateY(-.75rem);
189 }
190 }
191 }
192
193 // Buttons
194 .btn-red900 {
195 @include button-variant($btn-red900-color, $btn-red900-bg, $btn-red900-border);
196 }
197 .btn-white {
198 @include button-variant($btn-white-color, $btn-white-bg, $btn-white-border);
199 }
200 .btn-bluegrey900 {
201 @include button-variant($btn-bluegrey900-color, $btn-bluegrey900-bg, $btn-bluegrey900-border);
202 }
203
204 button.navbar-toggler div {
205 font-family: 'Ubuntu', sans-serif;
206 font-size: 1rem;
207 display: inline-block;
208 position: relative;
209 top: -4px;
210 }
211
212 .btn {
213 height: 36px;
214 text-transform: uppercase;
215 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15), 0 1px 2px 0 rgba(0, 0, 0, .25);
216 transition: box-shadow .25s ease-in-out;
217 &:hover {
218 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15), 0 3px 6px 0 rgba(0, 0, 0, .25);
219 transition: box-shadow .25s ease-in-out;
220 }
221 @include media-breakpoint-down(sm) {
222 font-size: .875rem;
223 }
224 }
225
226 .btn-outline-primary,
227 .btn-outline-secondary {
228 transition: background-color .25s ease-in-out;
229 &:hover {
230 transition: background-color .25s ease-in-out;
231 }
232 }
233
234 .btn-lg {
235 height: 48px;
236 margin: 0 24px;
237 @include media-breakpoint-down(sm) {
238 height: 36px;
239 margin: 0 8px;
240 padding: 1rem;
241 font-size: .875rem;
242 line-height: 0;
243 }
244 }
245
246 .btn-md {
247 font-size: 0.875rem;
248 line-height: 1.25rem;
249 padding: .4rem 1rem .5rem 1rem;
250 }
251
252 .btn-block {
253 margin: 0 0 1.5rem 0;
254 @include media-breakpoint-up(md) {
255 margin: 0 0 2rem 0;
256 }
257 @include media-breakpoint-down(sm) {
258 font-size: .875rem;
259 line-height: 0;
260 }
261 }
262
263 button:focus {
264 outline: none;
265 }
266
267 // Top Navigation
268 .fixed-top {
269 transition: background-color 700ms linear;
270 .navbar {
271 width: 100%;
272 @include media-breakpoint-down(md) {
273 padding: .5rem 0;
274 }
275 .navbar-toggler-left {
276 left: -1rem;
277 }
278 }
279 .navbar-brand {
280 opacity: 0;
281 transition: opacity 700ms linear;
282 @include media-breakpoint-up(lg) {
283 opacity: 1;
284 }
285 }
286 }
287
288 .scrolled {
289 background-color: rgba(255, 255, 255, .96);
290 .navbar-brand {
291 opacity: 1;
292 transition: opacity 700ms linear;
293 }
294 }
295
296 .menu-text.hidden {
297 display: none;
298 visibility: hidden;
299 }
300
301 .navbar {
302 a {
303 color: $blue-grey-900;
304 }
305 .btn {
306 margin-top: .15rem;
307 }
308 }
309
310 a.nav-link {
311 padding-bottom: 30px;
312 display: block;
313 position: relative;
314 &:after {
315 content: "";
316 border-bottom: 2px solid $red_900;
317 position: absolute;
318 transform: scaleX(0);
319 width: 100%;
320 left: 0;
321 padding: inherit;
322 transition: transform .3s ease-out;
323 }
324 }
325
326 a.nav-link:hover:after {
327 transform: scaleX(1);
328 }
329
330 .navbar-brand {
331 font-size: 1.25rem;
332 @include media-breakpoint-up(sm) {
333 font-size: 2rem;
334 }
335 font-weight: 300;
336 strong {
337 font-weight: 900;
338 }
339 img {
340 margin-right: 1rem;
341 transform: translateY(-5px);
342 }
343 }
344
345 // Sections
346 section.intro {
347 min-height: 100vh;
348 background-image: url('../img/header-background.jpg');
349 background-size: cover;
350 background-attachment: fixed;
351 background-position: center top;
352 position: relative;
353 .branding {
354 padding-top: 6rem;
355 @include media-breakpoint-up(md) {
356 padding-top: 192px;
357 }
358 margin-bottom: 64px;
359 text-align: center;
360 color: $blue-grey-600;
361 h1 {
362 font-weight: 300 !important;
363 color: $blue-grey-900;
364 @include media-breakpoint-down(sm) {
365 font-size: 4.5rem;
366 }
367 strong {
368 font-weight: 700 !important;
369 }
370 }
371 h1:before {
372 content: "";
373 height: 60px;
374 width: 76px;
375 background-image: url('../img/ipfire-tux.png');
376 background-repeat: no-repeat;
377 background-position: center center;
378 background-size: contain;
379 display: inline-block;
380 position: relative;
381 top: 4px;
382 @include media-breakpoint-up(md) {
383 height: 120px;
384 width: 93px;
385 margin-right: 32px;
386 top: 8px;
387 }
388 }
389 }
390 .page-scroll {
391 position: absolute;
392 bottom: 48px;
393 left: 50%;
394 transform: translateX(-50%);
395 .btn {
396 width: 36px;
397 height: 36px;
398 fill: $red_900;
399 @include media-breakpoint-up(md) {
400 width: 64px;
401 height: 64px;
402 }
403 &:hover .i_arrow_down {
404 fill: white;
405 }
406 }
407 }
408 }
409
410 section.content-section {
411 padding: 3rem 0;
412 @include media-breakpoint-up(md) {
413 padding: 72px 0;
414 }
415 }
416
417 .feature_icons {
418 width: 40px;
419 height: 100%;
420 float: left;
421 margin-right: .75rem;
422 }
423
424 section#news,
425 footer {
426 background-color: rgba($blue-grey-900, .06);
427 }
428
429 section#news {
430 color: rgba($blue-grey-900, .6);
431 h2 {
432 color: $blue-grey-900;
433 }
434 }
435
436 section#wishlist {
437 background-image: url('../img/wishlist-background.jpg');
438 background-size: cover;
439 background-position: center center;
440 }
441
442 .progress {
443 background-color: rgba(255, 255, 255, .2);
444 }
445
446 .bg-progress {
447 background-image: linear-gradient(to right, $yellow-700, $amber-800);
448 }
449
450 section#fireinfo {
451 border-bottom: 1px solid rgba($blue-grey-900, .2);
452 }
453
454 .circle {
455 position: relative;
456 p.lead {
457 color: $blue-grey-600;
458 position: absolute;
459 top: calc(50% - 1.25rem);
460 width: 100%;
461 }
462 }
463
464 footer {
465 padding: 3rem 0 0 0;
466 h4 {
467 margin-bottom: 1.25rem;
468 color: rgba($blue-grey-900, .6);
469 }
470 ul {
471 li {
472 font-size: $small-font-size;
473 margin-bottom: .75rem;
474 a {
475 color: rgba($blue-grey-900, .6);
476 text-decoration: none;
477 &:hover {
478 color: $blue-grey-900;
479 text-decoration: underline;
480 }
481 }
482 }
483 }
484 .btn-lg {
485 margin-bottom: 2.75rem;
486 }
487 .btn-sm {
488 box-shadow: none;
489 &:hover {
490 box-shadow: none;
491 }
492 }
493 }
494
495 #copyright {
496 background-color: rgba($blue-grey-900, .06);
497 padding: 1rem 0;
498 }
499
500 // Animation
501 @keyframes scroll {
502 0%, 100% { transform: translateY(30%); }
503 50% { transform: translateY(50%); }
504 }