Template:Cargo orders/styles.css: Difference between revisions
From Space Station 14 Wiki
consistent columns width |
cleanup; support tables for or groups |
||
Line 3: | Line 3: | ||
} | } | ||
.cargo-orders-table td { | .cargo-orders-table td, | ||
.cargo-orders-table th { | |||
--border-col: hsl(240 7% 70% / 25%); | |||
box-sizing: border-box; | |||
vertical-align: top; | vertical-align: top; | ||
/* reset default border; reconfiguring it here doesn't work for some reason... */ | |||
border: none !important; | border: none !important; | ||
--border | border-top: 1px solid var(--border-col) !important; | ||
--border | border-right: 1px solid var(--border-col) !important; | ||
border- | border-bottom: 1px solid var(--border-col) !important; | ||
border- | border-left: 1px solid var(--border-col) !important; | ||
} | } | ||
/* product col */ | |||
.cargo-orders-table tr:first-child th:nth-child(1) { | .cargo-orders-table tr:first-child th:nth-child(1) { | ||
width: 20ch; | width: 20ch; | ||
} | } | ||
/* cost col */ | |||
.cargo-orders-table tr:first-child th:nth-child(2) { | .cargo-orders-table tr:first-child th:nth-child(2) { | ||
width: 18ch; | width: 18ch; | ||
} | } | ||
/* contents col col */ | |||
.cargo-orders-table tr:first-child th:nth-child(4) { | .cargo-orders-table tr:first-child th:nth-child(4) { | ||
width: 30ch; | width: 30ch; | ||
} | } | ||
. | /* item col */ | ||
.pool-section tr:nth-child(1) td:nth-child(1) { | |||
/* should NOT be more than the parent column width */ | |||
width: 23ch; | |||
} | } | ||
.pool-section | .pool-section { | ||
width: 100%; | |||
/*margin: .5rem 0;*/ | |||
} | |||
.pool-section-caption { | |||
background-color: var(--bg-color-light); | background-color: var(--bg-color-light); | ||
padding: 0.25em 0.25em; | padding: 0.25em 0.25em; | ||
Line 35: | Line 49: | ||
} | } | ||
.pool-section- | .pool-section-caption::after { | ||
content: " group, one of:"; | content: " group, one of:"; | ||
color: gray; | color: gray; | ||
} | } |
Latest revision as of 13:36, 27 May 2025
.cargo-orders-table {
width: 100%;
}
.cargo-orders-table td,
.cargo-orders-table th {
--border-col: hsl(240 7% 70% / 25%);
box-sizing: border-box;
vertical-align: top;
/* reset default border; reconfiguring it here doesn't work for some reason... */
border: none !important;
border-top: 1px solid var(--border-col) !important;
border-right: 1px solid var(--border-col) !important;
border-bottom: 1px solid var(--border-col) !important;
border-left: 1px solid var(--border-col) !important;
}
/* product col */
.cargo-orders-table tr:first-child th:nth-child(1) {
width: 20ch;
}
/* cost col */
.cargo-orders-table tr:first-child th:nth-child(2) {
width: 18ch;
}
/* contents col col */
.cargo-orders-table tr:first-child th:nth-child(4) {
width: 30ch;
}
/* item col */
.pool-section tr:nth-child(1) td:nth-child(1) {
/* should NOT be more than the parent column width */
width: 23ch;
}
.pool-section {
width: 100%;
/*margin: .5rem 0;*/
}
.pool-section-caption {
background-color: var(--bg-color-light);
padding: 0.25em 0.25em;
font-weight: bold;
}
.pool-section-caption::after {
content: " group, one of:";
color: gray;
}