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