]> git.mxchange.org Git - friendica.git/blob - view/global.css
fix some optical glitches with oembedded links and videos
[friendica.git] / view / global.css
1 /* General style rules .*/
2 .pull-right { float: right }
3
4 /* General designing elements */
5 .btn {
6   outline: none;
7   -moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
8   -webkit-box-shadow: inset 0px 1px 0px 0px #ffffff;
9   box-shadow: inset 0px 1px 0px 0px #ffffff;
10   background-color: #ededed;
11   text-indent: 0;
12   border: 1px solid #dcdcdc;
13   display: inline-block;
14   color: #777777;
15   padding: 5px 10px;
16   text-align: center;
17 }
18 a.btn, a.btn:hover {
19   text-decoration: none;
20   color: inherit;
21 }
22
23 .menu-popup .divider {
24   height: 1px;
25   margin: 3px 0;
26   overflow: hidden;
27   background-color: #2d2d2d;
28 }
29
30 .overline {
31         text-decoration: overline;
32 }
33
34 /* List of social Networks */
35 img.connector, img.connector-disabled {
36   height: 40px;
37   margin-right: 10px;
38   border-radius: 10px;
39 }
40
41 img.connector-disabled {
42   opacity: 0.5;
43 }
44
45 h3.connector {
46   display: inline-block;
47   vertical-align: bottom;
48 }
49 span.connector {
50   vertical-align: super;
51 }
52
53 /* Embedded link information */
54 .type-link, .type-video {
55   border-top: 1px solid #D2D2D2;
56   border-bottom: 1px solid #D2D2D2;
57   display: block;
58   padding-top: 5px;
59   padding-bottom: 5px;
60   margin-top: 10px;
61 }
62
63 .type-link:after, .type-video:after,
64 .oembed.video:after {
65   content: ".";
66   display: block;
67   height: 0;
68   clear: both;
69   visibility: hidden;
70 }
71
72 .type-video .oembed.video:after {
73   float: left;
74 }
75
76 .wall-item-container .wall-item-content .type-link img,
77 .type-link img, .type-video img, img.attachment-preview {
78   max-width: 160px;
79   max-height: 160px;
80   float: left;
81   margin-right: 10px;
82 }
83
84 .wall-item-container .wall-item-content .type-link img.attachment-image,
85 .type-link img.attachment-image, .type-video img.attachment-image  {
86   /* max-width: 640px; */
87   max-width: 100%;
88   max-height: initial;
89   float: initial;
90   margin-right: 0px;
91 }
92
93 .type-link blockquote, .type-video blockquote {
94   margin-left: 0px;
95   max-height: 160px;
96   overflow: hidden;
97   border-left: 0px;
98   padding-left: 0px;
99   font-size: 13px;
100   line-height: normal;
101 }
102
103 .type-link .oembed, .type-video .oembed {
104   font-size: 18px;
105   font-weight: 300;
106   line-height: normal;
107 }
108 .type-link img, .type-video img {
109 }
110
111 .type-video .embed_video {
112   margin: 0em;
113 }
114
115 .type-link span.oembed + br, .type-video span.oembed + br,
116 .type-link a + br, .type-video a + br,
117 .type-link img + br, .type-video img + br{
118   display: none;
119 }
120
121 .embed_video {
122   float:left;
123   margin: 1em;
124   position: relative;
125 }
126
127 .embed_video.active {
128   float: none;
129 }
130
131 .oembed.video .embed_video > div {
132   position: absolute;
133   top: 0px;
134   left: 0px;
135 }
136 .embed_rich {
137   display: block;
138   transition: height .75s;
139 }
140
141 /* Shared Messages */
142 .shared_header {
143   min-height: 32px;
144   color: #999;
145   border-top: 1px solid #D2D2D2;
146   padding-top: 5px;
147   margin-top: 5px;
148 }
149
150 .shared_header a {
151   color: black;
152   -webkit-transition: all 0.2s ease-in-out;
153   -moz-transition: all 0.2s ease-in-out;
154   -o-transition: all 0.2s ease-in-out;
155   -ms-transition: all 0.2s ease-in-out;
156   transition: all 0.2s ease-in-out;
157 }
158
159 .shared_header a:hover {
160   color: #36c;
161 }
162
163 .shared_header img {
164   -webkit-border-radius: 4px;
165   -moz-border-radius: 4px;
166   border-radius: 4px;
167   float: left;
168   margin-right: 9px;
169 }
170
171 .shared_header span {
172   display: table-cell;
173   float: none;
174 }
175
176 blockquote.shared_content {
177   margin-left: 32px;
178   color: #000;
179   border: none;
180 }
181
182 .settings-heading a:after{
183   content: ' »';
184 }
185
186 /* headers */
187 h1, h2, h3, h4, h5, h6 {
188   margin: 5px 0px 5px 0px;
189   font-weight: normal;
190   line-height: normal;
191   text-rendering: optimizelegibility;
192 }
193
194 h1 {
195   font-size: 31.5px;
196 }
197
198 h2 {
199   font-size: 24.5px;
200 }
201
202 h3 {
203   font-size: 20.5px;
204 }
205
206 h4 {
207   font-size: 18px;
208 }
209
210 h5 {
211   font-size: 16.5px;
212 }
213
214 h6 {
215   font-size: 14.95px;
216 }
217
218 span.oembed, h4 {
219   margin: 0px 0px 0px 0px;
220 }
221
222 code { display: block; background-color: #eee; color: #666; padding:1em; font-size: 0.8em; font-family: monospace; }
223 key { display: inline; background-color: #eee; color: #666; padding:0.2em; font-size: 0.8em; font-family: monospace; }
224
225 /* fields help text */
226 .field .field_help {
227   clear: left;
228 }
229
230 /* notifications unseen */
231 .notify-unseen { background-color: #cceeFF; }
232
233 /* autocomplete popup */
234 ul.acpopup {
235   list-style: none;
236   float: left;
237   min-width: 160px;
238   padding: 5px 0;
239   margin: 2px 0 0;
240 }
241 nav .acpopup {
242   width: 290px;
243   max-height: 450px;
244   max-width: 300px;
245   overflow-y: auto;
246   overflow-x: hidden;
247   margin-top: 0px;
248 }
249 img.acpopup-img {
250   float: left;
251   width: 36px;
252   height: 36px;
253   margin-right: 5px;
254   vertical-align: middle;
255 }
256 .acpopup-contactname {
257   padding-top: 2px;
258   font-weight: bold;
259   line-height: 1em;
260   white-space: nowrap;
261   overflow: hidden;
262   text-overflow: ellipsis;
263   display: block;
264 }
265 .acpopup-sub-text {
266   color: #777;
267   font-size: 0.833em;
268   line-height: 1em;
269   overflow: hidden;
270   text-overflow: ellipsis;
271   display: block;
272 }
273 .textcomplete-item a {
274   color: inherit;
275   overflow: hidden;
276   text-overflow: ellipsis;
277   clear: both;
278   white-space: nowrap;
279   padding: 3px 20px;
280   display: block;
281 }
282 .textcomplete-item a:hover {
283   text-decoration: none;
284 }
285
286 /* plain text editor upload/select popup */
287
288 .fbrowser .path a, .fbrowser .path .btn-link { padding: 5px; }
289 .fbrowser .path a:before, .fbrowser .path .btn-link:before { content: "/"; padding-right: 5px;}
290 .fbrowser .folders ul { list-style-type: none; padding-left: 10px;}
291 .fbrowser .list { height: auto; overflow-y: hidden; margin: 10px 0px; }
292 .fbrowser.image .photo-album-image-wrapper { float: left; }
293 .fbrowser.image a img, .fbrowser.image .btn-link img { height: 48px; }
294 .fbrowser.image a p, .fbrowser.image .btn-link p { display: none;}
295 .fbrowser.file .photo-album-image-wrapper { float:none;  white-space: nowrap; }
296 .fbrowser.file img { display: inline; }
297 .fbrowser.file p  { display: inline; white-space: nowrap; }
298 .fbrowser .upload { clear: both; padding-top: 1em;}
299 .fbrowser .error { background: #ffeeee; border: 1px solid #994444; color: #994444; padding: 0.5em;}
300 .fbrowser .error .close { float: right; font-weight: bold; }
301 .fbrowser .error.hidden { display: none; }
302
303 a {
304   cursor: pointer;
305 }
306
307 .sr-only {
308   position: absolute;
309   width: 1px;
310   height: 1px;
311   padding: 0;
312   margin: -1px;
313   overflow: hidden;
314   clip: rect(0,0,0,0);
315   border: 0;
316 }
317
318 .itentity-match-wrapper {
319   float: left;
320   padding: 10px;
321   width: 120px;
322   height: 140px;
323   margin-bottom: 20px;
324 }
325
326 .identity-match-photo {
327   float: left;
328   text-align: center;
329   width: 120px;
330 }
331
332 .identity-match-name {
333   text-align: center;
334 }
335
336 .identity-match-details {
337   float: left;
338   text-align: center;
339   width: 120px;
340   overflow: hidden;
341   font-size: 10px;
342   font-weight: 500;
343   color: #999999;
344 }
345
346 .identity-match-break, .identity-match-end {
347   clear: both;
348 }
349
350 .identity-match-photo button {
351   border: none;
352   padding: 0;
353   margin: 0;
354   background: none;
355   height: 80px;
356   width: 80px;
357   cursor: pointer;
358 }
359
360 .selected-identity img {
361   border: 2px solid #ff0000;
362 }
363 /* poke */
364 #poke-desc {
365   margin: 5px 0 10px;
366 }
367
368 #poke-wrapper  {
369   padding: 10px 0 0px;
370 }
371
372 #poke-recipient, #poke-action, #poke-privacy-settings {
373   margin: 10px 0 30px;
374 }
375
376 #poke-recip-label, #poke-action-label, #prvmail-message-label {
377   margin: 10px 0 10px;
378 }
379 .version-match {
380   font-weight: bold;
381   color: #00a700;
382 }
383 .federation-graph {
384   width: 400px;
385   height: 400px;
386   float: right;
387   margin: 20px;
388 }
389 .federation-network-graph {
390   width: 240px;
391   height: 240px;
392   float: left;
393   margin: 20px;
394 }
395 ul.federation-stats,
396 ul.credits {
397   list-style: none;
398 }
399 ul.federation-stats li,
400 ul.credits li {
401   float: left;
402   width: 240px;
403 }
404 table#federation-stats {
405   width: 100%;
406 }
407 td.federation-data {
408   border-bottom: 1px solid #000;
409 }
410
411 .contact-entry-photo img {
412   max-width: 80px;
413   max-height: 80px;
414 }
415
416 /* forumlist widget */
417 .forumlist-img {
418   height: 20px;
419   width: 20px;
420   vertical-align: middle;
421 }
422
423 #forum-widget-collapse {
424   opacity: 0.3;
425 }
426
427 #forum-widget-collapse:hover {
428   opacity: 1.0;
429 }
430
431 .crepair-label {
432   margin-top: 10px;
433   float: left;
434   width: 250px;
435 }
436
437 .crepair-input {
438   margin-top: 10px;
439   float: left;
440   width: 200px;
441 }
442
443 .renderinfo {
444   clear: both;
445 }
446
447 .p-addr {
448   clear: both;
449 }
450
451 #live-community {
452   clear: both;
453 }
454
455 /* contact-edit */
456 #contact-edit-status-wrapper {
457   border: 1px solid;
458   padding: 10px;
459 }
460 #contact-edit-actions {
461   float: right;
462   display: inline-block;
463   position: relative;
464 }
465 #contact-edit-actions > .menu-popup {
466   right: 0;
467   left: auto;
468 }
469
470 #contact-edit-settings-label:after {
471   content: ' »';
472 }
473
474 #contact-edit-settings {
475   display: none;
476   margin: 10px 0;
477 }
478
479 /* settings page */
480 #settings-form .pageflags {
481     margin: 0 0 20px 30px;
482 }
483
484 /* admin pending user notes */
485 td.pendingnote {
486         padding-left: 20px;
487         padding-right: 20px;
488 }
489 td.pendingnote > p > span {
490         font-weight: bold;
491 }
492
493 /* warning message */
494 .warning-message {
495         padding: 10px;
496         margin: 5px;
497         border-left: 5px solid #f00;
498         font-weight: bold;
499 }
500
501 /* src/href attributes filter error display */
502 .invalid-src { border: 1px dotted red;}
503 .invalid-href { border-bottom: 1px dotted red;}
504 .invalid-src:after,
505 .invalid-href:after { content: '⚠️'}
506 img.invalid-src:after { vertical-align: top;}