Pico/themes/default/style.css
2016-08-02 02:31:20 +02:00

286 lines
5.6 KiB
CSS

/**
* Pico's Default Theme
*
* Pico's default theme is a bit bare - but that's intentional! The default
* theme isn't meant for production use, it's actually a template for you to
* design your own theme around.
*
* Pico is a stupidly simple, blazing fast, flat file CMS.
*
* @author Daniel Rudolf
* @link http://picocms.org
* @license http://opensource.org/licenses/MIT The MIT License
* @version 1.1
*/
* {
box-sizing: border-box;
border: 0 none;
margin: 0;
padding: 0;
}
body {
font-family: 'Droid Sans', 'Helvetica', 'Arial', sans-serif;
font-size: 16px;
line-height: 1.6;
color: #444;
}
p, hr, table, .table-responsive, ol, ul, dl, pre, blockquote {
margin-bottom: 1em;
}
.hidden { display: none !important; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0 none;
}
.slide {
overflow-y: hidden !important;
-webkit-transition: height .5s ease-in !important;
transition: height .5s ease-in !important;
}
.slide.up { height: 0 !important; }
/*** BASIC LAYOUT ***/
html { height: 100%; }
body {
display: flex;
flex-direction: column;
height: 100%;
}
main {
flex: 1 0 auto;
margin: 5em 0 4em;
}
.container {
max-width: 47em;
padding: 0 0.5em;
margin: 0 auto;
}
.widescreen .container { max-width: 72em; }
main .container {
/* very ugly, avoid this whenever possible! */
overflow-x: auto;
}
/*** BASIC LAYOUT: HEADER ***/
header { background: #2EAE9B; }
header h1 {
float: left;
font-size: 2rem;
margin: 0 1em 1.5em 0;
}
header h1 a, header h1 a:hover { color: #fff; }
header nav {
text-align: right;
margin: 3em 0;
}
header nav ul {
list-style: none;
margin: 0;
padding: 0;
}
header nav ul li {
display: inline-block;
margin-left: 1em;
padding: 0;
font-weight: bold;
}
header nav a, #page-menu-toggle { color: #afe1da; }
header nav .active a, header nav a:hover, #page-menu-toggle:hover { color: #fff; }
#page-menu-toggle {
display: none;
float: right;
width: 2em;
margin: 0 0 0.5em 1em;
font-size: 1.5rem;
line-height: 2em;
text-align: center;
cursor: pointer;
}
#page-menu-toggle > * { vertical-align: middle; }
/*** BASIC LAYOUT: FOOTER ***/
footer {
background: #707070;
color: #C0C0C0;
}
footer a { color: #ddd; }
footer a:hover { color: #fff; }
footer p {
margin: 3em 0;
}
footer .social {
float: right;
margin: 0 0 0.5em 1em;
font-size: 2rem;
}
/*** BASIC LAYOUT: EXTRA SMALL DEVICES ***/
@media (max-width: 767px) {
main { margin: 2em 0 1em; }
header h1 {
float: none;
margin: 0.5em 0;
}
header nav {
clear: right;
margin: 0;
}
header nav ul {
padding-bottom: 1em;
}
header nav ul li {
display: block;
margin: 0;
text-align: center;
}
header nav ul li a {
display: block;
padding: 0.5em 0;
}
.js #page-menu-toggle { display: block; }
footer p { margin: 1em 0; }
}
/*** TEXT ***/
a {
color: #2EAE9B;
text-decoration: none;
-webkit-transition: color .2s ease-in;
transition: color .2s ease-in;
}
a:hover { color: #444; }
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.6em;
font-weight: bold;
color: #333;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }
img { max-width: 100%; }
p, td, th, li, dd {
text-align: justify;
overflow-wrap: break-word;
word-wrap: break-word;
}
hr {
border: 0.15em solid #f5f5f5;
border-radius: 0.3em;
}
abbr { text-decoration: underline dotted; }
/*** TABLES ***/
table { border-spacing: 0; }
td, th {
padding: 0.4em 1em;
vertical-align: top;
}
th {
font-weight: bold;
text-align: center;
background: #f5f5f5;
color: #333;
}
td, th { border: solid 1px #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th { border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) { border-right: 0 none; }
tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child { border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child { border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child { border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td { border-radius: 0 !important; }
.table-responsive { overflow-x: auto; }
/*** LISTS ***/
ol, ul {
list-style-position: outside;
padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }
dt { font-weight: bold; }
dd { margin-left: 2em; }
/*** CODE ***/
code {
margin: 0 0.1em;
padding: 0.1em 0.2em;
border: 1px solid #ccc;
border-radius: 0.3em;
background: #f5f5f5;
font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
font-size: 0.9em;
}
pre {
padding: 0 0.9em;
border: 1px solid #ccc;
border-radius: 0.3em;
background: #f5f5f5;
line-height: 1.4;
}
pre code {
display: block;
margin: 0;
padding: 1em 0;
border: 0 none;
background: transparent;
overflow-x: auto;
}
/*** BLOCKQUOTE ***/
blockquote {
font-style: italic;
margin-left: 1em;
padding-left: 1em;
border-left: 0.5em solid #f5f5f5;
}