fedi/css/base.css

173 lines
2.4 KiB
CSS

@font-face {
font-family: 'exo2';
src:url('../fonts/exo2.ttf');
}
.textblock {
background-color:#224;
border-radius:4px;
border-style:solid;
border-color: #667;
display:inline-block;
width: 90%;
height: 90%;
color: #bbb;
padding: 2% 2% 2% 2%;
}
.imgblock {
background-color:#334;
border-radius:4px;
border:1px solid #667;
display:inline-block;
width: 90%;
height: 90%;
color: #bbb;
padding: 2% 2% 2% 2%;
text-align: justify;
}
body {
font: 110%/180% exo2;
width: 900px;
max-width: 96%;
margin: 0 auto;
background-color:#335;
}
p {
margin: 0 0 20px;
}
a {
color: #69C;
text-decoration: none;
}
a:hover {
color: #F60;
}
h1, h2, h3 {
color: #eee;
line-height: 120%;
margin: 30px 0 10px;
}
h1 {
font-size: 1.7em;
color: #bbb;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.1em;
}
/* nav */
.nav {
margin: 20px 0;
}
.nav ul {
margin: 0;
padding: 0;
}
.nav li {
margin: 0 5px 10px 0;
padding: 0;
list-style: none;
display: inline-block;
*display:inline; /* ie7 */
}
.nav a {
padding: 3px 12px;
text-decoration: none;
color: #eee;
line-height: 100%;
}
.nav a:hover {
color: #333;
}
.nav .current a {
background: #eee;
color: #888;
border-radius: 5px;
}
/* right nav */
.nav.right ul {
text-align: right;
}
/* center nav */
.nav.center ul {
text-align: center;
}
@media screen and (max-width: 600px) {
.nav {
position: relative;
min-height: 40px;
}
.nav ul {
width: 180px;
padding: 5px 0;
position: absolute;
top: 0;
left: 0;
border: solid 1px #aaa;
background: #000 url(images/icon-menu.png) no-repeat 10px 11px;
border-radius: 5px;
box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.nav li {
display: none; /* hide all <li> items */
margin: 0;
}
.nav .current {
display: block; /* show only current <li> item */
}
.nav a {
display: block;
padding: 5px 5px 5px 32px;
text-align: left;
}
.nav .current a {
background: none;
color: #333;
}
/* on nav hover */
.nav ul:hover {
background-image: none;
}
.nav ul:hover li {
display: block;
margin: 0 0 5px;
}
.nav ul:hover .current {
background: url(images/icon-check.png) no-repeat 10px 7px;
}
/* right nav */
.nav.right ul {
left: auto;
right: 0;
}
/* center nav */
.nav.center ul {
left: 50%;
margin-left: -90px;
}
h1, h2, h3 {
color: #999;
line-height: 120%;
margin: 30px 0 10px;
font-family: "exo2";
}