old-website/static/sass/styles.sass

223 lines
4 KiB
Sass
Raw Permalink Normal View History

2023-06-18 18:06:01 +00:00
$dark: #261f1b
$light: #f0e7e4
$accent: #f2672c
$radius: 2px
2023-09-08 13:08:29 +00:00
$font: 'Zodiak-Variable', sans-serif
2023-06-18 18:06:01 +00:00
$font-mono: 'IBM Plex Mono', monospace
@import "styles/navigation"
@import "styles/footer"
@import "styles/markdown"
@import "styles/table"
@import "styles/art-block"
@import "styles/button-array"
2023-07-21 12:25:33 +00:00
@import "styles/back-button"
2023-06-18 18:06:01 +00:00
*
font-family: $font
box-sizing: border-box
-ms-overflow-style: none // for Internet Explorer, Edge
scrollbar-width: none // for Firefox
&::-webkit-scrollbar
display: none // for Chrome, Safari, and Opera
html
font-size: 1rem
background-color: $light
2023-07-21 12:25:33 +00:00
color: $dark
transition: background 0.1s ease-in-out
@media (prefers-color-scheme: dark)
html
background-color: $dark
color: $light
2023-06-18 18:06:01 +00:00
body
margin: 0
padding: 0
min-height: 100vh
display: flex
flex-direction: column
.scroll
height: 0.3rem
position: fixed
bottom: 0
left: 0
background: $accent
z-index: 4
header
width: 100%
height: 20rem
position: relative
display: flex
flex-direction: column
justify-content: center
align-items: center
background-color: $dark
color: $light
2023-07-21 12:25:33 +00:00
2023-06-18 18:06:01 +00:00
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2)
overflow: hidden
2023-07-21 12:25:33 +00:00
z-index: 2
2023-06-18 18:06:01 +00:00
img
width: 100%
height: 100%
position: absolute
2023-07-21 12:25:33 +00:00
top: 0
left: 0
2023-06-18 18:06:01 +00:00
object-fit: cover
h1
margin: 0 0 0.5rem 0
padding: 0 1rem
position: relative
font-size: 4rem
text-align: center
background: inherit
color: inherit
border-radius: $radius
z-index: +1
p
margin: 0
padding: 0.3rem 1rem
position: relative
text-align: center
background: inherit
color: inherit
border-radius: $radius
z-index: +1
@media (max-width: 900px)
header
height: 13rem
h1
font-size: 3rem
main
margin: 0 auto
padding: 1rem 1rem 0 1rem
font-size: 1.1rem
flex-grow: 1
width: 100%
max-width: 900px
height: 100%
img
max-width: 100%
object-fit: cover
border-radius: $radius
h1
margin: 0 0 0.5rem 0
2023-07-21 12:25:33 +00:00
position: relative
2023-09-08 13:08:29 +00:00
font-size: 3rem
2023-06-18 18:06:01 +00:00
color: $accent
2023-07-21 12:25:33 +00:00
overflow: hidden
opacity: 0
span
position: absolute
transition: transform 0.5s cubic-bezier(.18,.89,.32,1.28)
2023-06-18 18:06:01 +00:00
a
color: $accent
text-decoration: none
2023-07-21 12:25:33 +00:00
&:hover, &:focus-visible
2023-06-18 18:06:01 +00:00
text-decoration: underline
2023-07-21 12:25:33 +00:00
outline: 0 solid transparent
2023-06-18 18:06:01 +00:00
.article
margin: 0 0 0.5rem 0
display: flex
justify-content: space-between
align-items: baseline
position: relative
text-decoration: none
h2
margin: 0 0.5rem 0.2rem 0
padding-right: 0.75rem
font-size: 1.69rem
white-space: nowrap
text-overflow: ellipsis
2023-07-21 12:25:33 +00:00
background: $light
color: $dark
2023-06-18 18:06:01 +00:00
overflow: hidden
transition: color 0.1s ease-in-out
z-index: +1
p
margin: 0
padding-left: 0.75rem
font-size: 1rem
white-space: nowrap
2023-07-21 12:25:33 +00:00
background: $light
color: $dark
2023-06-18 18:06:01 +00:00
transition: color 0.1s ease-in-out
z-index: +1
&::after
content: ""
width: 100%
display: block
position: absolute
top: 50%
left: 0
border-top: 1px $dark dotted
opacity: 0.5
transition: background 0.1s ease-in-out
&:hover
text-decoration: none
2023-07-21 12:25:33 +00:00
h2, p
color: $accent
@media (prefers-color-scheme: dark)
.article
h2
background: $dark
color: $light
p
background: $dark
color: $light
&::after
border-top: 1px $light dotted
2023-06-18 18:06:01 +00:00
@media (max-width: 600px)
.article
h2
font-size: 1.4rem
@media (max-width: 400px)
.article
h2
font-size: 1.1rem