]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - static/scss/style.scss
Bug 11337: closed
[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 .navbar-brand {
311 font-size: 1.25rem;
312 @include media-breakpoint-up(sm) {
313 font-size: 2rem;
314 }
315 font-weight: 300;
316 strong {
317 font-weight: 900;
318 }
319 img {
320 margin-right: 1rem;
321 transform: translateY(-5px);
322 }
323 }
324
325 // Sections
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: 36px;
377 height: 36px;
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 .progress {
423 background-color: rgba(255, 255, 255, .2);
424 }
425
426 .bg-progress {
427 background-image: linear-gradient(to right, $yellow-700, $amber-800);
428 }
429
430 section#fireinfo {
431 border-bottom: 1px solid rgba($blue-grey-900, .2);
432 }
433
434 .circle {
435 position: relative;
436 p.lead {
437 color: $blue-grey-600;
438 position: absolute;
439 top: calc(50% - 1.25rem);
440 width: 100%;
441 }
442 }
443
444 footer {
445 padding: 3rem 0 0 0;
446 h4 {
447 margin-bottom: 1.25rem;
448 color: rgba($blue-grey-900, .6);
449 }
450 ul {
451 li {
452 font-size: $small-font-size;
453 margin-bottom: .75rem;
454 a {
455 color: rgba($blue-grey-900, .6);
456 text-decoration: none;
457 &:hover {
458 color: $blue-grey-900;
459 text-decoration: underline;
460 }
461 }
462 }
463 }
464 .btn-lg {
465 margin-bottom: 2.75rem;
466 }
467 .btn-sm {
468 box-shadow: none;
469 &:hover {
470 box-shadow: none;
471 }
472 }
473 }
474
475 #copyright {
476 background-color: rgba($blue-grey-900, .06);
477 padding: 1rem 0;
478 }
479
480 // Animation
481 @keyframes scroll {
482 0%, 100% { transform: translateY(30%); }
483 50% { transform: translateY(50%); }
484 }