]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/quattro.less
quattro: more on editor
[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         }
539
540         #jot-title {
541                 border: 0px;
542                 margin: 0px;
543                 height: 20px;
544                 width: 700px;
545                 font-weight: bold;
546                 border: 1px solid @BodyBackground;
547
548                 &:-webkit-input-placeholder {
549                         font-weight: normal;
550                 }
551
552                 &:-moz-placeholder {
553                         font-weight: normal;
554                 }               
555         
556                 &:hover { border: 1px solid @CommentBoxEmptyBorderColor }
557                 &:focus { border: 1px solid @CommentBoxEmptyBorderColor }
558         }
559         
560         #character-counter {
561                 width: 80px;
562                 float: right;
563                 text-align: right;
564                 height: 20px;
565                 line-height: 20px;
566                 padding-right: 20px;
567         }
568
569 }
570
571
572 /** buttons **/
573 /*input[type="submit"] {
574         border: 0px;
575     background-color: @ButtonBackgroundColor;
576     color: @ButtonColor;
577     padding: 0px 10px;
578         .rounded(5px);
579     height: 18px;
580 }*/
581
582
583 /** acl **/
584 #photo-edit-perms-select,
585 #photos-upload-permissions-wrapper,
586 #profile-jot-acl-wrapper{
587         display:block!important;
588 }
589
590
591
592 #acl-wrapper {
593         width: 690px;
594         float:left;
595 }
596 #acl-search {
597         float:right;
598         background: #ffffff url("../../../images/search_18.png") no-repeat right center;
599         padding-right:20px;
600 }
601 #acl-showall {
602         float: left;
603         display: block;
604         width: auto;
605         height: 18px;
606         background-color: #cccccc;
607         background-image: url("../../../images/show_all_off.png");
608         background-position: 7px 7px;
609         background-repeat: no-repeat;
610         padding: 7px 5px 0px 30px;
611         color: #999999;
612         .rounded(5px);
613 }
614 #acl-showall.selected {
615         color: #000000;
616         background-color: #ff9900;
617         background-image: url("../../../images/show_all_on.png");
618 }
619
620 #acl-list {
621         height: 210px;
622         border: 1px solid #cccccc;
623         clear: both;
624         margin-top: 30px;
625         overflow: auto;
626 }
627 #acl-list-content {
628         
629 }
630 .acl-list-item {
631         display: block;
632         width: 150px;
633         height: 30px;
634         border: 1px solid #cccccc;
635         margin: 5px;
636         float: left;
637 }
638 .acl-list-item img{
639         width:22px;
640         height: 22px;
641         float: left;
642         margin: 4px;
643 }
644 .acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
645 .acl-list-item a { 
646         font-size: 8px;
647         display: block;
648         width: 40px;
649         height: 10px;
650         float: left;
651         color: #999999;
652         background-color: #cccccc;
653         background-position: 3px 3px;
654         background-repeat: no-repeat;
655         margin-right: 5px;
656         -webkit-border-radius: 2px ;
657         -moz-border-radius: 2px;
658         border-radius: 2px;
659         padding-left: 15px;
660 }
661 #acl-wrapper a:hover {
662         text-decoration: none;
663         color:#000000;
664 }
665 .acl-button-show { background-image: url("../../../images/show_off.png"); }
666 .acl-button-hide { background-image: url("../../../images/hide_off.png"); }
667
668 .acl-button-show.selected {
669         color: #000000;
670         background-color: #9ade00;
671         background-image: url("../../../images/show_on.png");
672 }
673 .acl-button-hide.selected {
674         color: #000000;
675         background-color: #ff4141;
676         background-image: url("../../../images/hide_on.png");
677 }
678 .acl-list-item.groupshow { border-color: #9ade00; }
679 .acl-list-item.grouphide { border-color: #ff4141; }
680 /** /acl **/
681
682 /** tab buttons **/
683 ul.tabs {
684     list-style-type: none;
685     padding-bottom: 10px;
686
687     li {
688         float: left;
689         margin-left: 20px;
690         
691         .active {
692                         border-bottom: 1px solid @LinkVisited;
693         }
694     }
695     
696 }
697
698
699 /**
700  * Form fields
701  */
702 .field {
703         margin-bottom: 10px;
704         padding-bottom: 10px;
705         overflow: auto;
706         width: 100%;
707
708
709         label {
710                 float: left;
711                 width: 200px;
712         }
713
714         input,
715         textarea {
716                 width: 400px;
717         }
718         textarea { height: 100px; }
719         .field_help {
720                 display: block;
721                 margin-left: 200px;
722                 color: #666666;
723                 
724         }
725
726
727         .onoff {
728                 float: left;
729                 width: 80px;
730         }
731         .onoff a {
732                 display: block;
733                 border:1px solid #666666;
734                 background-image:url("../../../images/onoff.jpg");
735                 background-repeat: no-repeat;
736                 padding: 4px 2px 2px 2px;
737                 height: 16px;
738                 text-decoration: none;
739         }
740         .onoff .off {
741                 border-color:#666666;
742                 padding-left: 40px;
743                 background-position: left center;
744                 background-color: #cccccc;
745                 color: #666666;
746                 text-align: right;
747         }
748         .onoff .on {
749                 border-color:#204A87;
750                 padding-right: 40px;
751                 background-position: right center;
752                 background-color: #D7E3F1;
753                 color: #204A87;
754                 text-align: left;
755         }
756         .hidden { display: none!important; }
757
758         &.radio .field_help { margin-left: 0px; }
759 }
760
761 #profile-edit-links li {
762         list-style: none;
763 }
764
765 /* oauth */
766 .oauthapp {
767         height: auto; overflow: auto;
768         border-bottom: 2px solid #cccccc;
769         padding-bottom: 1em;
770         margin-bottom: 1em;     
771 }
772 .oauthapp img {
773         float: left;
774         width: 48px; height: 48px;
775         margin: 10px;
776 }
777 .oauthapp img.noicon {
778         background-image: url("../../../images/icons/48/plugin.png");
779         background-position: center center;
780         background-repeat: no-repeat;
781 }
782 .oauthapp a {
783         float: left;
784 }
785
786
787 /* page footer */
788 footer { height: 100px; display: table-row; }