]> Untitled Git - lemmy-ui.git/blob - src/assets/css/main.css
8861ebc2ca068875c1a023eec7af513f10650b9e
[lemmy-ui.git] / src / assets / css / main.css
1 .navbar-toggler {
2   border: 0px;
3 }
4
5 .navbar-expand-lg .navbar-nav .nav-link {
6   padding-right: 0.75rem !important;
7   padding-left: 0.75rem !important;
8 }
9
10 .pointer {
11   cursor: pointer;
12 }
13
14 .pointer-events {
15   pointer-events: auto !important;
16 }
17
18 .not-allowed {
19   cursor: not-allowed;
20 }
21
22 .no-click {
23   pointer-events: none;
24   opacity: 0.65;
25 }
26
27 .upvote:hover {
28   color: var(--info);
29 }
30
31 .upvote {
32   margin-bottom: -5px;
33 }
34
35 .downvote:hover {
36   color: var(--danger);
37 }
38
39 .downvote {
40   margin-top: -10px;
41 }
42
43 .custom-select {
44   -moz-appearance: none;
45 }
46
47 .md-div p {
48   overflow: hidden;
49   text-overflow: ellipsis;
50 }
51
52 .md-div p:last-child {
53   margin-bottom: 0px;
54 }
55
56 .md-div img {
57   max-height: 40vh;
58   max-width: 100%;
59   height: auto;
60 }
61
62 .md-div h1 {
63   font-size: 2rem;
64 }
65 .md-div h2 {
66   font-size: 1.8rem;
67 }
68 .md-div h3 {
69   font-size: 1.6rem;
70 }
71 .md-div h4 {
72   font-size: 1.4rem;
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-flex;
116   width: 1em;
117   height: 1em;
118   stroke-width: 0;
119   stroke: currentColor;
120   fill: currentColor;
121   vertical-align: middle;
122   align-self: center;
123   -webkit-touch-callout: none;
124   -webkit-user-select: none;
125   -khtml-user-select: none;
126   -moz-user-select: none;
127   -ms-user-select: none;
128   user-select: none;
129 }
130
131 .icon-inline {
132   margin-bottom: 2px;
133 }
134
135 .spinner-large {
136   display: block;
137   margin: 1em auto;
138   width: 2em;
139   height: 2em;
140 }
141
142 .spin {
143   animation: spins 2s linear infinite;
144 }
145
146 @keyframes spins {
147   0% {
148     transform: rotate(0deg);
149   }
150   100% {
151     transform: rotate(359deg);
152   }
153 }
154
155 .dropdown-menu {
156   z-index: 2000;
157 }
158
159 blockquote {
160   border-left: 2px solid var(--secondary);
161   margin: 0.5em 5px;
162   padding: 0.1em 5px;
163 }
164
165 .mouse-icon {
166   margin-top: -4px;
167 }
168
169 .new-comments {
170   max-height: 50vh;
171   overflow-x: hidden;
172   overflow-y: auto;
173 }
174
175 .thumbnail {
176   object-fit: cover;
177   min-height: 60px;
178   max-height: 80px;
179   width: 100%;
180 }
181
182 .thumbnail svg {
183   height: 1.25rem;
184   width: 1.25rem;
185 }
186
187 .no-s-hows {
188   position: absolute !important;
189   top: -9999px !important;
190   left: -9999px !important;
191 }
192
193 hr {
194   border-top: 1px solid var(--light);
195 }
196
197 .emoji {
198   max-height: 1.2em !important;
199 }
200
201 .text-wrap-truncate {
202   overflow: hidden;
203   text-overflow: ellipsis;
204 }
205
206 #app {
207   display: flex;
208   flex-direction: column;
209   min-height: 100vh;
210 }
211
212 .fl-1 {
213   flex: 1;
214 }
215
216 .img-blur {
217   filter: blur(10px);
218   -webkit-filter: blur(10px);
219   -moz-filter: blur(10px);
220   -o-filter: blur(10px);
221   -ms-filter: blur(10px);
222 }
223
224 .img-expanded {
225   max-height: 90vh;
226 }
227
228 .btn-animate:active {
229   transform: scale(1.2);
230   -webkit-transform: scale(1.2);
231   -ms-transform: scale(1.2);
232 }
233
234 .mini-overlay {
235   position: absolute;
236   top: 0;
237   right: 0;
238   padding: 2px;
239   height: 1.5em;
240   width: 1.5em;
241   background: rgba(0, 0, 0, 0.4);
242   background-color: rgba(0, 0, 0, 0.4);
243   border-bottom-left-radius: 0.25rem !important;
244   border-top-right-radius: 0.25rem !important;
245 }
246
247 .link-overlay:hover {
248   transition: 0.1s;
249   -webkit-transition: 0.1s;
250   opacity: 1;
251 }
252
253 .link-overlay {
254   transition: opacity 0.1s ease-in-out;
255   -webkit-transition: opacity 0.1s ease-in-out;
256   position: absolute;
257   opacity: 0;
258   left: 0;
259   height: 100%;
260   width: 100%;
261   padding: 10px;
262   background: rgba(0, 0, 0, 0.6);
263   background-color: rgba(0, 0, 0, 0.6);
264 }
265
266 .placeholder {
267   height: 50px;
268   width: 50px;
269 }
270
271 .unselectable {
272   -webkit-touch-callout: none;
273   -webkit-user-select: none;
274   -khtml-user-select: none;
275   -moz-user-select: none;
276   -ms-user-select: none;
277   user-select: none;
278 }
279
280 .list-inline-item-action {
281   display: inline-block;
282 }
283
284 .list-inline-item-action:not(:last-child) {
285   margin-right: 1.2rem;
286 }
287
288 pre {
289   white-space: pre-wrap;
290   word-break: keep-all;
291 }
292
293 .form-control.search-input {
294   float: right !important;
295   transition: width 0.2s ease-out 0s !important;
296 }
297
298 .show-input {
299   width: 13em !important;
300 }
301 .hide-input {
302   background: transparent !important;
303   background-color: transparent !important;
304   width: 0px !important;
305   padding: 0 !important;
306 }
307
308 br.big {
309   display: block;
310   content: "";
311   margin-top: 1rem;
312 }
313
314 .banner {
315   object-fit: cover;
316   width: 100%;
317   max-height: 240px;
318 }
319
320 .avatar-overlay {
321   width: 20%;
322   height: 20%;
323   max-width: 120px;
324   max-height: 120px;
325 }
326
327 .avatar-pushup {
328   margin-top: -60px;
329 }
330
331 .img-icon {
332   width: 2rem;
333   height: 2rem;
334 }
335
336 .tribute-container ul {
337   margin: 0;
338   margin-top: 2px;
339   padding: 0;
340   list-style: none;
341   background: var(--light);
342 }
343 .tribute-container li {
344   padding: 5px 5px;
345   cursor: pointer;
346 }
347 .tribute-container li.highlight {
348   background: var(--primary);
349 }
350 .tribute-container li span {
351   font-weight: bold;
352 }
353 .tribute-container li.no-match {
354   cursor: default;
355 }
356 .tribute-container .menu-highlighted {
357   font-weight: bold;
358 }