1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-01-29 18:04:15 +02:00
The-API-Book/src/style.css

206 lines
3.0 KiB
CSS
Raw Normal View History

2020-12-08 15:43:01 +03:00
html {
width: 100%;
margin: 0;
padding: 0;
}
2020-12-20 14:31:45 +03:00
body, h6 {
font-family: 'PT Serif';
2020-11-05 12:14:16 +03:00
font-size: 14pt;
text-align: justify;
}
2020-12-20 14:31:45 +03:00
.cc-by-nc-img {
display: block;
float: left;
margin-top: 5px;
}
2020-11-09 00:31:31 +03:00
.cc-by-nc {
2020-12-20 14:31:45 +03:00
margin-left: 92px;
}
.cc-by-nc::after {
clear: left;
2020-11-09 00:31:31 +03:00
}
code, pre {
2020-11-05 12:14:16 +03:00
font-family: Inconsolata, sans-serif;
2020-12-05 01:06:43 +03:00
}
code {
white-space: nowrap;
2020-11-05 12:14:16 +03:00
}
2020-12-20 14:31:45 +03:00
p img {
max-width: 100%;
}
pre {
2020-12-05 01:06:43 +03:00
margin: 1em 0;
padding: 1em;
border-radius: .25em;
border-top: 1px solid rgba(0,0,0,.45);
border-left: 1px solid rgba(0,0,0,.45);
box-shadow: .1em .1em .1em rgba(0,0,0,.45);
page-break-inside: avoid;
2020-12-08 15:43:01 +03:00
overflow-x: auto;
2020-12-09 00:20:54 +03:00
font-size: 90%;
}
2020-12-20 21:10:52 +03:00
img:not(.cc-by-nc-img) {
border: 1px solid darkgray;
box-shadow: .1em .1em .1em rgba(0,0,0,.45);
}
2020-12-05 01:06:43 +03:00
pre code {
white-space: pre;
}
2020-11-09 00:31:31 +03:00
.page-break {
page-break-after: always;
2020-11-05 12:14:16 +03:00
}
2020-11-09 00:31:31 +03:00
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
2020-11-09 00:31:31 +03:00
h1, h2, h3, h4, h5 {
2020-11-05 12:14:16 +03:00
text-align: left;
2020-11-09 00:31:31 +03:00
font-family: 'PT Sans';
font-weight: bold;
2020-12-05 01:06:43 +03:00
page-break-after: avoid;
2020-11-05 12:14:16 +03:00
}
2020-12-20 14:31:45 +03:00
h6 {
font-size: 80%;
color: darkgray;
text-align: center;
padding: 0;
margin: 0 1em 0 2em;
font-weight: normal;
}
h6 a {
color: darkgray;
font-weight: bolder;
}
2020-11-09 00:31:31 +03:00
h1 {
2020-12-05 01:06:43 +03:00
font-size: 200%;
2020-11-05 12:14:16 +03:00
}
h2 {
2020-12-05 01:06:43 +03:00
font-size: 160%;
2020-12-08 15:43:01 +03:00
text-transform: uppercase;
2020-11-09 00:31:31 +03:00
}
h3 {
2020-12-05 01:06:43 +03:00
font-size: 140%;
2020-12-08 15:43:01 +03:00
font-variant: small-caps;
2020-11-09 00:31:31 +03:00
}
h4, h5 {
2020-12-05 01:06:43 +03:00
font-size: 120%;
2020-11-09 00:31:31 +03:00
}
2021-01-04 02:33:33 +03:00
.annotation {
text-align: left;
}
ul.table-of-contents {
list-style-type: none;
padding-left: 0;
}
ul.table-of-contents li {
text-transform: uppercase;
}
ul.table-of-contents ul {
list-style-type: none;
}
ul.table-of-contents ul li {
text-transform: none;
}
a.anchor {
2020-12-20 21:10:52 +03:00
color: inherit;
text-decoration: none;
}
2020-12-08 15:43:01 +03:00
@media screen {
body {
margin: 2em auto;
max-width: 60%;
}
2020-12-11 19:09:27 +03:00
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
2020-12-20 21:10:52 +03:00
a.anchor:before {
display: inline-block;
content: '¶';
width: 0.8em;
color: lightgray;
2021-01-04 02:33:33 +03:00
text-indent: 0;
}
h5 a.anchor:before {
color: transparent;
2020-12-20 21:10:52 +03:00
}
a.anchor:hover:before {
color: black;
}
2021-01-04 02:33:33 +03:00
h2:not(.toc), h3, h5 {
text-indent: -0.8em;
2020-12-20 21:10:52 +03:00
}
2020-12-11 19:09:27 +03:00
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
2020-12-08 15:43:01 +03:00
}
@media screen and (max-width: 1000px) {
body {
padding: 2em;
margin: 0;
max-width: none;
text-align: left;
}
pre {
margin: 0;
padding: 0.2em;
}
2020-12-09 00:20:54 +03:00
ul, ol {
padding-left: 1em;
}
2020-12-11 19:09:27 +03:00
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
2020-12-08 15:43:01 +03:00
}