surwiki/assets/style.css
2017-09-15 15:03:00 +02:00

191 lines
2.9 KiB
CSS

@font-face {
font-family: 'Amatic SC';
font-style: normal;
font-weight: 400;
src: local('Amatic SC Regular'), local('AmaticSC-Regular'),
url('amatic-sc-v9-latin-regular.woff') format('woff');
}
html {
font-family: "Apple Garamond", "Baskerville",
"Times New Roman", "Droid Serif", "Times",
"Source Serif Pro", serif;
}
h1 {
font-family: 'Amatic SC', sans-serif;
font-weight: normal;
font-style: normal;
font-size: 40px;
line-height: 54px;
}
h2 {
font-family: inherit;
font-weight: bold;
font-style: normal;
font-size: 18px;
line-height: 32px;
margin-top: 32px;
margin-bottom: 0;
}
header {
max-width: 600px;
width: 100%;
margin: 40px auto 0 auto;
}
article {
font-size: 18px;
line-height: 32px;
max-width: 600px;
width: 100%;
margin: 0 auto 120px auto;
}
blockquote {
margin-left: 0;
padding-left: 12px;
border-left: 4px solid #eee;
}
p {
margin: 0 0 28px 0;
}
code, pre {
background: #f8f8f8;
font-family: "SF Mono", "Monaco",
"Inconsolata", "Fira Mono",
"Droid Sans Mono", "Source Code Pro",
monospace;
}
pre {
overflow: auto;
}
a {
color: #5e90af;
}
a:visited {
color: inherit;
}
a:hover {
color: #79b9e1;
}
/* Sticky footer */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
}
article {
flex: 1;
}
footer {
padding: 16px 0;
background: #f8f8f8;
color: #444;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
}
footer dl {
margin: 0;
}
footer dt, footer dd {
display: inline;
margin: 0;
}
footer dt::after {
content: ": ";
display: inline;
}
footer dd::after {
content: "|";
margin: 0 12px;
}
footer dd:last-child::after {
content: "";
margin: 0;
}
textarea {
border: none;
background: none;
margin: 0;
padding: 0;
font-family: "SF Mono", "Monaco",
"Inconsolata", "Fira Mono",
"Droid Sans Mono", "Source Code Pro",
monospace;
width: 100%;
resize: none;
overflow: hidden;
}
.shadow-control {
visibility: hidden;
position: fixed;
height: auto;
min-height: 100px;
}
.editor {
display: none;
}
.editor textarea[name="body"] {
height: 600px;
}
.edit .editor {
display: block;
}
.edit .rendered {
display: none;
}
.editor-controls {
position: fixed;
right: 0;
bottom: 0;
left: 0;
background: #91A238;
padding: 10px 20px;
}
@media (min-width: 600px) {
.editor-controls {
position: fixed;
left: auto;
right: 20px;
bottom: 20px;
box-shadow: 2px 2px 8px rgba(0,0,0, 0.25);
}
}