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