187 lines
3.5 KiB
SCSS
187 lines
3.5 KiB
SCSS
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
font-weight: normal;
|
|
}
|
|
|
|
body {
|
|
color: var(--color-fg);
|
|
background: var(--color-bg);
|
|
transition: color 0.5s, background-color 0.5s;
|
|
font-family: var(--font--sans-serif);
|
|
font-size: var(--text-base);
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
main {
|
|
padding: 0 1rem;
|
|
margin: 0 auto;
|
|
max-width: var(--page--max-width);
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: var(--color-headings);
|
|
font-weight: bold;
|
|
margin-top: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
h2 {
|
|
border-bottom: 1px solid var(--color-black);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
p {
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-links);
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
}
|
|
|
|
ol, ul {
|
|
li {
|
|
margin-bottom: 0.4rem;
|
|
&:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
ul {
|
|
list-style: disc;
|
|
}
|
|
|
|
hr {
|
|
height: 1px;
|
|
background-color: var(--color-black);
|
|
border: none;
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
code {
|
|
padding: 0.1em 0.3em;
|
|
border-radius: 3px;
|
|
background-color: var(--color-bg--layer-01);
|
|
font-family: var(--font--mono);
|
|
}
|
|
|
|
pre {
|
|
padding: 1rem;
|
|
border-radius: 5px;
|
|
display: block;
|
|
background-color: var(--color-bg--layer-01);
|
|
overflow: auto;
|
|
page-break-inside: avoid;
|
|
word-wrap: break-word;
|
|
font-family: var(--font--mono);
|
|
code {
|
|
padding: 0;
|
|
border-radius: 0;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
.inline {
|
|
display: inline;
|
|
}
|
|
|
|
blockquote {
|
|
position: relative;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--color-black);
|
|
border-left: 3rem solid var(--color-black);
|
|
padding: 1rem;
|
|
margin: 1rem 0;
|
|
&::before {
|
|
position: absolute;
|
|
top: 50%;
|
|
margin-top: -12px;
|
|
left: calc(-0.75rem - 24px);
|
|
content: url("https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/quote.svg");
|
|
}
|
|
&.info {
|
|
&::before {
|
|
content: url("https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/info-circle.svg");
|
|
}
|
|
color: var(--color-blue);
|
|
border-color: var(--color-blue);
|
|
}
|
|
&.success {
|
|
&::before {
|
|
content: url("https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/check.svg");
|
|
}
|
|
color: var(--color-green);
|
|
border-color: var(--color-green);
|
|
}
|
|
&.warning {
|
|
&::before {
|
|
content: url("https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/alert-triangle.svg");
|
|
}
|
|
color: var(--color-warn);
|
|
border-color: var(--color-warn);
|
|
}
|
|
&.danger {
|
|
&::before {
|
|
content: url("https://static.fosterhangdaan.com/icons/tabler-icons/latest/svg/circle-x.svg");
|
|
}
|
|
color: var(--color-error);
|
|
border-color: var(--color-error);
|
|
}
|
|
> p:first-child {
|
|
margin-top: 0;
|
|
}
|
|
> p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
table {
|
|
margin: 0.5rem 0;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--color-black);
|
|
border-spacing: 0;
|
|
thead {
|
|
tr {
|
|
th {
|
|
border-bottom: 2px solid var(--color-black);
|
|
border-right: 1px solid var(--color-black);
|
|
padding: 0.75rem;
|
|
font-weight: bold;
|
|
&:last-child {
|
|
border-right: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tbody {
|
|
tr {
|
|
&:nth-child(odd) {
|
|
background-color: var(--color-table-stripe);
|
|
}
|
|
td {
|
|
border-bottom: 1px solid var(--color-black);
|
|
border-right: 1px solid var(--color-black);
|
|
padding: 0.75rem;
|
|
&:last-child {
|
|
border-right: none;
|
|
}
|
|
}
|
|
&:last-child {
|
|
td {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|