Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
3.0 KiB

2 years ago
@import "syntax.scss"
@import "stork.sass"
2 years ago
@import "soudan.sass"
2 years ago
@import "_theme.sass"
2 years ago
@import "_topography.sass"
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Roboto+Slab&family=Roboto:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap');
$padding: 1rem
2 years ago
$shadow-size: 4px
2 years ago
html
color: $fg
font-family: 'Roboto', sans-serif
font-size: 1.2em
line-height: 1.75
background-color: #2d353b
background-image: $topography;
background-attachment: fixed
body
margin: 0
header
& > *
margin: 0
.site-header
display: flex
gap: 1em
align-items: center
color: inherit
text-decoration: none
h1
margin-bottom: -0.375em
img
height: 5em
border-radius: 0.5em
border: 2px solid $primary
2 years ago
h1, h2, h3, h4, h5, h6
font-family: 'Roboto Slab', sans-serif
&:first-child
margin-top: 0
2 years ago
.content
width: 80ch
max-width: 100%;
margin: 2em auto;
.page
padding: $padding
background: $bg1
pre
padding: 1em
overflow-x: scroll
div
&.highlight
position: relative
&:not([data-lang="text"])::before
background: $shadow
z-index: 1
content: attr(data-lang)
position: absolute
right: 0
top: 0
padding: 0.25em
padding-left: 2em
clip-path: polygon(0 0, 100% 0, 100% 100%, 2em 100%)
div.highlight::before, code, kbd
font-family: 'Fira Code', monospace
*:not(pre) > code, kbd
background: $bg0
padding: 0 0.5em
a
color: $primary
&:not(:hover)
text-decoration: none
2 years ago
pre, .page
box-shadow: $shadow-size $shadow-size $shadow
2 years ago
img, button, input[type=submit], iframe
2 years ago
max-width: 100%
2 years ago
box-shadow: $shadow-size $shadow-size $bg0
2 years ago
border: 2px solid $bg0
2 years ago
iframe
display: block
margin: auto
2 years ago
header
h2
margin: 0
blockquote
margin: 0
padding-left: 1em
border-left: 2px solid $primary
hr
border: 1px solid $dim
nav
$margin: 1em
margin: -$padding
display: flex
background: $bg2
font-weight: 300
justify-content: center
user-select: none
&:first-of-type
margin-bottom: $margin
&:last-of-type
margin-top: $margin
& > :nth-child(2)
margin-right: auto
& > :nth-last-child(2)
margin-left: auto
& > *
padding: 2px 0.375em 0
border-bottom: 2px solid transparent
text-decoration: none !important
& > svg
height: 1em
vertical-align: middle
margin-bottom: 0.225em
& > a
&:hover
border-color: $primary
.disabled, footer
color: $dim
footer
2 years ago
margin-top: 2em
2 years ago
text-align: center
2 years ago
button, input[type=submit]
border: none
cursor: pointer
background: $dim
color: $fg
padding: 0.125em 0.5em
&:active
box-shadow: none;
transform: translate($shadow-size, $shadow-size)
form
display: flex
flex-direction: column
gap: 0.5em
textarea, input
font-size: inherit
font-family: inherit
color: inherit
textarea, input[type=text], input[type=email], input[type=number]
border: none
background: $bg0
padding: 0.5em
&:focus
outline: 1px solid $primary
textarea
resize: vertical