mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
265 lines
3.9 KiB
CSS
265 lines
3.9 KiB
CSS
main {
|
|
position: relative;
|
|
}
|
|
|
|
.action-buttons {
|
|
--spacing: .5rem;
|
|
|
|
position: absolute;
|
|
margin: var(--spacing);
|
|
inset: 0 0 auto 0;
|
|
height: var(--nav-width);
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: calc(var(--spacing) * 3);
|
|
|
|
padding: var(--spacing);
|
|
border-radius: 4px;
|
|
background-color: var(--color-gray);
|
|
}
|
|
|
|
.action-buttons > button {
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
padding: .5rem;
|
|
border-radius: 4px;
|
|
background-color: var(--color-dark);
|
|
color: var(--color-light);
|
|
|
|
transition: background-color .1s ease-in-out;
|
|
}
|
|
|
|
.action-buttons > button:hover {
|
|
background-color: var(--color-gray);
|
|
}
|
|
|
|
.action-buttons > button > svg {
|
|
height: 1.8rem;
|
|
width: 2rem;
|
|
}
|
|
|
|
.form-container {
|
|
height: calc(100vh - var(--header-height));
|
|
overflow-y: auto;
|
|
|
|
padding: .5rem;
|
|
padding-top: var(--nav-width);
|
|
}
|
|
|
|
#settings-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
h2 {
|
|
width: 100%;
|
|
|
|
border-bottom: 1px solid var(--color-gray);
|
|
padding: 1rem 1rem .25rem 1rem;
|
|
|
|
font-size: clamp(1rem, 10vw, 2rem);
|
|
}
|
|
|
|
.settings-table-container,
|
|
.user-table-container {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.settings-table {
|
|
--max-width: 55rem;
|
|
width: 100%;
|
|
max-width: var(--max-width);
|
|
min-width: 20rem;
|
|
|
|
border-spacing: 0px;
|
|
border: none;
|
|
}
|
|
|
|
.settings-table td {
|
|
--middle-spacing: .75rem;
|
|
padding-bottom: 1rem;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.settings-table td:first-child {
|
|
width: 50%;
|
|
padding-right: var(--middle-spacing);
|
|
text-align: right;
|
|
}
|
|
|
|
.settings-table td:nth-child(2) {
|
|
min-width: calc(var(--max-width) * 0.5);
|
|
padding-left: var(--middle-spacing);
|
|
}
|
|
|
|
.settings-table td p {
|
|
color: var(--color-light-gray);
|
|
font-size: .9rem;
|
|
}
|
|
|
|
.settings-table td > p {
|
|
margin-top: .25rem;
|
|
}
|
|
|
|
.number-input {
|
|
width: fit-content;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
border: 2px solid var(--color-gray);
|
|
border-radius: 4px;
|
|
|
|
box-shadow: var(--default-shadow);
|
|
}
|
|
|
|
.number-input > input {
|
|
width: auto;
|
|
border: none;
|
|
box-shadow: none;
|
|
text-align: right;
|
|
}
|
|
|
|
.number-input > * {
|
|
padding: .5rem 1rem;
|
|
}
|
|
|
|
.number-input > p {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.settings-table select {
|
|
width: auto;
|
|
}
|
|
|
|
.add-user-container,
|
|
.database-container {
|
|
margin-bottom: 1rem;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
#add-user-button,
|
|
#download-db-button {
|
|
margin-top: 2rem;
|
|
|
|
width: min(15rem, 100%);
|
|
height: 2rem;
|
|
|
|
padding: .5rem 1rem;
|
|
border-radius: 4px;
|
|
background-color: var(--color-gray);
|
|
|
|
box-shadow: var(--default-shadow);
|
|
}
|
|
|
|
#download-db-button {
|
|
height: unset;
|
|
}
|
|
|
|
#add-user-button > svg {
|
|
aspect-ratio: 1/1;
|
|
height: 1rem;
|
|
width: min-content;
|
|
}
|
|
|
|
#user-table {
|
|
min-width: 25rem;
|
|
border-spacing: 0px;
|
|
}
|
|
|
|
#user-table :where(th, td) {
|
|
height: 2.65rem;
|
|
padding: .25rem .5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
#user-table tr td {
|
|
border-top: 1px solid var(--color-gray);
|
|
}
|
|
|
|
#user-table :where(th, td):first-child {
|
|
width: 10rem;
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
#user-table :where(td, td):nth-child(2) {
|
|
width: 15rem;
|
|
}
|
|
|
|
#user-table :where(th, td):last-child {
|
|
width: 5.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding-right: 2rem;
|
|
}
|
|
|
|
#user-table button {
|
|
height: 1.25rem;
|
|
}
|
|
|
|
#user-table svg {
|
|
aspect-ratio: 1/1;
|
|
height: 100%;
|
|
width: auto;
|
|
}
|
|
|
|
#user-table input {
|
|
width: 100%;
|
|
padding: .25rem;
|
|
}
|
|
|
|
@media (max-width: 40rem) {
|
|
#settings-form {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
padding-inline: 0;
|
|
}
|
|
|
|
.settings-table-container,
|
|
.user-table-container {
|
|
justify-content: left;
|
|
}
|
|
|
|
.settings-table tbody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.settings-table tr {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.settings-table td {
|
|
width: 100%;
|
|
}
|
|
|
|
.settings-table td:first-child {
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.settings-table td:nth-child(2) {
|
|
min-width: 0;
|
|
}
|
|
}
|