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