]> git.ipfire.org Git - ipfire.org.git/blob - src/scss/style.scss
CSS: Reset section padding on cards
[ipfire.org.git] / src / scss / style.scss
1 @import "variables";
2
3 // Use all Bootstrap modules that we want
4 @import "../bootstrap/scss/functions";
5 @import "../bootstrap/scss/variables";
6 @import "../bootstrap/scss/mixins";
7 @import "../bootstrap/scss/root";
8 @import "../bootstrap/scss/reboot";
9 @import "../bootstrap/scss/type";
10 @import "../bootstrap/scss/images";
11 @import "../bootstrap/scss/code";
12 @import "../bootstrap/scss/grid";
13 @import "../bootstrap/scss/tables";
14 @import "../bootstrap/scss/forms";
15 @import "../bootstrap/scss/buttons";
16 @import "../bootstrap/scss/transitions";
17 @import "../bootstrap/scss/dropdown";
18 @import "../bootstrap/scss/button-group";
19 @import "../bootstrap/scss/input-group";
20 @import "../bootstrap/scss/nav";
21 @import "../bootstrap/scss/navbar";
22 @import "../bootstrap/scss/card";
23 @import "../bootstrap/scss/pagination";
24 @import "../bootstrap/scss/badge";
25 @import "../bootstrap/scss/alert";
26 @import "../bootstrap/scss/progress";
27 @import "../bootstrap/scss/media";
28 @import "../bootstrap/scss/list-group";
29 @import "../bootstrap/scss/close";
30 @import "../bootstrap/scss/modal";
31 @import "../bootstrap/scss/utilities";
32 @import "../bootstrap/scss/print";
33
34 // Include fonts
35 @import "fonts";
36
37 // Custom stuff
38 @import '_icons';
39
40 // Makes everything white with dark text on it
41 .inverse {
42 background-color: $body-color;
43 color: $body-bg;
44 }
45
46 html, body {
47 height: 100%;
48 }
49
50 body {
51 display: flex;
52 flex-flow: column;
53 }
54
55 // Buttons
56 .btn {
57 text-transform: uppercase;
58 }
59
60 @each $color, $value in $theme-colors {
61 .btn-glow-#{$color} {
62 color: white;
63 background-color: rgba($value, .15);
64 }
65 }
66
67 .card {
68 @extend .inverse;
69
70 // Reset padding for sections
71 section {
72 padding: 0;
73 }
74 }
75
76 .nav {
77 .nav-link {
78 color: $white;
79
80 &.active {
81 color: $link-color;
82 border-left: 2px solid $link-color;
83 }
84 }
85 }
86
87 .navbar {
88 background-color: rgba($gray-400, .06);
89
90 .navbar-brand {
91 color: inherit;
92 }
93
94 .navbar-nav {
95 .nav-link {
96 color: inherit;
97
98 &.active {
99 border-bottom: 2px solid $link-color;
100 }
101 }
102 }
103 }
104
105 footer {
106 margin-top: auto;
107
108 .footer {
109 margin-top: $spacer * 4;
110 padding: 2rem 0 0 0;
111
112 color: $white;
113 background-color: rgba($gray-400, .04);
114
115 @include media-breakpoint-down(md) {
116 padding-top: 31px;
117 }
118
119 a, .btn-link {
120 color: inherit;
121
122 &:hover {
123 color: inherit;
124 }
125 }
126
127 ul {
128 li {
129 margin-bottom: $spacer / 4;
130 }
131 }
132 }
133
134 .copyright {
135 background-color: rgba($gray-400, .06);
136 padding: $spacer 0;
137
138 font-size: $small-font-size;
139
140 a {
141 color: $text-muted;
142 }
143 }
144 }
145
146 // Sections
147
148 section {
149 padding: 3rem 0;
150
151 @include media-breakpoint-up(sm) {
152 padding: 72px 0;
153 }
154 }
155
156 .main {
157 .intro {
158 min-height: 100%;
159 min-height: 100vh;
160
161 margin-top: -6rem;
162
163 @include media-breakpoint-down(sm) {
164 padding-top: 6rem;
165 }
166
167 display: flex;
168 align-items: center;
169 }
170 }
171
172 .blog-post {
173 .blog-header {
174 h5 {
175 a {
176 color: $dark;
177 }
178 }
179 }
180
181 .blog-content {
182 h1, h2, h3, h4, h5, h6 {
183 font-size: 1.375rem;
184 font-weight: $headings-font-weight;
185 line-height: $headings-line-height;
186 margin-bottom: 0.25rem;
187 }
188
189 img {
190 @include img-fluid;
191 }
192 }
193
194 &.lightning-wire-labs {
195 .blog-header {
196 h5 {
197 a {
198 color: $lwl;
199 }
200 }
201
202 a {
203 color: $lwl;
204 }
205 }
206
207 .blog-content {
208 a {
209 color: $lwl;
210 }
211 }
212 }
213 }
214
215 // Donations
216
217 .donation-explanation {
218 color: $text-muted;
219 padding: 1.5rem;
220
221 .faq {
222 a {
223 color: inherit;
224 }
225 }
226 }
227
228 // Sidebar navigation
229
230 #sidebar .nav {
231 position: fixed;
232 }
233
234 .feature_icons {
235 width: 40px;
236 height: 100%;
237 float: left;
238 margin-right: .75rem;
239 }
240
241 .progress {
242 background-color: rgba(255, 255, 255, .2);
243 }
244
245 .circle {
246 position: relative;
247 p.fireinfo_per {
248 color: $gray-800;
249 position: absolute;
250 top: calc(50% - 18px);
251 width: 100%;
252 }
253 }
254
255 .divider {
256 width: 128px;
257 height: 4px;
258 border-radius: 2px;
259 background-image: linear-gradient(to right, $red, $gray-400);
260 margin: 40px auto 24px auto;
261 @include media-breakpoint-up(sm) {
262 margin: 56px auto 40px auto;
263 }
264 }
265
266 // Animation
267 @keyframes scroll {
268 0%, 100% { transform: translateY(30%); }
269 50% { transform: translateY(50%); }
270 }