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