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