]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - static/scss/style.scss
2ad8afd246848bf72e1b7afd1bbacbc401c92375
[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 position: relative;
211 top: -4px;
212 }
213
214 .btn {
215 height: 36px;
216 text-transform: uppercase;
217 box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15), 0 1px 2px 0 rgba(0, 0, 0, .25);
218 transition: box-shadow .25s ease-in-out;
219 &:hover {
220 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15), 0 3px 6px 0 rgba(0, 0, 0, .25);
221 transition: box-shadow .25s ease-in-out;
222 }
223 @include media-breakpoint-down(sm) {
224 font-size: .875rem;
225 }
226 }
227
228 .btn-outline-primary,
229 .btn-outline-secondary {
230 transition: background-color .25s ease-in-out;
231 &:hover {
232 transition: background-color .25s ease-in-out;
233 }
234 }
235
236 .btn-lg {
237 height: 48px;
238 margin: 0 24px;
239 @include media-breakpoint-down(sm) {
240 height: 36px;
241 margin: 0 8px;
242 padding: 1rem;
243 font-size: .875rem;
244 line-height: 0;
245 }
246 }
247
248 .btn-md {
249 font-size: 0.875rem;
250 line-height: 1.25rem;
251 padding: .4rem 1rem .5rem 1rem;
252 }
253
254 .btn-block {
255 margin: 0 0 1.5rem 0;
256 @include media-breakpoint-up(md) {
257 margin: 0 0 2rem 0;
258 }
259 @include media-breakpoint-down(sm) {
260 font-size: .875rem;
261 line-height: 0;
262 }
263 }
264
265 // Top Navigation
266
267 .fixed-top {
268 transition: background-color 700ms linear;
269 .navbar {
270 width: 100%;
271 @include media-breakpoint-down(md) {
272 padding: .5rem 0;
273 }
274 .navbar-toggler-left {
275 left: -1rem;
276 }
277 }
278 .navbar-brand {
279 opacity: 0;
280 transition: opacity 700ms linear;
281 @include media-breakpoint-up(lg) {
282 opacity: 1;
283 }
284 }
285 }
286
287 .scrolled {
288 background-color: rgba(255, 255, 255, .96);
289 .navbar-brand {
290 opacity: 1;
291 transition: opacity 700ms linear;
292 }
293 }
294
295 .menu-text.hidden {
296 display: none;
297 visibility: hidden;
298 }
299
300 .navbar {
301 a {
302 color: $blue-grey-900;
303 }
304 .btn {
305 margin-top: .15rem;
306 }
307 }
308
309 .navbar-brand {
310 font-size: 1.25rem;
311 @include media-breakpoint-up(sm) {
312 font-size: 2rem;
313 }
314 font-weight: 300;
315 strong {
316 font-weight: 900;
317 }
318 img {
319 margin-right: 1rem;
320 transform: translateY(-5px);
321 }
322 }
323
324 // Sections
325
326 section.intro {
327 min-height: 100vh;
328 background-image: url('../img/header-background.jpg');
329 background-size: cover;
330 background-attachment: fixed;
331 background-position: center top;
332 position: relative;
333 .branding {
334 padding-top: 6rem;
335 @include media-breakpoint-up(md) {
336 padding-top: 192px;
337 }
338 margin-bottom: 64px;
339 text-align: center;
340 color: $blue-grey-600;
341 h1 {
342 font-weight: 300 !important;
343 color: $blue-grey-900;
344 @include media-breakpoint-down(sm) {
345 font-size: 4.5rem;
346 }
347 strong {
348 font-weight: 700 !important;
349 }
350 }
351 h1:before {
352 content: "";
353 height: 60px;
354 width: 76px;
355 background-image: url('../img/ipfire-tux.png');
356 background-repeat: no-repeat;
357 background-position: center center;
358 background-size: contain;
359 display: inline-block;
360 position: relative;
361 top: 4px;
362 @include media-breakpoint-up(md) {
363 height: 120px;
364 width: 93px;
365 margin-right: 32px;
366 top: 8px;
367 }
368 }
369 }
370 .page-scroll {
371 position: absolute;
372 bottom: 48px;
373 left: 50%;
374 transform: translateX(-50%);
375 .btn {
376 width: 32px;
377 height: 32px;
378 fill: $red_900;
379 @include media-breakpoint-up(md) {
380 width: 64px;
381 height: 64px;
382 }
383 &:hover .i_arrow_down {
384 fill: white;
385 }
386 }
387 }
388 }
389
390 section.content-section {
391 padding: 3rem 0;
392 @include media-breakpoint-up(md) {
393 padding: 72px 0;
394 }
395 }
396
397 .feature_icons {
398 width: 40px;
399 height: 100%;
400 float: left;
401 margin-right: .75rem;
402 }
403
404 section#news,
405 footer {
406 background-color: rgba($blue-grey-900, .06);
407 }
408
409 section#news {
410 color: rgba($blue-grey-900, .6);
411 h2 {
412 color: $blue-grey-900;
413 }
414 }
415
416 section#wishlist {
417 background-image: url('../img/wishlist-background.jpg');
418 background-size: cover;
419 background-position: center center;
420 }
421
422 .bg-progress {
423 background-image: linear-gradient(to right, $yellow-700, $amber-800);
424 }
425
426 section#fireinfo {
427 border-bottom: 1px solid rgba($blue-grey-900, .2);
428 }
429
430 .circle {
431 position: relative;
432 p.lead {
433 color: $blue-grey-600;
434 position: absolute;
435 top: calc(50% - 1.25rem);
436 width: 100%;
437 }
438 }
439
440 footer {
441 padding: 3rem 0 0 0;
442 h4 {
443 margin-bottom: 1.25rem;
444 color: rgba($blue-grey-900, .6);
445 }
446 ul {
447 li {
448 font-size: $small-font-size;
449 margin-bottom: .75rem;
450 a {
451 color: rgba($blue-grey-900, .6);
452 text-decoration: none;
453 &:hover {
454 color: $blue-grey-900;
455 text-decoration: underline;
456 }
457 }
458 }
459 }
460 .btn-lg {
461 margin-bottom: 2.75rem;
462 }
463 .btn-sm {
464 box-shadow: none;
465 &:hover {
466 box-shadow: none;
467 }
468 }
469 }
470
471 #copyright {
472 background-color: rgba($blue-grey-900, .06);
473 padding: 1rem 0;
474 }
475
476 // Animation
477
478 @keyframes scroll {
479 0% { transform: translateY(30%); }
480 50% { transform: translateY(50%); }
481 100% { transform: translateY(30%); }
482 }