]> git.immae.eu Git - github/bastienwirtz/homer.git/blob - src/assets/app.scss
4585874299d9eddcea4bf9e50b2b2c739e1959f7
[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 {
17 height: 100%;
18 }
19
20 body {
21 font-family: "Raleway", sans-serif;
22 height: 100%;
23
24 #app {
25 min-height: 100%;
26 background-color: var(--background);
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 @include ellipsis();
174 }
175
176 .subtitle {
177 font-size: 0.9em;
178 @include ellipsis();
179 }
180
181 .container {
182 padding: 1.2rem 0.75rem;
183 }
184
185 .message {
186 margin-top: 45px;
187 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
188
189 .message-header {
190 font-weight: bold;
191 }
192
193 .message-body {
194 border: none;
195 }
196 }
197 }
198
199 .media-content {
200 overflow: hidden;
201 text-overflow: inherit;
202 }
203
204 .tag {
205 color: var(--highlight-secondary);
206 background-color: var(--highlight-secondary);
207 position: absolute;
208 top: 1rem;
209 right: -0.2rem;
210 width: 3px;
211 overflow: hidden;
212 transition: all 0.2s ease-out;
213 padding: 0;
214
215 .tag-text {
216 display: none;
217 }
218 }
219
220 .card {
221 border-radius: 5px;
222 border: none;
223 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
224 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
225
226 a {
227 outline: none;
228 }
229 }
230
231 .card:hover {
232 transform: translate(0, -3px);
233
234 .tag {
235 width: auto;
236 color: #ffffff;
237 padding: 0 0.75em;
238
239 .tag-text {
240 display: block;
241 }
242 }
243 }
244
245 .card-content {
246 height: 85px;
247 padding: 1.3rem;
248 }
249
250 .layout-vertical {
251 .card {
252 border-radius: 0;
253 }
254
255 .column div:first-of-type .card {
256 border-radius: 5px 5px 0 0;
257 }
258
259 .column div:last-child .card {
260 border-radius: 0 0 5px 5px;
261 }
262 }
263
264 .footer {
265 position: fixed;
266 left: 0;
267 right: 0;
268 bottom: 0;
269 padding: 0.5rem;
270 text-align: left;
271 color: #676767;
272 font-size: 0.85rem;
273 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
274 }
275
276 .no-footer {
277 #main-section {
278 margin-bottom: 0;
279 }
280
281 .footer {
282 display: none;
283 }
284 }
285
286 .search-bar {
287 position: relative;
288 display: inline-block;
289 input {
290 border: none;
291 background-color: var(--highlight-hover);
292 border-radius: 5px;
293 margin-top: 2px;
294 padding: 2px 12px 2px 30px;
295 transition: all 100ms linear;
296 color: #ffffff;
297 height: 30px;
298 width: 100px;
299
300 &:focus {
301 color: #000000;
302 width: 250px;
303 background-color: #ffffff;
304 }
305 }
306
307 .search-label::before {
308 font-family: "Font Awesome 5 Free";
309 position: absolute;
310 top: 14px;
311 left: 16px;
312 content: "\f002";
313 font-weight: 900;
314 width: 20px;
315 height: 20px;
316 color: #ffffff;
317 }
318
319 &:focus-within .search-label::before {
320 color: #6e6e6e;
321 }
322 }
323
324 .offline-message {
325 text-align: center;
326 margin: 35px 0;
327
328 i {
329 font-size: 2rem;
330 }
331
332 i.fa-redo-alt {
333 font-size: 1.3rem;
334 line-height: 1rem;
335 vertical-align: middle;
336 cursor: pointer;
337 color: #3273dc;
338 }
339 }
340 }