friendica_2021-01/view/theme/quattro/quattro.less

723 lines
14 KiB
Text
Raw Normal View History

// Quattro Theme LESS file
/* global */
body {
font-family: Liberation Sans,helvetica,arial,clean,sans-serif;
2011-11-15 17:41:38 +01:00
font-size: 10px;
background-color: @BodyBackground;
color: @BodyColor;
2011-08-31 17:30:48 +02:00
margin: 50px 0px 0px 0px;
display:table;
}
.shadow(@x: 0px, @y: 5px){
-webkit-box-shadow:@x @y 10px rgba(0, 0, 0, 0.7);
-moz-box-shadow:@x @y 10px rgba(0, 0, 0, 0.7);
box-shadow:@x @y 10px rgba(0, 0, 0, 0.7);
}
.rounded(@tr: 5px, @tl: 5px, @bl: 5px, @br: 5px){
-moz-border-radius: @arguments;
-webkit-border-radius: @arguments;
border-radius: @arguments;
}
.roundbottom (@radius: 5px){ .rounded(0, 0, @radius, @radius); }
.roundtop (@radius: 5px){ .rounded(@radius, @radius, 0, 0); }
.opaque(@v: 0.5){
opacity: @v;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
a, a:link { color: @Link; text-decoration: none; }
a:visited { color: @LinkVisited; text-decoration: none; }
a:hover {color: @LinkHover; text-decoration: underline; }
.left { float: left; }
.right { float: right; }
.hidden { display: none; }
code {
font-family: Courier, monospace;
white-space: pre;
display: block;
overflow: auto;
border: 1px solid #444;
background: #EEE;
color: #444;
padding: 10px;
margin-top: 20px;
}
/* tool */
2011-09-05 11:14:43 +02:00
.tool {
height: auto; overflow: auto;
.label { float: left;}
2011-09-05 16:55:40 +02:00
.action { float: right; }
}
/* popup notifications */
div.jGrowl div.notice {
background: @NoticeBackgroundColor url("../../../images/icons/48/notice.png") no-repeat 5px center;
color: @NoticeColor;
padding-left: 58px;
}
div.jGrowl div.info {
background: @InfoBackgroundColor url("../../../images/icons/48/info.png") no-repeat 5px center;
color: @InfoColor;
padding-left: 58px;
}
/* header */
header {
position: fixed; left: 43%; right: 43%; top: 0px;
margin: 0px; padding: 0px;
/*width: 100%; height: 12px; */
z-index: 110;
color: @Grey1;
#site-location {
display: none;
}
#banner {
overflow: hidden;
text-align: center;
width: 100%;
a, a:active, a:visited, a:link, a:hover { color: @Grey1; text-decoration: none; outline: none; vertical-align: bottom; }
#logo-img { height: 22px; margin-top:5px;}
#logo-text { font-size: 22px }
}
}
/* nav */
nav {
width: 100%; height: 32px;
position: fixed; left: 0px; top: 0px;
padding: 0px;
background-color: @NavbarBackground;
color: @Grey1;
z-index: 100;
.shadow(0px, 0px);
a, a:active, a:visited, a:link, a:hover { color: @Banner; text-decoration: none; outline: none; }
ul {
margin: 0px;
padding: 0px 20px;
li {
list-style: none;
margin: 0px; padding: 0px;
float: left;
.menu-popup{ left: 0px; right: auto; }
}
}
.nav-menu-icon {
position: relative;
height: 22px;
padding: 5px;
margin: 0px 10px;
.roundtop();
&.selected {
background-color: @NavbarSelectedBg;
}
img { width: 22px; height: 22px; }
.nav-notify { top: 3px; }
}
.nav-menu {
position: relative;
height: 16px;
padding: 5px;
margin: 3px 15px 0px;
font-size: 14px;
border-bottom: 3px solid @NavbarBackground;
&.selected {
border-bottom: 3px solid @NavbarSelectedBorder;
}
}
.nav-notify {
display: none;
position: absolute;
background-color: @NavbarNotifBg;
.rounded();
font-size: 10px;
padding: 1px 3px;
top: 0px;
right: -10px;
min-width: 15px;
text-align: right;
&.show{ display: block; }
}
#nav-help-link,
#nav-search-link,
#nav-directory-link,
#nav-apps-link,
#nav-site-linkmenu {
float: right;
.menu-popup{ right: 0px; left: auto; }
}
2011-09-08 10:11:57 +02:00
#nav-notifications-linkmenu.on .icon.s22.notify,
2011-09-05 11:14:43 +02:00
#nav-notifications-linkmenu.selected .icon.s22.notify { background-image: url("../../../images/icons/22/notify_on.png") }
#nav-apps-link.selected { background-color: @NavbarSelectedBg; }
}
ul.menu-popup {
position: absolute;
display: none;
width: 10em;
background: @MenuBg;
color: @Menu;
margin: 0px;
padding: 0px;
list-style: none;
border: 3px solid @MenuBorder;
z-index: 100000;
.shadow();
2011-09-05 16:55:40 +02:00
a { display: block; color: @MenuItem; padding: 5px 10px; text-decoration: none;}
2011-08-31 17:30:48 +02:00
a:hover { background-color: @MenuItemHoverBg; }
.menu-sep { border-top: 1px solid @MenuItemSeparator; }
li { float: none; overflow: auto; height: auto; display: block; }
2011-09-05 16:55:40 +02:00
li img { float: left; width: 16px; height: 16px; padding-right: 5px;}
.empty {
padding: 5px;
text-align: center;
2011-08-31 17:30:48 +02:00
color: @MenuEmpty;
}
2011-09-15 10:38:37 +02:00
}
2011-10-26 14:02:17 +02:00
/* autocomplete popup */
.acpopup {
max-height:150px;
background-color:@MenuBg;
color: @Menu;
border:1px solid #MenuBorder;
overflow:auto;
z-index:100000;
.shadow();
}
.acpopupitem {
color: @MenuItem; padding: 4px;
clear:left;
img {
float: left;
margin-right: 4px;
}
&.selected{
background-color: @MenuItemHoverBg;
}
}
#nav-notifications-menu {
width: 400px;
img { float: left; margin-right: 5px; }
.contactname { font-weight: bold; }
2011-08-31 17:30:48 +02:00
.notif-when { font-size: 10px; color: @MenuItemDetail; display: block; }
}
/* aside */
aside {
display: table-cell;
vertical-align: top;
width: 200px;
2011-08-31 17:30:48 +02:00
padding:0px 10px 0px 20px;
border-right: 1px solid @AsideBorder;
2011-09-01 12:37:30 +02:00
.vcard {
.fn { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
.title { margin-bottom: 5px; }
dl { height: auto; overflow: auto; }
2011-09-08 10:11:57 +02:00
dt {float: left; margin-left: 0px; width: 35%; text-align: right; color: @VCardLabelColor; }
2011-09-01 12:37:30 +02:00
dd {float: left; margin-left: 4px; width: 60%;}
}
#profile-extra-links {
ul { padding: 0px; margin: 0px; }
li { padding: 0px; margin: 0px; list-style: none; }
}
#dfrn-request-link {
display: block;
.rounded();
color: @AsideConnect;
background: @AsideConnectBg url('../../../images/connect-bg.png') no-repeat left center;
font-weight: bold;
text-transform:uppercase;
padding: 4px 2px 2px 35px;
&:hover { text-decoration: none; background-color: @AsideConnectHoverBg; }
}
2011-09-15 10:38:37 +02:00
#profiles-menu { width: 20em; }
}
2011-09-05 11:14:43 +02:00
#contact-block {
overflow: auto; height: auto;
.contact-block-h4 { float: left; margin: 5px 0px; }
.allcontact-link { float: right; margin: 5px 0px; }
.contact-block-content {
clear: both;
overflow: auto; height: auto;
}
.contact-block-link {
float: left;
margin: 0px 2px 2px 0px;
}
}
2011-09-01 12:37:30 +02:00
/* widget */
.widget {
margin-bottom: 2em;
h3 { padding: 0px; margin: 2px;}
.action { .opaque(0.1); }
input.action { .opaque(0.5); }
&:hover .title .action { .opaque(1); }
.tool:hover .action { .opaque(1); }
.tool:hover .action.ticked { .opaque(1); }
ul { padding: 0px;}
ul li {padding-left: 16px; min-height: 16px; list-style: none; }
.tool.selected {
background: url('../../../images/selected.png') no-repeat left center;
}
/*.action .s10 { width: 10px; overflow: hidden; padding: 0px;}
.action .s16 { width: 16px; overflow: hidden; padding: 0px;}*/
}
/* widget: search */
#add-search-popup {
width: 200px;
top: 18px;
}
2011-09-01 12:37:30 +02:00
/* section */
section {
display: table-cell;
vertical-align: top;
width: 800px;
2011-08-31 17:30:48 +02:00
padding:0px 20px 0px 10px;
}
2011-09-05 11:14:43 +02:00
/* wall item */
.tread-wrapper {
background-color: @ThreadBackgroundColor;
position: relative;
padding: 10px;
margin-bottom: 20px;
}
.wall-item-decor { position: absolute; left: 790px; top: -10px; width: 16px;}
2011-09-26 11:50:48 +02:00
.unstarred { display: none; }
.wall-item-container {
display: table;
width: 780px;
.wall-item-item,
.wall-item-bottom { display: table-row; }
2011-11-15 17:41:38 +01:00
.wall-item-bottom { .opaque(0.5); }
&:hover .wall-item-bottom { .opaque(1); }
.wall-item-info {
display: table-cell;
vertical-align: top;
text-align: left;
width: 60px;
.wall-item-photo-wrapper { position: relative; }
2011-11-29 09:29:56 +01:00
.wall-item-photo {
width: 48px; height: 48px;
overflow: hidden;
text-indent: -9999px;
display: block;
background: url(../../../images/icons/48/user.png) no-repeat center center;
}
.wall-item-photo-menu-button {
display: none;
position: absolute;
left: -4px;
top: 28px;
}
.wall-item-photo-menu { display: none; }
}
.wall-item-location {
word-wrap: break-word;
width: 50px;
}
.wall-item-content {
display: table-cell;
2011-11-15 17:41:38 +01:00
font-size: 12px;
max-width: 720px;
word-wrap: break-word;
}
.wall-item-content img { max-width: 710px; }
.wall-item-links,
.wall-item-actions {
display: table-cell;
vertical-align: middle;
.icon {
.opaque(0.5);
}
.icon:hover {
.opaque(1.0);
}
}
.wall-item-ago { padding-right: 40px; }
.wall-item-name { font-weight: bold; }
2011-10-03 09:38:17 +02:00
.wall-item-actions-author { float: left; width: 20em; margin-top: 0.5em; }
.wall-item-actions-social { float: left; margin-top: 0.5em;
a { margin-right: 3em; }
}
2011-10-03 09:38:17 +02:00
.wall-item-actions-tools { float: right; width: 15%;
a { float: right; }
input { float: right; }
}
2011-11-15 17:41:38 +01:00
}
.wall-item-container.comment {
2011-11-15 17:41:38 +01:00
/*margin-top: 50px;*/
2011-11-29 09:29:56 +01:00
.wall-item-photo { width: 32px; height: 32px; margin-left: 16px;
background: url(../../../images/icons/22/user.png) no-repeat center center;
}
.wall-item-photo-menu-button {
top: 13px !important;
left: 10px !important;
}
.wall-item-links { padding-left: 12px; }
}
2011-10-03 09:38:17 +02:00
.wall-item-comment-wrapper {
margin: 30px 2em 2em 60px;
.comment-edit-photo { display: none; }
textarea {
height: 1em; width: 100%; font-size: 10px;
color: @CommentBoxEmptyColor;
border: 1px solid @CommentBoxEmptyBorderColor;
padding:0.3em;
}
.comment-edit-text-full {
font-size: 14px;
height: 4em;
color: @CommentBoxFullColor;
border: 1px solid @CommentBoxFullBorderColor;
}
}
2011-11-29 09:29:56 +01:00
.wall-item-tags { padding-top: 5px; }
2011-11-15 17:41:38 +01:00
.tag {
background: url("../../../images/tag_b.png") no-repeat center left;
color: @TagColor;
padding-left: 3px;
a {
padding-right: 8px;
background: url("../../../images/tag.png") no-repeat center right;
color: @TagColor;
}
}
2011-10-03 09:38:17 +02:00
#profile-jot-wrapper {
width: 100%;
margin: 0px 2em 20px 0px;
}
.profile-jot-text {
height: 1em; width: 100%; font-size: 10px;
color: @CommentBoxEmptyColor;
border: 1px solid @CommentBoxEmptyBorderColor;
padding:0.3em;
}
2011-10-12 07:47:41 +02:00
#profile-jot-plugin-wrapper,
#profile-jot-submit-wrapper {
margin-top: 10px;
}
#profile-jot-submit {
float: left;
}
#profile-upload-wrapper{
float: left;
margin-left: 10px;
}
#profile-attach-wrapper,
#profile-rotator,
#profile-link-wrapper,
#profile-youtube-wrapper,
#profile-video-wrapper,
#profile-audio-wrapper,
#profile-location-wrapper,
#profile-nolocation-wrapper,
#profile-title-wrapper {
float: left;
margin-left: 20px;
}
#profile-jot-perms {
float: left;
margin-left: 35px;
margin-right: 35px;
}
#profile-jot-perms-end {
/*clear: left;*/
height: 20px;
}
#profile-jot-plugin-end{
clear: both;
}
.profile-jot-net {
float: left;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
}
#profile-jot-networks-end {
clear: both;
}
#profile-jot-end, #about-jot-end {
margin-bottom: 15px;
}
#about-jot-submit-wrapper {
margin-top: 15px;
}
/** buttons **/
/*input[type="submit"] {
2011-10-17 17:11:49 +02:00
border: 0px;
background-color: @ButtonBackgroundColor;
color: @ButtonColor;
padding: 0px 10px;
.rounded(5px);
2011-10-18 08:17:52 +02:00
height: 18px;
}*/
2011-10-12 07:47:41 +02:00
/** acl **/
#photo-edit-perms-select,
#photos-upload-permissions-wrapper,
#profile-jot-acl-wrapper{
display:block!important;
}
#acl-wrapper {
width: 690px;
float:left;
}
#acl-search {
float:right;
background: #ffffff url("../../../images/search_18.png") no-repeat right center;
padding-right:20px;
}
#acl-showall {
float: left;
display: block;
width: auto;
height: 18px;
background-color: #cccccc;
background-image: url("../../../images/show_all_off.png");
background-position: 7px 7px;
background-repeat: no-repeat;
padding: 7px 5px 0px 30px;
color: #999999;
2011-10-17 17:11:49 +02:00
.rounded(5px);
2011-10-12 07:47:41 +02:00
}
#acl-showall.selected {
color: #000000;
background-color: #ff9900;
background-image: url("../../../images/show_all_on.png");
}
#acl-list {
height: 210px;
border: 1px solid #cccccc;
clear: both;
margin-top: 30px;
overflow: auto;
}
#acl-list-content {
}
.acl-list-item {
display: block;
width: 150px;
height: 30px;
border: 1px solid #cccccc;
margin: 5px;
float: left;
}
.acl-list-item img{
width:22px;
height: 22px;
float: left;
margin: 4px;
}
.acl-list-item p { height: 12px; font-size: 10px; margin: 0px; padding: 2px 0px 1px; overflow: hidden;}
.acl-list-item a {
font-size: 8px;
display: block;
width: 40px;
height: 10px;
float: left;
color: #999999;
background-color: #cccccc;
background-position: 3px 3px;
background-repeat: no-repeat;
margin-right: 5px;
-webkit-border-radius: 2px ;
-moz-border-radius: 2px;
border-radius: 2px;
padding-left: 15px;
}
#acl-wrapper a:hover {
text-decoration: none;
color:#000000;
}
.acl-button-show { background-image: url("../../../images/show_off.png"); }
.acl-button-hide { background-image: url("../../../images/hide_off.png"); }
.acl-button-show.selected {
color: #000000;
background-color: #9ade00;
background-image: url("../../../images/show_on.png");
}
.acl-button-hide.selected {
color: #000000;
background-color: #ff4141;
background-image: url("../../../images/hide_on.png");
}
.acl-list-item.groupshow { border-color: #9ade00; }
.acl-list-item.grouphide { border-color: #ff4141; }
/** /acl **/
/** tab buttons **/
ul.tabs {
list-style-type: none;
padding-bottom: 10px;
li {
float: left;
margin-left: 20px;
.active {
border-bottom: 1px solid @LinkVisited;
}
2011-10-12 07:47:41 +02:00
}
2011-10-12 07:47:41 +02:00
}
2011-10-03 09:38:17 +02:00
/**
* Form fields
*/
.field {
margin-bottom: 10px;
padding-bottom: 10px;
overflow: auto;
width: 100%;
label {
float: left;
width: 200px;
}
input,
textarea {
width: 400px;
}
textarea { height: 100px; }
.field_help {
display: block;
margin-left: 200px;
color: #666666;
}
.onoff {
float: left;
width: 80px;
}
.onoff a {
display: block;
border:1px solid #666666;
background-image:url("../../../images/onoff.jpg");
background-repeat: no-repeat;
padding: 4px 2px 2px 2px;
height: 16px;
text-decoration: none;
}
.onoff .off {
border-color:#666666;
padding-left: 40px;
background-position: left center;
background-color: #cccccc;
color: #666666;
text-align: right;
}
.onoff .on {
border-color:#204A87;
padding-right: 40px;
background-position: right center;
background-color: #D7E3F1;
color: #204A87;
text-align: left;
}
.hidden { display: none!important; }
&.radio .field_help { margin-left: 0px; }
}
/* page footer */
footer { height: 100px; display: table-row; }