1. Fix(CSS): Styles improved across all pages. \n 2. Fix(SQL): User authentication correction for demo account with user role.
This commit is contained in:
241
static/dist/css/main.bundle.css
vendored
241
static/dist/css/main.bundle.css
vendored
@@ -33,7 +33,8 @@
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
height: 100vh;
|
||||
/* overflow-y: clip; */
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -46,7 +47,8 @@ body {
|
||||
border: 0;
|
||||
background: linear-gradient(to bottom right, var(--colour-page-background-1), var(--colour-page-background-2)); /* var(--c_purple); */
|
||||
height: 100vh;
|
||||
max-height: 100%;
|
||||
/* max-height: 100vh;
|
||||
overflow-y: clip; */
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -58,13 +60,10 @@ script, link {
|
||||
}
|
||||
|
||||
#pageBody {
|
||||
height: 69vh !important;
|
||||
padding: 1vh;
|
||||
padding-left: 1vw;
|
||||
padding-right: 1vw;
|
||||
margin: 1vh;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
/* height: 69vh !important; */
|
||||
max-height: 79vh;
|
||||
padding: 0 5vw;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
align-content: center;
|
||||
justify-content: flex-start;
|
||||
@@ -74,7 +73,7 @@ script, link {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
position: absolute;
|
||||
width: 98vw;
|
||||
width: 90vw;
|
||||
color: var(--colour-text);
|
||||
}
|
||||
|
||||
@@ -95,19 +94,15 @@ script, link {
|
||||
}
|
||||
#pageBody > .card {
|
||||
height: fit-content;
|
||||
margin: 1vh auto;
|
||||
}
|
||||
#pageBody > .card:first-of-type{
|
||||
margin-top: 0vh;
|
||||
top: 0;
|
||||
margin: 0.5vh auto;
|
||||
}
|
||||
|
||||
/* header image */
|
||||
img.header-logo {
|
||||
max-height: 15vh;
|
||||
max-width: 20vw;
|
||||
max-width: 15vh;
|
||||
cursor: pointer;
|
||||
border-radius: 5vh !important;
|
||||
border-radius: 3vh;
|
||||
}
|
||||
|
||||
/* icon images */
|
||||
@@ -120,19 +115,17 @@ img.header-logo {
|
||||
/* Add a card effect for articles */
|
||||
.card {
|
||||
background-color: var(--colour-text-background);
|
||||
padding: 1vh;
|
||||
padding: 1vh 2.5vw;
|
||||
margin: 1vh;
|
||||
display: flex !important;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
border-radius: 4vh;
|
||||
border-radius: 1.5vh;
|
||||
position: relative;
|
||||
height: fit-content;
|
||||
max-width: 80vw;
|
||||
padding-left: 2.5vw;
|
||||
padding-right: 2.5vw;
|
||||
}
|
||||
|
||||
.header.card {
|
||||
@@ -162,7 +155,7 @@ img.header-logo {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
/* min-width: fit-content; */
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.container > .card:first-of-type {
|
||||
@@ -234,6 +227,19 @@ input.dirty, textarea.dirty, select.dirty {
|
||||
#pageBody > *, button {
|
||||
font-size: min(12px, calc(1vh * 3));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
img.header-logo {
|
||||
border-radius: 3vh;
|
||||
}
|
||||
/*
|
||||
.company-name {
|
||||
font-size: 14px;
|
||||
}
|
||||
*/
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 0.5vh 0.75vh;
|
||||
@@ -242,10 +248,11 @@ input.dirty, textarea.dirty, select.dirty {
|
||||
font-weight: bold;
|
||||
transition: all 0.3s ease;
|
||||
width: fit-content;
|
||||
}
|
||||
.button:not(.is_collapsed) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button.collapsed {
|
||||
.button.is_collapsed {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
}
|
||||
@@ -323,8 +330,6 @@ h5 {
|
||||
display: none;
|
||||
*/
|
||||
position: fixed;
|
||||
top: 15vh;
|
||||
right: 0;
|
||||
width: 100px;
|
||||
/* height: 50%; */
|
||||
background: var(--colour-page-background);
|
||||
@@ -333,36 +338,54 @@ h5 {
|
||||
align-self: right;
|
||||
z-index: 999;
|
||||
}
|
||||
.overlay.expanded {
|
||||
display: block;
|
||||
}
|
||||
.collapsed {
|
||||
.is_collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hamburger menu overlay */
|
||||
#buttonHamburger {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
min-height: 4vh;
|
||||
max-height: 4vh;
|
||||
min-width: 4.5vh;
|
||||
max-width: 4.5vh;
|
||||
z-index: 10;
|
||||
}
|
||||
#buttonHamburger .icon.hamburger {
|
||||
min-height: 3vh;
|
||||
max-height: 3vh;
|
||||
min-width: 3vh;
|
||||
max-width: 3vh;
|
||||
}
|
||||
/*
|
||||
#buttonHamburger:hover {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
*/
|
||||
#overlayHamburger {
|
||||
top: 20vh;
|
||||
right: 0.75vh;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
max-height: 80%;
|
||||
max-height: 60vh;
|
||||
}
|
||||
.hamburger {
|
||||
#overlayHamburger {
|
||||
border: 2px solid var(--border-colour);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.hamburger:first-child {
|
||||
#overlayHamburger:first-child {
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
}
|
||||
.hamburger:last-child {
|
||||
#overlayHamburger:last-child {
|
||||
border-bottom-left-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
}
|
||||
|
||||
.hamburger > * {
|
||||
#overlayHamburger > * {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
@@ -371,25 +394,45 @@ h5 {
|
||||
width: 100%;
|
||||
/* color: var(--colour-text); */
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
font-size: 15px;
|
||||
/* height: 18px; */
|
||||
}
|
||||
.hamburger > :hover {
|
||||
#overlayHamburger > :hover {
|
||||
color: var(--colour-page-background);
|
||||
background-color: var(--colour-primary);
|
||||
}
|
||||
.hamburger > * > * {
|
||||
#overlayHamburger > * > * {
|
||||
width: 100%;
|
||||
/*
|
||||
margin-top: 4.5px;
|
||||
margin-bottom: 4.5px;
|
||||
*/
|
||||
}
|
||||
.hamburger > .container {
|
||||
#overlayHamburger > .container {
|
||||
padding-top: 4.5px;
|
||||
padding-bottom: 4.5px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
#buttonHamburger {
|
||||
min-height: 6vh;
|
||||
max-height: 6vh;
|
||||
min-width: 6.5vh;
|
||||
max-width: 6.5vh;
|
||||
}
|
||||
#buttonHamburger .icon.hamburger {
|
||||
min-height: 5vh;
|
||||
max-height: 5vh;
|
||||
min-width: 5vh;
|
||||
max-width: 5vh;
|
||||
}
|
||||
#overlayHamburger {
|
||||
top: 22vh;
|
||||
width: 100px;
|
||||
/* right: 6.5vh; */
|
||||
}
|
||||
}
|
||||
|
||||
/* Confirm overlay */
|
||||
#overlayConfirm {
|
||||
position: absolute;
|
||||
@@ -410,6 +453,9 @@ h5 {
|
||||
margin-left: 0.5vh;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#formFilters .container {
|
||||
max-width: fit-content;
|
||||
}
|
||||
@@ -435,7 +481,7 @@ tr:not(:last-child) > td {
|
||||
td > table > tbody > tr > td {
|
||||
border: none !important;
|
||||
}
|
||||
th.collapsed, td.collapsed {
|
||||
th.is_collapsed, td.is_collapsed {
|
||||
display: table-cell !important;
|
||||
}
|
||||
td.dirty {
|
||||
@@ -545,6 +591,14 @@ header {
|
||||
align-self: center;
|
||||
display: flex;
|
||||
}
|
||||
.topnav > .container.header-logo {
|
||||
min-width: 15vh;
|
||||
max-width: 15vh;
|
||||
}
|
||||
.topnav > .container.company-name {
|
||||
min-width: calc(100vw - 30vh);
|
||||
max-width: calc(100vw - 30vh);
|
||||
}
|
||||
.topnav select {
|
||||
padding: 1vh;
|
||||
margin: 1vh;
|
||||
@@ -552,23 +606,21 @@ header {
|
||||
border: 2px solid var(--border-colour);
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
.topnav select .collapsed {
|
||||
width: 5vw;
|
||||
}
|
||||
.topnav select .expanded {
|
||||
width: 25vw;
|
||||
}
|
||||
|
||||
.topnav select .is_collapsed {
|
||||
width: 5vw;
|
||||
}
|
||||
.company-name {
|
||||
font-size: min(28px, calc(1vh * 7));
|
||||
}
|
||||
/*
|
||||
@media screen and (max-width: 450px) {
|
||||
.company-name {
|
||||
font-size: min(24px, calc(1vh * 7));
|
||||
font-size: 18px; / * min(24px, calc(1vh * 7)); * /
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
/* Page Filters */
|
||||
#formFilters {
|
||||
width: fit-content;
|
||||
@@ -581,9 +633,9 @@ header {
|
||||
}
|
||||
|
||||
#formFilters .container {
|
||||
max-width: fit-content;
|
||||
}
|
||||
#formFilters .container-input {
|
||||
max-width: fit-content;
|
||||
padding: 0 0.5vh;
|
||||
}
|
||||
#formFilters .container-input:has(.dirty) {
|
||||
@@ -594,12 +646,14 @@ header {
|
||||
width: 10vh;
|
||||
max-width: 10vh;
|
||||
}
|
||||
/*
|
||||
#formFilters .container-input input {
|
||||
height: 1.7vh;
|
||||
}
|
||||
#formFilters .container-input select {
|
||||
height: 2vh;
|
||||
}
|
||||
*/
|
||||
|
||||
#formFilters .container-input.filter.active_only {
|
||||
width: 8vh;
|
||||
@@ -610,17 +664,13 @@ header {
|
||||
#formFilters .container-input.filter.active_only svg.active_only {
|
||||
height: 2vh;
|
||||
fill: var(--colour-text-background);
|
||||
background-color: var(--colour-accent);
|
||||
border: 1px solid var(--colour-accent);
|
||||
background-color: var(--colour-primary);
|
||||
border: 1px solid var(--colour-primary);
|
||||
width: 2vh;
|
||||
border-radius: 0.5vh;
|
||||
}
|
||||
#formFilters .container-input.filter.active_only svg.active_only.is_checked {
|
||||
fill: var(--colour-primary);
|
||||
/*
|
||||
background-color: var(--colour-accent);
|
||||
border: 1px solid var(--colour-accent);
|
||||
*/
|
||||
fill: var(--colour-accent);
|
||||
}
|
||||
#formFilters .container-input.filter.is_not_empty {
|
||||
width: 12vh;
|
||||
@@ -636,7 +686,7 @@ header {
|
||||
border: 2px solid var(--colour-primary);
|
||||
}
|
||||
|
||||
#formFilters button.collapsed {
|
||||
#formFilters button.is_collapsed {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
}
|
||||
@@ -651,35 +701,59 @@ form.filter button.save, form.filter button.button-cancel {
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
#formFilters .container-input select {
|
||||
/* height: 3vh; */
|
||||
}
|
||||
.topnav h1 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
padding: 1vh;
|
||||
padding-left: 1vw;
|
||||
padding-right: 1vw;
|
||||
padding: 1vh 1vw;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
height: 8vh !important;
|
||||
max-height: 5vh;
|
||||
overflow-y: auto;
|
||||
background-color: var(--colour-accent);
|
||||
/*
|
||||
border-top-left-radius: 2.5vh;
|
||||
border-top-right-radius: 2.5vh;
|
||||
*/
|
||||
position: absolute;
|
||||
/* top: 2.5vh; */
|
||||
bottom: 0;
|
||||
width: 98vw;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
.footer {
|
||||
max-height: 8vh;
|
||||
padding: 0 2vw;
|
||||
font-size: 10px;
|
||||
width: 96vw;
|
||||
max-width: 96vw;
|
||||
}
|
||||
.footer > h4 {
|
||||
font-size: 10px;
|
||||
}
|
||||
.footer > h5 {
|
||||
font-size: 9px;
|
||||
}
|
||||
}
|
||||
|
||||
.footer > h4, h5 {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#formFilters {
|
||||
padding: 0.5vh 1vw;
|
||||
margin-top: 1vh;
|
||||
}
|
||||
|
||||
#tableMain {
|
||||
overflow-x: auto;
|
||||
padding: 1vh;
|
||||
max-width: 95vw; /* min(calc(1vh * 80), calc(1vw * 90)); */
|
||||
padding: 1vh 1vw;
|
||||
max-width: 88vw; /* min(calc(1vh * 80), calc(1vw * 90)); */
|
||||
width: min-content;
|
||||
align-items: normal;
|
||||
justify-content: normal;
|
||||
@@ -689,13 +763,21 @@ form.filter button.save, form.filter button.button-cancel {
|
||||
padding: 0.25vh 0.5vh;
|
||||
}
|
||||
|
||||
#tableMain tbody{
|
||||
max-height: 53vh;
|
||||
#tableMain thead {
|
||||
max-height: 4vh;
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
#tableMain tbody {
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
min-width: fit-content;
|
||||
max-width: fit-content;
|
||||
overflow-x: visible;
|
||||
}
|
||||
#tableMain tbody.is_collapsed {
|
||||
display: block;
|
||||
}
|
||||
#tableMain:has(tbody > div) tbody {
|
||||
}
|
||||
#tableMain tbody > div {
|
||||
@@ -710,7 +792,7 @@ form.filter button.save, form.filter button.button-cancel {
|
||||
align-self: center;
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 90vh;
|
||||
width: min(calc(90vh), calc(70vw));
|
||||
}
|
||||
|
||||
#tableMain select,
|
||||
@@ -777,6 +859,23 @@ form.filter button.save, form.filter button.button-cancel {
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 850px) {
|
||||
}
|
||||
@media screen and (max-width: 400px) {
|
||||
#formFilters input[type="text"],
|
||||
#formFilters select {
|
||||
width: 15vh;
|
||||
/* height: 3vh; */
|
||||
}
|
||||
#tableMain {
|
||||
max-height: 60vh;
|
||||
}
|
||||
#tableMain tbody {
|
||||
max-height: 53vh;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user