]> Untitled Git - lemmy-ui.git/blob - src/assets/css/main.css
Merge pull request #1421 from djvs/feat/component-classes-v2
[lemmy-ui.git] / src / assets / css / main.css
1 .navbar-expand-lg .navbar-nav .nav-link {
2   padding-right: 0.75rem !important;
3   padding-left: 0.75rem !important;
4 }
5
6 .pointer {
7   cursor: pointer;
8 }
9
10 .pointer-events {
11   pointer-events: auto !important;
12 }
13
14 .not-allowed {
15   cursor: not-allowed;
16 }
17
18 .no-click {
19   pointer-events: none;
20   opacity: 0.65;
21 }
22
23 .upvote:hover {
24   color: var(--bs-info);
25 }
26
27 .upvote {
28   margin-bottom: -5px;
29 }
30
31 .downvote:hover {
32   color: var(--bs-danger);
33 }
34
35 .downvote {
36   margin-top: -10px;
37 }
38
39 .form-select {
40   -moz-appearance: none;
41 }
42
43 .md-div p {
44   overflow: hidden;
45   text-overflow: ellipsis;
46 }
47
48 .md-div p:last-child {
49   margin-bottom: 0;
50 }
51
52 .md-div img {
53   max-height: 40vh;
54   max-width: 100%;
55   height: auto;
56 }
57
58 .md-div h1 {
59   font-size: 2rem;
60 }
61
62 .md-div h2 {
63   font-size: 1.8rem;
64 }
65
66 .md-div h3 {
67   font-size: 1.6rem;
68 }
69
70 .md-div h4 {
71   font-size: 1.4rem;
72 }
73
74 .md-div h5 {
75   font-size: 1.2rem;
76 }
77
78 .md-div pre {
79   white-space: pre;
80   overflow-x: auto;
81 }
82
83 .vote-bar {
84   margin-top: -6.5px;
85 }
86
87 .post-title a:visited {
88   color: var(--bs-gray) !important;
89 }
90
91 .icon {
92   display: inline-grid;
93   display: inline-flex;
94   width: 1em;
95   height: 1em;
96   stroke-width: 0;
97   stroke: currentColor;
98   fill: currentColor;
99   vertical-align: middle;
100   align-self: center;
101   -webkit-touch-callout: none;
102   -webkit-user-select: none;
103   -khtml-user-select: none;
104   -moz-user-select: none;
105   -ms-user-select: none;
106   user-select: none;
107 }
108
109 .icon-emoji {
110   width: 4em;
111   height: auto;
112   max-height: inherit;
113 }
114
115 .icon-emoji-admin {
116   max-width: 24px;
117   max-height: 24px;
118   display: inline-block;
119 }
120
121 .icon-inline {
122   margin-bottom: 2px;
123 }
124
125 .emoji-picker-container {
126   position: absolute;
127   top: 30px;
128   z-index: 1000;
129   transform: translateX(-50%);
130 }
131
132 @media only screen and (max-width: 992px) {
133   .emoji-picker-container {
134     width: 100vw;
135     transform: translateX(0%);
136     position: fixed;
137     left: 0;
138   }
139
140   .emoji-picker-container > section {
141     width: 100% !important;
142   }
143 }
144
145 .click-away-container {
146   position: fixed;
147   top: 0;
148   left: 0;
149   right: 0;
150   bottom: 0;
151   background-color: rgba(0, 0, 0, 0.3);
152   z-index: 999;
153 }
154
155 .spinner-large {
156   display: grid;
157   display: block;
158   margin: 1em auto;
159   width: 2em;
160   height: 2em;
161 }
162
163 .spin {
164   animation: spins 2s linear infinite;
165 }
166
167 @keyframes spins {
168   0% {
169     transform: rotate(0deg);
170   }
171
172   100% {
173     transform: rotate(359deg);
174   }
175 }
176
177 blockquote {
178   border-left: 2px solid var(--bs-secondary);
179   margin: 0.5em 5px;
180   padding: 0.1em 5px;
181 }
182
183 .mouse-icon {
184   margin-top: -4px;
185 }
186
187 .new-comments {
188   max-height: 50vh;
189   overflow-x: hidden;
190   overflow-y: auto;
191 }
192
193 .comments {
194   list-style: none;
195   padding: 0;
196 }
197
198 .thumbnail {
199   object-fit: cover;
200   min-height: 60px;
201   max-height: 80px;
202   width: 100%;
203 }
204
205 .thumbnail svg {
206   height: 1.25rem;
207   width: 1.25rem;
208 }
209
210 .no-s-hows {
211   position: absolute !important;
212   top: -9999px !important;
213   left: -9999px !important;
214 }
215
216 hr {
217   border-top: 1px solid var(--bs-light);
218 }
219
220 .emoji {
221   max-height: 1.2em !important;
222 }
223
224 .text-wrap-truncate {
225   overflow: hidden;
226   text-overflow: ellipsis;
227 }
228
229 .text-xs-center {
230   text-align: center;
231 }
232
233 .overflow-wrap-anywhere {
234   overflow-wrap: anywhere;
235 }
236
237 #app {
238   display: flex;
239   flex-direction: column;
240   min-height: 100vh;
241 }
242
243 .fl-1 {
244   flex: 1;
245 }
246
247 .img-blur {
248   filter: blur(10px);
249   -webkit-filter: blur(10px);
250   -moz-filter: blur(10px);
251   -o-filter: blur(10px);
252   -ms-filter: blur(10px);
253 }
254
255 .img-cover {
256   object-fit: cover;
257 }
258
259 .img-expanded {
260   max-height: 90vh;
261 }
262
263 .btn-animate:active {
264   transform: scale(1.2);
265   -webkit-transform: scale(1.2);
266   -ms-transform: scale(1.2);
267 }
268
269 /**
270  * TODO: Fix this in markup rather than this overly specific selector:
271  * https://getbootstrap.com/docs/5.3/components/buttons/#block-buttons
272  */
273 .btn.d-block + .btn.d-block {
274   margin-top: 0.5rem;
275 }
276
277 .mini-overlay {
278   position: absolute;
279   top: 0;
280   right: 0;
281   padding: 2px;
282   height: 1.5em;
283   width: 1.5em;
284   background: rgba(0, 0, 0, 0.4);
285   background-color: rgba(0, 0, 0, 0.4);
286   border-bottom-left-radius: 0.25rem !important;
287   border-top-right-radius: 0.25rem !important;
288 }
289
290 .link-overlay:hover {
291   transition: 0.1s;
292   -webkit-transition: 0.1s;
293   opacity: 1;
294 }
295
296 .link-overlay {
297   transition: opacity 0.1s ease-in-out;
298   -webkit-transition: opacity 0.1s ease-in-out;
299   position: absolute;
300   opacity: 0;
301   left: 0;
302   height: 100%;
303   width: 100%;
304   padding: 10px;
305   background: rgba(0, 0, 0, 0.6);
306   background-color: rgba(0, 0, 0, 0.6);
307 }
308
309 .placeholder {
310   height: 50px;
311   width: 50px;
312 }
313
314 .unselectable {
315   -webkit-touch-callout: none;
316   -webkit-user-select: none;
317   -khtml-user-select: none;
318   -moz-user-select: none;
319   -ms-user-select: none;
320   user-select: none;
321 }
322
323 .list-inline-item-action {
324   display: inline-block;
325 }
326
327 .list-inline-item-action:not(:last-child) {
328   margin-right: 1.2rem;
329 }
330
331 pre {
332   white-space: pre-wrap;
333   word-break: keep-all;
334 }
335
336 .form-control.search-input {
337   float: right !important;
338   transition: width 0.2s ease-out 0s !important;
339 }
340
341 br.big {
342   display: block;
343   content: "";
344   margin-top: 1rem;
345 }
346
347 .banner {
348   object-fit: cover;
349   width: 100%;
350   max-height: 240px;
351 }
352
353 .avatar-overlay {
354   width: 20%;
355   height: 20%;
356   max-width: 120px;
357   max-height: 120px;
358 }
359
360 .avatar-pushup {
361   margin-top: -60px;
362 }
363
364 .img-icon {
365   width: 2rem;
366   height: 2rem;
367 }
368
369 .tribute-container ul {
370   margin: 0;
371   margin-top: 2px;
372   padding: 0;
373   list-style: none;
374   background: var(--bs-light);
375 }
376
377 .tribute-container li {
378   padding: 5px;
379   cursor: pointer;
380 }
381
382 .tribute-container li.highlight {
383   background: var(--bs-primary);
384 }
385
386 .tribute-container li span {
387   font-weight: bold;
388 }
389
390 .tribute-container li.no-match {
391   cursor: default;
392 }
393
394 .tribute-container .menu-highlighted {
395   font-weight: bold;
396 }
397
398 .honeypot {
399   display: none !important;
400 }
401
402 .slight-radius {
403   border-radius: 4px;
404 }
405
406 .modlog-choices-font-size {
407   font-size: 0.9375rem !important;
408 }
409
410 .preview-lines {
411   overflow: hidden;
412   text-overflow: ellipsis;
413   display: -webkit-box;
414   -webkit-line-clamp: 3;
415   -webkit-box-orient: vertical;
416 }
417
418 #emoji-picker {
419   width: 100%;
420 }
421
422 .skip-link {
423   top: -40px;
424   transition: top 0.3s ease;
425 }
426
427 @media (prefers-reduced-motion: reduce) {
428   .skip-link {
429     transition: none;
430   }
431 }
432
433 .skip-link:focus {
434   top: 0;
435 }