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