336 lines
5.8 KiB
SCSS
336 lines
5.8 KiB
SCSS
/* src: */
|
|
|
|
@use "sass:color";
|
|
|
|
$accent_color: #c1ceb1;
|
|
|
|
$dark_bg: color.scale($accent_color, $lightness: -25%, $saturation: -97%);
|
|
$dark2: color.scale($accent_color, $lightness: -30%, $saturation: -60%);
|
|
|
|
$light: color.scale($accent_color, $lightness: 40%, $saturation: -60%);
|
|
$lighter: color.scale($accent_color, $lightness: 60%, $saturation: -60%);
|
|
|
|
$main_bg: color.scale($accent_color, $lightness: -10%, $saturation: -40%);
|
|
$button_color: color.adjust($accent_color, $hue: 90);
|
|
|
|
%button-base {
|
|
cursor: default;
|
|
color: black;
|
|
font-size: 0.9rem;
|
|
text-decoration: none;
|
|
border: 1px solid black;
|
|
border-radius: 3px;
|
|
padding: 5px 20px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
@mixin button($color) {
|
|
@extend %button-base;
|
|
background-color: $color;
|
|
|
|
&:hover {
|
|
background-color: color.scale($color, $lightness: 20%);
|
|
}
|
|
|
|
&:active {
|
|
background-color: color.scale($color, $lightness: -10%, $saturation: -70%);
|
|
}
|
|
}
|
|
|
|
@mixin navbar($color) {
|
|
padding: 10px;
|
|
display: flex;
|
|
justify-content: end;
|
|
background-color: $color;
|
|
}
|
|
|
|
body {
|
|
font-family: sans-serif;
|
|
margin: 20px;
|
|
background-color: $main_bg;
|
|
}
|
|
|
|
.big {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
#topnav {
|
|
@include navbar($accent_color);
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
#bottomnav {
|
|
@include navbar($dark_bg);
|
|
}
|
|
|
|
.darkbg {
|
|
padding-bottom: 10px;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
background-color: $dark_bg;
|
|
}
|
|
|
|
.user-actions {
|
|
display: flex;
|
|
column-gap: 15px;
|
|
}
|
|
|
|
.site-title {
|
|
padding-right: 30px;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
.thread-title {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.post {
|
|
display: grid;
|
|
grid-template-columns: 200px 1fr;
|
|
grid-template-rows: 1fr;
|
|
gap: 0;
|
|
grid-auto-flow: row;
|
|
grid-template-areas:
|
|
"usercard post-content-container";
|
|
border: 2px outset $dark2;
|
|
}
|
|
|
|
.usercard {
|
|
grid-area: usercard;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px 10px;
|
|
border: 4px outset $light;
|
|
background-color: $dark_bg;
|
|
border-right: solid 2px;
|
|
}
|
|
|
|
.post-content-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 0.2fr 2.5fr;
|
|
gap: 0px 0px;
|
|
grid-auto-flow: row;
|
|
grid-template-areas:
|
|
"post-info"
|
|
"post-content";
|
|
grid-area: post-content-container;
|
|
}
|
|
|
|
.post-info {
|
|
grid-area: post-info;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 5px 20px;
|
|
align-items: center;
|
|
border-top: 1px solid black;
|
|
border-bottom: 1px solid black;
|
|
}
|
|
|
|
.post-content {
|
|
grid-area: post-content;
|
|
padding: 5px 20px;
|
|
}
|
|
|
|
.user-posts {
|
|
display: grid;
|
|
grid-template-columns: 200px 1fr;
|
|
grid-template-rows: 1fr;
|
|
gap: 0;
|
|
grid-auto-flow: row;
|
|
grid-template-areas:
|
|
"user-page-usercard user-posts-container";
|
|
border: 2px outset $dark2;
|
|
}
|
|
|
|
.user-page-usercard {
|
|
grid-area: user-page-usercard;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px 10px;
|
|
border: 4px outset $light;
|
|
background-color: $dark_bg;
|
|
border-right: solid 2px;
|
|
}
|
|
|
|
.user-posts-container {
|
|
grid-area: user-posts-container;
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 0.2fr 2.5fr;
|
|
gap: 0px 0px;
|
|
grid-auto-flow: row;
|
|
grid-template-areas:
|
|
"post-info"
|
|
"post-content";
|
|
}
|
|
|
|
.avatar {
|
|
width: 90%;
|
|
height: 90%;
|
|
object-fit: contain;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.username-link {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.user-status {
|
|
text-align: center;
|
|
}
|
|
|
|
button, input[type="submit"], .linkbutton {
|
|
display: inline-block;
|
|
@include button($button_color);
|
|
|
|
&.critical {
|
|
color: white;
|
|
@include button(red);
|
|
}
|
|
|
|
&.warn {
|
|
@include button(#fbfb8d);
|
|
}
|
|
}
|
|
|
|
// not sure why this one has to be separate, but if it's included in the rule above everything breaks
|
|
input[type="file"]::file-selector-button {
|
|
@include button($button_color);
|
|
margin: 10px 10px;
|
|
}
|
|
|
|
p {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.pagebutton {
|
|
@include button($button_color);
|
|
padding: 5px 5px;
|
|
margin: 0;
|
|
display: inline-block;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.currentpage {
|
|
@extend %button-base;
|
|
border: none;
|
|
padding: 5px 5px;
|
|
margin: 0;
|
|
display: inline-block;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.modform {
|
|
display: inline;
|
|
}
|
|
|
|
.login-container > * {
|
|
width: 25%;
|
|
margin: auto;
|
|
}
|
|
|
|
.settings-container > * {
|
|
width: 40%;
|
|
margin: auto;
|
|
}
|
|
|
|
.avatar-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px 0;
|
|
}
|
|
|
|
input[type="text"], input[type="password"] {
|
|
border: 1px solid black;
|
|
border-radius: 3px;
|
|
padding: 7px 10px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background-color: $lighter;
|
|
}
|
|
|
|
.infobox {
|
|
border: 2px solid black;
|
|
background-color: $accent_color;
|
|
padding: 20px 15px;
|
|
|
|
&.critical {
|
|
background-color: rgb(237, 129, 129);
|
|
}
|
|
|
|
&.warn {
|
|
background-color: #fbfb8d;
|
|
}
|
|
}
|
|
|
|
.infobox > span {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.infobox-icon-container {
|
|
min-width: 60px;
|
|
padding-right: 15px;
|
|
}
|
|
|
|
.thread {
|
|
display: grid;
|
|
grid-template-columns: 96px 1.6fr 96px;
|
|
grid-template-rows: 1fr;
|
|
gap: 0px 0px;
|
|
grid-auto-flow: row;
|
|
min-height: 96px;
|
|
grid-template-areas:
|
|
"thread-sticky-container thread-info-container thread-locked-container";
|
|
}
|
|
|
|
.thread-sticky-container {
|
|
grid-area: thread-sticky-container;
|
|
border: 2px outset $light;
|
|
}
|
|
|
|
.thread-locked-container {
|
|
grid-area: thread-locked-container;
|
|
border: 2px outset $light;
|
|
}
|
|
|
|
.contain-svg {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.contain-svg > svg {
|
|
height: 50%;
|
|
width: 50%;
|
|
}
|
|
|
|
.thread-info-container {
|
|
grid-area: thread-info-container;
|
|
background-color: $accent_color;
|
|
padding: 5px 20px;
|
|
border-top: 1px solid black;
|
|
border-bottom: 1px solid black;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.thread-info-post-preview {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: inline;
|
|
}
|