]> Untitled Git - lemmy-ui.git/blob - src/assets/css/main.css
Make comment depth easier to track visually
[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 .comments {
217   list-style: none;
218   padding: 0;
219 }
220
221 .thumbnail {
222   object-fit: cover;
223   min-height: 60px;
224   max-height: 80px;
225   width: 100%;
226 }
227
228 .thumbnail svg {
229   height: 1.25rem;
230   width: 1.25rem;
231 }
232
233 .no-s-hows {
234   position: absolute !important;
235   top: -9999px !important;
236   left: -9999px !important;
237 }
238
239 hr {
240   border-top: 1px solid var(--light);
241 }
242
243 .emoji {
244   max-height: 1.2em !important;
245 }
246
247 .text-wrap-truncate {
248   overflow: hidden;
249   text-overflow: ellipsis;
250 }
251
252 .text-xs-center {
253   text-align: center;
254 }
255
256 .overflow-wrap-anywhere {
257   overflow-wrap: anywhere;
258 }
259
260 #app {
261   display: flex;
262   flex-direction: column;
263   min-height: 100vh;
264 }
265
266 .fl-1 {
267   flex: 1;
268 }
269
270 .img-blur {
271   filter: blur(10px);
272   -webkit-filter: blur(10px);
273   -moz-filter: blur(10px);
274   -o-filter: blur(10px);
275   -ms-filter: blur(10px);
276 }
277
278 .img-expanded {
279   max-height: 90vh;
280 }
281
282 .btn-animate:active {
283   transform: scale(1.2);
284   -webkit-transform: scale(1.2);
285   -ms-transform: scale(1.2);
286 }
287
288 .mini-overlay {
289   position: absolute;
290   top: 0;
291   right: 0;
292   padding: 2px;
293   height: 1.5em;
294   width: 1.5em;
295   background: rgba(0, 0, 0, 0.4);
296   background-color: rgba(0, 0, 0, 0.4);
297   border-bottom-left-radius: 0.25rem !important;
298   border-top-right-radius: 0.25rem !important;
299 }
300
301 .link-overlay:hover {
302   transition: 0.1s;
303   -webkit-transition: 0.1s;
304   opacity: 1;
305 }
306
307 .link-overlay {
308   transition: opacity 0.1s ease-in-out;
309   -webkit-transition: opacity 0.1s ease-in-out;
310   position: absolute;
311   opacity: 0;
312   left: 0;
313   height: 100%;
314   width: 100%;
315   padding: 10px;
316   background: rgba(0, 0, 0, 0.6);
317   background-color: rgba(0, 0, 0, 0.6);
318 }
319
320 .placeholder {
321   height: 50px;
322   width: 50px;
323 }
324
325 .unselectable {
326   -webkit-touch-callout: none;
327   -webkit-user-select: none;
328   -khtml-user-select: none;
329   -moz-user-select: none;
330   -ms-user-select: none;
331   user-select: none;
332 }
333
334 .list-inline-item-action {
335   display: inline-block;
336 }
337
338 .list-inline-item-action:not(:last-child) {
339   margin-right: 1.2rem;
340 }
341
342 pre {
343   white-space: pre-wrap;
344   word-break: keep-all;
345 }
346
347 .form-control.search-input {
348   float: right !important;
349   transition: width 0.2s ease-out 0s !important;
350 }
351
352 br.big {
353   display: block;
354   content: "";
355   margin-top: 1rem;
356 }
357
358 .banner {
359   object-fit: cover;
360   width: 100%;
361   max-height: 240px;
362 }
363
364 .avatar-overlay {
365   width: 20%;
366   height: 20%;
367   max-width: 120px;
368   max-height: 120px;
369 }
370
371 .avatar-pushup {
372   margin-top: -60px;
373 }
374
375 .img-icon {
376   width: 2rem;
377   height: 2rem;
378 }
379
380 .tribute-container ul {
381   margin: 0;
382   margin-top: 2px;
383   padding: 0;
384   list-style: none;
385   background: var(--light);
386 }
387
388 .tribute-container li {
389   padding: 5px 5px;
390   cursor: pointer;
391 }
392
393 .tribute-container li.highlight {
394   background: var(--primary);
395 }
396
397 .tribute-container li span {
398   font-weight: bold;
399 }
400
401 .tribute-container li.no-match {
402   cursor: default;
403 }
404
405 .tribute-container .menu-highlighted {
406   font-weight: bold;
407 }
408
409 .honeypot {
410   display: none !important;
411 }
412
413 .slight-radius {
414   border-radius: 4px;
415 }
416
417 .modlog-choices-font-size {
418   font-size: 0.9375rem !important;
419 }
420
421 .preview-lines {
422   overflow: hidden;
423   text-overflow: ellipsis;
424   display: -webkit-box;
425   -webkit-line-clamp: 3;
426   -webkit-box-orient: vertical;
427 }
428 .lang-select-action {
429   width: 100px;
430 }
431
432 .lang-select-action:focus {
433   width: auto;
434 }
435 em-emoji-picker {
436   width: 100%;
437 }