]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - src/assets/app.scss
Change main-section margin-bottom to padding-bottom to compensate for footer
[github/bastienwirtz/homer.git] / src / assets / app.scss
CommitLineData
b9c5fcf0
BW
1@charset "utf-8";
2
1875c17a
BW
3@import "./webfonts/webfonts.scss";
4
b9c5fcf0
BW
5@import "bulma";
6
7// Themes import
8@import "./themes/sui.scss";
9
10@mixin ellipsis() {
11 white-space: nowrap;
12 overflow: hidden;
13 text-overflow: ellipsis;
14}
15
67fd101a 16html, body, body #app {
b9c5fcf0 17 height: 100%;
67fd101a 18 background-color: var(--background);
b9c5fcf0
BW
19}
20
21body {
22 font-family: "Raleway", sans-serif;
b9c5fcf0
BW
23
24 #app {
67fd101a 25 height: auto;
b9c5fcf0 26 min-height: 100%;
154e6efe
BW
27 background-image: var(--background-image);
28 background-size: cover;
29 background-position: center;
b9c5fcf0
BW
30 color: var(--text);
31 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
32
33 a {
3faeac7e 34 color: var(--link);
b9c5fcf0
BW
35 &:hover {
36 color: var(--link-hover);
37 }
38 }
39
40 .title {
41 color: var(--text-title);
42 }
43 .subtitle {
44 color: var(--text-subtitle);
45 }
46
47 .card {
48 background-color: var(--card-background);
49 box-shadow: 0 2px 15px 0 var(--card-shadow);
50 &:hover {
51 background-color: var(--card-background);
52 }
53 }
54
55 .message {
56 background-color: var(--card-background);
57 .message-body {
58 color: var(--text);
59 }
60 }
61
62 .footer {
63 background-color: var(--card-background);
64 box-shadow: 0 2px 15px 0 var(--card-shadow);
65 }
66 }
67
68 h1,
69 h2,
70 h3,
71 h4,
72 h5,
73 h6 {
74 font-family: "Lato", sans-serif;
75 }
76
77 h1 {
78 font-size: 2rem;
79 }
80
81 h2 {
82 font-size: 1.7rem;
83 margin-top: 2rem;
84 margin-bottom: 1rem;
85
86 .fas,
87 .fab,
88 .far {
89 margin-right: 10px;
90 }
91
92 span {
93 font-weight: bold;
94 color: var(--highlight-secondary);
95 }
96 }
97
98 [v-cloak] {
99 display: none;
100 }
101
102 #bighead {
103 color: var(--text-header);
104
105 .dashboard-title {
106 padding: 6px 0 0 80px;
107 }
108
109 .first-line {
6c834c24 110 min-height: 100px;
b9c5fcf0
BW
111 vertical-align: center;
112 background-color: var(--highlight-primary);
113
114 h1 {
115 margin-top: -12px;
116 font-size: 2rem;
117 }
118
119 .headline {
120 margin-top: 5px;
121 font-size: 0.9rem;
122 }
123
124 .container {
6c834c24 125 min-height: 80px;
b9c5fcf0
BW
126 padding: 10px 0;
127 }
128
129 .logo {
130 float: left;
131 i {
132 vertical-align: top;
133 padding: 8px 15px;
134 font-size: 50px;
135 }
136
137 img {
138 padding: 10px;
139 max-height: 70px;
140 max-width: 70px;
141 }
142 }
143 }
addaf36c 144 .navbar {
b9c5fcf0
BW
145 background-color: var(--highlight-secondary);
146
147 a {
148 color: var(--text-header);
149 padding: 8px 12px;
150 &:hover,
151 &:focus {
152 color: var(--text-header);
153 background-color: var(--highlight-hover);
154 }
155 }
addaf36c 156 .navbar-menu {
157 background-color: inherit;
158 }
b9c5fcf0
BW
159 }
160 .navbar-end {
161 text-align: right;
162 }
163 }
164
165 #main-section {
6e4410d8 166 padding: 0 0 2.5rem 0;
b9c5fcf0
BW
167
168 h2 {
169 padding-bottom: 0px;
170 @include ellipsis();
171 }
172
173 .title {
174 font-size: 1.1em;
e6087014 175 line-height: 1.2em;
b9c5fcf0
BW
176 @include ellipsis();
177 }
178
179 .subtitle {
180 font-size: 0.9em;
181 @include ellipsis();
182 }
183
184 .container {
185 padding: 1.2rem 0.75rem;
186 }
187
188 .message {
189 margin-top: 45px;
190 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
191
192 .message-header {
193 font-weight: bold;
194 }
195
196 .message-body {
197 border: none;
198 }
199 }
200 }
201
6f2b141b
GG
202 .media.no-subtitle {
203 display: flex;
204 align-items: center;
205 }
206
b9c5fcf0
BW
207 .media-content {
208 overflow: hidden;
209 text-overflow: inherit;
210 }
211
212 .tag {
213 color: var(--highlight-secondary);
214 background-color: var(--highlight-secondary);
215 position: absolute;
275a335c 216 bottom: 1rem;
b9c5fcf0
BW
217 right: -0.2rem;
218 width: 3px;
219 overflow: hidden;
220 transition: all 0.2s ease-out;
221 padding: 0;
222
223 .tag-text {
224 display: none;
225 }
226 }
227
228 .card {
b9c5fcf0
BW
229 border: none;
230 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
231 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
168810d7 232 overflow: visible;
b9c5fcf0
BW
233
234 a {
235 outline: none;
236 }
237 }
238
239 .card:hover {
240 transform: translate(0, -3px);
241
242 .tag {
243 width: auto;
244 color: #ffffff;
245 padding: 0 0.75em;
246
247 .tag-text {
248 display: block;
249 }
250 }
251 }
252
253 .card-content {
254 height: 85px;
255 padding: 1.3rem;
256 }
257
258 .layout-vertical {
259 .card {
260 border-radius: 0;
261 }
262
263 .column div:first-of-type .card {
f9ebff93
AK
264 border-top-left-radius: 0.25rem;
265 border-top-right-radius: 0.25rem;
b9c5fcf0
BW
266 }
267
268 .column div:last-child .card {
f9ebff93
AK
269 border-bottom-left-radius: 0.25rem;
270 border-bottom-right-radius: 0.25rem;
b9c5fcf0
BW
271 }
272 }
273
274 .footer {
275 position: fixed;
276 left: 0;
277 right: 0;
278 bottom: 0;
279 padding: 0.5rem;
280 text-align: left;
281 color: #676767;
282 font-size: 0.85rem;
283 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
284 }
285
286 .no-footer {
287 #main-section {
6e4410d8 288 padding-bottom: 0;
b9c5fcf0
BW
289 }
290
291 .footer {
292 display: none;
293 }
294 }
295
296 .search-bar {
297 position: relative;
298 display: inline-block;
299 input {
300 border: none;
301 background-color: var(--highlight-hover);
302 border-radius: 5px;
303 margin-top: 2px;
304 padding: 2px 12px 2px 30px;
305 transition: all 100ms linear;
306 color: #ffffff;
307 height: 30px;
308 width: 100px;
309
310 &:focus {
311 color: #000000;
312 width: 250px;
313 background-color: #ffffff;
314 }
315 }
316
317 .search-label::before {
318 font-family: "Font Awesome 5 Free";
319 position: absolute;
320 top: 14px;
321 left: 16px;
322 content: "\f002";
323 font-weight: 900;
324 width: 20px;
325 height: 20px;
326 color: #ffffff;
327 }
328
329 &:focus-within .search-label::before {
330 color: #6e6e6e;
331 }
332 }
333
334 .offline-message {
335 text-align: center;
336 margin: 35px 0;
337
e9113b48 338 i {
b9c5fcf0
BW
339 font-size: 2rem;
340 }
341
e9113b48 342 i.fa-redo-alt {
b9c5fcf0
BW
343 font-size: 1.3rem;
344 line-height: 1rem;
345 vertical-align: middle;
346 cursor: pointer;
347 color: #3273dc;
348 }
349 }
350}
42477020
GC
351
352.group-logo {
353 float: left;
f9ebff93 354}