]> Untitled Git - lemmy-ui.git/blob - src/assets/css/main.css
Merge branch 'main' into fix/wider-max-width-1536
[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: 0;
128   left: 50%;
129   z-index: 1000;
130   transform: translateX(-50%);
131 }
132
133 @media only screen and (max-width: 992px) {
134   .emoji-picker-container {
135     width: 100vw;
136     transform: translateX(0%);
137     position: fixed;
138     left: 0;
139   }
140
141   .emoji-picker-container > section {
142     width: 100% !important;
143   }
144 }
145
146 .click-away-container {
147   position: fixed;
148   top: 0;
149   left: 0;
150   right: 0;
151   bottom: 0;
152   background-color: rgba(0, 0, 0, 0.3);
153   z-index: 999;
154 }
155
156 .spinner-large {
157   display: grid;
158   display: block;
159   margin: 1em auto;
160   width: 2em;
161   height: 2em;
162 }
163
164 .spin {
165   animation: spins 2s linear infinite;
166 }
167
168 @keyframes spins {
169   0% {
170     transform: rotate(0deg);
171   }
172
173   100% {
174     transform: rotate(359deg);
175   }
176 }
177
178 blockquote {
179   border-left: 2px solid var(--bs-secondary);
180   margin: 0.5em 5px;
181   padding: 0.1em 5px;
182 }
183
184 .mouse-icon {
185   margin-top: -4px;
186 }
187
188 .new-comments {
189   max-height: 50vh;
190   overflow-x: hidden;
191   overflow-y: auto;
192 }
193
194 .comments {
195   list-style: none;
196   padding: 0;
197 }
198
199 .thumbnail {
200   object-fit: cover;
201   aspect-ratio: 4/3;
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   display: block;
279   height: 1.5em;
280   width: 1.5em;
281   background: rgba(0, 0, 0, 0.4);
282   background-color: rgba(0, 0, 0, 0.4);
283   border-bottom-left-radius: 0.25rem !important;
284   border-top-right-radius: 0.25rem !important;
285 }
286
287 .link-overlay:hover {
288   transition: 0.1s;
289   -webkit-transition: 0.1s;
290   opacity: 1;
291 }
292
293 .link-overlay {
294   transition: opacity 0.1s ease-in-out;
295   -webkit-transition: opacity 0.1s ease-in-out;
296   position: absolute;
297   opacity: 0;
298   left: 0;
299   height: 100%;
300   width: 100%;
301   padding: 10px;
302   background: rgba(0, 0, 0, 0.6);
303   background-color: rgba(0, 0, 0, 0.6);
304 }
305
306 .placeholder {
307   height: 50px;
308   width: 50px;
309 }
310
311 .unselectable {
312   -webkit-touch-callout: none;
313   -webkit-user-select: none;
314   -khtml-user-select: none;
315   -moz-user-select: none;
316   -ms-user-select: none;
317   user-select: none;
318 }
319
320 .list-inline-item-action {
321   display: inline-block;
322 }
323
324 .list-inline-item-action:not(:last-child) {
325   margin-right: 1.2rem;
326 }
327
328 pre {
329   white-space: pre-wrap;
330   word-break: keep-all;
331 }
332
333 .form-control.search-input {
334   float: right !important;
335   transition: width 0.2s ease-out 0s !important;
336 }
337
338 br.big {
339   display: block;
340   content: "";
341   margin-top: 1rem;
342 }
343
344 .banner {
345   object-fit: cover;
346   width: 100%;
347   max-height: 240px;
348 }
349
350 .avatar-overlay {
351   width: 20%;
352   height: 20%;
353   max-width: 120px;
354   max-height: 120px;
355 }
356
357 .avatar-pushup {
358   margin-top: -60px;
359 }
360
361 .img-icon {
362   width: 2rem;
363   height: 2rem;
364 }
365
366 .tribute-container ul {
367   margin: 0;
368   margin-top: 2px;
369   padding: 0;
370   list-style: none;
371   background: var(--bs-light);
372 }
373
374 .tribute-container li {
375   padding: 5px;
376   cursor: pointer;
377 }
378
379 .tribute-container li.highlight {
380   background: var(--bs-primary);
381 }
382
383 .tribute-container li span {
384   font-weight: bold;
385 }
386
387 .tribute-container li.no-match {
388   cursor: default;
389 }
390
391 .tribute-container .menu-highlighted {
392   font-weight: bold;
393 }
394
395 .honeypot {
396   display: none !important;
397 }
398
399 .slight-radius {
400   border-radius: 4px;
401 }
402
403 .modlog-choices-font-size {
404   font-size: 0.9375rem !important;
405 }
406
407 .preview-lines {
408   overflow: hidden;
409   text-overflow: ellipsis;
410   display: -webkit-box;
411   -webkit-line-clamp: 3;
412   -webkit-box-orient: vertical;
413 }
414
415 #emoji-picker {
416   width: 100%;
417 }
418
419 .skip-link {
420   top: -40px;
421   transition: top 0.3s ease;
422 }
423
424 @media (prefers-reduced-motion: reduce) {
425   .skip-link {
426     transition: none;
427   }
428 }
429
430 .skip-link:focus {
431   top: 0;
432 }