update style

This commit is contained in:
Fabio Comuni 2011-07-25 16:55:43 +02:00
parent 99ab06bad3
commit ba4ea589d0
2 changed files with 214 additions and 141 deletions

View File

@ -2,27 +2,9 @@
* Fabio Comuni <http://kirgroup.com/profile/fabrixxm> * Fabio Comuni <http://kirgroup.com/profile/fabrixxm>
**/ **/
/* fonts */ /* fonts */
@font-face {
font-family: "LiberationSans";
src: local("Liberation Sans"), url(LiberationSans-Regular.ttf) format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "LiberationSans";
src: local("Liberation Sans"), url(LiberationSans-Bold.ttf) format("truetype");
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "LiberationSans";
src: local("Liberation Sans"), url(LiberationSans-Italic.ttf) format("truetype");
font-weight: normal;
font-style: italic;
}
/* global */ /* global */
body { body {
font-family: LiberationSans, helvetica, arial, freesans, clean, sans-serif; font-family: Liberation Sans, helvetica, arial, clean, sans-serif;
font-size: 12px; font-size: 12px;
background-color: #FFFFFF; background-color: #FFFFFF;
color: #2d2d2d; color: #2d2d2d;
@ -41,37 +23,81 @@ a:hover {
.right { .right {
float: right; float: right;
} }
/* icons */
.icon {
background-color: transparent ;
background-repeat: no-repeat;
background-position: center center;
display: block;
overflow: hidden;
text-indent: -9999px;
}
.icon.s22 {
width: 22px;
height: 22px;
padding: 1px;
}
.icon.s22.notify {
background-image: url("../../../images/icons/notify_off_22.png");
}
.icon.s22.gear {
background-image: url("../../../images/icons/gear_22.png");
}
/* header */
header {
position: fixed;
left: 0px;
top: 0px;
margin: 0px;
padding: 0px;
width: 100%;
height: 12px;
color: #FFFFFF;
}
header #site-location {
/*font-size:8px;
float:left;
background-color: @Metalic3;
padding: 1px 5px;
margin-left: 20px;
.roundbottom()*/
display: none;
}
/* nav */ /* nav */
nav { nav {
width: 100%; width: 100%;
height: 50px; height: 32px;
position: fixed;
left: 0px;
top: 0px;
background-color: #0e232e; background-color: #0e232e;
color: #FFFFFF; color: #FFFFFF;
} }
nav a, nav a,
nav a:active,
nav a:visited, nav a:visited,
nav a:link, nav a:link,
nav a:hover { nav a:hover {
color: #FFFFFF; color: #FFFFFF;
text-decoration: none; text-decoration: none;
outline: none;
} }
nav #site-location { nav ul {
font-size: 8px; margin: 0px;
float: left;
background-color: #364e59;
padding: 1px 5px;
margin-left: 20px;
-moz-border-radius: 0 0 5px 5px;
-webkit-border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
}
nav #nav {
clear: both;
padding: 0px 20px; padding: 0px 20px;
height: auto;
padding-top: 6px;
} }
nav #nav .nav-menu-icon { nav ul li {
list-style: none;
margin: 0px;
padding: 0px;
float: left;
}
nav ul li .menu-popup {
left: 0px;
right: auto;
}
nav .nav-menu-icon {
position: relative; position: relative;
height: 22px; height: 22px;
padding: 5px; padding: 5px;
@ -80,14 +106,17 @@ nav #nav .nav-menu-icon {
-webkit-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
} }
nav #nav .nav-menu-icon.selected { nav .nav-menu-icon.selected {
background-color: #364e59; background-color: #364e59;
} }
nav #nav .nav-menu-icon img { nav .nav-menu-icon img {
width: 22px; width: 22px;
height: 22px; height: 22px;
} }
nav #nav .nav-menu { nav .nav-menu-icon .nav-notify {
top: 3px;
}
nav .nav-menu {
position: relative; position: relative;
height: 16px; height: 16px;
padding: 5px; padding: 5px;
@ -95,10 +124,11 @@ nav #nav .nav-menu {
font-size: 14px; font-size: 14px;
border-bottom: 3px solid #0e232e; border-bottom: 3px solid #0e232e;
} }
nav #nav .nav-menu.selected { nav .nav-menu.selected {
border-bottom: 3px solid #9eabb0; border-bottom: 3px solid #9eabb0;
} }
nav #nav .nav-menu .nav-notify { nav .nav-notify {
display: none;
position: absolute; position: absolute;
background-color: #19aeff; background-color: #19aeff;
-moz-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px;
@ -111,10 +141,22 @@ nav #nav .nav-menu .nav-notify {
min-width: 15px; min-width: 15px;
text-align: right; text-align: right;
} }
nav .nav-notify.show {
display: block;
}
nav #nav-site-link {
float: right;
}
nav #nav-site-link .menu-popup {
right: 0px;
left: auto;
}
nav #nav-notifications-link.selected .icon.s22.notify {
background-image: url("../../../images/icons/notify_on_22.png");
}
ul.menu-popup { ul.menu-popup {
position: absolute; position: absolute;
/*display: none;*/ display: none;
width: auto; width: auto;
background: #FFFFFF; background: #FFFFFF;
color: #2d2d2d; color: #2d2d2d;
@ -135,34 +177,26 @@ ul.menu-popup a:hover {
ul.menu-popup .menu-sep { ul.menu-popup .menu-sep {
border-top: 1px solid #9eabb0; border-top: 1px solid #9eabb0;
} }
.left .menu-popup { ul.menu-popup li {
left: 0px; float: none;
} overflow: auto;
.right .menu-popup { height: auto;
right: 0px;
}
/* icons */
.icon {
background-color: transparent ;
background-repeat: no-repeat;
background-position: center center;
display: block; display: block;
} }
.icon.s22 { #nav-notifications-menu {
width: 22px; width: 400px;
height: 22px;
} }
.icon.s22.notify_off { #nav-notifications-menu img {
background-image: url("../../../images/icons/notify_off_22.png"); float: left;
margin-right: 5px;
} }
.icon.s22.notify_on { #nav-notifications-menu .contactname {
background-image: url("../../../images/icons/notify_on_22.png"); font-weight: bold;
}
#nav-notifications-menu .notif-when {
font-size: 10px;
color: #9eabb0;
display: block;
} }
/* aside */ /* aside */
aside {
display: none;
}
/* section */ /* section */
section {
display: none;
}

View File

@ -37,25 +37,27 @@
/* fonts */ /* fonts */
@font-face { // @font-face {
font-family: "LiberationSans"; // font-family: "LiberationSans";
src: local("Liberation Sans"), url( LiberationSans-Regular.ttf ) format("truetype"); // src: local("Liberation Sans"),url( LiberationSans-Regular.ttf ) format("truetype");
font-weight: normal; font-style: normal; // font-weight: bold; font-style: italic;
} // }
@font-face { //
font-family: "LiberationSans"; // @font-face {
src: local("Liberation Sans"), url( LiberationSans-Bold.ttf ) format("truetype"); // font-family: "LiberationSans";
font-weight: bold; font-style: normal; // src: local("Liberation Sans"),url( LiberationSans-Bold.ttf ) format("truetype");
} // font-weight: bold; font-style: normal;
@font-face { // }
font-family: "LiberationSans"; // @font-face {
src: local("Liberation Sans"), url( LiberationSans-Italic.ttf ) format("truetype"); // font-family: "LiberationSans";
font-weight: normal; font-style: italic; // src: local("Liberation Sans"),url( LiberationSans-Italic.ttf ) format("truetype");
} // font-weight: normal; font-style: italic;
// }
/* global */ /* global */
body { body {
font-family: LiberationSans,helvetica,arial,freesans,clean,sans-serif; font-family: Liberation Sans,helvetica,arial,clean,sans-serif;
font-size: 12px; font-size: 12px;
background-color: #FFFFFF; background-color: #FFFFFF;
color: @Grey5; color: @Grey5;
@ -77,28 +79,70 @@ a:hover {text-decoration: underline; }
.left { float: left; } .left { float: left; }
.right { float: right; } .right { float: right; }
/* nav */ /* icons */
nav {
width: 100%; height: 50px;
background-color: @Metalic4;
color: #FFFFFF;
a, a:visited, a:link, a:hover { color: #FFFFFF; text-decoration: none; }
.icons(@size: 22) {
&.notify { background-image: url("../../../images/icons/notify_off_@{size}.png"); }
&.gear { background-image: url("../../../images/icons/gear_@{size}.png"); }
}
.icon {
background-color: transparent ;
background-repeat: no-repeat;
background-position: center center;
display: block;
overflow: hidden;
text-indent: -9999px;
&.s22 {
width:22px; height: 22px;
padding: 1px;
.icons(22);
}
}
/* header */
header {
position: fixed; left: 0px; top: 0px;
margin: 0px; padding: 0px;
width: 100%; height: 12px;
color: #FFFFFF;
#site-location { #site-location {
font-size:8px; /*font-size:8px;
float:left; float:left;
background-color: @Metalic3; background-color: @Metalic3;
padding: 1px 5px; padding: 1px 5px;
margin-left: 20px; margin-left: 20px;
.roundbottom() .roundbottom()*/
display: none;
} }
}
/* nav */
nav {
width: 100%; height: 32px;
position: fixed; left: 0px; top: 0px;
background-color: @Metalic4;
color: #FFFFFF;
a, a:active, a:visited, a:link, a:hover { color: #FFFFFF; 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 {
clear: both;
padding: 0px 20px;
height: auto;
padding-top: 6px;
.nav-menu-icon { .nav-menu-icon {
position: relative; position: relative;
height: 22px; height: 22px;
@ -110,7 +154,8 @@ nav {
background-color: @Metalic3; background-color: @Metalic3;
} }
img { width: 22px; height: 22px; } img { width: 22px; height: 22px; }
.nav-notify { top: 3px; }
} }
.nav-menu { .nav-menu {
@ -124,26 +169,37 @@ nav {
border-bottom: 3px solid @Metalic2; border-bottom: 3px solid @Metalic2;
} }
.nav-notify { }
position: absolute;
background-color: @Blue1; .nav-notify {
.rounded(); display: none;
font-size: 10px; position: absolute;
padding: 1px 3px; background-color: @Blue1;
top: 0px; .rounded();
right: -10px; font-size: 10px;
min-width: 15px; padding: 1px 3px;
text-align: right; top: 0px;
} right: -10px;
min-width: 15px;
text-align: right;
&.show{ display: block; }
} }
}
#nav-site-link {
float: right;
.menu-popup{ right: 0px; left: auto; }
}
#nav-notifications-link.selected .icon.s22.notify { background-image: url("../../../images/icons/notify_on_22.png") }
} }
ul.menu-popup { ul.menu-popup {
position: absolute; position: absolute;
/*display: none;*/ display: none;
width: auto; width: auto;
background: #FFFFFF; background: #FFFFFF;
color: @Grey5; color: @Grey5;
@ -151,43 +207,26 @@ ul.menu-popup {
padding: 0px; padding: 0px;
list-style: none; list-style: none;
border: 3px solid @Metalic3; border: 3px solid @Metalic3;
a { display: block; color: @Grey5; padding: 5px 10px;}
a:hover { background-color: @Metalic1; }
z-index: 100000; z-index: 100000;
.menu-sep { a { display: block; color: @Grey5; padding: 5px 10px;}
border-top: 1px solid @Metalic2; a:hover { background-color: @Metalic1; }
} .menu-sep { border-top: 1px solid @Metalic2; }
} li { float: none; overflow: auto; height: auto; display: block; }
.left .menu-popup{ left: 0px; }
.right .menu-popup{ right: 0px; }
/* icons */
.icons(@size: 22) {
&.notify_off { background-image: url("../../../images/icons/notify_off_@{size}.png"); }
&.notify_on { background-image: url("../../../images/icons/notify_on_@{size}.png"); }
} }
#nav-notifications-menu {
.icon { width: 400px;
background-color: transparent ; img { float: left; margin-right: 5px; }
background-repeat: no-repeat; .contactname { font-weight: bold; }
background-position: center center; .notif-when { font-size: 10px; color: @Metalic2; display: block; }
display: block;
&.s22 {
width:22px; height: 22px;
.icons(22);
}
} }
/* aside */ /* aside */
aside { display: none; } // aside { display: none; }
/* section */ /* section */
section { display: none;} // section { display: none;}