Refactored CSS and HTML templates and polished UI (#10), changed JavaScript variable names to camelCase, adjusted filenames and some url parameter names in urlpatterns, and more.
This commit is contained in:
parent
1e32e2b5dd
commit
8599f49857
30 changed files with 401 additions and 403 deletions
|
@ -6,8 +6,8 @@
|
|||
--color: #fafafa;
|
||||
--color-error: rgb(255, 70, 70);
|
||||
/** glass **/
|
||||
--glass-bg-dropDown: #3a3b44ef;
|
||||
--glass-bg-dropDown-hover: #55565efa;
|
||||
--glass-bg-dropdown: #3a3b44ef;
|
||||
--glass-bg-dropdown-hover: #55565efa;
|
||||
--glass-bg-color1: #ffffff31;
|
||||
--glass-bg-color2: #ffffff1a;
|
||||
--glass-bg-hover-color1: #ffffff46;
|
||||
|
@ -16,18 +16,18 @@
|
|||
--glass-border-color: #ffffff77;
|
||||
--glass-bg: linear-gradient(var(--glass-bg-color1), var(--glass-bg-color2));
|
||||
--glass-bg-hover: linear-gradient(var(--glass-bg-hover-color1), var(--glass-bg-hover-color2));
|
||||
--glass-corner-radius: .3rem;
|
||||
--glass-corner-radius: .5rem;
|
||||
/** page background **/
|
||||
--page-background-color1: #131d25;
|
||||
--page-background-color2: #311d30;
|
||||
--page-background: linear-gradient(-190deg, var(--page-background-color1), var(--page-background-color2));
|
||||
/** global message banner **/
|
||||
--bg-globalMessage: linear-gradient(135deg, #4b351c, #411d52, #1c404b);
|
||||
--bg-globalmessage: linear-gradient(135deg, #4b351c, #411d52, #1c404b);
|
||||
}
|
||||
@supports(backdrop-filter: blur(10px)) {
|
||||
:root {
|
||||
--glass-bg-dropDown: #ffffff1a;
|
||||
--glass-bg-dropDown-hover: #ffffff46;
|
||||
--glass-bg-dropdown: #ffffff1a;
|
||||
--glass-bg-dropdown-hover: #ffffff46;
|
||||
--glass-blur: blur(18px);
|
||||
}
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ body {
|
|||
color: var(--color);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.baseLayout {
|
||||
.baselayout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
|
@ -60,7 +60,7 @@ main {
|
|||
width: 100%;
|
||||
margin-top: 5vh;
|
||||
}
|
||||
.userPanel {
|
||||
.userpanel {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
|
@ -69,21 +69,21 @@ main {
|
|||
font-size: 1rem;
|
||||
width: 94%;
|
||||
}
|
||||
.userInfo > span {
|
||||
.userinfo > span {
|
||||
font-size: 1.1rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.userInfo > img {
|
||||
.userinfo > img {
|
||||
vertical-align: middle;
|
||||
width: 1.8rem;
|
||||
height: 1.8rem;
|
||||
margin: .5rem;
|
||||
}
|
||||
.userPanel > .horizontalButtonList {
|
||||
.userpanel > .horizontalbuttonlist {
|
||||
margin-left: auto;
|
||||
margin-right: 0;
|
||||
}
|
||||
.userBalanceWarn {
|
||||
.userbalancewarn {
|
||||
color: var(--color-error);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -95,19 +95,16 @@ main {
|
|||
width: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
main > h1 {
|
||||
margin-top: 0;
|
||||
}
|
||||
.globalMessage {
|
||||
.globalmessage {
|
||||
width: 100vw;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--bg-globalMessage);
|
||||
background: var(--bg-globalmessage);
|
||||
padding: .3rem 0;
|
||||
}
|
||||
.globalMessage div {
|
||||
.globalmessage div {
|
||||
width: 96%;
|
||||
text-align: center;
|
||||
word-break: keep-all;
|
||||
|
@ -115,24 +112,24 @@ main > h1 {
|
|||
box-sizing: border-box;
|
||||
}
|
||||
/* DROP DOWN MENUS */
|
||||
.dropDownMenu {
|
||||
.dropdownmenu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
border-radius: var(--glass-corner-radius);
|
||||
}
|
||||
.dropDownButton {
|
||||
.dropdownbutton {
|
||||
width: fit-content;
|
||||
z-index: 190;
|
||||
box-shadow: none;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.dropDownButton, .dropDownChoice {
|
||||
.dropdownbutton, .dropdownchoice {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.dropDownList {
|
||||
.dropdownlist {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -144,35 +141,35 @@ main > h1 {
|
|||
opacity: 0%;
|
||||
transition: opacity 100ms;
|
||||
}
|
||||
.dropDownChoice {
|
||||
.dropdownchoice {
|
||||
box-shadow: none;
|
||||
border-radius: 0 !important;
|
||||
margin: 0;
|
||||
margin-top: -1px;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
background: var(--glass-bg-dropDown) !important;
|
||||
background: var(--glass-bg-dropdown) !important;
|
||||
backdrop-filter: none !important;
|
||||
}
|
||||
.dropDownChoice:hover {
|
||||
background: var(--glass-bg-dropDown-hover) !important;
|
||||
.dropdownchoice:hover {
|
||||
background: var(--glass-bg-dropdown-hover) !important;
|
||||
}
|
||||
.dropDownList :first-child {
|
||||
.dropdownlist :first-child {
|
||||
border-top-left-radius: var(--glass-corner-radius) !important;
|
||||
border-top-right-radius: var(--glass-corner-radius) !important;
|
||||
}
|
||||
.dropDownList :last-child {
|
||||
.dropdownlist :last-child {
|
||||
border-bottom-left-radius: var(--glass-corner-radius) !important;
|
||||
border-bottom-right-radius: var(--glass-corner-radius) !important;
|
||||
}
|
||||
.dropDownVisible .dropDownList {
|
||||
.dropdownvisible .dropdownlist {
|
||||
opacity: 100%;
|
||||
visibility: visible;
|
||||
pointer-events: visible;
|
||||
}
|
||||
/* FOOTER */
|
||||
.footer {
|
||||
z-index: 990;
|
||||
z-index: 900;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
|
@ -181,6 +178,7 @@ main > h1 {
|
|||
margin-top: auto;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: .3rem;
|
||||
text-align: center;
|
||||
}
|
||||
.footer div {
|
||||
font-size: .95rem;
|
||||
|
@ -236,47 +234,6 @@ th {
|
|||
text-align: left;
|
||||
border-bottom: 1px solid var(--color);
|
||||
}
|
||||
/* FORMS */
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 18rem;
|
||||
height: max-content;
|
||||
}
|
||||
form .row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: .2rem 0;
|
||||
}
|
||||
form .row .column {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
form h1 {
|
||||
font-size: 1.6rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
form {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
form .customNumberInput {
|
||||
width: 100%;
|
||||
}
|
||||
form .statusInfo {
|
||||
margin-top: .5rem;
|
||||
}
|
||||
form .horizontalButtonList {
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
}
|
||||
form .button, form button {
|
||||
font-size: 1rem;
|
||||
}
|
||||
/* BUTTONS & OTHER INPUT ELEMENTS */
|
||||
.button, button {
|
||||
display: flex;
|
||||
|
@ -322,8 +279,8 @@ input[type="text"], input[type="password"], input[type="number"] {
|
|||
border: none;
|
||||
border-radius: var(--glass-corner-radius);
|
||||
}
|
||||
/**** CUSTOM CLASSES ****/
|
||||
.centeringFlex {
|
||||
/**** OTHER CLASSES ****/
|
||||
.centeringflex {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
@ -333,22 +290,25 @@ input[type="text"], input[type="password"], input[type="number"] {
|
|||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
.horizontalButtonList {
|
||||
.horizontalbuttonlist {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.horizontalButtonList > .button, .horizontalButtonList > button, .horizontalButtonList > div {
|
||||
.horizontalbuttonlist > .button, .horizontalbuttonlist > button, .horizontalbuttonlist > div {
|
||||
margin: 0 .5rem;
|
||||
}
|
||||
.errorText {
|
||||
.errortext {
|
||||
margin-top: 1rem;
|
||||
color: var(--color-error);
|
||||
}
|
||||
.nodisplay {
|
||||
display: none !important;
|
||||
}
|
||||
.heading {
|
||||
margin-top: 0;
|
||||
}
|
||||
/* MISC / GENERAL */
|
||||
h1 {
|
||||
text-align: center;
|
||||
|
@ -357,25 +317,25 @@ h1 {
|
|||
/* MOBILE OPTIMIZATIONS */
|
||||
@media only screen and (max-width: 700px) {
|
||||
main {
|
||||
margin-top: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
.globalMessage span {
|
||||
.globalmessage span {
|
||||
width: 90%;
|
||||
}
|
||||
.userPanel {
|
||||
.userpanel {
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
}
|
||||
.userPanel > .horizontalButtonList {
|
||||
.userpanel > .horizontalbuttonlist {
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
margin-top: .5rem;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.userPanel > .horizontalButtonList > .button,
|
||||
.userPanel > .horizontalButtonList > .dropDownMenu {
|
||||
.userpanel > .horizontalbuttonlist > .button,
|
||||
.userpanel > .horizontalbuttonlist > .dropdownmenu {
|
||||
margin: 0.25rem;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue