]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/quattro.less
more work on quattro. remove html from php for groups and saved searches widgets.
[friendica.git] / view / theme / quattro / quattro.less
1 // Quattro Theme LESS file
2
3 /* global */
4 body {
5         font-family: Liberation Sans,helvetica,arial,clean,sans-serif;
6         font-size: 10px;
7         background-color: @BodyBackground;
8         color: @BodyColor;
9         margin: 50px 0px 0px 0px;
10         display:table;
11 }
12
13 .shadow(@x: 0px, @y: 5px){
14    -webkit-box-shadow:@x @y 10px rgba(0, 0, 0, 0.7);
15    -moz-box-shadow:@x @y 10px rgba(0, 0, 0, 0.7);
16    box-shadow:@x @y 10px rgba(0, 0, 0, 0.7);
17 }
18
19 .rounded(@tr: 5px, @tl: 5px, @bl: 5px, @br: 5px){
20         -moz-border-radius: @arguments;
21         -webkit-border-radius: @arguments;
22         border-radius: @arguments;
23 }
24 .roundbottom (@radius: 5px){ .rounded(0, 0, @radius, @radius); }
25 .roundtop (@radius: 5px){ .rounded(@radius, @radius, 0, 0); }
26
27 .opaque(@v: 0.5){
28         opacity: @v;
29         -webkit-transition: all 0.2s ease-in-out;
30         -moz-transition: all 0.2s ease-in-out;
31         -o-transition: all 0.2s ease-in-out;
32         -ms-transition: all 0.2s ease-in-out;
33         transition: all 0.2s ease-in-out;
34 }
35
36 a, a:link { color: @Link; text-decoration: none; }
37 a:visited { color: @LinkVisited; text-decoration: none; }
38 a:hover {color: @LinkHover; text-decoration: underline; }
39
40 .left { float: left; }
41 .right { float: right; }
42 .hidden { display: none; }
43
44
45 /* tool */
46
47 .tool {
48         height: auto; overflow: auto;
49         .label { float: left;}
50         .action { float: right; }
51 }
52
53
54
55
56 /* popup notifications */
57 div.jGrowl div.notice {
58         background: @NoticeBackgroundColor url("../../../images/icons/48/notice.png") no-repeat 5px center;
59         color:  @NoticeColor;
60         padding-left: 58px;
61 }
62 div.jGrowl div.info {
63         background: @InfoBackgroundColor url("../../../images/icons/48/info.png") no-repeat 5px center;
64         color:  @InfoColor;
65         padding-left: 58px;
66 }
67
68
69
70 /* header */
71 header {
72         position: fixed; left: 43%; right: 43%; top: 0px;
73         margin: 0px; padding: 0px;
74         /*width: 100%; height: 12px; */
75         z-index: 110;
76         color: @Grey1;
77         #site-location {
78                 display: none;
79         }
80         
81         #banner {
82                 overflow: hidden;
83             text-align: center;
84                 width: 100%;
85                 a, a:active, a:visited, a:link, a:hover { color: @Grey1; text-decoration: none; outline: none; vertical-align: bottom; }
86                 #logo-img { height: 22px; margin-top:5px;}
87                 #logo-text { font-size: 22px }
88         }
89 }
90 /* nav */
91 nav { 
92         width: 100%; height: 32px;
93         position: fixed; left: 0px; top: 0px;
94         padding: 0px;
95         background-color: @NavbarBackground;
96         color: @Grey1;
97         z-index: 100;
98         .shadow(0px, 0px);
99
100                 a, a:active, a:visited, a:link, a:hover { color: @Banner; text-decoration: none; outline: none;  }
101
102                 ul {
103                         margin: 0px;
104                         padding: 0px 20px;
105                         li { 
106                                 list-style: none; 
107                                 margin: 0px; padding: 0px;
108                                 float: left;
109                                 .menu-popup{ left: 0px; right: auto; }
110                         }
111                         
112                 }
113
114                 .nav-menu-icon {
115                         position: relative;
116                         height: 22px;
117                         padding: 5px;
118                         margin: 0px 10px;
119                         .roundtop();
120                         
121                         &.selected {
122                                 background-color: @NavbarSelectedBg;
123                         }
124                         
125                                 img { width: 22px; height: 22px; }
126                                 .nav-notify { top: 3px; }
127                 }
128
129                 .nav-menu {
130                         position: relative;
131                         height: 16px;
132                         padding: 5px;
133                         margin: 3px 15px 0px;
134                         font-size: 14px;
135                         border-bottom: 3px solid @NavbarBackground;
136                         &.selected {
137                                 border-bottom: 3px solid @NavbarSelectedBorder;
138                         }
139                         
140                 }
141
142                 .nav-notify {
143                         display: none;
144                         position: absolute;
145                         background-color: @NavbarNotifBg;
146                         .rounded();
147                         font-size: 10px;
148                         padding: 1px 3px;
149                         top: 0px;
150                         right: -10px;
151                         min-width: 15px;
152                         text-align: right;
153                         
154                                 &.show{ display: block; }
155                 }
156                 
157                 
158                 #nav-help-link,
159                 #nav-search-link,
160                 #nav-directory-link,
161                 #nav-apps-link,
162                 #nav-site-linkmenu { 
163                         float: right;
164                         .menu-popup{ right: 0px; left: auto; }
165                 }
166         
167                 #nav-notifications-linkmenu.on .icon.s22.notify,
168                 #nav-notifications-linkmenu.selected .icon.s22.notify { background-image: url("../../../images/icons/22/notify_on.png") }
169                 #nav-apps-link.selected { background-color: @NavbarSelectedBg; }
170 }
171
172
173 ul.menu-popup {
174         position: absolute;
175         display: none;
176         width: 10em;
177         background: @MenuBg;
178         color: @Menu;
179         margin: 0px;
180         padding: 0px;
181         list-style: none;
182         border: 3px solid @MenuBorder;
183         z-index: 100000;
184         
185         .shadow();
186         
187                 a { display: block; color: @MenuItem; padding: 5px 10px; text-decoration: none;}
188                 a:hover { background-color: @MenuItemHoverBg; }
189                 .menu-sep  { border-top: 1px solid @MenuItemSeparator; }
190                 li { float: none;  overflow: auto; height: auto; display: block; }
191                 li img { float: left; width: 16px; height: 16px; padding-right: 5px;}
192                 .empty {
193                         padding: 5px;
194                         text-align: center;
195                         color: @MenuEmpty;
196                 }
197                 
198 }
199
200 /* autocomplete popup */
201 .acpopup {
202         max-height:150px;
203         background-color:@MenuBg;
204         color: @Menu;
205         border:1px solid #MenuBorder;
206         overflow:auto;
207         z-index:100000;
208         .shadow();
209 }
210 .acpopupitem {
211         color: @MenuItem; padding: 4px;
212         clear:left;
213         img {
214                 float: left;
215                 margin-right: 4px;
216         }
217         &.selected{
218                 background-color: @MenuItemHoverBg;
219         }
220 }
221
222
223 #nav-notifications-menu {
224         width: 400px;
225         img { float: left; margin-right: 5px; }
226         .contactname { font-weight: bold; }
227         .notif-when { font-size: 10px; color: @MenuItemDetail; display: block; }
228 }
229
230
231
232
233 /* aside */
234 aside { 
235         display: table-cell;
236         vertical-align: top;
237         width: 200px;
238         padding:0px 10px 0px 20px;
239         border-right: 1px solid @AsideBorder;
240
241         .vcard {
242                 .fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
243                 .title { margin-bottom: 5px; }
244                 dl { height: auto; overflow: auto; }
245                 dt {float: left; margin-left: 0px; width: 35%; text-align: right; color: @VCardLabelColor; }
246                 dd {float: left; margin-left: 4px; width: 60%;}
247         
248         }
249
250         #profile-extra-links {
251                 ul { padding: 0px; margin: 0px; }
252                 li { padding: 0px; margin: 0px; list-style: none; }
253         }
254
255         #dfrn-request-link {
256                 display: block;
257                 .rounded();
258                 color: @AsideConnect;
259                 background: @AsideConnectBg url('../../../images/connect-bg.png') no-repeat left center;
260                 font-weight: bold;
261                 text-transform:uppercase;
262                 padding: 4px 2px 2px 35px;
263                 
264                 &:hover { text-decoration: none; background-color: @AsideConnectHoverBg; }
265         }
266
267         #profiles-menu { width: 20em; }
268
269
270 }
271
272 #contact-block {
273         overflow: auto; height: auto;
274         .contact-block-h4 { float: left; margin: 5px 0px; }
275         .allcontact-link { float: right; margin: 5px 0px; }
276         .contact-block-content {
277                 clear: both;
278                 overflow: auto; height: auto;
279         }
280         .contact-block-link {
281                 float: left;
282                 margin: 0px 2px 2px 0px;
283         }
284 }
285
286
287 /* widget */
288 .widget {
289         margin-bottom: 2em;
290         
291         h3 { padding: 0px; margin: 2px;}
292         .action { .opaque(0.1); }
293         input.action { .opaque(0.5); }
294         &:hover .title .action { .opaque(1); }
295         .tool:hover .action { .opaque(1); }
296         .tool:hover .action.ticked { .opaque(1); }
297
298         ul { padding: 0px;}
299         ul li {padding-left: 16px; min-height: 16px; list-style: none; }
300         
301         .tool.selected {
302                 background: url('../../../images/selected.png') no-repeat left center;
303         }
304         
305         /*.action .s10 { width: 10px; overflow: hidden; padding: 0px;}
306         .action .s16 { width: 16px; overflow: hidden; padding: 0px;}*/
307         
308 }
309
310 /* widget: search */
311 #add-search-popup {
312         width: 200px;
313         top: 18px;
314 }
315
316
317 /* section */
318 section { 
319         display: table-cell;
320         vertical-align: top;
321         width: 800px;
322         padding:0px 20px 0px 10px;
323 }
324
325 /* wall item */
326 .tread-wrapper { 
327         background-color: @ThreadBackgroundColor;
328         position: relative;
329         padding: 10px;
330         margin-bottom: 20px;
331 }
332 .wall-item-decor { position: absolute; left: 790px; top: -10px;  width: 16px;}
333 .unstarred { display: none; }
334
335 .wall-item-container {
336         display: table;
337         width: 780px;
338         
339         .wall-item-item,
340         .wall-item-bottom { display: table-row; }
341         
342         .wall-item-bottom { .opaque(0.5); }
343         &:hover .wall-item-bottom { .opaque(1); }
344         .wall-item-info {
345                 display: table-cell;
346                 vertical-align: top;
347                 text-align: left;
348                 width: 60px;
349                 
350                 .wall-item-photo-wrapper { position: relative; }
351                 .wall-item-photo { width: 48px; height: 48px; }         
352                 
353                 .wall-item-photo-menu-button {
354                         display: none;
355                         position: absolute;
356                         left: -4px;
357                         top: 28px;
358                 }
359                 .wall-item-photo-menu { display: none; }
360                 
361         } 
362         .wall-item-location {
363                 word-wrap: break-word;
364                 width: 50px;
365         }
366         .wall-item-content {
367                 display: table-cell;
368                 font-size: 12px;
369                 max-width: 720px;
370                 word-wrap: break-word;
371         }
372         .wall-item-content img { max-width: 710px; }
373         .wall-item-links,
374         .wall-item-actions { 
375                 display: table-cell; 
376                 vertical-align: middle; 
377                 
378                 .icon {
379                         .opaque(0.5);
380                 }
381                 .icon:hover  {
382                         .opaque(1.0);
383                 }               
384         }
385         
386         .wall-item-ago { padding-right: 40px; }
387         .wall-item-name { font-weight: bold; }
388         
389         .wall-item-actions-author { float: left; width: 20em; margin-top: 0.5em; }
390         .wall-item-actions-social { float: left; margin-top: 0.5em;
391                 a { margin-right: 3em; }
392          }
393         .wall-item-actions-tools { float: right; width: 15%; 
394                 a { float: right; }
395                 input { float: right; }
396         }
397         
398 }
399
400
401 .wall-item-container.comment {
402         /*margin-top: 50px;*/
403         .wall-item-photo { width: 32px; height: 32px; margin-left: 16px;}       
404         .wall-item-photo-menu-button {
405                 top: 13px !important;
406                 left: 10px !important;
407         }
408         .wall-item-links { padding-left: 12px; }
409 }
410
411 .wall-item-comment-wrapper {
412         margin: 30px 2em 2em 60px;
413         .comment-edit-photo { display: none; }
414         textarea {      
415                 height: 1em; width: 100%; font-size: 10px;
416                 color: @CommentBoxEmptyColor;
417                 border: 1px solid @CommentBoxEmptyBorderColor;
418                 padding:0.3em;
419         }
420         .comment-edit-text-full {
421                 font-size: 14px;
422                 height: 4em;
423                 color: @CommentBoxFullColor;
424                 border: 1px solid @CommentBoxFullBorderColor;
425         }
426 }
427
428 .tag {
429         background: url("../../../images/tag_b.png") no-repeat center left;
430         color: @TagColor;
431         padding-left: 3px;
432         a {
433                 padding-right: 8px;
434                 background: url("../../../images/tag.png") no-repeat center right;
435                 color: @TagColor;
436         }
437 }
438
439
440
441 #profile-jot-wrapper {
442         width: 100%;
443         margin: 0px 2em 20px 0px;
444         
445         
446 }
447 .profile-jot-text {
448         height: 1em; width: 100%; font-size: 10px;
449         color: @CommentBoxEmptyColor;
450         border: 1px solid @CommentBoxEmptyBorderColor;
451         padding:0.3em;
452 }
453 #profile-jot-plugin-wrapper,
454 #profile-jot-submit-wrapper {
455         margin-top: 10px;
456 }
457
458
459 #profile-jot-submit {
460         float: left;
461 }
462 #profile-upload-wrapper{
463         float: left;
464         margin-left: 10px;
465 }
466 #profile-attach-wrapper,
467 #profile-rotator,
468 #profile-link-wrapper,
469 #profile-youtube-wrapper,
470 #profile-video-wrapper,
471 #profile-audio-wrapper,
472 #profile-location-wrapper,
473 #profile-nolocation-wrapper,
474 #profile-title-wrapper {
475         float: left;
476         margin-left: 20px;
477 }
478
479 #profile-jot-perms {
480         float: left;
481         margin-left: 35px;
482         margin-right: 35px;
483 }
484
485 #profile-jot-perms-end {
486         /*clear: left;*/
487         height: 20px;
488 }
489
490 #profile-jot-plugin-end{
491   clear: both;
492 }
493 .profile-jot-net {
494         float: left;
495         margin-right: 10px;
496         margin-top: 5px;
497         margin-bottom: 5px;
498 }
499
500 #profile-jot-networks-end {
501         clear: both;
502 }
503
504 #profile-jot-end, #about-jot-end {
505         margin-bottom: 15px;
506 }
507 #about-jot-submit-wrapper {
508         margin-top: 15px;
509 }
510 /** buttons **/
511 /*input[type="submit"] {
512         border: 0px;
513     background-color: @ButtonBackgroundColor;
514     color: @ButtonColor;
515     padding: 0px 10px;
516         .rounded(5px);
517     height: 18px;
518 }*/
519
520
521 /** acl **/
522 #photo-edit-perms-select,
523 #photos-upload-permissions-wrapper,
524 #profile-jot-acl-wrapper{
525         display:block!important;
526 }
527
528
529
530 #acl-wrapper {
531         width: 690px;
532         float:left;
533 }
534 #acl-search {
535         float:right;
536         background: #ffffff url("../../../images/search_18.png") no-repeat right center;
537         padding-right:20px;
538 }
539 #acl-showall {
540         float: left;
541         display: block;
542         width: auto;
543         height: 18px;
544         background-color: #cccccc;
545         background-image: url("../../../images/show_all_off.png");
546         background-position: 7px 7px;
547         background-repeat: no-repeat;
548         padding: 7px 5px 0px 30px;
549         color: #999999;
550         .rounded(5px);
551 }
552 #acl-showall.selected {
553         color: #000000;
554         background-color: #ff9900;
555         background-image: url("../../../images/show_all_on.png");
556 }
557
558 #acl-list {
559         height: 210px;
560         border: 1px solid #cccccc;
561         clear: both;
562         margin-top: 30px;
563         overflow: auto;
564 }
565 #acl-list-content {
566         
567 }
568 .acl-list-item {
569         display: block;
570         width: 150px;
571         height: 30px;
572         border: 1px solid #cccccc;
573         margin: 5px;
574         float: left;
575 }
576 .acl-list-item img{
577         width:22px;
578         height: 22px;
579         float: left;
580         margin: 4px;
581 }
582 .acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
583 .acl-list-item a { 
584         font-size: 8px;
585         display: block;
586         width: 40px;
587         height: 10px;
588         float: left;
589         color: #999999;
590         background-color: #cccccc;
591         background-position: 3px 3px;
592         background-repeat: no-repeat;
593         margin-right: 5px;
594         -webkit-border-radius: 2px ;
595         -moz-border-radius: 2px;
596         border-radius: 2px;
597         padding-left: 15px;
598 }
599 #acl-wrapper a:hover {
600         text-decoration: none;
601         color:#000000;
602 }
603 .acl-button-show { background-image: url("../../../images/show_off.png"); }
604 .acl-button-hide { background-image: url("../../../images/hide_off.png"); }
605
606 .acl-button-show.selected {
607         color: #000000;
608         background-color: #9ade00;
609         background-image: url("../../../images/show_on.png");
610 }
611 .acl-button-hide.selected {
612         color: #000000;
613         background-color: #ff4141;
614         background-image: url("../../../images/hide_on.png");
615 }
616 .acl-list-item.groupshow { border-color: #9ade00; }
617 .acl-list-item.grouphide { border-color: #ff4141; }
618 /** /acl **/
619
620 /** tab buttons **/
621 ul.tabs {
622     list-style-type: none;
623     padding-bottom: 10px;
624
625     li {
626         float: left;
627         margin-left: 20px;
628         
629         .active {
630                         border-bottom: 1px solid @LinkVisited;
631         }
632     }
633     
634 }
635
636
637 /**
638  * Form fields
639  */
640 .field {
641         margin-bottom: 10px;
642         padding-bottom: 10px;
643         overflow: auto;
644         width: 100%;
645
646
647         label {
648                 float: left;
649                 width: 200px;
650         }
651
652         input,
653         textarea {
654                 width: 400px;
655         }
656         textarea { height: 100px; }
657         .field_help {
658                 display: block;
659                 margin-left: 200px;
660                 color: #666666;
661                 
662         }
663
664
665         .onoff {
666                 float: left;
667                 width: 80px;
668         }
669         .onoff a {
670                 display: block;
671                 border:1px solid #666666;
672                 background-image:url("../../../images/onoff.jpg");
673                 background-repeat: no-repeat;
674                 padding: 4px 2px 2px 2px;
675                 height: 16px;
676                 text-decoration: none;
677         }
678         .onoff .off {
679                 border-color:#666666;
680                 padding-left: 40px;
681                 background-position: left center;
682                 background-color: #cccccc;
683                 color: #666666;
684                 text-align: right;
685         }
686         .onoff .on {
687                 border-color:#204A87;
688                 padding-right: 40px;
689                 background-position: right center;
690                 background-color: #D7E3F1;
691                 color: #204A87;
692                 text-align: left;
693         }
694         .hidden { display: none!important; }
695
696         &.radio .field_help { margin-left: 0px; }
697 }
698
699
700 /* page footer */
701 footer { height: 100px; display: table-row; }