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