]> git.ipfire.org Git - ipfire.org.git/blame - src/scss/style.scss
Delete loads of old content
[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";
bc5b7100 30@import "../bootstrap/scss/utilities";
8e1ad516 31@import "../bootstrap/scss/print";
1423222c 32
fed291df
SH
33// Donation Box
34@import "_donation";
35
5236a99a 36// Custom stuff
7ca46dd8 37@import '_icons';
5236a99a 38
cc59f0e1 39body {
9f043320
MT
40 // For scrollspy
41 position: relative;
42
cc59f0e1
MT
43 min-height: 75rem;
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;
56}
57
58h2 {
59 line-height: 3.5rem;
60}
61
62h3 {
63 line-height: 3rem;
64}
65
66h4 {
67 line-height: 2.75rem;
68}
69
70h5 {
71 line-height: 2rem;
72}
73
74h6 {
75 line-height: 1.75rem;
76}
77
cc59f0e1
MT
78.card {
79 box-shadow: $shadow-1;
80}
81
9f043320
MT
82.nav {
83 .nav-link {
84 color: $blue-grey-900;
85
86 &.active {
87 color: $link-color;
88 border-left: 2px solid $link-color;
89 }
90 }
91}
92
56fdd02c
MT
93.navbar {
94 &.scrolled {
95 background-color: white;
96 box-shadow: $shadow-2;
97
98 transition: background-color 200ms linear;
99 }
dce6f905
MT
100
101 .navbar-nav {
102 .nav-link {
103 color: $blue-grey-900;
104
105 &.active {
106 border-bottom: 2px solid $link-color;
107 }
108 }
109 }
56fdd02c
MT
110}
111
c2cbe16d
S
112footer {
113 .btn-toolbar .icon {
fdae1aac
S
114 height: 2.25rem;
115 width: 2.25rem;
c2cbe16d
S
116 fill: rgba($blue-grey-900, .6);
117 }
118 .i_heart {
fdae1aac
S
119 vertical-align: top;
120 transform: translateY(-.15rem);
121 @include media-breakpoint-down(sm) {
122 transform: translateY(-.75rem);
123 }
c2cbe16d
S
124 }
125}
126
c2cbe16d 127// Sections
319dd276 128
cc59f0e1
MT
129.main {
130 section {
131 padding: 3rem 0;
319dd276 132
cc59f0e1
MT
133 @include media-breakpoint-up(sm) {
134 padding: 72px 0;
135 }
319dd276 136
cc59f0e1
MT
137 h1 {
138 margin-bottom: 64px;
139 }
319dd276 140 }
319dd276 141
cc59f0e1 142 section.intro {
c79aaf03
MT
143 // Make it cover the navbar, too
144 margin-top: -6rem;
145 padding-top: 6rem;
146
cc59f0e1
MT
147 min-height: 100vh;
148 background-image: url('img/header-background.jpg');
149 background-size: cover;
150 background-attachment: fixed;
151 background-position: center top;
152 position: relative;
b4bff93b 153
cc59f0e1 154 .branding {
c79aaf03
MT
155 margin-top: 7.5rem;
156 margin-bottom: 4rem;
319dd276 157
c79aaf03
MT
158 @include media-breakpoint-down(xs) {
159 margin-top: 2.5rem;
cc59f0e1 160 }
319dd276 161
c79aaf03
MT
162 text-align: center;
163
cc59f0e1
MT
164 h1 {
165 margin-bottom: 0;
319dd276 166
cc59f0e1
MT
167 @include media-breakpoint-down(xs) {
168 font-size: 72px;
169 line-height: 88px;
170 }
1423222c 171 }
319dd276 172
cc59f0e1
MT
173 h1:before {
174 content: "";
175 height: 60px;
176 width: 76px;
177 background-image: url('img/ipfire-tux.png');
178 background-repeat: no-repeat;
179 background-position: center center;
180 background-size: contain;
181 display: inline-block;
182 position: relative;
183 top: 4px;
184
185 @include media-breakpoint-up(sm) {
186 height: 120px;
187 width: 93px;
188 margin-right: 32px;
189 top: 8px;
190 }
191 }
319dd276 192
cc59f0e1
MT
193 h5 {
194 color: $blue-grey-600;
319dd276 195
c79aaf03
MT
196 @include media-breakpoint-down(xs) {
197 font-size: 14px;
198 line-height: 20px;
199 }
200 }
319dd276 201 }
1423222c 202 }
f8c4f791 203
cc59f0e1
MT
204 section#news, section#support, footer {
205 background-color: rgba($blue-grey-900, .06);
206 }
319dd276 207
cc59f0e1
MT
208 section#news {
209 color: rgba($blue-grey-900, .6);
210 }
319dd276 211
cc59f0e1
MT
212 section#fireinfo {
213 border-bottom: 1px solid rgba($blue-grey-900, .2);
214 }
319dd276 215
cc59f0e1
MT
216 section#appliances {
217 padding-bottom: 48px;
218 }
319dd276
MT
219}
220
9f043320
MT
221// Sidebar navigation
222
223#sidebar .nav {
224 position: fixed;
225}
226
f8c4f791
S
227.page-scroll {
228 display: block;
229 visibility: visible;
230 position: absolute;
231 bottom: 48px;
232 left: 50%;
233 transform: translateX(-50%);
234 .btn {
235 width: 36px;
236 height: 36px;
237 fill: $red_900;
238 @include media-breakpoint-up(sm) {
239 width: 64px;
240 height: 64px;
241 }
242 &:hover .i_arrow_down {
243 fill: white;
1423222c
S
244 }
245 }
4b4334da
S
246}
247
c2cbe16d
S
248.feature_icons {
249 width: 40px;
250 height: 100%;
251 float: left;
252 margin-right: .75rem;
4b4334da
S
253}
254
61975d93
S
255.progress {
256 background-color: rgba(255, 255, 255, .2);
257}
258
c2cbe16d
S
259.circle {
260 position: relative;
f8c4f791 261 p.fireinfo_per {
c2cbe16d
S
262 color: $blue-grey-600;
263 position: absolute;
d56f505e 264 top: calc(50% - 18px);
c2cbe16d
S
265 width: 100%;
266 }
20df8773
S
267}
268
8e4a3eaa 269.fixed-top + .blog-content {
96dd6875 270 padding-top: 88px;
0955047d 271 margin-bottom: 40px;
346e30de 272 @include media-breakpoint-up(lg) {
96dd6875
SH
273 padding-top: 161px;
274 }
0955047d
S
275 .content {
276 background: white;
277 border-radius: 4px;
278 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
279 padding: 40px 24px;
f59b40f6 280 position: relative;
0955047d
S
281 }
282}
283
8e4a3eaa
SH
284.blog-content {
285 margin-bottom: 80px;
286}
287
bf5b46d4 288.divider {
0955047d 289 width: 128px;
bf5b46d4
S
290 height: 4px;
291 border-radius: 2px;
bc5b7100 292 background-image: linear-gradient(to right, $red-900, $orange-a400);
96dd6875
SH
293 margin: 40px auto 24px auto;
294 @include media-breakpoint-up(sm) {
295 margin: 56px auto 40px auto;
296 }
0955047d
S
297}
298
20df8773
S
299footer {
300 padding: 3rem 0 0 0;
8e18ac98
S
301 @include media-breakpoint-down(md) {
302 padding-top: 31px;
303 }
6aa3b1ec
S
304 h4 {
305 margin-bottom: 1.25rem;
c2cbe16d 306 color: rgba($blue-grey-900, .6);
f8c4f791
S
307 font-size: 20px;
308 line-height: 28px;
6aa3b1ec
S
309 }
310 ul {
311 li {
f8c4f791 312 font-size: 14px;
6aa3b1ec
S
313 margin-bottom: .75rem;
314 a {
c2cbe16d 315 color: rgba($blue-grey-900, .6);
6aa3b1ec
S
316 text-decoration: none;
317 &:hover {
c2cbe16d 318 color: $blue-grey-900;
6aa3b1ec
S
319 text-decoration: underline;
320 }
321 }
322 }
323 }
324 .btn-lg {
325 margin-bottom: 2.75rem;
6aa3b1ec
S
326 }
327 .btn-sm {
328 box-shadow: none;
329 &:hover {
330 box-shadow: none;
331 }
6aa3b1ec 332 }
20df8773
S
333}
334
c2cbe16d
S
335#copyright {
336 background-color: rgba($blue-grey-900, .06);
337 padding: 1rem 0;
f8c4f791
S
338 p {
339 font-size: 12px;
340 line-height: 16px;
341 }
ac7f3ec6
S
342}
343
c2cbe16d 344// Animation
c2cbe16d 345@keyframes scroll {
61eaa9b2 346 0%, 100% { transform: translateY(30%); }
fdae1aac 347 50% { transform: translateY(50%); }
7c0605e8 348}