scribe/src/css/app.css

130 lines
1.7 KiB
CSS

@import "~tufte-css/tufte.css";
p.meta {
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 1.2rem;
line-height: 1;
}
pre {
background-color: rgba(127, 127, 127, 0.1);
margin-right: 1em;
padding: 1em;
padding-left: 2em;
overflow-x: scroll;
}
pre > code {
margin-left: 0;
width: 100%;
}
@media (max-width: 760px) {
pre {
margin-right: 0;
}
}
figure iframe {
max-width: 100%;
}
.highlight {
background: rgba(17, 17, 17, 0.3);
}
@media (prefers-color-scheme: dark) {
.highlight {
background: rgba(221, 221, 221, 0.3);
}
}
footer p span {
margin-right: 1em;
}
pre {
background-color: rgba(127, 127, 127, 0.1);
padding: 1em;
overflow-x: scroll;
width: 100%;
}
/**
* BlackLight's mods
*/
body {
background-color: white;
padding-left: 0;
font-family: -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Open Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
text-rendering: optimizeLegibility;
}
article {
padding: 0 !important;
}
section p:first-child {
font-size: 1.5em;
opacity: 0.6;
font-weight: 300;
}
section p:not(:first-child),
section h2,
section ul,
section ol {
font-family: Avenir, Palatino, charter, Georgia, Cambria, "Times New Roman", Times, serif;
}
section > p,
section > ul,
section > ol {
margin: 0 auto;
}
section figure {
margin: 1em auto;
}
section > p,
section > ul,
section > ol,
pre,
code {
width: auto;
max-width: 37.5em;
}
section > ul,
section > ol {
margin: 2em auto;
}
section h2,
section h3 {
margin: 1.5em auto;
text-align: center;
}
pre {
overflow: hidden;
}
pre,
code {
margin: 1.5em auto;
padding-bottom: 0;
}
code {
margin: 0 !important;
width: auto !important;
}
h1, .meta {
text-align: center;
}