]> git.ipfire.org Git - ipfire.org.git/blame - src/scss/style.scss
index: Redesign intro
[ipfire.org.git] / src / scss / style.scss
CommitLineData
bc5b7100 1@import "variables";
91e44d91 2
8e1ad516 3// Use all Bootstrap modules that we want
bc5b7100
MT
4@import "../bootstrap/scss/functions";
5@import "../bootstrap/scss/variables";
6@import "../bootstrap/scss/mixins";
8e1ad516 7@import "../bootstrap/scss/root";
bc5b7100 8@import "../bootstrap/scss/reboot";
bc5b7100 9@import "../bootstrap/scss/type";
8e1ad516
MT
10@import "../bootstrap/scss/images";
11@import "../bootstrap/scss/code";
bc5b7100
MT
12@import "../bootstrap/scss/grid";
13@import "../bootstrap/scss/tables";
14@import "../bootstrap/scss/forms";
15@import "../bootstrap/scss/buttons";
bc5b7100 16@import "../bootstrap/scss/transitions";
8e1ad516 17@import "../bootstrap/scss/dropdown";
bc5b7100 18@import "../bootstrap/scss/button-group";
8e1ad516 19@import "../bootstrap/scss/input-group";
bc5b7100
MT
20@import "../bootstrap/scss/nav";
21@import "../bootstrap/scss/navbar";
8e1ad516
MT
22@import "../bootstrap/scss/card";
23@import "../bootstrap/scss/pagination";
bc5b7100 24@import "../bootstrap/scss/badge";
8e1ad516 25@import "../bootstrap/scss/alert";
bc5b7100
MT
26@import "../bootstrap/scss/progress";
27@import "../bootstrap/scss/media";
28@import "../bootstrap/scss/list-group";
8e1ad516 29@import "../bootstrap/scss/close";
95b30f84 30@import "../bootstrap/scss/modal";
bc5b7100 31@import "../bootstrap/scss/utilities";
8e1ad516 32@import "../bootstrap/scss/print";
1423222c 33
616bd6a5
MT
34// Include fonts
35@import "fonts";
36
5236a99a 37// Custom stuff
7ca46dd8 38@import '_icons';
5236a99a 39
cc59f0e1 40body {
9f043320
MT
41 // For scrollspy
42 position: relative;
43
cc59f0e1
MT
44 padding-top: 6rem;
45}
46
41f3d31d
MT
47// Buttons
48.btn {
49 text-transform: uppercase;
50}
51
e434c81f
MT
52// Headings
53
54h1 {
55 line-height: 4rem;
825bacca 56 font-weight: 300;
e434c81f
MT
57}
58
59h2 {
60 line-height: 3.5rem;
61}
62
63h3 {
64 line-height: 3rem;
65}
66
67h4 {
68 line-height: 2.75rem;
69}
70
71h5 {
72 line-height: 2rem;
73}
74
75h6 {
76 line-height: 1.75rem;
77}
78
25346297
MT
79.card {
80 color: $dark;
9632ca8b
MT
81
82 .card-body {
83 h1, h2, h3, h4, h5, h6 {
84 color: inherit;
85 }
86 }
25346297
MT
87}
88
9f043320
MT
89.nav {
90 .nav-link {
25346297 91 color: $white;
9f043320
MT
92
93 &.active {
94 color: $link-color;
95 border-left: 2px solid $link-color;
96 }
97 }
98}
99
56fdd02c
MT
100.navbar {
101 &.scrolled {
102 background-color: white;
56fdd02c
MT
103
104 transition: background-color 200ms linear;
105 }
dce6f905
MT
106
107 .navbar-nav {
108 .nav-link {
25346297 109 color: $white;
dce6f905
MT
110
111 &.active {
112 border-bottom: 2px solid $link-color;
113 }
114 }
115 }
56fdd02c
MT
116}
117
c2cbe16d
S
118footer {
119 .btn-toolbar .icon {
fdae1aac
S
120 height: 2.25rem;
121 width: 2.25rem;
25346297 122 fill: rgba($gray-400, .6);
c2cbe16d
S
123 }
124 .i_heart {
fdae1aac
S
125 vertical-align: top;
126 transform: translateY(-.15rem);
127 @include media-breakpoint-down(sm) {
128 transform: translateY(-.75rem);
129 }
c2cbe16d
S
130 }
131}
132
c2cbe16d 133// Sections
319dd276 134
cc59f0e1 135.main {
30b0d61a
MT
136 .intro {
137 min-height: 100%;
138 min-height: 100vh;
139
140 margin-top: -6rem;
141
142 display: flex;
143 align-items: center;
144 }
145
cc59f0e1
MT
146 section {
147 padding: 3rem 0;
319dd276 148
cc59f0e1
MT
149 @include media-breakpoint-up(sm) {
150 padding: 72px 0;
151 }
319dd276 152
cc59f0e1
MT
153 h1 {
154 margin-bottom: 64px;
155 }
319dd276 156 }
319dd276 157
cc59f0e1 158 section#news, section#support, footer {
4efbbe51
MT
159 background-color: $body-color;
160 color: $body-bg;
319dd276 161
4efbbe51
MT
162 h1 {
163 color: inherit;
164 }
cc59f0e1 165 }
319dd276 166
cc59f0e1 167 section#fireinfo {
25346297 168 border-bottom: 1px solid rgba($gray-800, .2);
cc59f0e1 169 }
319dd276 170
cc59f0e1
MT
171 section#appliances {
172 padding-bottom: 48px;
173 }
319dd276
MT
174}
175
12e5de7e 176.blog-post {
4b2975d2
MT
177 .blog-header {
178 h5 {
179 a {
9632ca8b 180 color: $dark;
4b2975d2 181 }
60e77f07
MT
182 }
183 }
8ebc98d4 184
fb37ac29
MT
185 .blog-content {
186 h1, h2, h3, h4, h5, h6 {
187 font-size: 20px;
188 font-weight: $headings-font-weight;
189
190 line-height: 28px;
191
192 margin-bottom: 0.25rem;
193 }
c5cfd0d5
MT
194
195 img {
196 @include img-fluid;
197 }
fb37ac29
MT
198 }
199
8ebc98d4 200 &.lightning-wire-labs {
4b2975d2
MT
201 .blog-header {
202 h5 {
203 a {
204 color: $lwl;
205 }
206 }
207
208 a {
209 color: $lwl;
210 }
211 }
212
213 .blog-content {
214 a {
215 color: $lwl;
216 }
8ebc98d4
MT
217 }
218 }
12e5de7e
MT
219}
220
8bc72662
MT
221// Donations
222
223.faq {
224 a {
225 color: $body-color;
226 }
227}
228
161b0c22 229.donation-explanation {
161b0c22
MT
230 margin-bottom: 2rem;
231
232 p {
233 color: $text-muted;
234 }
235
236 @include media-breakpoint-down(sm) {
237 background-color: $dark;
238 color: $white;
239
f929df78
MT
240 padding: 1.5rem;
241
161b0c22
MT
242 h5, p {
243 color: inherit;
244 }
245 }
246}
247
9f043320
MT
248// Sidebar navigation
249
250#sidebar .nav {
251 position: fixed;
252}
253
c2cbe16d
S
254.feature_icons {
255 width: 40px;
256 height: 100%;
257 float: left;
258 margin-right: .75rem;
4b4334da
S
259}
260
61975d93
S
261.progress {
262 background-color: rgba(255, 255, 255, .2);
263}
264
c2cbe16d
S
265.circle {
266 position: relative;
f8c4f791 267 p.fireinfo_per {
25346297 268 color: $gray-800;
c2cbe16d 269 position: absolute;
d56f505e 270 top: calc(50% - 18px);
c2cbe16d
S
271 width: 100%;
272 }
20df8773
S
273}
274
8e4a3eaa 275.fixed-top + .blog-content {
96dd6875 276 padding-top: 88px;
0955047d 277 margin-bottom: 40px;
346e30de 278 @include media-breakpoint-up(lg) {
96dd6875
SH
279 padding-top: 161px;
280 }
0955047d
S
281 .content {
282 background: white;
283 border-radius: 4px;
0955047d 284 padding: 40px 24px;
f59b40f6 285 position: relative;
0955047d
S
286 }
287}
288
8e4a3eaa
SH
289.blog-content {
290 margin-bottom: 80px;
291}
292
bf5b46d4 293.divider {
0955047d 294 width: 128px;
bf5b46d4
S
295 height: 4px;
296 border-radius: 2px;
25346297 297 background-image: linear-gradient(to right, $red, $gray-400);
96dd6875
SH
298 margin: 40px auto 24px auto;
299 @include media-breakpoint-up(sm) {
300 margin: 56px auto 40px auto;
301 }
0955047d
S
302}
303
20df8773
S
304footer {
305 padding: 3rem 0 0 0;
8e18ac98
S
306 @include media-breakpoint-down(md) {
307 padding-top: 31px;
308 }
6aa3b1ec
S
309 h4 {
310 margin-bottom: 1.25rem;
25346297 311 color: rgba($gray-400, .6);
f8c4f791
S
312 font-size: 20px;
313 line-height: 28px;
6aa3b1ec
S
314 }
315 ul {
316 li {
f8c4f791 317 font-size: 14px;
6aa3b1ec
S
318 margin-bottom: .75rem;
319 a {
25346297 320 color: rgba($gray-400, .6);
6aa3b1ec
S
321 text-decoration: none;
322 &:hover {
25346297 323 color: $gray-400;
6aa3b1ec
S
324 text-decoration: underline;
325 }
326 }
327 }
328 }
329 .btn-lg {
330 margin-bottom: 2.75rem;
6aa3b1ec 331 }
20df8773 332
23015f63 333 .copyright {
25346297 334 background-color: rgba($gray-400, .06);
23015f63
MT
335 padding: $spacer 0;
336
337 font-size: $small-font-size;
338
339 a {
340 color: $text-muted;
341 }
f8c4f791 342 }
ac7f3ec6
S
343}
344
c2cbe16d 345// Animation
c2cbe16d 346@keyframes scroll {
61eaa9b2 347 0%, 100% { transform: translateY(30%); }
fdae1aac 348 50% { transform: translateY(50%); }
7c0605e8 349}