This repository has been archived on 2026-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GitBlog.md/sample_data/home/style.css
T
Clément GOUIN 5e7b700304 Style update
2019-06-21 14:45:49 +02:00

137 lines
2.0 KiB
CSS

body, html {
padding: 0;
margin: 0;
}
* {
box-sizing: border-box;
}
body {
font: 14px/1.45 -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
color: #111;
-webkit-text-size-adjust: none;
background-color: #F5F5F5;
height: 100vh;
}
main {
max-width: 75ch;
padding: 2ch;
margin: auto;
background-color: #F0F0F0;
min-height: 100%;
}
q:before {
content: open-quote;
}
q:after {
content: close-quote;
}
hr {
background: #e1e4e8;
border: 0;
height: 0.25em;
margin: 1em 0;
}
a {
color: #3C3CA1;
}
a:hover {
color: #8484C6;
}
pre, code {
font-size: 96%;
background: #f8f8f8;
}
pre {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding: 10px 16px;
}
table td {
vertical-align: baseline;
padding-left: 8px;
}
table td:first-of-type {
padding-left: 0;
}
main.article div.header span.time span, div.article span.time span {
color: #888;
font-family: serif;
font-style: italic;
}
main.article div.header a.link-home {
text-decoration: none;
float: right;
line-height: 2.4;
}
main.article div.header h1, main.article div.header h2, div.article h3 {
margin-top: 0.85em;
margin-bottom: 0.25em;
font-size: 1.5em;
}
main.article div.header h1 a, main.article div.header h2 a, div.article h3 a {
text-decoration: none;
}
main.article div.header span.time, div.article span.time {
display: block;
}
#text h1:first-child {
display: none;
}
#text {
text-align: justify;
hyphens: auto;
}
#text li, #text table, #text blockquote {
text-align: left;
}
#text img {
max-width: 100%;
height: auto;
}
.note {
padding: 1em;
background: #ff02;
}
.note > p {
margin: 0.6rem 0;
}
.important {
padding: 1em;
background: #eff5ff;
}
.important > p {
margin: 0.6rem 0;
}
/* Sidenotes */
#text .side > p:nth-child(2n+0) {
font-style: italic;
color: #555;
}
#text .side > p:nth-child(2n+0) > i, #text .side > p:nth-child(2n+0) > em {
font-style: normal;
}