Template:Cargo orders/styles.css: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
consistent columns width
Aliser (talk | contribs)
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-top-col: hsl(240 7% 70% / 50%);
     border-top: 1px solid var(--border-col) !important;
     --border-right-col: hsl(240 7% 70% / 53%);
     border-right: 1px solid var(--border-col) !important;
     border-top: 1px solid var(--border-top-col) !important;
     border-bottom: 1px solid var(--border-col) !important;
     border-right: 1px solid var(--border-right-col) !important;
     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;
}
}


.cargo-orders-table .item {
/* item col */
font-weight: normal;
.pool-section tr:nth-child(1) td:nth-child(1) {
/* should NOT be more than the parent column width */
width: 23ch;
}
}


.pool-section-label {
.pool-section {
display: block;
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-label::after {
.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;
}