]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/quattro.less
d05acf76a48fb445435164f32d98f6ce1a0e3661
[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         }
297 }
298
299
300 /* widget */
301 .widget {
302         margin-bottom: 2em;
303         
304         h3 { padding: 0px; margin: 2px;}
305         .action { .opaque(0.1); }
306         input.action { .opaque(0.5); }
307         &:hover .title .action { .opaque(1); }
308         .tool:hover .action { .opaque(1); }
309         .tool:hover .action.ticked { .opaque(1); }
310
311         ul { padding: 0px;}
312         ul li {padding-left: 16px; min-height: 16px; list-style: none; }
313         
314         .tool.selected {
315                 background: url('../../../images/selected.png') no-repeat left center;
316         }
317         
318         /*.action .s10 { width: 10px; overflow: hidden; padding: 0px;}
319         .action .s16 { width: 16px; overflow: hidden; padding: 0px;}*/
320         
321 }
322
323 /* widget: search */
324 #add-search-popup {
325         width: 200px;
326         top: 18px;
327 }
328
329
330 /* section */
331 section { 
332         display: table-cell;
333         vertical-align: top;
334         width: 800px;
335         padding:0px 20px 0px 10px;
336 }
337
338 /* wall item */
339 .tread-wrapper { 
340         background-color: @ThreadBackgroundColor;
341         position: relative;
342         padding: 10px;
343         margin-bottom: 20px;
344         width: 780px;
345 }
346 .wall-item-decor { position: absolute; left: 790px; top: -10px;  width: 16px;}
347 .unstarred { display: none; }
348
349 .wall-item-container {
350         display: table;
351         width: 780px;
352         
353         .wall-item-item,
354         .wall-item-bottom { display: table-row; }
355         
356         .wall-item-bottom { .opaque(0.5); }
357         &:hover .wall-item-bottom { .opaque(1); }
358         .wall-item-info {
359                 display: table-cell;
360                 vertical-align: top;
361                 text-align: left;
362                 width: 60px;
363                 
364                 .wall-item-photo-wrapper { position: relative; }
365                 .wall-item-photo { 
366                         width: 48px; height: 48px;
367                         overflow: hidden;
368                         text-indent: -9999px;
369                         display: block;
370                         background: url(../../../images/icons/48/user.png) no-repeat center center;
371                  }              
372                 
373                 .wall-item-photo-menu-button {
374                         display: none;
375                         position: absolute;
376                         left: -4px;
377                         top: 28px;
378                 }
379                 .wall-item-photo-menu { display: none; }
380                 
381         } 
382         .wall-item-location {
383                 word-wrap: break-word;
384                 width: 50px;
385         }
386         .wall-item-content {
387                 display: table-cell;
388                 font-size: 12px;
389                 max-width: 720px;
390                 word-wrap: break-word;
391         }
392         .wall-item-content img { max-width: 710px; }
393         .wall-item-links,
394         .wall-item-actions { 
395                 display: table-cell; 
396                 vertical-align: middle; 
397                 
398                 .icon {
399                         .opaque(0.5);
400                 }
401                 .icon:hover  {
402                         .opaque(1.0);
403                 }               
404         }
405         
406         .wall-item-ago { padding-right: 40px; }
407         .wall-item-name { font-weight: bold; }
408         
409         .wall-item-actions-author { float: left; width: 20em; margin-top: 0.5em; }
410         .wall-item-actions-social { float: left; margin-top: 0.5em;
411                 a { margin-right: 3em; }
412          }
413         .wall-item-actions-tools { float: right; width: 15%; 
414                 a { float: right; }
415                 input { float: right; }
416         }
417         
418 }
419
420
421 .wall-item-container.comment {
422         /*margin-top: 50px;*/
423         .wall-item-photo { width: 32px; height: 32px; margin-left: 16px;
424                 background: url(../../../images/icons/22/user.png) no-repeat center center;
425         }       
426         .wall-item-photo-menu-button {
427                 top: 13px !important;
428                 left: 10px !important;
429         }
430         .wall-item-links { padding-left: 12px; }
431 }
432
433 .wall-item-comment-wrapper {
434         margin: 30px 2em 2em 60px;
435         .comment-edit-photo { display: none; }
436         textarea {      
437                 height: 1em; width: 100%; font-size: 10px;
438                 color: @CommentBoxEmptyColor;
439                 border: 1px solid @CommentBoxEmptyBorderColor;
440                 padding:0.3em;
441         }
442         .comment-edit-text-full {
443                 font-size: 14px;
444                 height: 4em;
445                 color: @CommentBoxFullColor;
446                 border: 1px solid @CommentBoxFullBorderColor;
447         }
448 }
449
450
451
452 .wall-item-tags { padding-top: 5px; }
453 .tag {
454         background: url("../../../images/tag_b.png") no-repeat center left;
455         color: @TagColor;
456         padding-left: 3px;
457         a {
458                 padding-right: 8px;
459                 background: url("../../../images/tag.png") no-repeat center right;
460                 color: @TagColor;
461         }
462 }
463
464 /* editor */
465 .jothidden { display: none; }
466 #jot {
467
468         width: 100%;
469         margin: 0px 2em 20px 0px;
470         
471         
472         .profile-jot-text {
473                 height: 1em; width: 99%; font-size: 10px;
474                 color: @CommentBoxEmptyColor;
475                 border: 1px solid @CommentBoxEmptyBorderColor;
476                 padding:0.3em;
477         }
478
479         #jot-tools {
480                 margin: 0px; padding: 0px;
481                 height: 40px; overflow: none;
482                 width: 800px;
483                 background-color: @JotToolsBackgroundColor;
484                 border-bottom: 2px solid @JotToolsBorderColor;
485                 li {
486                         list-style: none;
487                         float: left;
488                         width: 80px;
489                         height: 40px;
490                         border-bottom: 2px solid @JotToolsBorderColor;
491                         a {
492                                 display: block;
493                                 color: @JotToolsText;
494                                 width: 100%;
495                                 height:40px;
496                                 text-align: center;
497                                 line-height: 40px;
498                                 overflow: hidden;
499                         }
500                 }
501                 li:hover {
502                         background-color: @JotToolsOverBackgroundColor;
503                         border-bottom: 2px solid @JotToolsOverBorderColor;
504                 }
505                 li.perms {
506                         float: right;
507                         width: 40px;
508                         a.unlock {
509                                 width: 30px;
510                                 border-left: 10px solid @JotPermissionUnlockBackgroundColor;
511                                 background-color: @JotPermissionUnlockBackgroundColor;
512                         }
513                         a.lock {
514                                 width: 30px;
515                                 border-left: 10px solid @JotPermissionLockBackgroundColor;
516                                 background-color: @JotPermissionLockBackgroundColor;
517                         }
518                         
519                 }
520                 li.submit {
521                         float: right;
522                         background-color: @JotSubmitBackgroundColor;
523                         border-bottom: 2px solid @JotSubmitBackgroundColor;
524                         border-right: 1px solid @Grey4;
525                         border-left: 1px solid @Grey4;
526                         input {
527                                 border: 0px; margin: 0px; padding: 0px;
528                                 background-color: @JotSubmitBackgroundColor;
529                                 color: @JotSubmitText;
530                                 width: 80px; height: 40px;
531                                 line-height: 40px;
532                         }
533                         input:hover {
534                                 background-color: @JotSubmitOverBackgroundColor;
535                                 color: @JotSubmitOverText;
536                         }
537                 }
538                 li.loading {
539                         float: right;
540                         background-color: @Grey1;
541                         width:  20px;
542                         vertical-align: center;
543                         text-align: center;
544                         img { margin-top: 10px; }
545                         border-top: 2px solid @JotToolsBorderColor;
546                         height: 38px;
547                 }
548         }
549
550         #jot-title {
551                 border: 0px;
552                 margin: 0px;
553                 height: 20px;
554                 width: 700px;
555                 font-weight: bold;
556                 border: 1px solid @BodyBackground;
557
558                 &:-webkit-input-placeholder {
559                         font-weight: normal;
560                 }
561
562                 &:-moz-placeholder {
563                         font-weight: normal;
564                 }               
565         
566                 &:hover { border: 1px solid @CommentBoxEmptyBorderColor }
567                 &:focus { border: 1px solid @CommentBoxEmptyBorderColor }
568         }
569         
570         #character-counter {
571                 width: 80px;
572                 float: right;
573                 text-align: right;
574                 height: 20px;
575                 line-height: 20px;
576                 padding-right: 20px;
577         }
578
579 }
580
581
582 /** buttons **/
583 /*input[type="submit"] {
584         border: 0px;
585     background-color: @ButtonBackgroundColor;
586     color: @ButtonColor;
587     padding: 0px 10px;
588         .rounded(5px);
589     height: 18px;
590 }*/
591
592
593 /** acl **/
594 #photo-edit-perms-select,
595 #photos-upload-permissions-wrapper,
596 #profile-jot-acl-wrapper{
597         display:block!important;
598 }
599
600
601
602 #acl-wrapper {
603         width: 690px;
604         float:left;
605 }
606 #acl-search {
607         float:right;
608         background: #ffffff url("../../../images/search_18.png") no-repeat right center;
609         padding-right:20px;
610 }
611 #acl-showall {
612         float: left;
613         display: block;
614         width: auto;
615         height: 18px;
616         background-color: #cccccc;
617         background-image: url("../../../images/show_all_off.png");
618         background-position: 7px 7px;
619         background-repeat: no-repeat;
620         padding: 7px 5px 0px 30px;
621         color: #999999;
622         .rounded(5px);
623 }
624 #acl-showall.selected {
625         color: #000000;
626         background-color: #ff9900;
627         background-image: url("../../../images/show_all_on.png");
628 }
629
630 #acl-list {
631         height: 210px;
632         border: 1px solid #cccccc;
633         clear: both;
634         margin-top: 30px;
635         overflow: auto;
636 }
637 #acl-list-content {
638         
639 }
640 .acl-list-item {
641         display: block;
642         width: 150px;
643         height: 30px;
644         border: 1px solid #cccccc;
645         margin: 5px;
646         float: left;
647 }
648 .acl-list-item img{
649         width:22px;
650         height: 22px;
651         float: left;
652         margin: 4px;
653 }
654 .acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
655 .acl-list-item a { 
656         font-size: 8px;
657         display: block;
658         width: 40px;
659         height: 10px;
660         float: left;
661         color: #999999;
662         background-color: #cccccc;
663         background-position: 3px 3px;
664         background-repeat: no-repeat;
665         margin-right: 5px;
666         -webkit-border-radius: 2px ;
667         -moz-border-radius: 2px;
668         border-radius: 2px;
669         padding-left: 15px;
670 }
671 #acl-wrapper a:hover {
672         text-decoration: none;
673         color:#000000;
674 }
675 .acl-button-show { background-image: url("../../../images/show_off.png"); }
676 .acl-button-hide { background-image: url("../../../images/hide_off.png"); }
677
678 .acl-button-show.selected {
679         color: #000000;
680         background-color: #9ade00;
681         background-image: url("../../../images/show_on.png");
682 }
683 .acl-button-hide.selected {
684         color: #000000;
685         background-color: #ff4141;
686         background-image: url("../../../images/hide_on.png");
687 }
688 .acl-list-item.groupshow { border-color: #9ade00; }
689 .acl-list-item.grouphide { border-color: #ff4141; }
690 /** /acl **/
691
692 /** tab buttons **/
693 ul.tabs {
694     list-style-type: none;
695     padding-bottom: 10px;
696
697     li {
698         float: left;
699         margin-left: 20px;
700         
701         .active {
702                         border-bottom: 1px solid @LinkVisited;
703         }
704     }
705     
706 }
707
708
709 /**
710  * Form fields
711  */
712 .field {
713         margin-bottom: 10px;
714         padding-bottom: 10px;
715         overflow: auto;
716         width: 100%;
717
718
719         label {
720                 float: left;
721                 width: 200px;
722         }
723
724         input,
725         textarea {
726                 width: 400px;
727         }
728         textarea { height: 100px; }
729         .field_help {
730                 display: block;
731                 margin-left: 200px;
732                 color: #666666;
733                 
734         }
735
736
737         .onoff {
738                 float: left;
739                 width: 80px;
740         }
741         .onoff a {
742                 display: block;
743                 border:1px solid #666666;
744                 background-image:url("../../../images/onoff.jpg");
745                 background-repeat: no-repeat;
746                 padding: 4px 2px 2px 2px;
747                 height: 16px;
748                 text-decoration: none;
749         }
750         .onoff .off {
751                 border-color:#666666;
752                 padding-left: 40px;
753                 background-position: left center;
754                 background-color: #cccccc;
755                 color: #666666;
756                 text-align: right;
757         }
758         .onoff .on {
759                 border-color:#204A87;
760                 padding-right: 40px;
761                 background-position: right center;
762                 background-color: #D7E3F1;
763                 color: #204A87;
764                 text-align: left;
765         }
766         .hidden { display: none!important; }
767
768         &.radio .field_help { margin-left: 0px; }
769 }
770
771 #profile-edit-links li {
772         list-style: none;
773 }
774
775 /* oauth */
776 .oauthapp {
777         height: auto; overflow: auto;
778         border-bottom: 2px solid #cccccc;
779         padding-bottom: 1em;
780         margin-bottom: 1em;     
781 }
782 .oauthapp img {
783         float: left;
784         width: 48px; height: 48px;
785         margin: 10px;
786 }
787 .oauthapp img.noicon {
788         background-image: url("../../../images/icons/48/plugin.png");
789         background-position: center center;
790         background-repeat: no-repeat;
791 }
792 .oauthapp a {
793         float: left;
794 }
795
796
797 /* page footer */
798 footer { height: 100px; display: table-row; }