feat: Begins vendor views

This commit is contained in:
2025-01-15 16:37:18 -05:00
parent 24570e7191
commit 6f2e87e886
13 changed files with 199 additions and 301 deletions

View File

@@ -1,3 +1,11 @@
:root {
--primary: #ff66ff;
--secondary: #00ffcc;
--dark-bg: #14141f;
--bg: #1e1e2e;
--hover-bg: #444;
}
* {
margin: 0;
padding: 0;
@@ -5,10 +13,13 @@
}
body {
background-color: #1e1e2e;
color: #ff66ff;
background-color: var(--bg);
color: var(--primary);
}
p { font-size: 1.25em; }
h1 { font-size: 2.5em; }
.container {
margin: 0 auto;
padding: 0 20px;
@@ -16,13 +27,39 @@ body {
}
header {
background-color: #14141f;
color: #ff66ff;
background-color: var(--dark-bg);
color: var(--primary);
padding: 10px 0;
height: 60px;
border-bottom: 1px solid grey;
}
.primary {
color: var(--primary);
}
.secondary {
color: var(--secondary);
}
.btn-secondary {
font-size: 1.25em;
background-color: var(--primary);
color: var(--secondary);
border: 1px solid var(--secondary);
padding: 10px 20px;
border-radius: 10px;
}
.btn-primary {
font-size: 1.25em;
background-color: var(--secondary);
color: var(--primary);
border: 1px solid var(--primary);
padding: 10px 20px;
border-radius: 10px;
}
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
@@ -51,10 +88,7 @@ header {
float: left;
font-size: 1.5em;
margin-top: 10px;
}
.content {
padding: 50px 0;
margin-left: 10px;
}
form {
@@ -63,43 +97,14 @@ form {
text-align: center;
}
form label {
padding: 15px;
}
form input {
margin-bottom: 15px;
width: 100%;
}
.login-form {
padding: 50px 0;
text-align: center;
}
.login-form label {
padding: 15px;
}
.login-form input {
margin-bottom: 15px;
}
.user-form, .employee-form {
padding: 80px;
width: 100%;
}
.user-form input {
width: 100%;
}
.employee-form input {
#user-form input {
width: 100%;
margin: 20px;
}
table {
width: 100%;
font-size: 1.25em;
}
table, th, td {
@@ -112,7 +117,7 @@ td, th {
}
table th {
color: #00ffcc;
color: var(--secondary);
}
input[type=submit] {
@@ -147,31 +152,6 @@ input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
outline: none;
}
.btn {
cursor: pointer;
}
.btn-edit img {
position: fixed;
right: 30px;
width: 30px;
height: 30px;
}
.btn img:hover {
background-color: #555;
}
.btn-delete img {
width: 20px;
height: 20px;
margin-top: 5px;
}
.btn-delete img:hover {
background-color: #555;
}
.toggle, .toggle img {
background-color: inherit;
width: 60px;
@@ -182,16 +162,10 @@ a.toggle, a img.toggle {
cursor: pointer;
}
.toggle img:hover {
background-color: #555;
}
tr.htmx-swapping td {
opacity: 0;
transition: opacity 0.5s ease-out;
}
.sidepanel {
height: 275px;
width: 0;
@@ -242,18 +216,7 @@ tr.htmx-swapping td {
}
.openbtn:hover {
background-color: #444;
}
.form-content {
transition: 0.5s;
overflow: auto;
z-index: 1;
position: fixed;
top: 60px;
left: 0;
background-color: #14141f;
width: 100%;
background-color: var(--hover-bg);
}
.closebtn {
@@ -264,15 +227,6 @@ tr.htmx-swapping td {
text-decoration: none;
}
.form-content .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
color: grey;
}
.btn-add {
color: grey;
font-size: 1.5em;
@@ -280,37 +234,23 @@ tr.htmx-swapping td {
}
.btn-add:hover {
background-color: #444;
background-color: var(--hover-bg);
}
.btn {
text-decoration: none;
background-color: inherit;
border: none;
}
.btn:hover {
background-color: #444;
background-color: var(--hover-bg);
}
.danger {
color: red;
}
.vendor-branches {
width: 350px;
}
.vendor-branches ul li a {
position: relative;
top: 2px;
right: 0;
margin-left: 10px;
font-size: 1.5em;
}
.vendor-branches ul li {
transition: 0.3s ease-out;
}
.branch-row {
display: inline-block;
width: 300px;
@@ -333,16 +273,6 @@ tr.htmx-swapping td {
font-size: 1.5em;
}
.btn-row button {
border: none;
text-decoration: none;
color: grey;
background-color: inherit;
font-size: 1.3em;
padding-bottom: 10px;
cursor: pointer;
}
.btn-detail {
border: none;
text-decoration: none;
@@ -351,18 +281,9 @@ tr.htmx-swapping td {
font-size: 1.3em;
}
.po-detail table {
border-collapse: collapse;
border: none;
max-width: 300px;
}
.po-detail td {
border: none;
}
.label {
color: #00ffcc;
color: var(--secondary);
font-size: 1.25em;
}
.float {
@@ -389,18 +310,13 @@ tr.htmx-swapping td {
color: white;
}
.float.htmx-swapping {
opacity: 0;
transition: opacity 0.5s ease-out;
}
.float table {
position: relative;
top: 15px;
}
.btn-row {
margin: 5px 40px;
margin: 20px 20px;
padding: 10px 0px;
}
@@ -409,6 +325,8 @@ tr.htmx-swapping td {
padding: 10px 20px;
border-radius: 10px;
margin-left: 20px;
text-decoration: none;
font-size: 1.25em;
}
button.danger {
@@ -436,7 +354,7 @@ button.edit {
}
.row label {
display: inline;
display: inline-block;
}
.row .label {
@@ -485,11 +403,14 @@ button.edit {
display: inline;
}
.btn-detail, .btn-add, .btn-close {
border: none;
color: grey;
text-decoration: none;
background-color: inherit;
tr.htmx-swapping td {
opacity: 0;
transition: opacity 0.5s ease-out;
}
.float.htmx-swapping {
opacity: 0;
transition: opacity 0.5s ease-out;
}
.btn-detail {
@@ -501,12 +422,10 @@ button:hover {
opacity: 0.8;
}
.btn-detail:hover {
background-color: #444;
opacity: 0.8;
}
.btn-close {
float: right;
font-size: 1.5em;
background-color: inherit;
border: none;
color: grey;
}