]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/quattro.less
Merge pull request #30 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 #nav-notifications-menu {
196         width: 400px;
197         img { float: left; margin-right: 5px; }
198         .contactname { font-weight: bold; }
199         .notif-when { font-size: 10px; color: @MenuItemDetail; display: block; }
200 }
201
202
203
204
205 /* aside */
206 aside { 
207         display: table-cell;
208         width: 200px;
209         padding:0px 10px 0px 20px;
210         border-right: 1px solid @AsideBorder;
211
212         .vcard {
213                 .fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
214                 .title { margin-bottom: 5px; }
215                 dl { height: auto; overflow: auto; }
216                 dt {float: left; margin-left: 0px; width: 35%; text-align: right; color: @VCardLabelColor; }
217                 dd {float: left; margin-left: 4px; width: 60%;}
218         
219         }
220
221         #profile-extra-links {
222                 ul { padding: 0px; margin: 0px; }
223                 li { padding: 0px; margin: 0px; list-style: none; }
224         }
225
226         #dfrn-request-link {
227                 display: block;
228                 .rounded();
229                 color: @AsideConnect;
230                 background: @AsideConnectBg url('../../../images/connect-bg.png') no-repeat left center;
231                 font-weight: bold;
232                 text-transform:uppercase;
233                 padding: 4px 2px 2px 35px;
234                 
235                 &:hover { text-decoration: none; background-color: @AsideConnectHoverBg; }
236         }
237
238         #profiles-menu { width: 20em; }
239
240 }
241
242 #contact-block {
243         overflow: auto; height: auto;
244         .contact-block-h4 { float: left; margin: 5px 0px; }
245         .allcontact-link { float: right; margin: 5px 0px; }
246         .contact-block-content {
247                 clear: both;
248                 overflow: auto; height: auto;
249         }
250         .contact-block-link {
251                 float: left;
252                 margin: 0px 2px 2px 0px;
253         }
254 }
255
256
257
258
259 /* section */
260 section { 
261         display: table-cell;
262         width: 800px;
263         padding:0px 20px 0px 10px;
264 }
265
266 /* wall item */
267 .tread-wrapper { 
268         background-color: @ThreadBackgroundColor;
269         position: relative;
270         padding: 10px;
271         margin-bottom: 20px;
272 }
273 .wall-item-decor { position: absolute; left: 790px; top: -10px;  width: 16px;}
274 .unstarred { display: none; }
275
276 .wall-item-container {
277         display: table;
278         width: 780px;
279         
280         .wall-item-item,
281         .wall-item-bottom { display: table-row; }
282         .wall-item-info {
283                 display: table-cell;
284                 vertical-align: top;
285                 text-align: left;
286                 width: 60px;
287                 
288                 .wall-item-photo-wrapper { position: relative; }
289                 .wall-item-photo { width: 48px; height: 48px; }         
290                 
291                 .wall-item-photo-menu-button {
292                         display: none;
293                         position: absolute;
294                         left: -4px;
295                         top: 28px;
296                 }
297                 .wall-item-photo-menu { display: none; }
298                 
299         } 
300         .wall-item-location {
301                 word-wrap: break-word;
302                 width: 50px;
303         }
304         .wall-item-content {
305                 display: table-cell;
306                 font-size: 16px;
307                 max-width: 720px;
308                 word-wrap: break-word;
309         }
310         .wall-item-content img { max-width: 710px; }
311         .wall-item-links,
312         .wall-item-actions { 
313                 display: table-cell; 
314                 vertical-align: middle; 
315                 
316                 .icon {
317                         .opaque(0.5);
318                 }
319                 .icon:hover  {
320                         .opaque(1.0);
321                 }               
322         }
323         
324         .wall-item-ago { padding-right: 40px; }
325         .wall-item-name { font-weight: bold; }
326         
327         .wall-item-actions-author { float: left; width: 20em; margin-top: 0.5em; }
328         .wall-item-actions-social { float: left; margin-top: 0.5em;
329                 a { margin-right: 3em; }
330          }
331         .wall-item-actions-tools { float: right; width: 15%; 
332                 a { float: right; }
333                 input { float: right; }
334         }
335 }
336
337
338 .wall-item-container.comment {
339         margin-top: 50px;
340         .wall-item-photo { width: 32px; height: 32px; margin-left: 16px;}       
341         .wall-item-photo-menu-button {
342                 top: 13px !important;
343                 left: 10px !important;
344         }
345         .wall-item-links { padding-left: 12px; }
346 }
347
348 .wall-item-comment-wrapper {
349         margin: 30px 2em 2em 60px;
350         .comment-edit-photo { display: none; }
351         textarea {      
352                 height: 1em; width: 100%; font-size: 10px;
353                 color: @CommentBoxEmptyColor;
354                 border: 1px solid @CommentBoxEmptyBorderColor;
355                 padding:0.3em;
356         }
357         .comment-edit-text-full {
358                 font-size: 14px;
359                 height: 4em;
360                 color: @CommentBoxFullColor;
361                 border: 1px solid @CommentBoxFullBorderColor;
362         }
363 }
364
365 #profile-jot-wrapper {
366         width: 100%;
367         margin: 0px 2em 20px 0px;
368         
369         
370 }
371 .profile-jot-text {
372         height: 1em; width: 100%; font-size: 10px;
373         color: @CommentBoxEmptyColor;
374         border: 1px solid @CommentBoxEmptyBorderColor;
375         padding:0.3em;
376 }
377 #profile-jot-plugin-wrapper,
378 #profile-jot-submit-wrapper {
379         margin-top: 10px;
380 }
381
382
383 #profile-jot-submit {
384         float: left;
385 }
386 #profile-upload-wrapper{
387         float: left;
388         margin-left: 10px;
389 }
390 #profile-attach-wrapper,
391 #profile-rotator,
392 #profile-link-wrapper,
393 #profile-youtube-wrapper,
394 #profile-video-wrapper,
395 #profile-audio-wrapper,
396 #profile-location-wrapper,
397 #profile-nolocation-wrapper,
398 #profile-title-wrapper {
399         float: left;
400         margin-left: 20px;
401 }
402
403 #profile-jot-perms {
404         float: left;
405         margin-left: 35px;
406         margin-right: 35px;
407 }
408
409 #profile-jot-perms-end {
410         /*clear: left;*/
411         height: 20px;
412 }
413
414 #profile-jot-plugin-end{
415   clear: both;
416 }
417 .profile-jot-net {
418         float: left;
419         margin-right: 10px;
420         margin-top: 5px;
421         margin-bottom: 5px;
422 }
423
424 #profile-jot-networks-end {
425         clear: both;
426 }
427
428 #profile-jot-end, #about-jot-end {
429         margin-bottom: 15px;
430 }
431 #about-jot-submit-wrapper {
432         margin-top: 15px;
433 }
434 /** buttons **/
435 input[type="submit"] {
436         border: 0px;
437     background-color: @ButtonBackgroundColor;
438     color: @ButtonColor;
439     padding: 0px 10px;
440         .rounded(5px);
441 }
442
443
444 /** acl **/
445 #photo-edit-perms-select,
446 #photos-upload-permissions-wrapper,
447 #profile-jot-acl-wrapper{
448         display:block!important;
449 }
450
451
452
453 #acl-wrapper {
454         width: 690px;
455         float:left;
456 }
457 #acl-search {
458         float:right;
459         background: #ffffff url("../../../images/search_18.png") no-repeat right center;
460         padding-right:20px;
461 }
462 #acl-showall {
463         float: left;
464         display: block;
465         width: auto;
466         height: 18px;
467         background-color: #cccccc;
468         background-image: url("../../../images/show_all_off.png");
469         background-position: 7px 7px;
470         background-repeat: no-repeat;
471         padding: 7px 5px 0px 30px;
472         color: #999999;
473         .rounded(5px);
474 }
475 #acl-showall.selected {
476         color: #000000;
477         background-color: #ff9900;
478         background-image: url("../../../images/show_all_on.png");
479 }
480
481 #acl-list {
482         height: 210px;
483         border: 1px solid #cccccc;
484         clear: both;
485         margin-top: 30px;
486         overflow: auto;
487 }
488 #acl-list-content {
489         
490 }
491 .acl-list-item {
492         display: block;
493         width: 150px;
494         height: 30px;
495         border: 1px solid #cccccc;
496         margin: 5px;
497         float: left;
498 }
499 .acl-list-item img{
500         width:22px;
501         height: 22px;
502         float: left;
503         margin: 4px;
504 }
505 .acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
506 .acl-list-item a { 
507         font-size: 8px;
508         display: block;
509         width: 40px;
510         height: 10px;
511         float: left;
512         color: #999999;
513         background-color: #cccccc;
514         background-position: 3px 3px;
515         background-repeat: no-repeat;
516         margin-right: 5px;
517         -webkit-border-radius: 2px ;
518         -moz-border-radius: 2px;
519         border-radius: 2px;
520         padding-left: 15px;
521 }
522 #acl-wrapper a:hover {
523         text-decoration: none;
524         color:#000000;
525 }
526 .acl-button-show { background-image: url("../../../images/show_off.png"); }
527 .acl-button-hide { background-image: url("../../../images/hide_off.png"); }
528
529 .acl-button-show.selected {
530         color: #000000;
531         background-color: #9ade00;
532         background-image: url("../../../images/show_on.png");
533 }
534 .acl-button-hide.selected {
535         color: #000000;
536         background-color: #ff4141;
537         background-image: url("../../../images/hide_on.png");
538 }
539 .acl-list-item.groupshow { border-color: #9ade00; }
540 .acl-list-item.grouphide { border-color: #ff4141; }
541 /** /acl **/
542
543 /** tab buttons **/
544 ul.tabs {
545     list-style-type: none;
546     padding-bottom: 10px;
547
548     li {
549         float: left;
550         margin-left: 20px;
551     }
552 }
553