547 lines
9.6 KiB
SCSS
547 lines
9.6 KiB
SCSS
@use "sass:color";
|
|
|
|
@font-face {
|
|
font-family: "site-title";
|
|
src: url("/static/fonts/ChicagoFLF.woff2");
|
|
}
|
|
|
|
@mixin cadman($var) {
|
|
font-family: "Cadman";
|
|
src: url("/static/fonts/Cadman_#{$var}.woff2");
|
|
}
|
|
|
|
@font-face {
|
|
@include cadman("Roman");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
@include cadman("Bold");
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
@include cadman("Italic");
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
@font-face {
|
|
@include cadman("BoldItalic");
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
}
|
|
|
|
$accent_color: #c1ceb1;
|
|
|
|
$dark_bg: color.scale($accent_color, $lightness: -25%, $saturation: -97%);
|
|
$dark2: color.scale($accent_color, $lightness: -30%, $saturation: -60%);
|
|
$verydark: color.scale($accent_color, $lightness: -80%, $saturation: -70%);
|
|
|
|
$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.9em;
|
|
font-family: "Cadman";
|
|
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%);
|
|
}
|
|
|
|
&:disabled {
|
|
background-color: color.scale($color, $lightness: 30%, $saturation: -90%);
|
|
}
|
|
}
|
|
|
|
@mixin navbar($color) {
|
|
padding: 10px;
|
|
display: flex;
|
|
justify-content: end;
|
|
background-color: $color;
|
|
}
|
|
|
|
body {
|
|
font-family: "Cadman";
|
|
// font-size: 18px;
|
|
margin: 20px 100px;
|
|
background-color: $main_bg;
|
|
}
|
|
|
|
.big {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
#topnav {
|
|
@include navbar($accent_color);
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
}
|
|
|
|
#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 {
|
|
font-family: "site-title";
|
|
font-size: 3rem;
|
|
margin: 0 20px;
|
|
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: 70px 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: 20px;
|
|
margin-right: 25%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.post-inner {
|
|
height: 100%;
|
|
}
|
|
|
|
pre code {
|
|
display: block;
|
|
background-color: $verydark;
|
|
font-size: 1rem;
|
|
color: white;
|
|
border-bottom-right-radius: 8px;
|
|
border-bottom-left-radius: 8px;
|
|
border-left: 10px solid $lighter;
|
|
padding: 20px;
|
|
overflow: scroll;
|
|
}
|
|
|
|
.inline-code {
|
|
background-color: $verydark;
|
|
color: white;
|
|
padding: 5px 10px;
|
|
display: inline-block;
|
|
margin: 4px;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#delete-dialog {
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
border: 2px solid black;
|
|
box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.delete-dialog-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.copy-code-container {
|
|
position: sticky;
|
|
// width: 100%;
|
|
width: calc(100% - 4px);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: last baseline;
|
|
font-family: "Cadman";
|
|
border-top-right-radius: 8px;
|
|
border-top-left-radius: 8px;
|
|
background-color: $accent_color;
|
|
border-left: 2px solid black;
|
|
border-right: 2px solid black;
|
|
border-top: 2px solid black;
|
|
|
|
&::before {
|
|
content: "code block";
|
|
font-style: italic;
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
.copy-code {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
blockquote {
|
|
padding: 10px 20px;
|
|
margin: 10px;
|
|
border-radius: 4px;
|
|
border-left: 10px solid $lighter;
|
|
background-color: $dark2;
|
|
}
|
|
|
|
.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"], textarea, select {
|
|
border: 1px solid black;
|
|
border-radius: 3px;
|
|
padding: 7px 10px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
resize: vertical;
|
|
background-color: color.scale($accent_color, $lightness: 40%);
|
|
|
|
&:focus {
|
|
background-color: color.scale($accent_color, $lightness: 60%);
|
|
}
|
|
}
|
|
|
|
.infobox {
|
|
border: 2px solid black;
|
|
background-color: #81a3e6;
|
|
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%;
|
|
}
|
|
|
|
.block-img {
|
|
object-fit: contain;
|
|
max-width: 400px;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.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;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.thread-info-post-preview {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: inline;
|
|
margin-right: 25%;
|
|
}
|
|
|
|
.topic {
|
|
display: grid;
|
|
grid-template-columns: 1.5fr 64px;
|
|
grid-template-rows: 1fr;
|
|
gap: 0px 0px;
|
|
grid-auto-flow: row;
|
|
grid-template-areas:
|
|
"topic-info-container topic-locked-container";
|
|
}
|
|
|
|
.topic-info-container {
|
|
grid-area: topic-info-container;
|
|
background-color: $accent_color;
|
|
padding: 5px 20px;
|
|
border: 1px solid black;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.topic-locked-container {
|
|
grid-area: topic-locked-container;
|
|
border: 2px outset $light;
|
|
}
|
|
|
|
|
|
.draggable-topic {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
background-color: $accent_color;
|
|
padding: 20px;
|
|
margin: 12px 0;
|
|
border-top: 6px outset $light;
|
|
border-bottom: 6px outset $dark2;
|
|
|
|
&.dragged {
|
|
background-color: $button_color;
|
|
}
|
|
}
|
|
|
|
.editing {
|
|
background-color: $light;
|
|
}
|
|
|
|
.context-explain {
|
|
margin: 20px 0;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
.post-edit-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: baseline;
|
|
height: 100%;
|
|
}
|
|
|
|
.babycode-editor {
|
|
height: 150px;
|
|
}
|
|
|
|
|
|
ul, ol {
|
|
margin: 10px 0 10px 30px;
|
|
padding: 0;
|
|
}
|
|
|
|
.new-concept-notification.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.new-concept-notification {
|
|
position: fixed;
|
|
bottom: 80px;
|
|
right: 80px;
|
|
border: 2px solid black;
|
|
background-color: #81a3e6;
|
|
padding: 20px 15px;
|
|
border-radius: 4px;
|
|
box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
|
|
}
|