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