surwiki/assets/style.css

541 lines
8.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');
}
.prototype {
display: none;
}
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;
}
h2, h3, h4, h5, h6 {
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;
}
h4, h5, h6 {
font-weight: normal;
font-style: normal;
}
article ul, article ol {
padding-left: 32px;
2017-09-27 20:46:16 +03:00
}
h1+*, h2+*, h3+*, h4+*, h5+*, h6+* {
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;
}
.notice {
background: lightyellow;
padding: 16px 48px;
2017-10-24 14:00:56 +03:00
font-size: 18px;
line-height: 32px;
box-sizing: border-box;
max-width: 616px;
width: 100%;
margin: 30px auto;
}
2017-10-25 11:52:04 +03:00
header, article>*, .search {
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: "Inconsolata", "Fira Mono",
2017-10-16 14:18:12 +03:00
"DejaVu Sans Mono",
"Droid Sans Mono", "Source Code Pro",
monospace;
}
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;
}
2017-10-22 13:36:19 +03:00
nav {
text-align: center;
}
/* 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 {
content: "\200B\00B7\200B";
2017-10-02 18:17:40 +03:00
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;
}
li.missing, ul.dense>li.missing {
display: none;
}
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) {
.editor-controls {
position: fixed;
left: auto;
right: 20px;
bottom: 20px;
box-shadow: 2px 2px 8px rgba(0,0,0, 0.25);
}
}
article ul.search-results {
padding-left: 8px;
2017-10-25 14:24:42 +03:00
}
.search-results {
list-style: none;
}
.search-result {
padding: 0;
margin-bottom: 8px;
}
.search-result .title {
font-weight: bold;
}
.snippet {
white-space: pre-line;
}
.search-result p {
margin: 0;
}
2017-10-25 11:52:04 +03:00
.search-result a {
display: block;
color: inherit;
text-decoration: none;
border: 1px solid #ccc;
padding: 8px;
}
.search-result a:hover, .search-result a:focus {
background: #0074D9;
border-color: #0074D9;
color: white;
}
2017-10-25 11:52:04 +03:00
.search {
text-align: center;
margin-top: 30px;
2017-10-25 14:24:42 +03:00
position: relative;
2017-10-25 11:52:04 +03:00
}
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: border-box;
width: 100%;
max-width: 300px;
transition: max-width 200ms;
padding: 0 16px;
margin: 0;
border: 1px solid #ccc;
2017-10-25 11:52:04 +03:00
font: inherit;
font-size: 18px;
2017-10-25 11:52:04 +03:00
line-height: 32px;
height: 34px;
2017-10-25 11:52:04 +03:00
border-radius: 18px;
text-overflow: ellipsis;
2017-10-25 11:52:04 +03:00
}
2017-10-25 14:24:42 +03:00
.search input:focus, .search.focus input {
max-width: 300px;
2017-10-25 11:52:04 +03:00
border-color: #999;
}
2017-10-25 14:24:42 +03:00
.search .live-results {
text-align: left;
box-sizing: border-box;
width: 100%;
2017-10-25 15:19:11 +03:00
max-width: 266px; /* 300px - padding - border */
2017-10-25 14:24:42 +03:00
background: white;
padding: 0;
margin: 0 auto;
overflow: hidden;
transition: max-height 200ms;
max-height: 0px;
}
.live-results.show {
max-height: 500px;
}
.live-results .search-result {
margin: 0;
}
.live-results a {
border-top: none;
}
2017-10-25 14:24:42 +03:00
.live-results .search-result.error {
border: 1px solid #ccc;
border-top: none;
padding: 8px;
color: #888;
}
2017-10-25 11:52:04 +03:00
@media (min-width: 630px) {
.search {
text-align: right;
}
.search input {
max-width: 125px;
}
2017-10-25 14:24:42 +03:00
.search .live-results {
position: absolute;
right: 8px;
margin: 0 16px;
max-height: 0px;
2017-10-25 14:24:42 +03:00
}
.search.focus .live-results {
max-height: 500px;
2017-10-25 14:24:42 +03:00
}
2017-10-25 11:52:04 +03:00
}
2017-11-06 14:55:13 +03:00
.diff {
background: none;
white-space: pre-wrap;
}
2017-11-06 14:55:13 +03:00
.removed {
color: #866;
background: #fdd;
text-decoration: line-through;
}
.added {
2017-11-06 14:55:13 +03:00
background: #ceb;
}
2017-11-03 02:16:18 +03:00
.modal-block {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
2017-12-01 18:22:36 +03:00
display: flex;
align-items: center;
justify-content: center;
}
.popup {
2017-12-01 18:22:36 +03:00
display: flex;
flex-direction: column;
text-align: center;
background: #eee;
box-shadow: 2px 2px 8px rgba(0,0,0, 0.25);
}
2017-12-01 18:22:36 +03:00
.popup>.message {
margin: 16px 32px;
max-width: 600px;
}
.popup>.btn-row {
2017-12-02 13:01:24 +03:00
display: flex;
flex-direction: row;
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
}
.btn-row>* {
padding: 8px 16px;
margin: 0;
background: white;
color: black;
border: none;
flex: 1;
font-family: inherit;
cursor: pointer;
}
.btn-row>*:hover {
text-decoration: underline;
}
.primary {
background: #337ab7;
color: white;
2017-12-01 18:22:36 +03:00
}
2017-11-03 02:16:18 +03:00
@media print {
@page {
margin: 25mm;
}
html, body {
height: unset;
}
2017-11-03 02:16:18 +03:00
body {
display: block;
}
h1, h2, h3, h4, h5, h6 {
/* This doesn't work at all, but it might start to! */
break-after: avoid;
page-break-after: avoid;
}
a, a:visited, a:hover, a:visited:hover {
text-decoration: none;
color: black !important;
font-weight: normal !important;
}
article {
margin: 0 auto;
}
article, h2, h3, h4, h5, h6, .notice {
font-size: 12pt;
line-height: 18pt;
}
article p {
text-align: justify;
}
2017-11-21 13:54:13 +03:00
pre {
overflow: visible;
white-space: pre-wrap;
}
2017-11-03 02:16:18 +03:00
.search {
display: none;
}
footer {
display: none;
}
}