]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - app.scss
Fix Font Awesome css in search bar
[github/bastienwirtz/homer.git] / app.scss
CommitLineData
09763dbf
BW
1$primary-color: #3367d6;
2$secondary-color: #4285f4;
3
5323df4a
BW
4
5// /!\ Keep background colors sync with `theme-color` meta info
6$theme-light: (
7 background: #f5f5f5,
8 card-background: #ffffff,
9 text: #363636,
10 text-title: #303030,
11 text-subtitle: #424242,
12 card-shadow: rgba(0, 0, 0, 0.1)
13);
14$theme-dark: (
15 background: #131313,
16 card-background: #2b2b2b,
17 text: #eaeaea,
18 text-title: #fafafa,
19 text-subtitle: #f5f5f5,
20 card-shadow: rgba(0, 0, 0, 0.4)
21);
22
23
24
25@mixin theme($theme) {
26 background-color: map-get($theme, "background");
27 color: map-get($theme, "text");
28
29 .title {
30 color: map-get($theme, "text-title");
31 }
32 .subtitle {
33 color: map-get($theme, "text-subtitle");
34 }
35
36 .card {
37 background-color: map-get($theme, "card-background");
38 box-shadow: 0 2px 15px 0 map-get($theme, "card-shadow");
39 &:hover {
40 background-color: map-get($theme, "card-background");
41 }
42 }
43
44 .footer {
45 background-color: map-get($theme, "card-background");
46 box-shadow: 0 2px 15px 0 map-get($theme, "card-shadow");
47 }
48}
49
50html {
51 height: 100%;
52}
e41196e7 53
09763dbf
BW
54body {
55 font-family: 'Raleway', sans-serif;
5323df4a
BW
56 height: 100%;
57
58 #app {
59 min-height: 100%;
60 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
61
62 // Default theme
63 @include theme($theme-light);
64
65 // System pref theme
66 @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
67 @include theme($theme-light);
68 }
69 @media (prefers-color-scheme: dark) {
70 @include theme($theme-dark);
71 }
72
73 // User override theme
74 &.is-light {
75 @include theme($theme-light);
76 }
77 &.is-dark {
78 @include theme($theme-dark);
79 }
80 }
09763dbf
BW
81
82 h1, h2, h3, h4, h5, h6 {
83 font-family: 'Lato', sans-serif;
84 }
85
86 h1 {
87 font-size: 2rem;
88 }
89
90 h2 {
91 font-size: 1.7rem;
4877ec98 92 margin-top: 2rem;
09763dbf
BW
93 margin-bottom: 1rem;
94
e41196e7 95 .fas, .fab, .far {
09763dbf 96 margin-right: 10px;
09763dbf
BW
97 }
98
99 span {
100 font-weight: bold;
101 color: $secondary-color;
102 }
103 }
104
105 [v-cloak] {
106 display: none
107 }
108
109 #bighead {
110 color: #ffffff;
111
112 .dashboard-title {
113 padding: 6px 0 0 80px;
114 }
115
116 .first-line {
117 height: 100px;
118 vertical-align: center;
119 background-color: $primary-color;
120
121 h1 {
122 margin-top: -12px;
123 font-size: 2rem;
124 }
125
126 .headline {
127 margin-top: 5px;
128 font-size: 0.9rem;
129 }
130
131 .container {
132 height: 80px;
133 padding: 10px 0;
134 }
135
e41196e7 136 .logo {
09763dbf 137 float: left;
e41196e7
BW
138 i {
139 vertical-align: top;
140 padding: 8px 15px;
141 font-size: 50px
142 }
143
144 img {
145 padding: 10px;
146 max-height: 70px;
147 max-width: 70px;
148 }
09763dbf
BW
149 }
150 }
151 .navbar {
152 background-color: $secondary-color;
153
154 a {
e41196e7 155 color: #ffffff;
09763dbf
BW
156 &:hover {
157 background-color: lighten( $secondary-color, 5% );
158 }
159 }
160 }
161 }
162
163 #main-section {
5323df4a 164 margin-bottom: 2rem;
09763dbf
BW
165 padding: 0;
166
167 h2 {
168 border-bottom: 1px dashed #ccc;
169 padding-bottom: 10px;
170 }
171
172 .title {
173 font-size: 1.1em;
174 }
175
176 .subtitle {
177 font-size: .9em;
e41196e7
BW
178 white-space: nowrap;
179 overflow: hidden;
180 text-overflow: ellipsis;
09763dbf
BW
181 }
182
9baec9ae 183 .container {
09763dbf
BW
184 padding: 1.2rem .75rem;
185 }
186
187 .message {
188 margin-top: 45px;
189 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
190
191 .message-header {
192 font-weight: bold;
193 }
194
195 .message-body {
196 border: none;
197 }
198 }
199 }
200
201 .media-content {
202 overflow: inherit;
203 }
204
205 .tag {
206 color: $secondary-color;
207 background-color: $secondary-color;
208 position: absolute;
209 top: 1rem;
9baec9ae 210 right: -0.2rem;
09763dbf
BW
211 width: 3px;
212 overflow: hidden;
213 transition: all 0.2s ease-out;
214 padding: 0;
a2fdb8a9 215
216 .tag-text {
217 display: none;
218 }
09763dbf
BW
219 }
220
221 .card {
222 border-radius: 5px;
223 border: none;
224 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
4877ec98
BW
225 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
226
227 a {
228 outline: none;
229 }
09763dbf
BW
230 }
231
232 .card:hover {
09763dbf
BW
233 transform: translate(0, -3px);
234
235 .tag {
236 width: auto;
237 color: #ffffff;
238 padding: 0 0.75em;
a2fdb8a9 239
240 .tag-text {
241 display: block;
242 }
09763dbf
BW
243 }
244 }
245
246 .card-content {
e41196e7
BW
247 height: 85px;
248 padding: 1.3rem;
09763dbf
BW
249 }
250
4877ec98
BW
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
09763dbf
BW
265 .footer {
266 position: fixed;
267 left: 0;
268 right: 0;
269 bottom: 0;
4877ec98 270 padding: 0.5rem;
09763dbf 271 text-align: left;
4877ec98
BW
272 color: #676767;
273 font-size: 0.85rem;
5323df4a 274 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
09763dbf
BW
275 }
276
277 .search-bar {
278 position: relative;
4877ec98 279 display: inline-block;
09763dbf
BW
280 #search {
281 border: none;
282 background-color: lighten( $secondary-color, 6% );
283 border-radius: 5px;
284 padding: 2px 12px 2px 30px;
285 margin: 10px 0;
286 transition: all 100ms linear;
287 color: #ffffff;
288 height: 30px;
289 width: 100px;
290
291
292 &:focus {
293 color: #000000;
294 width: 250px;
295 background-color: #ffffff;
296 }
297 }
298
299 .search-label::before {
a0e2769a 300 font-family: 'Font Awesome 5 Free';
09763dbf
BW
301 position: absolute;
302 top: 12px;
303 left: 8px;
304 content: "\f002";
a0e2769a 305 font-weight: 900;
09763dbf
BW
306 width: 20px;
307 height: 20px;
308 }
309
310 &:focus-within .search-label::before {
311 color: #4a4a4a;
312 }
313 }
314
4877ec98
BW
315 .icon-button {
316 display: inline-block;
317 }
318
9baec9ae
BW
319 .offline-message {
320 text-align: center;
321 margin: 35px 0;
322
323 i {
324 font-size: 2rem;
325 }
326
327 i.fa-redo-alt {
328 font-size: 1.3rem;
329 line-height: 1rem;
330 vertical-align: middle;
331 cursor: pointer;
332 color: #3273dc;
333 }
334 }
335
09763dbf 336}