]> git.immae.eu Git - github/bastienwirtz/homer.git/blob - src/assets/app.scss
Fix transparency level behind links
[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 background-color: var(--highlight-secondary);
145
146 a {
147 color: var(--text-header);
148 padding: 8px 12px;
149 &:hover,
150 &:focus {
151 color: var(--text-header);
152 background-color: var(--highlight-hover);
153 }
154 }
155 .navbar-menu {
156 background-color: inherit;
157 }
158 }
159 .navbar-end {
160 text-align: right;
161 }
162 }
163
164 #main-section {
165 margin-bottom: 2rem;
166 padding: 0;
167
168 h2 {
169 padding-bottom: 0px;
170 @include ellipsis();
171 }
172
173 .title {
174 font-size: 1.1em;
175 line-height: 1.2em;
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
202 .media.no-subtitle {
203 display: flex;
204 align-items: center;
205 }
206
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;
216 top: 1rem;
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 {
229 border-radius: 5px;
230 border: none;
231 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
232 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
233 overflow: visible;
234
235 a {
236 outline: none;
237 }
238 }
239
240 .card:hover {
241 transform: translate(0, -3px);
242
243 .tag {
244 width: auto;
245 color: #ffffff;
246 padding: 0 0.75em;
247
248 .tag-text {
249 display: block;
250 }
251 }
252 }
253
254 .card-content {
255 height: 85px;
256 padding: 1.3rem;
257 }
258
259 .layout-vertical {
260 .card {
261 border-radius: 0;
262 }
263
264 .column div:first-of-type .card {
265 border-radius: 5px 5px 0 0;
266 }
267
268 .column div:last-child .card {
269 border-radius: 0 0 5px 5px;
270 }
271 }
272
273 .footer {
274 position: fixed;
275 left: 0;
276 right: 0;
277 bottom: 0;
278 padding: 0.5rem;
279 text-align: left;
280 color: #676767;
281 font-size: 0.85rem;
282 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
283 }
284
285 .no-footer {
286 #main-section {
287 margin-bottom: 0;
288 }
289
290 .footer {
291 display: none;
292 }
293 }
294
295 .search-bar {
296 position: relative;
297 display: inline-block;
298 input {
299 border: none;
300 background-color: var(--highlight-hover);
301 border-radius: 5px;
302 margin-top: 2px;
303 padding: 2px 12px 2px 30px;
304 transition: all 100ms linear;
305 color: #ffffff;
306 height: 30px;
307 width: 100px;
308
309 &:focus {
310 color: #000000;
311 width: 250px;
312 background-color: #ffffff;
313 }
314 }
315
316 .search-label::before {
317 font-family: "Font Awesome 5 Free";
318 position: absolute;
319 top: 14px;
320 left: 16px;
321 content: "\f002";
322 font-weight: 900;
323 width: 20px;
324 height: 20px;
325 color: #ffffff;
326 }
327
328 &:focus-within .search-label::before {
329 color: #6e6e6e;
330 }
331 }
332
333 .offline-message {
334 text-align: center;
335 margin: 35px 0;
336
337 i {
338 font-size: 2rem;
339 }
340
341 i.fa-redo-alt {
342 font-size: 1.3rem;
343 line-height: 1rem;
344 vertical-align: middle;
345 cursor: pointer;
346 color: #3273dc;
347 }
348 }
349 }
350
351 .group-logo {
352 float: left;
353 }