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