2024-08-28 20:29:34 +02:00
/* Copyright (c) 2024 Julian Müller (ChaoticByte) */
2025-07-11 22:39:47 +02:00
: root {
--color-text : black ;
--color-footer : # 00000080 ;
--color-search-box-placeholder : # 00000060 ;
--color-search-box-border : # 00000040 ;
--background : # dfd4d0 ;
--font-family : sans-serif ;
}
2024-08-27 11:55:01 +02:00
body {
display : flex ;
2024-08-27 14:02:49 +02:00
flex-direction : column ;
2025-07-11 22:39:47 +02:00
margin : 0 ;
padding : 0 ;
2024-08-29 13:10:23 +02:00
min-height : 100vh ;
2025-07-11 22:39:47 +02:00
font-family : var ( --font-family ) ;
background : var ( --background ) ;
2024-08-27 11:55:01 +02:00
}
2024-08-28 19:49:23 +02:00
a : hover , a : focus { text-decoration : underline ; }
2024-08-27 11:55:01 +02:00
a {
2025-07-11 22:39:47 +02:00
color : var ( --color-text ) ;
2024-08-27 11:55:01 +02:00
text-decoration : none ;
2024-08-28 19:49:23 +02:00
outline : none ;
2024-08-27 11:55:01 +02:00
}
2024-08-29 13:10:23 +02:00
footer {
display : flex ;
flex-wrap : wrap ;
2025-07-11 22:39:47 +02:00
margin-top : auto ;
box-sizing : border-box ;
padding : 1rem ;
2024-08-29 13:10:23 +02:00
}
footer > div {
margin : 0 . 5rem ;
}
footer , footer * {
2025-07-11 22:39:47 +02:00
color : var ( --color-footer ) ! important ;
2024-08-29 13:10:23 +02:00
font-size : . 9rem ;
2024-08-27 11:55:01 +02:00
}
. main > h1 {
font-size : 1 . 4rem ;
2025-07-11 22:39:47 +02:00
margin-top : . 6rem ;
margin-bottom : 1 . 5rem ;
}
. main > h1 , . content {
max-width : 42rem ;
2024-08-27 11:55:01 +02:00
}
. content { white-space : pre-line ; }
2025-07-11 22:39:47 +02:00
. home-main , . main {
2024-08-27 14:02:49 +02:00
padding : 2rem ;
2024-08-28 19:49:23 +02:00
box-sizing : border-box ;
2025-07-11 22:39:47 +02:00
}
. home-main {
width : fit-content ;
min-width : 30rem ;
2024-08-28 19:49:23 +02:00
gap : 1rem ;
}
2024-08-29 13:29:39 +02:00
. about {
margin-bottom : 2rem ;
}
. about > h1 {
2024-08-29 13:10:23 +02:00
font-size : 1 . 6rem ;
2025-07-11 22:39:47 +02:00
margin-top : . 4rem ;
margin-bottom : 1 . 5rem ;
2024-08-29 13:10:23 +02:00
}
2024-08-29 13:29:39 +02:00
. description {
white-space : pre-line ;
}
2024-08-28 19:49:23 +02:00
. home-main , . toc , # search-results {
display : flex ;
flex-direction : column ;
}
. toc , # search-results , # search-box { padding : 0 .2 rem ; }
. toc , # search-results { gap : .2 rem ; }
# search-box {
2024-08-27 14:02:49 +02:00
width : 100 % ;
2025-07-11 22:39:47 +02:00
height : 2rem ;
2024-08-28 19:49:23 +02:00
border : none ;
outline : none ;
2025-07-11 22:39:47 +02:00
border-bottom : 1px solid var ( --color-search-box-border ) ;
background : transparent ;
2024-08-28 19:49:23 +02:00
font-size : 1rem ;
}
2025-07-11 22:39:47 +02:00
# search-box :: placeholder {
color : var ( --color-search-box-placeholder ) ;
}
# search-box : not ( : placeholder-shown ) , # search-box : active , # search-box : focus , # search-box : hover {
border-bottom : 1px solid var ( --color-text ) ;
2024-08-27 14:02:49 +02:00
}
2024-08-28 19:49:23 +02:00
. hidden { display : none !important ; }
2024-08-27 11:55:01 +02:00
@ media only screen and ( max-width : 750px ) {
. main > h1 , . content {
2025-07-11 22:39:47 +02:00
width : 100 % ;
2024-08-27 11:55:01 +02:00
max-width : unset ;
}
}