1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-05-13 21:26:26 +02:00
The-API-Book/docs/assets/landing.css

173 lines
2.3 KiB
CSS
Raw Permalink Normal View History

2022-07-31 15:08:37 +03:00
* {
margin: 0;
padding: 0;
border: none;
list-style-type: none;
}
2023-09-03 23:25:01 +03:00
header {
display: flex;
flex-direction: column;
}
2022-07-31 15:08:37 +03:00
h1 {
2023-09-02 23:45:04 +03:00
font-size: 150%;
2022-07-31 15:08:37 +03:00
}
2023-09-03 23:25:01 +03:00
h1 .title {
2023-09-02 23:45:04 +03:00
font-size: 200%;
2022-07-31 15:08:37 +03:00
}
h2 {
2023-09-02 23:45:04 +03:00
font-size: 120%;
2022-07-31 15:08:37 +03:00
}
2023-09-03 23:25:01 +03:00
ul.toc > li,
ul.section > li {
2022-07-31 15:08:37 +03:00
padding-left: 1em;
2023-09-03 23:25:01 +03:00
font-family: local-sans;
}
ul.section > li {
text-transform: none;
2022-07-31 15:08:37 +03:00
}
2022-08-27 23:07:11 +03:00
p,
body > ul,
h3 {
2022-07-31 15:08:37 +03:00
margin: 0 0 1em 0;
}
body {
2023-09-02 23:45:04 +03:00
font-size: 16pt;
2022-07-31 15:08:37 +03:00
margin: 5px;
}
2023-09-03 23:25:01 +03:00
body > ul.toc > li,
h3 {
text-transform: uppercase;
}
2022-07-31 15:08:37 +03:00
nav {
text-align: center;
}
nav > img {
max-height: 300px;
object-fit: contain;
}
nav a {
vertical-align: -12%;
content: ' ';
width: 1em;
height: 1em;
display: inline-block;
background-position: 0 0;
background-size: auto 100%;
background-repeat: no-repeat;
text-decoration: none;
}
a.github {
background-image: url(github.jpg);
width: 1.2em;
}
2022-08-27 23:07:11 +03:00
a.linkedin,
a.share-linkedin {
2022-07-31 15:08:37 +03:00
background-image: url(linkedin.png);
width: 1.176em;
}
2022-08-27 23:07:11 +03:00
a.twitter,
a.share-twitter {
background-image: url(x.png);
2022-07-31 15:08:37 +03:00
width: 1.392em;
}
a.habr {
background-image: url(habr.png);
}
2023-04-30 23:13:11 +03:00
a.substack {
background-image: url(substack.png);
}
2022-07-31 15:08:37 +03:00
a.medium,
2023-04-30 23:13:11 +03:00
a.habr,
a.substack {
2022-07-31 15:08:37 +03:00
width: auto;
padding-left: 1em;
vertical-align: baseline;
background-position: 0 0.2em;
}
2023-09-25 21:22:39 +03:00
a.kindle,
2025-01-22 22:44:10 +02:00
a.apple,
a.leanpub,
a.gumroad {
2022-07-31 15:08:37 +03:00
width: auto;
vertical-align: unset;
}
2022-08-27 23:07:11 +03:00
a.share-reddit {
background-image: url(reddit.png);
}
a.share-vk {
background-image: url(vk.svg);
}
a.share-facebook {
background-image: url(facebook.png);
}
2022-07-31 15:08:37 +03:00
img.header {
width: 80%;
}
.about-me {
display: flex;
flex-flow: row-reverse wrap;
gap: 0.5em;
justify-content: center;
}
.about-me aside {
min-width: 200px;
max-width: 400px;
padding-top: 0.4em;
2022-08-13 16:00:49 +03:00
color: gray;
text-align: center;
2022-07-31 15:08:37 +03:00
}
2022-08-27 23:07:11 +03:00
.about-me aside a,
.about-me aside a:visited {
2022-08-13 16:00:49 +03:00
color: inherit;
font-weight: bold;
}
2022-07-31 15:08:37 +03:00
.about-me aside img {
width: 100%;
}
.about-me .content {
flex-basis: 320px;
flex-grow: 2;
}
@media (min-width: 1010px) {
body {
width: 1000px;
margin: 5px auto;
text-align: justify;
}
}
@media (min-width: 2000px) {
body {
width: auto;
margin: 5px 25%;
text-align: justify;
}
}