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