surwiki/assets/style.css

291 lines
4.2 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;
}
article h1 {
margin-top: 32px;
margin-bottom: 0;
}
2017-09-27 20:46:16 +03:00
h2, h3 {
font-family: inherit;
font-size: 18px;
line-height: 32px;
margin-top: 32px;
margin-bottom: 0;
}
2017-09-27 20:46:16 +03:00
h2 {
font-weight: bold;
font-style: normal;
}
h3 {
font-weight: normal;
font-style: italic;
}
article ul, article ol {
padding-left: 32px;
2017-09-27 20:46:16 +03:00
}
h1+*, h2+*, h3+* {
2017-09-27 20:46:16 +03:00
margin-top: 0;
}
2017-10-14 01:08:03 +03:00
article>hr {
2017-09-27 20:46:16 +03:00
border: none;
border-top: 1px solid black;
2017-10-14 01:08:03 +03:00
max-width: 400px;
2017-09-27 20:46:16 +03:00
width: 70%;
margin: 20px auto;
}
header, article>* {
box-sizing: border-box;
max-width: 616px;
width: 100%;
2017-09-27 20:46:16 +03:00
padding-left: 8px;
padding-right: 8px;
margin-left: auto;
margin-right: auto;
2017-09-26 10:50:59 +03:00
}
header {
margin: 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: none;
border-left: 4px solid #eee;
max-width: 600px;
}
article>blockquote {
margin-left: auto;
margin-right: auto;
}
@media (max-width: 630px) {
article>blockquote {
margin-left: 8px;
margin-right: 0;
width: calc(100% - 8px);
}
}
article>table {
width: unset;
max-width: 100%;
padding-left: 0;
padding-right: 0;
}
table {
border-spacing: 8px 2px;
}
code, pre {
background: #f8f8f8;
font-family: "SF Mono", "Monaco",
"Inconsolata", "Fira Mono",
"Droid Sans Mono", "Source Code Pro",
monospace;
2017-10-13 17:40:35 +03:00
font-size-adjust: 0.4;
}
pre {
overflow: auto;
}
a {
2017-10-13 17:40:07 +03:00
color: #457796;
text-decoration: none;
}
a:hover {
2017-10-13 17:40:07 +03:00
text-decoration: underline;
}
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 {
padding: 0 8px;
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;
}
2017-10-13 16:06:16 +03:00
ul.dense {
2017-10-02 18:17:40 +03:00
list-style: none;
padding: 0;
}
2017-10-13 17:51:48 +03:00
article>ul.dense {
padding: 0 8px;
}
2017-10-13 16:06:16 +03:00
ul.dense>li {
2017-10-02 18:17:40 +03:00
display: inline;
}
2017-10-13 16:06:16 +03:00
ul.dense>li::after {
2017-10-02 18:17:40 +03:00
content: "\00B7";
margin: 0 12px;
}
2017-10-13 16:06:16 +03:00
ul.dense>li:last-child::after {
2017-10-02 18:17:40 +03:00
content: "";
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;
2017-10-12 16:02:02 +03:00
margin: 0 auto;
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: 630px) {
2017-09-27 20:46:16 +03:00
header {
margin-top: 60px;
}
.editor-controls {
position: fixed;
left: auto;
right: 20px;
bottom: 20px;
box-shadow: 2px 2px 8px rgba(0,0,0, 0.25);
}
}