add: everything else

This commit is contained in:
trisua 2025-03-21 01:38:07 -04:00
parent c982e1dc15
commit 6dff656583
19 changed files with 4955 additions and 0 deletions

760
src/public/css/style.css Normal file
View file

@ -0,0 +1,760 @@
:root {
color-scheme: light dark;
--hue: 16;
--sat: 6%;
--lit: 0%;
--color-surface: hsl(var(--hue), var(--sat), calc(95% - var(--lit)));
--color-lowered: hsl(var(--hue), var(--sat), calc(93% - var(--lit)));
--color-raised: hsl(var(--hue), var(--sat), calc(98% - var(--lit)));
--color-super-lowered: hsl(var(--hue), var(--sat), calc(85% - var(--lit)));
--color-super-raised: hsl(var(--hue), var(--sat), calc(100% - var(--lit)));
--color-text: hsl(0, 0%, 0%);
--color-text-raised: var(--color-text);
--color-text-lowered: var(--color-text);
--color-primary: hsl(330, 18%, 26%);
--color-primary-lowered: hsl(330, 18%, 21%);
--color-text-primary: hsl(0, 0%, 100%);
--color-secondary: hsl(6, 18%, 66%);
--color-secondary-lowered: hsl(6, 18%, 61%);
--color-text-secondary: hsl(0, 0%, 0%);
--color-link: #2949b2;
--color-shadow: rgba(0, 0, 0, 0.08);
--color-red: hsl(0, 84%, 40%);
--color-green: hsl(100, 84%, 20%);
--radius: 6px;
--circle: 360px;
--shadow-x-offset: 0;
--shadow-y-offset: 0.125rem;
--shadow-size: 0.25rem;
}
.dark,
.dark * {
--hue: 266;
--sat: 8%;
--lit: 10%;
--color-surface: hsl(var(--hue), var(--sat), calc(0% + var(--lit)));
--color-lowered: hsl(var(--hue), var(--sat), calc(6% + var(--lit)));
--color-raised: hsl(var(--hue), var(--sat), calc(2% + var(--lit)));
--color-super-lowered: hsl(var(--hue), var(--sat), calc(12% + var(--lit)));
--color-super-raised: hsl(var(--hue), var(--sat), calc(4% + var(--lit)));
--color-text: hsl(0, 0%, 95%);
--color-primary: hsl(331, 18%, 74%);
--color-primary-lowered: hsl(331, 18%, 69%);
--color-text-primary: hsl(0, 0%, 0%);
--color-secondary: hsl(6, 18%, 34%);
--color-secondary-lowered: hsl(6, 18%, 29%);
--color-text-secondary: hsl(0, 0%, 100%);
--color-link: #93c5fd;
--color-red: hsl(0, 94%, 82%);
--color-green: hsl(100, 94%, 82%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
line-height: 1.5;
letter-spacing: 0.15px;
font-family:
"Inter", "Poppins", "Roboto", ui-sans-serif, system-ui, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
color: var(--color-text);
background: var(--color-surface);
overflow: auto auto;
height: 100dvh;
scroll-behavior: smooth;
overflow-x: hidden;
}
main,
article,
nav,
header,
footer {
width: 80ch;
margin: 0 auto;
padding: 0.75rem 1rem;
}
@media screen and (max-width: 900px) {
main,
article,
nav,
header,
footer {
width: 100%;
}
}
.content_container {
margin: 0 auto;
width: 100%;
}
@media screen and (min-width: 500px) {
.content_container {
max-width: 540px;
}
}
@media (min-width: 768px) {
.content_container {
max-width: 720px;
}
}
@media (min-width: 900px) {
.content_container {
max-width: 960px;
}
@media (min-width: 1200px) {
article {
padding: 0;
}
.content_container {
max-width: 1100px;
}
}
}
/* typo */
hr {
border-top: 1px var(--color-super-lowered);
}
p,
li,
span,
code {
max-width: 100%;
overflow-wrap: normal;
text-wrap: pretty;
word-wrap: break-word;
overflow-wrap: anywhere;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-weight: 700;
width: -moz-max-content;
width: max-content;
position: relative;
max-width: 100%;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.75rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.25rem;
}
h5 {
font-size: 1rem;
}
h6 {
font-size: 0.75rem;
}
a {
text-decoration: none;
color: var(--color-link);
}
a:hover {
text-decoration: underline;
}
.text-small {
font-size: 14px;
}
img {
display: inline;
max-width: 100%;
vertical-align: middle;
}
img.cover {
object-fit: cover;
}
img.fill {
object-fit: fill;
}
img.contain {
object-fit: contain;
}
/* avatar */
.avatar {
--size: 50px;
border-radius: calc(var(--radius) / 2);
width: var(--size);
min-width: var(--size);
max-width: var(--size);
height: var(--size);
min-height: var(--size);
max-height: var(--size);
object-fit: cover;
}
/* table */
table {
border-collapse: collapse;
max-width: 100%;
min-width: auto;
overflow: auto;
}
table th {
min-width: max-content;
padding: 6px 8px;
text-align: left;
background: transparent;
border: none;
}
table td {
border-left: var(--color-super-lowered);
padding: 10px;
text-overflow: ellipsis;
overflow: hidden;
overflow-wrap: normal;
word-break: normal;
width: max-content;
}
table td:first-child {
border-left: 0;
}
table tr {
background: var(--color-lowered);
border-bottom: solid 1px var(--color-super-lowered);
}
table tr:nth-child(even) {
background: var(--color-raised);
}
table tr:hover {
background: var(--color-super-raised);
}
table thead tr {
background: transparent;
border-bottom: solid 5px var(--color-super-lowered);
}
table tbody tr td {
padding: 6px 8px;
}
table td:focus-within {
box-shadow: none;
}
table p,
table ul,
table ol {
margin-bottom: 0;
}
/* card */
.card {
padding: 1rem;
background: var(--color-raised);
color: var(--color-text-raised);
box-shadow: var(--shadow-x-offset) var(--shadow-y-offset) var(--shadow-size)
var(--color-shadow);
border-radius: var(--radius);
}
.card.secondary {
background: var(--color-surface);
}
/* buttons */
button,
.button {
outline: none;
border: none;
transition: background 0.15s;
width: max-content;
height: 32px;
padding: 0.25rem 1rem;
border-radius: var(--radius);
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
gap: 0.25rem;
/* personality */
background: var(--color-primary);
color: var(--color-text-primary);
font-weight: 600;
}
button:hover,
.button:hover {
background: var(--color-primary-lowered);
}
button.secondary,
.button.secondary {
background: var(--color-secondary);
color: var(--color-text-secondary);
font-weight: 500;
}
button.secondary:hover,
.button.secondary:hover {
background: var(--color-secondary-lowered);
}
button.camo,
.button.camo {
background: transparent;
color: inherit;
}
button.camo:hover,
.button.camo:hover {
background: var(--color-lowered);
color: var(--color-text-lowered);
}
/* input */
input,
textarea,
select {
padding: 0.35rem 0.75rem;
border-radius: var(--radius);
border: solid 1px var(--color-super-lowered);
outline: none;
transition: background 0.15s;
resize: vertical;
width: 100%;
/* personality */
background: transparent;
color: inherit;
}
input:focus,
textarea:focus,
select:focus {
background: var(--color-super-raised);
color: var(--color-text-raised);
}
/* pillmenu */
.pillmenu {
display: flex;
border-radius: var(--radius);
user-select: none;
box-shadow: var(--shadow-x-offset) var(--shadow-y-offset) var(--shadow-size)
var(--color-shadow);
}
.pillmenu a {
text-decoration: none;
padding: 0.5rem 1rem;
width: 100%;
color: var(--color-text-raised);
background: var(--color-super-raised);
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
flex-wrap: wrap;
position: relative;
}
.pillmenu a span {
z-index: 1;
display: inherit;
gap: inherit;
justify-content: inherit;
align-items: inherit;
flex-wrap: inherit;
text-overflow: ellipsis;
overflow: hidden;
overflow-wrap: break-word;
}
.pillmenu a:hover {
background: var(--color-raised);
}
.pillmenu a.active {
background: var(--color-primary);
color: var(--color-text-primary);
}
.pillmenu a:first-child {
border-top-left-radius: var(--radius);
border-bottom-left-radius: var(--radius);
}
.pillmenu a:last-child {
border-top-right-radius: var(--radius);
border-bottom-right-radius: var(--radius);
}
/* notification */
.notification {
text-decoration: none;
color: black;
background: white;
padding: 0.05rem 0.3rem;
font-size: 12px;
border-radius: 6px;
height: max-content;
}
.notification.tr {
padding: 0.05rem 0.3rem !important;
}
.notification.camo {
background: transparent;
color: inherit;
font-family: inherit;
font-size: 12px;
padding: 0;
}
/* nav */
nav {
background: var(--color-primary);
color: var(--color-text-primary) !important;
color: inherit;
width: 100%;
display: flex;
justify-content: space-between;
color: var(--color-text);
position: sticky;
top: 0;
z-index: 6374;
padding: 0.25rem 0.5rem;
transition: opacity 0.15s;
font-size: 16px;
}
nav .notification {
font-size: 10px;
}
nav .content_container,
footer .content_container {
display: flex;
justify-content: space-between;
align-items: center;
}
nav button:not(.inner *),
nav .button:not(.inner *) {
border-radius: var(--radius);
color: inherit;
padding: 0.75rem 0.75rem;
background: transparent;
text-decoration: none;
position: relative;
height: 48px;
font-weight: 500;
transition:
opacity 0.15s,
transform 0.15s;
}
nav button:not(.inner *):hover,
nav .button:not(.inner *):hover {
background: transparent !important;
outline: none;
opacity: 100%;
}
nav button:not(.title):not(.active),
nav .button:not(.title):not(.active) {
opacity: 75%;
}
nav button:not(.title):not(.active):hover,
nav .button:not(.title):not(.active):hover {
opacity: 100%;
}
@media screen and (max-width: 900px) {
nav {
padding: 0.5rem 0.25rem;
margin-bottom: 0;
backdrop-filter: none;
bottom: 0;
position: absolute;
height: max-content;
top: unset;
}
nav button:not(.dropdown *),
nav .button:not(.dropdown *) {
font-size: 12px;
flex-direction: column;
width: 60px;
height: 48px !important;
gap: 0 !important;
transform: scale(0.9);
padding: 0 !important;
}
nav button.active,
nav .button.active {
animation: grow 1 0.25s 0.1s forwards running;
}
nav button .notification.tr,
nav .button .notification.tr {
font-size: 12px;
position: absolute;
top: 0;
right: 0;
}
nav .button:not(.dropdown *) svg {
width: 1.75em;
height: 1.75em;
}
nav button::before,
nav a::before {
content: unset;
}
nav .nav_side {
display: contents;
}
}
/* utility */
.flex {
display: flex;
}
.flex-col {
flex-direction: column;
}
.flex-rev-col {
flex-direction: column-reverse;
}
.flex-row {
flex-direction: row !important;
}
.flex-rev-row {
flex-direction: row-reverse;
}
.flex-wrap {
flex-wrap: wrap;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.justify-right {
justify-content: right;
}
.justify-start {
justify-content: flex-start;
}
.items-center {
align-items: center;
}
.gap-1 {
gap: 0.25rem;
}
.gap-2 {
gap: 0.5rem;
}
.gap-4 {
gap: 1rem;
}
.gap-8 {
gap: 1.25rem;
}
.mobile {
display: none !important;
}
@media screen and (max-width: 650px) {
.desktop {
display: none !important;
}
.mobile {
display: flex !important;
}
}
@media screen and (max-width: 900px) {
.sm\:static {
position: static !important;
}
.mobile.flex {
display: flex !important;
}
.sm\:w-full {
width: 100% !important;
}
.sm\:mt-2 {
margin-top: 2rem !important;
}
.sm\:items-start {
align-items: flex-start !important;
}
.sm\:contents {
display: contents !important;
}
}
.shadow {
box-shadow: 0 0 8px var(--color-shadow);
}
.shadow-md {
box-shadow: 0 8px 16px var(--color-shadow);
}
.round-sm {
border-radius: calc(var(--radius) / 2) !important;
}
.round {
border-radius: var(--radius) !important;
}
.round-md {
border-radius: calc(var(--radius) * 2) !important;
}
.round-lg {
border-radius: calc(var(--radius) * 4) !important;
}
.w-full {
width: 100% !important;
}
.w-content {
width: max-content !important;
}
.bold {
font-weight: 600;
}
[disabled="fully"] {
opacity: 75%;
pointer-events: visible;
cursor: not-allowed;
user-select: none;
}
.fade,
.CodeMirror-placeholder {
opacity: 75%;
transition: opacity 0.15s;
}
.ff-inherit {
font-family: inherit;
}
.fs-md {
font-size: 12px;
}
[align="center"],
.text-center {
text-align: center;
}
[align="right"],
.text-right {
text-align: right;
}
.red {
color: var(--color-red) !important;
}
.green {
color: var(--color-green) !important;
}
.hidden {
display: none;
}
align {
width: 100%;
display: block;
}
align.center {
text-align: center;
}
align.right {
text-align: right;
}