]> Untitled Git - lemmy-ui.git/blob - src/assets/css/main.css
fix: Fix vote buttons in list view variable width
[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-cover {
258   object-fit: cover;
259 }
260
261 .img-expanded {
262   max-height: 90vh;
263 }
264
265 .btn-animate:active {
266   transform: scale(1.2);
267   -webkit-transform: scale(1.2);
268   -ms-transform: scale(1.2);
269 }
270
271 /**
272  * TODO: Fix this in markup rather than this overly specific selector:
273  * https://getbootstrap.com/docs/5.3/components/buttons/#block-buttons
274  */
275 .btn.d-block + .btn.d-block {
276   margin-top: 0.5rem;
277 }
278
279 .mini-overlay {
280   display: block;
281   height: 1.5em;
282   width: 1.5em;
283   background: rgba(0, 0, 0, 0.4);
284   background-color: rgba(0, 0, 0, 0.4);
285   border-bottom-left-radius: 0.25rem !important;
286   border-top-right-radius: 0.25rem !important;
287 }
288
289 .link-overlay:hover {
290   transition: 0.1s;
291   -webkit-transition: 0.1s;
292   opacity: 1;
293 }
294
295 .link-overlay {
296   transition: opacity 0.1s ease-in-out;
297   -webkit-transition: opacity 0.1s ease-in-out;
298   position: absolute;
299   opacity: 0;
300   left: 0;
301   height: 100%;
302   width: 100%;
303   padding: 10px;
304   background: rgba(0, 0, 0, 0.6);
305   background-color: rgba(0, 0, 0, 0.6);
306 }
307
308 .placeholder {
309   height: 50px;
310   width: 50px;
311 }
312
313 .unselectable {
314   -webkit-touch-callout: none;
315   -webkit-user-select: none;
316   -khtml-user-select: none;
317   -moz-user-select: none;
318   -ms-user-select: none;
319   user-select: none;
320 }
321
322 .list-inline-item-action {
323   display: inline-block;
324 }
325
326 .list-inline-item-action:not(:last-child) {
327   margin-right: 1.2rem;
328 }
329
330 pre {
331   white-space: pre-wrap;
332   word-break: keep-all;
333 }
334
335 .form-control.search-input {
336   float: right !important;
337   transition: width 0.2s ease-out 0s !important;
338 }
339
340 br.big {
341   display: block;
342   content: "";
343   margin-top: 1rem;
344 }
345
346 .banner {
347   object-fit: cover;
348   width: 100%;
349   max-height: 240px;
350 }
351
352 .avatar-overlay {
353   width: 20%;
354   height: 20%;
355   max-width: 120px;
356   max-height: 120px;
357 }
358
359 .avatar-pushup {
360   margin-top: -60px;
361 }
362
363 .img-icon {
364   width: calc(var(--bs-body-line-height) * 1em);
365   height: calc(var(--bs-body-line-height) * 1em);
366   border-radius: 0.25em;
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 }