Moves the site styling and behavior into the bundled themes

This commit is contained in:
BinaryAlley committed 2026-08-29 13:11:30 +03:00
1 parent 3192b9c585
commit a0678bcdc8
27 files changed
+37 -3031

No files matched your search

@@ -1,213 +1,11 @@
:root {
--background-color: #222;
--container-background: #232323;
--border-color-light: #363636;
--border-color-light-medium: #555555;
--border-color-light-high: #777777;
--border-color-dark: #000000;
--border-color-dialog: #1E90FF;
--shadow-color: #000000;
--highlight-color: #383838AA;
--text-foreground: #6DCBFE;
--light-row-background: #28292B;
--dark-row-background: #191E21;
}
html,
body {
margin: 0px;
padding: 0px;
min-height: 100%;
height: 100%;
font-family: 'Arial';
}
body {
font-size: 14px;
background-color: var(--background-color);
color: #6DCBFE;
margin: 0px;
}
* {
box-sizing: border-box;
}
#app {
margin: auto;
min-width: 399px;
min-height: 100vh;
height: 100vh;
background-color: var(--background-color);
}
#page {
border-style: solid;
border-width: 1px;
border-color: var(--border-color-light-high) var(--border-color-dark) var(--border-color-dark) var(--border-color-light-high);
background-color: #222;
min-width: 100%;
min-height: 100%;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
}
main {
position: fixed;
top: 20px;
bottom: 50px;
width: 100%;
overflow-y: auto;
transition: bottom 1s ease, height 1s ease;
}
main.audio-player-not-shown {
bottom: 0;
}
main.audio-player-full-height {
bottom: calc(100% - 22px); /* full height minus menu height */
}
.cotton-candy {
min-height: 100%;
background-image: radial-gradient(ellipse at 10% 90%, #3c2d83 0%, transparent 55%), radial-gradient(ellipse at 90% 90%, #c33c65 0%, transparent 55%), radial-gradient(ellipse at 90% 10%, #4a74dc 0%, transparent 55%), radial-gradient(ellipse at 10% 10%, #35244f 0%, transparent 55%);
}
.audio-player-container {
position: fixed;
bottom: 0;
width: 100%;
height: 50px;
transition: height 1s ease;
}
.audio-player-container.not-shown {
height: 0px;
}
.audio-player-container.full-height {
height: calc(100% - 22px); /* full height minus menu height */
}
#modal-background-menu {
display: none;
z-index: 998;
position: absolute;
top: 0px;
left: 0px;
min-width: 100%;
min-height: 22px;
background-color: #000000;
opacity: 0.6;
}
#modal-background-article {
display: none;
z-index: 998;
position: fixed;
top: 0px;
left: 0px;
min-width: 100%;
min-height: 100%;
background-color: #000000;
opacity: 0.6;
}
.above-modal {
z-index: 999;
}
.shine-effect {
position: relative;
top: -11px;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(to right, transparent, #fff, transparent);
z-index: 1;
}
.shadow-effect {
box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.5);
}
.enlightenment-panel {
border-radius: 5px;
background: linear-gradient(135deg, #404040, var(--container-background));
border-top: 1px solid #505050;
border-left: 1px solid #505050;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
padding: 10px;
}
.container-background {
background-color: var(--container-background);
}
.panel {
background-color: #00000033;
border-radius: 5px;
padding: 10px;
}
.media-panel {
border-radius: 5px;
background-color: #00000033;
width: 300px;
height: 200px;
display: flex;
flex-direction: column;
gap: 0.2rem;
cursor: pointer;
user-select: none;
}
.media-panel:hover {
background-color: #00000066;
}
.media-panel img {
width: 100%;
flex-grow: 1;
}
.media-panel span {
height: 26px;
display: flex;
align-items: center;
justify-content: center;
}
#audio-player-full-height-toggle, #audio-player-close {
cursor: pointer;
}
.text-light-one {
color: #6DCBFE;
}
.text-light-two {
color: #FFFFFF;
}
.text-light-three {
color: #FFD764;
}
.text-disabled {
color: #777777;
}
.invalid-feedback {
margin-top: 0.25rem;
font-size: 0.875em;
color: #FF0000;
}
.transparent {
background-color: transparent !important;
}
@@ -219,163 +17,6 @@ main {
.no-underline {
text-decoration: none !important;
}
.cards-container {
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 0.5rem;
}
.form-container {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.form-row {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 0.5rem;
}
.form-row-align-start {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
gap: 0.5rem;
}
.form-label {
flex: 2 0 27%;
min-width: 200px;
display: flex;
align-items: center;
}
.form-field {
flex: 0 0 70%;
min-width: 0;
}
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="datetime"],
.form-field input[type="datetime-local"],
.form-field textarea,
.form-field input[type="password"] {
width: 100%;
}
.form-table {
max-height: 150px;
overflow-y: auto;
}
.form-table > div:nth-child(even) {
background-color: var(--dark-row-background);
}
.form-table > div:nth-child(odd) {
background-color: var(--light-row-background);
}
.form-description {
margin-left: 25px;
}
.invalid-feedback {
flex: 0 0 100%;
}
.mandatory-field {
color: red;
}
.engraved-title {
margin: 0px;
font-size: 3rem;
background-color: var(--shadow-color);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
text-shadow: var(--highlight-color) 2px 2px 2px;
}
.inset-panel {
border-top: #000 1px solid;
border-left: #000 1px solid;
border-right: #777 1px solid;
border-bottom: #999 1px solid;
}
.engraved-panel {
background-color: #00000033;
border-radius: 5px;
min-height: 70px;
padding: 10px;
-webkit-box-shadow: 0 0 7px 0px var(--shadow-color) inset;
-moz-box-shadow: 0 0 7px 0px var(--shadow-color) inset;
box-shadow: 0 0 7px 0px var(--shadow-color) inset;
flex: 0 0 70%;
}
.form-table-row {
padding: 3px 8px;
gap: 8px;
width: 100%;
display: flex;
align-items: center;
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-bottom: 1px solid var(--border-color-dark);
border-right: 1px solid var(--border-color-dark);
}
.form-table-row span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
min-width: 0;
}
.remove-form-table-row-icon {
width: 15px;
flex-shrink: 0;
cursor: pointer;
}
.add-form-table-row-icon {
width: 15px;
cursor: pointer;
}
table {
border-spacing: 0px;
width: 100%;
}
th, td {
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-bottom: 1px solid var(--border-color-dark);
border-right: 1px solid var(--border-color-dark);
padding: 3px 8px;
}
tr:nth-child(even) {
background-color: var(--dark-row-background);
}
tr:nth-child(odd) {
background-color: var(--light-row-background);
}
/* Margins */
.mt-0 {
margin-top: 0px;
@@ -552,7 +193,6 @@ th, td {
.ml-10 {
margin-left: 10px;
}
/* Paddings */
.pt-0 {
padding-top: 0px;
@@ -729,7 +369,6 @@ th, td {
.pl-10 {
padding-left: 10px;
}
/* Widths (1 to 10, then 5 by 5 until 100) */
.w-0px {
width: 0px;
@@ -1252,7 +891,6 @@ th, td {
.w-100 {
width: 100%;
}
/* Heights (1 to 10, then 5 by 5 until 100) */
.h-1 {
height: 1%;
@@ -1365,7 +1003,6 @@ th, td {
.h-100 {
height: 100%;
}
.f-8 {
font-size: 8px !important;
}
@@ -1409,7 +1046,6 @@ th, td {
.f-24 {
font-size: 24px !important;
}
.bold {
font-weight: bold;
}
@@ -1433,7 +1069,6 @@ th, td {
.inline-block {
display: inline-block !important;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
@@ -1487,37 +1122,3 @@ th, td {
.h-align-r {
margin-left: auto !important;
}
.alpha-picker {
display: flex;
flex-direction: column;
gap: 0.1rem;
overflow-y: auto;
}
.alpha-key {
padding: 0 0.6rem;
cursor: pointer;
text-align: center;
user-select: none;
}
.alpha-key:hover,
.alpha-key.alpha-key-active {
background-color: #00000066;
}
/* For phones */
@media only screen and (max-width: 768px) {
main {
top: 0px;
}
#app {
max-width: 100%;
width: 99.5%;
}
}
/* For desktop: */
@media only screen and (min-width: 768px) {
}