mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
157 lines
2.7 KiB
SCSS
157 lines
2.7 KiB
SCSS
.article-content {
|
|
& p,
|
|
& em,
|
|
& q {
|
|
line-height: var(--line-height-base);
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
& ul {
|
|
padding-left: 1.5rem;
|
|
line-height: var(--line-height-base);
|
|
margin-bottom: 1.5rem;
|
|
margin-top: 0;
|
|
& li {
|
|
font-size: var(--font-size-lg);
|
|
line-height: var(--line-height-base);
|
|
margin-bottom: 0.5rem;
|
|
padding-left: 0.25rem;
|
|
}
|
|
}
|
|
|
|
& q {
|
|
font-style: italic;
|
|
quotes: "«" "»";
|
|
}
|
|
|
|
& h1,
|
|
& h2,
|
|
& h3,
|
|
& h4 {
|
|
margin-top: 3rem;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.35rem;
|
|
}
|
|
|
|
& h1:not(:first-child),
|
|
& h2:not(:first-child),
|
|
& h3:not(:first-child),
|
|
& h4:not(:first-child) {
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
& h2 {
|
|
font-size: var(--font-size-2xl);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
& h3 {
|
|
font-size: var(--font-size-xl);
|
|
}
|
|
|
|
& h4 {
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
& a {
|
|
color: var(--font-color);
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--color-blue-500);
|
|
text-underline-offset: 2.2px;
|
|
text-decoration-thickness: 2px;
|
|
font-weight: 500;
|
|
&:hover {
|
|
color: var(--color-blue-500);
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
}
|
|
|
|
& figure {
|
|
margin: 0 0 1em;
|
|
}
|
|
|
|
& hr {
|
|
background-color: var(--border-color);
|
|
margin: 40px 0;
|
|
border: none;
|
|
height: 1px;
|
|
}
|
|
|
|
& pre {
|
|
font-size: var(--font-size-sm);
|
|
border-radius: var(--border-radius-md);
|
|
}
|
|
|
|
& :not(pre) > code {
|
|
-webkit-font-smoothing: subpixel-antialiased;
|
|
background: var(--background-inline-code);
|
|
border-radius: var(--border-radius-lg);
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
padding: 0.2rem 0.3rem;
|
|
}
|
|
|
|
& figcaption {
|
|
font-style: italic;
|
|
font-size: 1em;
|
|
text-align: center;
|
|
margin: 0.7rem 0;
|
|
}
|
|
|
|
& img {
|
|
display: block;
|
|
border-radius: var(--border-radius-md);
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
& .table-wrapper {
|
|
overflow-x: auto;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
& table {
|
|
display: table;
|
|
border-radius: var(--border-radius-md);
|
|
min-width: 100%;
|
|
font-size: var(--font-size-md);
|
|
border: 1px solid var(--border-color);
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin: 5px 0;
|
|
& thead th {
|
|
background-color: var(--background-card);
|
|
border-top-left-radius: var(--border-radius-md);
|
|
border-top-right-radius: var(--border-radius-md);
|
|
}
|
|
& td,
|
|
th {
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding: 0.5rem;
|
|
text-align: left;
|
|
}
|
|
& tbody tr:last-child td {
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
& li {
|
|
list-style: disc;
|
|
& li {
|
|
list-style-type: circle;
|
|
}
|
|
&::marker {
|
|
color: var(--color-blue-500);
|
|
font-size: 1.3rem;
|
|
line-height: var(--line-height-none);
|
|
}
|
|
}
|
|
|
|
& blockquote {
|
|
margin: 1.5rem 0;
|
|
font-style: italic;
|
|
border-left: 0.25rem solid var(--border-color);
|
|
padding-left: 1rem;
|
|
}
|
|
}
|