]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/quattro.less
babcff3e883166d5f765c16c04ef47612bd3aa30
[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         height: auto; overflow: auto;
47         .label { float: left;}
48         .action { float: right; }
49 }
50
51 /* popup notifications */
52 div.jGrowl div.notice {
53         background: @NoticeBackgroundColor url("../../../images/icons/48/notice.png") no-repeat 5px center;
54         color:  @NoticeColor;
55         padding-left: 58px;
56 }
57 div.jGrowl div.info {
58         background: @InfoBackgroundColor url("../../../images/icons/48/info.png") no-repeat 5px center;
59         color:  @InfoColor;
60         padding-left: 58px;
61 }
62
63
64
65 /* header */
66 header {
67         position: fixed; left: 43%; right: 43%; top: 0px;
68         margin: 0px; padding: 0px;
69         /*width: 100%; height: 12px; */
70         z-index: 110;
71         color: @Grey1;
72         #site-location {
73                 display: none;
74         }
75         
76         #banner {
77                 
78             text-align: center;
79                 width: 100%;
80                 a, a:active, a:visited, a:link, a:hover { color: @Grey1; text-decoration: none; outline: none; vertical-align: bottom; }
81                 #logo-img { height: 22px; margin-top:5px;}
82                 #logo-text { font-size: 22px }
83         }
84 }
85 /* nav */
86 nav { 
87         width: 100%; height: 32px;
88         position: fixed; left: 0px; top: 0px;
89         padding: 0px;
90         background-color: @NavbarBackground;
91         color: @Grey1;
92         z-index: 100;
93         .shadow(0px, 0px);
94
95                 a, a:active, a:visited, a:link, a:hover { color: @Banner; text-decoration: none; outline: none;  }
96
97                 ul {
98                         margin: 0px;
99                         padding: 0px 20px;
100                         li { 
101                                 list-style: none; 
102                                 margin: 0px; padding: 0px;
103                                 float: left;
104                                 .menu-popup{ left: 0px; right: auto; }
105                         }
106                         
107                 }
108
109                 .nav-menu-icon {
110                         position: relative;
111                         height: 22px;
112                         padding: 5px;
113                         margin: 0px 10px;
114                         .roundtop();
115                         
116                         &.selected {
117                                 background-color: @NavbarSelectedBg;
118                         }
119                         
120                                 img { width: 22px; height: 22px; }
121                                 .nav-notify { top: 3px; }
122                 }
123
124                 .nav-menu {
125                         position: relative;
126                         height: 16px;
127                         padding: 5px;
128                         margin: 3px 15px 0px;
129                         font-size: 14px;
130                         border-bottom: 3px solid @NavbarBackground;
131                         &.selected {
132                                 border-bottom: 3px solid @NavbarSelectedBorder;
133                         }
134                         
135                 }
136
137                 .nav-notify {
138                         display: none;
139                         position: absolute;
140                         background-color: @NavbarNotifBg;
141                         .rounded();
142                         font-size: 10px;
143                         padding: 1px 3px;
144                         top: 0px;
145                         right: -10px;
146                         min-width: 15px;
147                         text-align: right;
148                         
149                                 &.show{ display: block; }
150                 }
151                 
152                 
153                 #nav-help-link,
154                 #nav-search-link,
155                 #nav-directory-link,
156                 #nav-apps-link,
157                 #nav-site-linkmenu { 
158                         float: right;
159                         .menu-popup{ right: 0px; left: auto; }
160                 }
161         
162                 #nav-notifications-linkmenu.on .icon.s22.notify,
163                 #nav-notifications-linkmenu.selected .icon.s22.notify { background-image: url("../../../images/icons/22/notify_on.png") }
164                 #nav-apps-link.selected { background-color: @NavbarSelectedBg; }
165 }
166
167
168 ul.menu-popup {
169         position: absolute;
170         display: none;
171         width: 10em;
172         background: @MenuBg;
173         color: @Menu;
174         margin: 0px;
175         padding: 0px;
176         list-style: none;
177         border: 3px solid @MenuBorder;
178         z-index: 100000;
179         
180         .shadow();
181         
182                 a { display: block; color: @MenuItem; padding: 5px 10px; text-decoration: none;}
183                 a:hover { background-color: @MenuItemHoverBg; }
184                 .menu-sep  { border-top: 1px solid @MenuItemSeparator; }
185                 li { float: none;  overflow: auto; height: auto; display: block; }
186                 li img { float: left; width: 16px; height: 16px; padding-right: 5px;}
187                 .empty {
188                         padding: 5px;
189                         text-align: center;
190                         color: @MenuEmpty;
191                 }
192                 
193 }
194
195 /* autocomplete popup */
196 .acpopup {
197         max-height:150px;
198         background-color:@MenuBg;
199         color: @Menu;
200         border:1px solid #MenuBorder;
201         overflow:auto;
202         z-index:100000;
203         .shadow();
204 }
205 .acpopupitem {
206         color: @MenuItem; padding: 4px;
207         clear:left;
208         img {
209                 float: left;
210                 margin-right: 4px;
211         }
212         &.selected{
213                 background-color: @MenuItemHoverBg;
214         }
215 }
216
217
218 #nav-notifications-menu {
219         width: 400px;
220         img { float: left; margin-right: 5px; }
221         .contactname { font-weight: bold; }
222         .notif-when { font-size: 10px; color: @MenuItemDetail; display: block; }
223 }
224
225
226
227
228 /* aside */
229 aside { 
230         display: table-cell;
231         width: 200px;
232         padding:0px 10px 0px 20px;
233         border-right: 1px solid @AsideBorder;
234
235         .vcard {
236                 .fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
237                 .title { margin-bottom: 5px; }
238                 dl { height: auto; overflow: auto; }
239                 dt {float: left; margin-left: 0px; width: 35%; text-align: right; color: @VCardLabelColor; }
240                 dd {float: left; margin-left: 4px; width: 60%;}
241         
242         }
243
244         #profile-extra-links {
245                 ul { padding: 0px; margin: 0px; }
246                 li { padding: 0px; margin: 0px; list-style: none; }
247         }
248
249         #dfrn-request-link {
250                 display: block;
251                 .rounded();
252                 color: @AsideConnect;
253                 background: @AsideConnectBg url('../../../images/connect-bg.png') no-repeat left center;
254                 font-weight: bold;
255                 text-transform:uppercase;
256                 padding: 4px 2px 2px 35px;
257                 
258                 &:hover { text-decoration: none; background-color: @AsideConnectHoverBg; }
259         }
260
261         #profiles-menu { width: 20em; }
262
263 }
264
265 #contact-block {
266         overflow: auto; height: auto;
267         .contact-block-h4 { float: left; margin: 5px 0px; }
268         .allcontact-link { float: right; margin: 5px 0px; }
269         .contact-block-content {
270                 clear: both;
271                 overflow: auto; height: auto;
272         }
273         .contact-block-link {
274                 float: left;
275                 margin: 0px 2px 2px 0px;
276         }
277 }
278
279
280
281
282 /* section */
283 section { 
284         display: table-cell;
285         width: 800px;
286         padding:0px 20px 0px 10px;
287 }
288
289 /* wall item */
290 .tread-wrapper { 
291         background-color: @ThreadBackgroundColor;
292         position: relative;
293         padding: 10px;
294         margin-bottom: 20px;
295 }
296 .wall-item-decor { position: absolute; left: 790px; top: -10px;  width: 16px;}
297 .unstarred { display: none; }
298
299 .wall-item-container {
300         display: table;
301         width: 780px;
302         
303         .wall-item-item,
304         .wall-item-bottom { display: table-row; }
305         
306         .wall-item-bottom { .opaque(0.5); }
307         &:hover .wall-item-bottom { .opaque(1); }
308         .wall-item-info {
309                 display: table-cell;
310                 vertical-align: top;
311                 text-align: left;
312                 width: 60px;
313                 
314                 .wall-item-photo-wrapper { position: relative; }
315                 .wall-item-photo { width: 48px; height: 48px; }         
316                 
317                 .wall-item-photo-menu-button {
318                         display: none;
319                         position: absolute;
320                         left: -4px;
321                         top: 28px;
322                 }
323                 .wall-item-photo-menu { display: none; }
324                 
325         } 
326         .wall-item-location {
327                 word-wrap: break-word;
328                 width: 50px;
329         }
330         .wall-item-content {
331                 display: table-cell;
332                 font-size: 12px;
333                 max-width: 720px;
334                 word-wrap: break-word;
335         }
336         .wall-item-content img { max-width: 710px; }
337         .wall-item-links,
338         .wall-item-actions { 
339                 display: table-cell; 
340                 vertical-align: middle; 
341                 
342                 .icon {
343                         .opaque(0.5);
344                 }
345                 .icon:hover  {
346                         .opaque(1.0);
347                 }               
348         }
349         
350         .wall-item-ago { padding-right: 40px; }
351         .wall-item-name { font-weight: bold; }
352         
353         .wall-item-actions-author { float: left; width: 20em; margin-top: 0.5em; }
354         .wall-item-actions-social { float: left; margin-top: 0.5em;
355                 a { margin-right: 3em; }
356          }
357         .wall-item-actions-tools { float: right; width: 15%; 
358                 a { float: right; }
359                 input { float: right; }
360         }
361         
362 }
363
364
365 .wall-item-container.comment {
366         /*margin-top: 50px;*/
367         .wall-item-photo { width: 32px; height: 32px; margin-left: 16px;}       
368         .wall-item-photo-menu-button {
369                 top: 13px !important;
370                 left: 10px !important;
371         }
372         .wall-item-links { padding-left: 12px; }
373 }
374
375 .wall-item-comment-wrapper {
376         margin: 30px 2em 2em 60px;
377         .comment-edit-photo { display: none; }
378         textarea {      
379                 height: 1em; width: 100%; font-size: 10px;
380                 color: @CommentBoxEmptyColor;
381                 border: 1px solid @CommentBoxEmptyBorderColor;
382                 padding:0.3em;
383         }
384         .comment-edit-text-full {
385                 font-size: 14px;
386                 height: 4em;
387                 color: @CommentBoxFullColor;
388                 border: 1px solid @CommentBoxFullBorderColor;
389         }
390 }
391
392 .tag {
393         background: url("../../../images/tag_b.png") no-repeat center left;
394         color: @TagColor;
395         padding-left: 3px;
396         a {
397                 padding-right: 8px;
398                 background: url("../../../images/tag.png") no-repeat center right;
399                 color: @TagColor;
400         }
401 }
402
403
404
405 #profile-jot-wrapper {
406         width: 100%;
407         margin: 0px 2em 20px 0px;
408         
409         
410 }
411 .profile-jot-text {
412         height: 1em; width: 100%; font-size: 10px;
413         color: @CommentBoxEmptyColor;
414         border: 1px solid @CommentBoxEmptyBorderColor;
415         padding:0.3em;
416 }
417 #profile-jot-plugin-wrapper,
418 #profile-jot-submit-wrapper {
419         margin-top: 10px;
420 }
421
422
423 #profile-jot-submit {
424         float: left;
425 }
426 #profile-upload-wrapper{
427         float: left;
428         margin-left: 10px;
429 }
430 #profile-attach-wrapper,
431 #profile-rotator,
432 #profile-link-wrapper,
433 #profile-youtube-wrapper,
434 #profile-video-wrapper,
435 #profile-audio-wrapper,
436 #profile-location-wrapper,
437 #profile-nolocation-wrapper,
438 #profile-title-wrapper {
439         float: left;
440         margin-left: 20px;
441 }
442
443 #profile-jot-perms {
444         float: left;
445         margin-left: 35px;
446         margin-right: 35px;
447 }
448
449 #profile-jot-perms-end {
450         /*clear: left;*/
451         height: 20px;
452 }
453
454 #profile-jot-plugin-end{
455   clear: both;
456 }
457 .profile-jot-net {
458         float: left;
459         margin-right: 10px;
460         margin-top: 5px;
461         margin-bottom: 5px;
462 }
463
464 #profile-jot-networks-end {
465         clear: both;
466 }
467
468 #profile-jot-end, #about-jot-end {
469         margin-bottom: 15px;
470 }
471 #about-jot-submit-wrapper {
472         margin-top: 15px;
473 }
474 /** buttons **/
475 input[type="submit"] {
476         border: 0px;
477     background-color: @ButtonBackgroundColor;
478     color: @ButtonColor;
479     padding: 0px 10px;
480         .rounded(5px);
481     height: 18px;
482 }
483
484
485 /** acl **/
486 #photo-edit-perms-select,
487 #photos-upload-permissions-wrapper,
488 #profile-jot-acl-wrapper{
489         display:block!important;
490 }
491
492
493
494 #acl-wrapper {
495         width: 690px;
496         float:left;
497 }
498 #acl-search {
499         float:right;
500         background: #ffffff url("../../../images/search_18.png") no-repeat right center;
501         padding-right:20px;
502 }
503 #acl-showall {
504         float: left;
505         display: block;
506         width: auto;
507         height: 18px;
508         background-color: #cccccc;
509         background-image: url("../../../images/show_all_off.png");
510         background-position: 7px 7px;
511         background-repeat: no-repeat;
512         padding: 7px 5px 0px 30px;
513         color: #999999;
514         .rounded(5px);
515 }
516 #acl-showall.selected {
517         color: #000000;
518         background-color: #ff9900;
519         background-image: url("../../../images/show_all_on.png");
520 }
521
522 #acl-list {
523         height: 210px;
524         border: 1px solid #cccccc;
525         clear: both;
526         margin-top: 30px;
527         overflow: auto;
528 }
529 #acl-list-content {
530         
531 }
532 .acl-list-item {
533         display: block;
534         width: 150px;
535         height: 30px;
536         border: 1px solid #cccccc;
537         margin: 5px;
538         float: left;
539 }
540 .acl-list-item img{
541         width:22px;
542         height: 22px;
543         float: left;
544         margin: 4px;
545 }
546 .acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
547 .acl-list-item a { 
548         font-size: 8px;
549         display: block;
550         width: 40px;
551         height: 10px;
552         float: left;
553         color: #999999;
554         background-color: #cccccc;
555         background-position: 3px 3px;
556         background-repeat: no-repeat;
557         margin-right: 5px;
558         -webkit-border-radius: 2px ;
559         -moz-border-radius: 2px;
560         border-radius: 2px;
561         padding-left: 15px;
562 }
563 #acl-wrapper a:hover {
564         text-decoration: none;
565         color:#000000;
566 }
567 .acl-button-show { background-image: url("../../../images/show_off.png"); }
568 .acl-button-hide { background-image: url("../../../images/hide_off.png"); }
569
570 .acl-button-show.selected {
571         color: #000000;
572         background-color: #9ade00;
573         background-image: url("../../../images/show_on.png");
574 }
575 .acl-button-hide.selected {
576         color: #000000;
577         background-color: #ff4141;
578         background-image: url("../../../images/hide_on.png");
579 }
580 .acl-list-item.groupshow { border-color: #9ade00; }
581 .acl-list-item.grouphide { border-color: #ff4141; }
582 /** /acl **/
583
584 /** tab buttons **/
585 ul.tabs {
586     list-style-type: none;
587     padding-bottom: 10px;
588
589     li {
590         float: left;
591         margin-left: 20px;
592     }
593 }
594