Styles, API calls, and more

This commit is contained in:
Sean Edmunds
2024-08-13 17:08:16 -05:00
parent 722d8e65ec
commit 1e57c1a19e
34 changed files with 2560 additions and 643 deletions

198
src/dataTableStyles.css Normal file
View File

@@ -0,0 +1,198 @@
.mrt-table-paper {
height: 100%;
overflow: visible;
background-color: transparent;
border: none;
border-style: none;
box-shadow: none;
&.mantine-Overlay-root {
color: var(--mantine-primary-color-7);
background-color: alpha(var(--mantine-color-appGray-9), 0.5);
}
&.mrt-toolbar-dropzone {
height: 4.5vh;
width: 35vw;
color: var(--mantine-primary-color-6);
font-size: 36px;
background-color: rgb(255, 255, 255, 1);
justify-self: center;
&.inner {
font-size: 36px;
}
}
& ::-webkit-scrollbar {
width: 8px;
height: 8px;
border-radius: 5px;
background-color: transparent;
}
& ::-webkit-scrollbar-thumb:hover {
background-color: var(--mantine-primary-color-4);
}
& ::-webkit-scrollbar-track {
background-color: transparent;
border-radius: 5px;
}
& ::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: var(--mantine-primary-color-6);
}
& ::-webkit-scrollbar-corner {
background-color: light-dark(white, var(--mantine-primary-color-8));
}
}
.mrt-table-container {
height: 100%;
background-color: light-dark(white, var(--mantine-primary-color-8));
border-top: solid;
border-top-color: light-dark(
var(--mantine-color-appGray-1),
var(--mantine-primary-color-6)
);
border-top-width: 1px;
border-left: solid;
border-left-color: light-dark(
var(--mantine-color-appGray-1),
var(--mantine-primary-color-6)
);
border-left-width: 1px;
border-right: solid;
border-right-color: light-dark(
var(--mantine-color-appGray-1),
var(--mantine-primary-color-6)
);
border-right-width: 1px;
border-bottom: none;
border-radius: 4px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.mantine-Table-th {
color: light-dark(var(--mantine-color-appGray-7), var(--mantine-primary-color-3));
background-color: light-dark(white, var(--mantine-primary-color-8));
border-color: light-dark(
var(--mantine-color-appGray-1),
var(--mantine-primary-color-7)
);
/* & .mantine-ActionIcon-root {
margin-right: 1px;
display: none;
} */
& .mrt-table-head-cell-content {
padding-top: 12px;
padding-bottom: 12px;
align-items: center;
justify-content: center;
white-space: nowrap;
.mrt-table-head-cell-labels {
& > * > .mantine-Text-root {
font-size: 14px;
font-weight: bold;
}
}
& .mrt-table-head-cell-content-actions {
transition: 1s all ease;
& .mantine-ActionIcon-root {
color: transparent;
background-color: transparent;
display: hidden;
}
}
}
& .mrt-table-head-cell-resize-handle {
display: flex;
width: 4px;
border-radius: 4px;
border-left-color: transparent;
background-color: light-dark(
var(--mantine-primary-color-1),
var(--mantine-primary-color-6)
);
}
& .mantine-TableHeadCell-Content-Labels {
cursor: pointer;
position: absolute;
}
&:hover {
& .mrt-table-head-cell-content-actions {
& .mantine-ActionIcon-root {
color: light-dark(var(--mantine-primary-color-6), var(--mantine-primary-color-3));
background-color: light-dark(
var(--mantine-primary-color-1),
var(--mantine-primary-color-6)
);
display: grid;
position: absolute;
right: 0;
}
}
& .mrt-table-head-cell-resize-handle {
border-left-color: var(--mantine-primary-color-2);
border-width: 4px;
border-left-style: solid;
}
}
}
.mantine-Mark-root {
background-color: light-dark(
var(--mantine-primary-color-7),
var(--mantine-primary-color-7)
);
color: white;
}
.mantine-Table-tr {
height: 56px;
box-shadow: none;
& .table-icon-device-floppy {
color: light-dark(var(--mantine-primary-color-6), var(--mantine-primary-color-3));
}
}
.mantine-Table-td {
color: light-dark(var(--mantine-color-appGray-7), var(--mantine-primary-color-3));
justify-content: center;
border-color: light-dark(
var(--mantine-color-appGray-1),
var(--mantine-primary-color-7)
);
& > * > .mantine-Text-root {
font-size: 14px;
}
}
.mrt-table-head-sort-button {
display: none;
}
.mrt-table-head-sort-button[data-sorted='asc'] {
display: flex;
min-height: 12px !important;
min-width: 12px !important;
max-width: 16px;
max-height: 16px;
& > * > .tabler-icon-arrows-sort {
height: 12px !important;
width: 12px !important;
color: light-dark(--mantine-primary-color-6, --mantine-color-appGray-5);
}
}
.mrt-table-head-sort-button[data-sorted='desc'] {
display: flex;
min-height: 12px !important;
min-width: 12px !important;
max-width: 16px;
max-height: 16px;
& > * > .tabler-icon-arrows-sort {
height: 12px !important;
width: 12px !important;
color: light-dark(--mantine-primary-color-6, --mantine-color-appGray-5);
}
}