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