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