mirror of
https://github.com/unraid/webgui.git
synced 2025-12-31 14:40:36 -06:00
117 lines
2.9 KiB
CSS
117 lines
2.9 KiB
CSS
.ArrayOperation-Table {
|
|
--table-gap: 0.5rem;
|
|
|
|
box-sizing: border-box;
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="number"],
|
|
input[type="url"],
|
|
input[type="email"],
|
|
input[type="date"],
|
|
input[type="file"],
|
|
input:not([type="submit"]),
|
|
input:not([type="button"]),
|
|
input:not([type="checkbox"]),
|
|
input:not([type="radio"]),
|
|
input:not([class*="narrow"]),
|
|
textarea,
|
|
.textarea,
|
|
select,
|
|
.ui-dropdownchecklist-selector-wrapper {
|
|
margin-bottom: var(--table-gap);
|
|
}
|
|
|
|
/* mobile and tablet */
|
|
@media (max-width: 769px) {
|
|
tbody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--table-gap);
|
|
}
|
|
|
|
tr {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--table-gap);
|
|
}
|
|
|
|
td {
|
|
display: block;
|
|
padding: var(--table-gap) 0 !important; /* override `table.array_status tr > td` padding-left */
|
|
height: auto; /* override `table tbody td` */
|
|
|
|
input[type="button"],
|
|
input[type="reset"],
|
|
input[type="submit"],
|
|
button,
|
|
button[type="button"],
|
|
a.button {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
td:empty:not(.line) {
|
|
display: none;
|
|
}
|
|
|
|
.line {
|
|
flex-basis: 100%;
|
|
margin-top: var(--table-gap);
|
|
}
|
|
}
|
|
/* mobile */
|
|
@media (max-width: 549px) {
|
|
td {
|
|
flex-basis: 100%;
|
|
}
|
|
}
|
|
/* tablet */
|
|
@media (min-width: 550px) and (max-width: 769px) {
|
|
td:first-child {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
--base-col-02-width: 35%;
|
|
--base-col-03-width: calc(100% - var(--base-col-02-width));
|
|
|
|
/* minus half the gap, otherwise the last column will be too wide and break to a new line prematurely */
|
|
td:nth-child(2):not(.line) {
|
|
flex-basis: calc(var(--base-col-02-width) - var(--table-gap) / 2);
|
|
}
|
|
|
|
td:nth-child(3):not(.line) {
|
|
flex-basis: calc(var(--base-col-03-width) - var(--table-gap) / 2);
|
|
}
|
|
}
|
|
|
|
/* desktop */
|
|
@media (min-width: 770px) {
|
|
td {
|
|
padding: var(--table-gap) 0; /* override `table.array_status tr > td` padding-left */
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="number"],
|
|
input[type="url"],
|
|
input[type="email"],
|
|
input[type="date"],
|
|
input[type="file"],
|
|
input:not([type="submit"]),
|
|
input:not([type="button"]),
|
|
input:not([type="checkbox"]),
|
|
input:not([type="radio"]),
|
|
input:not([class*="narrow"]),
|
|
textarea,
|
|
.textarea,
|
|
select,
|
|
.ui-dropdownchecklist-selector-wrapper {
|
|
max-width: 400px;
|
|
}
|
|
}
|
|
} |