surwiki/assets/style.css

216 lines
3.1 KiB
CSS
Raw Normal View History

2017-09-15 16:03:00 +03:00
@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 {
2017-09-15 16:03:00 +03:00
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;
}
2017-09-26 10:50:59 +03:00
header, article {
box-sizing: border-box;
max-width: 612px;
width: 100%;
2017-09-26 10:50:59 +03:00
padding-left: 6px;
padding-right: 6px;
}
header {
2017-09-21 11:19:03 +03:00
margin: 60px auto 0 auto;
}
article {
2017-09-26 10:50:59 +03:00
margin: 0 auto 120px auto;
font-size: 18px;
line-height: 32px;
}
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;
}
img {
max-width: 100%;
height: auto;
}
/* Sticky footer */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
}
.container {
flex: 1;
}
footer {
2017-09-26 10:50:59 +03:00
padding: 16px 6px;
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 {
2017-09-21 11:19:03 +03:00
content: "\00B7";
margin: 0 12px;
}
footer dd:last-child::after {
content: "";
margin: 0;
}
2017-09-21 13:18:09 +03:00
input:focus, textarea:focus {
outline: none;
}
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;
}
h1>input {
font: inherit;
border: none;
background: none;
padding: 0;
width: 100%;
}
.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);
}
}