]> Untitled Git - lemmy-ui.git/blob - src/assets/css/main.css
Feature/user community block (#362)
[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-content {
156   position: absolute;
157   background-color: var(--light);
158   min-width: 160px;
159   box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
160   z-index: 2000;
161 }
162
163 blockquote {
164   border-left: 2px solid var(--secondary);
165   margin: 0.5em 5px;
166   padding: 0.1em 5px;
167 }
168
169 .mouse-icon {
170   margin-top: -4px;
171 }
172
173 .new-comments {
174   max-height: 50vh;
175   overflow-x: hidden;
176   overflow-y: auto;
177 }
178
179 .thumbnail {
180   object-fit: cover;
181   min-height: 60px;
182   max-height: 80px;
183   width: 100%;
184 }
185
186 .thumbnail svg {
187   height: 1.25rem;
188   width: 1.25rem;
189 }
190
191 .no-s-hows {
192   position: absolute !important;
193   top: -9999px !important;
194   left: -9999px !important;
195 }
196
197 hr {
198   border-top: 1px solid var(--light);
199 }
200
201 .emoji {
202   max-height: 1.2em !important;
203 }
204
205 .text-wrap-truncate {
206   overflow: hidden;
207   text-overflow: ellipsis;
208 }
209
210 #app {
211   display: flex;
212   flex-direction: column;
213   min-height: 100vh;
214 }
215
216 .fl-1 {
217   flex: 1;
218 }
219
220 .img-blur {
221   filter: blur(10px);
222   -webkit-filter: blur(10px);
223   -moz-filter: blur(10px);
224   -o-filter: blur(10px);
225   -ms-filter: blur(10px);
226 }
227
228 .img-expanded {
229   max-height: 90vh;
230 }
231
232 .btn-animate:active {
233   transform: scale(1.2);
234   -webkit-transform: scale(1.2);
235   -ms-transform: scale(1.2);
236 }
237
238 .mini-overlay {
239   position: absolute;
240   top: 0;
241   right: 0;
242   padding: 2px;
243   height: 1.5em;
244   width: 1.5em;
245   background: rgba(0, 0, 0, 0.4);
246   background-color: rgba(0, 0, 0, 0.4);
247   border-bottom-left-radius: 0.25rem !important;
248   border-top-right-radius: 0.25rem !important;
249 }
250
251 .link-overlay:hover {
252   transition: 0.1s;
253   -webkit-transition: 0.1s;
254   opacity: 1;
255 }
256
257 .link-overlay {
258   transition: opacity 0.1s ease-in-out;
259   -webkit-transition: opacity 0.1s ease-in-out;
260   position: absolute;
261   opacity: 0;
262   left: 0;
263   height: 100%;
264   width: 100%;
265   padding: 10px;
266   background: rgba(0, 0, 0, 0.6);
267   background-color: rgba(0, 0, 0, 0.6);
268 }
269
270 .placeholder {
271   height: 50px;
272   width: 50px;
273 }
274
275 .unselectable {
276   -webkit-touch-callout: none;
277   -webkit-user-select: none;
278   -khtml-user-select: none;
279   -moz-user-select: none;
280   -ms-user-select: none;
281   user-select: none;
282 }
283
284 .list-inline-item-action {
285   display: inline-block;
286 }
287
288 .list-inline-item-action:not(:last-child) {
289   margin-right: 1.2rem;
290 }
291
292 pre {
293   white-space: pre-wrap;
294   word-break: keep-all;
295 }
296
297 .form-control.search-input {
298   float: right !important;
299   transition: width 0.2s ease-out 0s !important;
300 }
301
302 .show-input {
303   width: 13em !important;
304 }
305 .hide-input {
306   background: transparent !important;
307   background-color: transparent !important;
308   width: 0px !important;
309   padding: 0 !important;
310 }
311
312 br.big {
313   display: block;
314   content: "";
315   margin-top: 1rem;
316 }
317
318 .banner {
319   object-fit: cover;
320   width: 100%;
321   max-height: 240px;
322 }
323
324 .avatar-overlay {
325   width: 20%;
326   height: 20%;
327   max-width: 120px;
328   max-height: 120px;
329 }
330
331 .avatar-pushup {
332   margin-top: -60px;
333 }
334
335 .img-icon {
336   width: 2rem;
337   height: 2rem;
338 }
339
340 .tribute-container ul {
341   margin: 0;
342   margin-top: 2px;
343   padding: 0;
344   list-style: none;
345   background: var(--light);
346 }
347 .tribute-container li {
348   padding: 5px 5px;
349   cursor: pointer;
350 }
351 .tribute-container li.highlight {
352   background: var(--primary);
353 }
354 .tribute-container li span {
355   font-weight: bold;
356 }
357 .tribute-container li.no-match {
358   cursor: default;
359 }
360 .tribute-container .menu-highlighted {
361   font-weight: bold;
362 }