]> git.ipfire.org Git - ipfire.org.git/blame - src/scss/style.scss
Drop bundled bootstrap and use submodule
[ipfire.org.git] / src / scss / style.scss
CommitLineData
bc5b7100 1@import "variables";
91e44d91
S
2
3// Core variables and mixins
bc5b7100
MT
4@import "../bootstrap/scss/functions";
5@import "../bootstrap/scss/variables";
6@import "../bootstrap/scss/mixins";
7@import "../bootstrap/scss/reboot";
91e44d91 8
bc5b7100 9// @import "../bootstrap/scss/print";
91e44d91
S
10
11// Core CSS
bc5b7100
MT
12@import "../bootstrap/scss/type";
13//@import "../bootstrap/scss/images";
14// @import "../bootstrap/scss/code";
15@import "../bootstrap/scss/grid";
16@import "../bootstrap/scss/tables";
17@import "../bootstrap/scss/forms";
18@import "../bootstrap/scss/buttons";
91e44d91
S
19
20// Components
bc5b7100
MT
21@import "../bootstrap/scss/transitions";
22//@import "../bootstrap/scss/dropdown";
23@import "../bootstrap/scss/button-group";
24//@import "../bootstrap/scss/input-group";
25//@import "../bootstrap/scss/custom-forms";
26@import "../bootstrap/scss/nav";
27@import "../bootstrap/scss/navbar";
28//@import "../bootstrap/scss/card";
29// @import "../bootstrap/scss/breadcrumb";
30// @import "../bootstrap/scss/pagination";
31@import "../bootstrap/scss/badge";
32// @import "../bootstrap/scss/jumbotron";
33// @import "../bootstrap/scss/alert";
34@import "../bootstrap/scss/progress";
35@import "../bootstrap/scss/media";
36@import "../bootstrap/scss/list-group";
37// @import "../bootstrap/scss/responsive-embed";
38// @import "../bootstrap/scss/close";
91e44d91
S
39
40// Components w/ JavaScript
bc5b7100
MT
41// @import "../bootstrap/scss/modal";
42// @import "../bootstrap/scss/tooltip";
43// @import "../bootstrap/scss/popover";
44// @import "../bootstrap/scss/carousel";
91e44d91
S
45
46// Utility classes
bc5b7100 47@import "../bootstrap/scss/utilities";
1423222c 48
e33d95d5
SH
49// Lightbox
50@import "photoswipe/main";
51@import "photoswipe/default-skin/default-skin";
7ca46dd8 52
fed291df
SH
53// Donation Box
54@import "_donation";
55
7ca46dd8
SH
56body {
57 min-height: 100vh;
58 display: flex;
59 flex-direction: column;
60}
61
f8c4f791
S
62.container {
63 width: 100%;
64 max-width: 1200px;
7ca46dd8 65 flex: 1;
f8c4f791
S
66}
67
5236a99a 68// Custom stuff
e3325bcf
S
69@import '_fonts';
70@import '_nav';
5236a99a 71@import '_buttons';
7ca46dd8 72@import '_icons';
5236a99a 73
c2cbe16d 74
f8c4f791 75
8ef25aa4 76// Colors
8ef25aa4
S
77.amber-800 {
78 color: $amber-800;
346e30de
SH
79 border-color: $amber-800;
80}
81
82.green-600 {
83 color: $green-600;
84 border-color: $green-600;
85}
86
87.red-900 {
88 color: $red_900;
89 border-color: $red_900;
90}
91
92.blue-700{
93 color: $blue-700;
94 border-color: $blue-700;
8ef25aa4
S
95}
96
83985f52
SH
97.blue_grey_300 {
98 color: $blue_grey_300;
99}
100
fed291df
SH
101.bg-blue-grey-900 {
102 background-color: $blue-grey-900;
103}
104
105.bg-blue-grey-50 {
106 background-color: $blue-grey-50;
107}
108
c2cbe16d
S
109// Images
110img {
111 &.img-fluid {
112 width: 100%;
113 max-width: 100%;
114 height: auto;
115 }
116}
117
c2cbe16d
S
118
119footer {
120 .btn-toolbar .icon {
fdae1aac
S
121 height: 2.25rem;
122 width: 2.25rem;
c2cbe16d
S
123 fill: rgba($blue-grey-900, .6);
124 }
125 .i_heart {
fdae1aac
S
126 vertical-align: top;
127 transform: translateY(-.15rem);
128 @include media-breakpoint-down(sm) {
129 transform: translateY(-.75rem);
130 }
c2cbe16d
S
131 }
132}
133
1423222c 134
c2cbe16d 135// Sections
1423222c
S
136section.intro {
137 min-height: 100vh;
138 background-image: url('../img/header-background.jpg');
139 background-size: cover;
140 background-attachment: fixed;
141 background-position: center top;
142 position: relative;
143 .branding {
82468973 144 padding-top: 6rem;
8e18ac98 145 @include media-breakpoint-up(sm) {
82468973
S
146 padding-top: 192px;
147 }
1423222c
S
148 margin-bottom: 64px;
149 text-align: center;
150 color: $blue-grey-600;
151 h1 {
152 font-weight: 300 !important;
153 color: $blue-grey-900;
8e18ac98 154 @include media-breakpoint-down(xs) {
f8c4f791
S
155 font-size: 72px;
156 line-height: 88px;
157 margin-bottom: 0;
82468973 158 }
1423222c
S
159 strong {
160 font-weight: 700 !important;
161 }
162 }
163 h1:before {
164 content: "";
82468973
S
165 height: 60px;
166 width: 76px;
1423222c
S
167 background-image: url('../img/ipfire-tux.png');
168 background-repeat: no-repeat;
169 background-position: center center;
170 background-size: contain;
1423222c
S
171 display: inline-block;
172 position: relative;
82468973 173 top: 4px;
8e18ac98 174 @include media-breakpoint-up(sm) {
82468973
S
175 height: 120px;
176 width: 93px;
177 margin-right: 32px;
178 top: 8px;
179 }
1423222c
S
180 }
181 }
f8c4f791
S
182}
183
184.page-scroll {
185 display: block;
186 visibility: visible;
187 position: absolute;
188 bottom: 48px;
189 left: 50%;
190 transform: translateX(-50%);
191 .btn {
192 width: 36px;
193 height: 36px;
194 fill: $red_900;
195 @include media-breakpoint-up(sm) {
196 width: 64px;
197 height: 64px;
198 }
199 &:hover .i_arrow_down {
200 fill: white;
1423222c
S
201 }
202 }
4b4334da
S
203}
204
205section.content-section {
e2d13261 206 padding: 3rem 0;
8e18ac98 207 @include media-breakpoint-up(sm) {
c2cbe16d 208 padding: 72px 0;
d8c9a4d4 209 }
4b4334da
S
210}
211
c2cbe16d
S
212.feature_icons {
213 width: 40px;
214 height: 100%;
215 float: left;
216 margin-right: .75rem;
4b4334da
S
217}
218
20df8773 219section#news,
1a09d1ae 220section#support,
20df8773 221footer {
c2cbe16d
S
222 background-color: rgba($blue-grey-900, .06);
223}
224
225section#news {
226 color: rgba($blue-grey-900, .6);
227 h2 {
228 color: $blue-grey-900;
229 }
4b4334da
S
230}
231
61975d93
S
232.progress {
233 background-color: rgba(255, 255, 255, .2);
234}
235
c2cbe16d
S
236.bg-progress {
237 background-image: linear-gradient(to right, $yellow-700, $amber-800);
238}
239
20df8773
S
240section#fireinfo {
241 border-bottom: 1px solid rgba($blue-grey-900, .2);
242}
243
c2cbe16d
S
244.circle {
245 position: relative;
f8c4f791 246 p.fireinfo_per {
c2cbe16d
S
247 color: $blue-grey-600;
248 position: absolute;
d56f505e 249 top: calc(50% - 18px);
c2cbe16d
S
250 width: 100%;
251 }
20df8773
S
252}
253
8e18ac98
S
254section#appliances {
255 padding-bottom: 48px;
256}
257
8e4a3eaa
SH
258.features-content,
259.fixed-top + .blog-content {
96dd6875 260 padding-top: 88px;
0955047d 261 margin-bottom: 40px;
346e30de 262 @include media-breakpoint-up(lg) {
96dd6875
SH
263 padding-top: 161px;
264 }
0955047d
S
265 .content {
266 background: white;
267 border-radius: 4px;
268 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
269 padding: 40px 24px;
f59b40f6 270 position: relative;
0955047d
S
271 }
272}
273
8e4a3eaa
SH
274.blog-content {
275 margin-bottom: 80px;
276}
277
bf5b46d4 278.divider {
0955047d 279 width: 128px;
bf5b46d4
S
280 height: 4px;
281 border-radius: 2px;
bc5b7100 282 background-image: linear-gradient(to right, $red-900, $orange-a400);
96dd6875
SH
283 margin: 40px auto 24px auto;
284 @include media-breakpoint-up(sm) {
285 margin: 56px auto 40px auto;
286 }
0955047d
S
287}
288
20df8773
S
289footer {
290 padding: 3rem 0 0 0;
8e18ac98
S
291 @include media-breakpoint-down(md) {
292 padding-top: 31px;
293 }
6aa3b1ec
S
294 h4 {
295 margin-bottom: 1.25rem;
c2cbe16d 296 color: rgba($blue-grey-900, .6);
f8c4f791
S
297 font-size: 20px;
298 line-height: 28px;
6aa3b1ec
S
299 }
300 ul {
301 li {
f8c4f791 302 font-size: 14px;
6aa3b1ec
S
303 margin-bottom: .75rem;
304 a {
c2cbe16d 305 color: rgba($blue-grey-900, .6);
6aa3b1ec
S
306 text-decoration: none;
307 &:hover {
c2cbe16d 308 color: $blue-grey-900;
6aa3b1ec
S
309 text-decoration: underline;
310 }
311 }
312 }
313 }
314 .btn-lg {
315 margin-bottom: 2.75rem;
6aa3b1ec
S
316 }
317 .btn-sm {
318 box-shadow: none;
319 &:hover {
320 box-shadow: none;
321 }
6aa3b1ec 322 }
20df8773
S
323}
324
c2cbe16d
S
325#copyright {
326 background-color: rgba($blue-grey-900, .06);
327 padding: 1rem 0;
f8c4f791
S
328 p {
329 font-size: 12px;
330 line-height: 16px;
331 }
ac7f3ec6
S
332}
333
c2cbe16d 334// Animation
c2cbe16d 335@keyframes scroll {
61eaa9b2 336 0%, 100% { transform: translateY(30%); }
fdae1aac 337 50% { transform: translateY(50%); }
7c0605e8 338}