]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/quattro.less
Merge pull request #37 from fabrixxm/master
[friendica.git] / view / theme / quattro / quattro.less
1 // Quattro Theme LESS file
2
3 /* global */
4 body {
5         font-family: Liberation Sans,helvetica,arial,clean,sans-serif;
6         font-size: 12px;
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         .wall-item-info {
306                 display: table-cell;
307                 vertical-align: top;
308                 text-align: left;
309                 width: 60px;
310                 
311                 .wall-item-photo-wrapper { position: relative; }
312                 .wall-item-photo { width: 48px; height: 48px; }         
313                 
314                 .wall-item-photo-menu-button {
315                         display: none;
316                         position: absolute;
317                         left: -4px;
318                         top: 28px;
319                 }
320                 .wall-item-photo-menu { display: none; }
321                 
322         } 
323         .wall-item-location {
324                 word-wrap: break-word;
325                 width: 50px;
326         }
327         .wall-item-content {
328                 display: table-cell;
329                 font-size: 16px;
330                 max-width: 720px;
331                 word-wrap: break-word;
332         }
333         .wall-item-content img { max-width: 710px; }
334         .wall-item-links,
335         .wall-item-actions { 
336                 display: table-cell; 
337                 vertical-align: middle; 
338                 
339                 .icon {
340                         .opaque(0.5);
341                 }
342                 .icon:hover  {
343                         .opaque(1.0);
344                 }               
345         }
346         
347         .wall-item-ago { padding-right: 40px; }
348         .wall-item-name { font-weight: bold; }
349         
350         .wall-item-actions-author { float: left; width: 20em; margin-top: 0.5em; }
351         .wall-item-actions-social { float: left; margin-top: 0.5em;
352                 a { margin-right: 3em; }
353          }
354         .wall-item-actions-tools { float: right; width: 15%; 
355                 a { float: right; }
356                 input { float: right; }
357         }
358 }
359
360
361 .wall-item-container.comment {
362         margin-top: 50px;
363         .wall-item-photo { width: 32px; height: 32px; margin-left: 16px;}       
364         .wall-item-photo-menu-button {
365                 top: 13px !important;
366                 left: 10px !important;
367         }
368         .wall-item-links { padding-left: 12px; }
369 }
370
371 .wall-item-comment-wrapper {
372         margin: 30px 2em 2em 60px;
373         .comment-edit-photo { display: none; }
374         textarea {      
375                 height: 1em; width: 100%; font-size: 10px;
376                 color: @CommentBoxEmptyColor;
377                 border: 1px solid @CommentBoxEmptyBorderColor;
378                 padding:0.3em;
379         }
380         .comment-edit-text-full {
381                 font-size: 14px;
382                 height: 4em;
383                 color: @CommentBoxFullColor;
384                 border: 1px solid @CommentBoxFullBorderColor;
385         }
386 }
387
388 #profile-jot-wrapper {
389         width: 100%;
390         margin: 0px 2em 20px 0px;
391         
392         
393 }
394 .profile-jot-text {
395         height: 1em; width: 100%; font-size: 10px;
396         color: @CommentBoxEmptyColor;
397         border: 1px solid @CommentBoxEmptyBorderColor;
398         padding:0.3em;
399 }
400 #profile-jot-plugin-wrapper,
401 #profile-jot-submit-wrapper {
402         margin-top: 10px;
403 }
404
405
406 #profile-jot-submit {
407         float: left;
408 }
409 #profile-upload-wrapper{
410         float: left;
411         margin-left: 10px;
412 }
413 #profile-attach-wrapper,
414 #profile-rotator,
415 #profile-link-wrapper,
416 #profile-youtube-wrapper,
417 #profile-video-wrapper,
418 #profile-audio-wrapper,
419 #profile-location-wrapper,
420 #profile-nolocation-wrapper,
421 #profile-title-wrapper {
422         float: left;
423         margin-left: 20px;
424 }
425
426 #profile-jot-perms {
427         float: left;
428         margin-left: 35px;
429         margin-right: 35px;
430 }
431
432 #profile-jot-perms-end {
433         /*clear: left;*/
434         height: 20px;
435 }
436
437 #profile-jot-plugin-end{
438   clear: both;
439 }
440 .profile-jot-net {
441         float: left;
442         margin-right: 10px;
443         margin-top: 5px;
444         margin-bottom: 5px;
445 }
446
447 #profile-jot-networks-end {
448         clear: both;
449 }
450
451 #profile-jot-end, #about-jot-end {
452         margin-bottom: 15px;
453 }
454 #about-jot-submit-wrapper {
455         margin-top: 15px;
456 }
457 /** buttons **/
458 input[type="submit"] {
459         border: 0px;
460     background-color: @ButtonBackgroundColor;
461     color: @ButtonColor;
462     padding: 0px 10px;
463         .rounded(5px);
464     height: 18px;
465 }
466
467
468 /** acl **/
469 #photo-edit-perms-select,
470 #photos-upload-permissions-wrapper,
471 #profile-jot-acl-wrapper{
472         display:block!important;
473 }
474
475
476
477 #acl-wrapper {
478         width: 690px;
479         float:left;
480 }
481 #acl-search {
482         float:right;
483         background: #ffffff url("../../../images/search_18.png") no-repeat right center;
484         padding-right:20px;
485 }
486 #acl-showall {
487         float: left;
488         display: block;
489         width: auto;
490         height: 18px;
491         background-color: #cccccc;
492         background-image: url("../../../images/show_all_off.png");
493         background-position: 7px 7px;
494         background-repeat: no-repeat;
495         padding: 7px 5px 0px 30px;
496         color: #999999;
497         .rounded(5px);
498 }
499 #acl-showall.selected {
500         color: #000000;
501         background-color: #ff9900;
502         background-image: url("../../../images/show_all_on.png");
503 }
504
505 #acl-list {
506         height: 210px;
507         border: 1px solid #cccccc;
508         clear: both;
509         margin-top: 30px;
510         overflow: auto;
511 }
512 #acl-list-content {
513         
514 }
515 .acl-list-item {
516         display: block;
517         width: 150px;
518         height: 30px;
519         border: 1px solid #cccccc;
520         margin: 5px;
521         float: left;
522 }
523 .acl-list-item img{
524         width:22px;
525         height: 22px;
526         float: left;
527         margin: 4px;
528 }
529 .acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
530 .acl-list-item a { 
531         font-size: 8px;
532         display: block;
533         width: 40px;
534         height: 10px;
535         float: left;
536         color: #999999;
537         background-color: #cccccc;
538         background-position: 3px 3px;
539         background-repeat: no-repeat;
540         margin-right: 5px;
541         -webkit-border-radius: 2px ;
542         -moz-border-radius: 2px;
543         border-radius: 2px;
544         padding-left: 15px;
545 }
546 #acl-wrapper a:hover {
547         text-decoration: none;
548         color:#000000;
549 }
550 .acl-button-show { background-image: url("../../../images/show_off.png"); }
551 .acl-button-hide { background-image: url("../../../images/hide_off.png"); }
552
553 .acl-button-show.selected {
554         color: #000000;
555         background-color: #9ade00;
556         background-image: url("../../../images/show_on.png");
557 }
558 .acl-button-hide.selected {
559         color: #000000;
560         background-color: #ff4141;
561         background-image: url("../../../images/hide_on.png");
562 }
563 .acl-list-item.groupshow { border-color: #9ade00; }
564 .acl-list-item.grouphide { border-color: #ff4141; }
565 /** /acl **/
566
567 /** tab buttons **/
568 ul.tabs {
569     list-style-type: none;
570     padding-bottom: 10px;
571
572     li {
573         float: left;
574         margin-left: 20px;
575     }
576 }
577