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