JOL/assets/css/main.css

247 lines
3.6 KiB
CSS
Raw Permalink Normal View History

@charset "UTF-8";
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
font-size: 1rem;
line-height: 1.54;
color: var(--color);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%;
}
@media (max-width: 683px) {
body {
font-size: 1rem;
}
}
.bg {
background: radial-gradient(at right top, #F68EF0, #74B9DF);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
min-height: 100vh;
min-height: 100dvh;
z-index: -1;
}
h1, h2, h3, h4, h5, h6 {
display: flex;
align-items: center;
font-weight: bold;
line-height: 1.3;
}
h1 {
font-size: 1.4rem;
}
h2 {
font-size: 1.3rem;
}
h3 {
font-size: 1.2rem;
}
h4, h5, h6 {
font-size: 1.15rem;
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
}
img.left {
margin-right: auto;
}
img.center {
margin-left: auto;
margin-right: auto;
}
img.right {
margin-left: auto;
}
p {
margin-bottom: 20px;
}
figure {
display: table;
max-width: 100%;
margin: 25px 0;
}
figure.left, figure img {
margin-right: auto;
}
figure.center, figure img {
margin-left: auto;
margin-right: auto;
}
figure.right, figure img {
margin-left: auto;
}
figure figcaption {
font-size: 14px;
padding: 5px 10px;
margin-top: 5px;
background: var(--accent);
color: var(--background);
}
figure figcaption.left {
text-align: left;
}
figure figcaption.center {
text-align: center;
}
figure figcaption.right {
text-align: right;
}
code {
font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
font-feature-settings: normal;
background: var(--accent-alpha-20);
padding: 1px 6px;
margin: 0 2px;
font-size: 0.95rem;
}
pre {
font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace;
padding: 20px;
font-size: 0.95rem;
overflow: auto;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 683px) {
pre {
white-space: pre-wrap;
word-wrap: break-word;
}
}
pre code {
padding: 0;
margin: 0;
background: none;
}
blockquote {
border-top: 1px solid var(--accent);
border-bottom: 1px solid var(--accent);
margin: 40px 0;
padding: 25px;
}
@media (max-width: 683px) {
blockquote {
padding-right: 0;
}
}
blockquote:before {
content: "”";
font-family: Georgia, serif;
font-size: 3.875rem;
position: absolute;
left: -40px;
top: -20px;
}
blockquote p:first-of-type {
margin-top: 0;
}
blockquote p:last-of-type {
margin-bottom: 0;
}
blockquote p {
position: relative;
}
blockquote p:before {
content: ">";
display: block;
position: absolute;
left: -25px;
color: var(--accent);
}
table {
table-layout: fixed;
border-collapse: collapse;
width: 100%;
margin: 40px 0;
}
table, th, td {
border: 1px dashed var(--accent);
padding: 10px;
}
th {
color: var(--accent);
}
ul, ol {
margin-left: 30px;
padding: 0;
}
ul li, ol li {
position: relative;
}
@media (max-width: 683px) {
ul, ol {
margin-left: 20px;
}
}
ol ol {
list-style-type: lower-alpha;
}
.container {
display: flex;
flex-direction: column;
padding: 40px;
max-width: 864px;
margin: 2em auto;
background: rgba(0, 0, 0, 0.4);
}
@media (max-width: 683px) {
.container {
padding: 20px;
margin: 0 auto;
}
}
.content {
display: flex;
}
hr {
width: 100%;
border: none;
background: var(--border-color);
height: 1px;
}
.hidden {
display: none;
}