web-personal/themes/marcriera/static/css/theme.css

422 lines
4.7 KiB
CSS

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i');
/* Basic theme elements */
html {
background: #7C454F;
}
html,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
color: #EEEEEE;
font-family: 'Open Sans', sans-serif;
}
h1 {
font-size: 175%;
font-weight: 600;
border-bottom: 1px solid #BBBBBB;
}
h2 {
font-size: 150%;
font-weight: 600;
border-bottom: 1px solid #BBBBBB;
}
h3 {
font-size: 132%;
margin-bottom: .3em;
}
h4 {
font-size: 116%;
font-weight: 600;
margin-bottom: .3em;
}
h5 {
font-size: 100%;
font-weight: 600;
margin-bottom: .3em;
}
h6 {
font-size: 85%;
font-weight: 600;
margin-bottom: .3em;
}
p {
margin: .5em 0 .5em 0;
}
/* Hyperlinks */
a {
text-decoration: none;
font-weight: 600;
}
a:link,
a:active,
a:visited {
color: #EEEEEE;
}
a:hover,
a.selected {
color: #BBBBBB;
}
/* Images */
img {
margin: auto;
max-width:100%;
max-height:100%;
display: inline;
}
img.right {
float: right;
margin: 0 0 1em 1em;
}
img.left {
float: left;
margin: 0 1em 1em 0;
}
/* Thematic breaks */
hr {
border-bottom: 0;
border-left: 0;
border-right: 0;
margin: 2.5em 0;
}
/* Main menu */
nav {
clear: both;
text-align: right;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul.first > li {
display: block;
text-align: center;
}
nav ul li a {
display: block;
font-size: 90%;
}
/* Language selector */
.language-selector {
list-style-type: none;
font-size: 90%;
text-align: center;
}
.language-selector li {
display: inline;
margin: .5em;
text-align: center;
}
/* Main container */
#container {
background: #C05165;
margin: auto;
border-style: solid;
border-radius: 10px;
border-color: #9E4B5A;
}
/* Header */
#header-left,
#header-right {
padding-top: 15px;
}
#site-logo {
height: 100px;
width: 100px;
padding: 0 20px 15px 20px;
}
#site-title {
padding: 10px 20px 0 20px;
font-weight: 600;
font-size: 220%;
}
#site-slogan {
padding: 0 20px 10px 20px;
}
/* Footer */
#footer {
text-align: center;
padding: 10px 20px 10px 20px;
clear: both;
font-size: 12px;
}
/* Page title */
#page-title {
padding: 10px 20px 10px 20px;
background: #9E4B5A;
}
#page-title h1 {
margin: 0;
border-bottom: none;
}
/* Page content */
#content {
padding: 10px 20px 10px 20px;
margin-bottom: 20px;
margin-top: 20px;
text-align: justify;
}
.timestamp,
.tags {
color: #777;
}
#content .timestamp {
padding-bottom: 1em;
}
#content a:link,
#content a:active,
#content a:visited {
color: #EEEEEE;
}
#content a:hover,
#content a.selected {
color: #CCCCCC;
}
@media (min-width: 780px) {
/* Main menu */
.burger-button {
display: none;
}
nav {
padding-right: 1.25em;
}
nav ul.first > li {
display: inline-block;
position: relative;
background: #9E4B5A;
padding: 10px 10px 10px 10px;
}
nav ul.second,
nav ul.third {
display: none;
position: absolute;
background: #000000;
width: 160px;
box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.25);
}
nav ul.first li:hover ul.second,
nav ul.second li:hover ul.third {
display: block;
}
nav ul.second li a,
nav ul.third li a {
padding: 0.75em 1em;
}
nav ul.second {
z-index: 2;
}
nav ul.third {
z-index: 3;
}
nav ul.second li {
position: relative;
}
nav ul.third {
left: 212px;
top: -1px;
}
/* Language selector */
.language-selector {
float: right;
margin-right: 30px;
}
/* Main container */
#container {
max-width: 1200px;
}
/* Header */
#header-left {
float: left;
width: 65%;
}
#header-right {
float: right;
width: 35%;
}
#site-logo {
float: left;
}
}
@media screen and (max-width: 779px) {
/* Main menu */
.burger-button {
display: block;
background: #3E3E3E;
font-size: 100%;
padding: 5px 20px 5px 20px;
margin-top: 20px;
cursor: pointer;
}
.burger-button:hover {
color: #DDDDDD;
background: #208DCC;
}
#menu-entries {
display: none;
}
.burger-toggle:checked ~ #menu-entries {
display: block;
}
.burger-toggle:checked ~ .burger-button {
color: #DDDDDD;
background: #208DCC;
}
nav {
text-align: center;
margin-bottom: 20px;
}
nav ul.first > li a,
nav ul.second > li a {
display: block;
padding: 5px 20px 5px 20px;
background: #3E3E3E;
}
nav ul.first > li a:hover,
nav ul.second > li a:hover {
color: #DDDDDD;
background: #208DCC;
}
nav ul.first {
margin-top: 0px;
}
nav ul.second > li a {
padding-left: 40px;
}
/* Language selector */
.language-selector {
float: none;
margin: auto;
padding: 0;
}
/* Header */
#header-left,
#header-right {
display: block;
float: none;
width: 100%;
text-align: center;
}
#site-logo,
#site-title {
display: block;
float: none;
margin: auto;
}
#site-title,
#site-slogan {
padding: 0px 5px;
}
}