design/styleguide/assets/style/merch.css
kritzl edd7434024
All checks were successful
/ build (push) Successful in 9s
merch sizing-guide: bring padding back
2025-02-16 14:58:52 +01:00

191 lines
4.1 KiB
CSS

main {
max-width: 100%;
height: 100vh;
overflow: auto;
padding: 0 1rem;
}
.table-container {
overflow-x: auto;
width: 100%;
}
table {
user-select: none;
width: fit-content;
border-collapse: collapse;
border: solid 4px var(--color-shade-2);
}
table thead {
position: sticky;
top: calc(-1rem + 2px);
z-index: 10;
background-color: var(--color-background);
outline: solid 4px var(--color-shade-2);
outline-offset: -2px;
}
table thead tr > th {
outline: solid 1px var(--color-shade-2);
}
table thead tr > th.hover {
background-color: var(--color-shade-3);
}
table thead tr:first-child > th[colspan="15"] {
background-color: var(--color-shade-2);
color: var(--color-dark-foreground);
}
table thead.currentEvent {
outline-color: var(--color-primary);
}
table thead.currentEvent tr > th {
outline-color: var(--color-primary);
}
table thead.currentEvent tr:first-child > th {
background-color: var(--color-primary);
}
table tbody {
border-top: solid 4px var(--color-shade-2);
}
table tbody.currentEvent {
border: solid 4px var(--color-primary);
}
table tbody.filtered {
display: none;
}
table tbody > tr > th,
table thead > tr > th,
table td {
text-align: center;
}
table th,
table td {
padding: 0.25rem 0.5rem;
border: solid 1px var(--color-shade-2);
min-width: 6ch;
}
table th.hover,
table td.hover {
background-color: var(--color-shade-1);
}
table td.val {
font-family: "Departure Mono", ui-monospace, monospace;
}
table td.val.hover {
background-color: transparent;
}
table td.val:not(.empty) {
cursor: pointer;
}
table td.val:not(.empty).hover {
background-color: var(--color-shade-1);
}
table td.val:not(.empty):hover {
background-color: var(--color-shade-3);
}
table td.val.highlighted[data-dim=A] {
background-color: rgb(96, 165, 249);
}
table td.val.highlighted[data-dim=B] {
background-color: rgb(211, 129, 247);
}
table td.val.highlighted[data-dim=C] {
background-color: rgb(255, 121, 117);
}
table td.val.currentDimension:not(.hover) {
background-color: var(--color-shade-2);
}
table td.val:not([data-diff=""])::after {
content: attr(data-diff);
display: block;
font-size: 0.8em;
background-color: var(--custom-color);
width: calc(100% + 1rem);
height: 1lh;
position: relative;
left: -0.5rem;
top: 0.25rem;
margin-top: -0.25rem;
}
table td.val[data-diff=""]::after {
content: "";
display: block;
font-size: 0.8em;
background-color: transparent;
width: calc(100% + 1rem);
height: 1lh;
position: relative;
left: -0.5rem;
top: 0.25rem;
margin-top: -0.25rem;
}
table td.dimension.hover {
background-color: var(--color-shade-3);
}
table td.dimension.currentDimension::after {
content: ">";
/*color: var(--color-secondary);*/
font-family: "Departure Mono", ui-monospace, monospace;
position: relative;
right: calc(-0.5rem - 0.5ch);
margin-left: -1ch;
font-weight: bold;
}
div.filterBox {
border: solid 4px var(--color-foreground);
margin: 2rem 0;
padding: 1rem;
position: relative;
font-family: "Departure Mono", ui-monospace, monospace;
display: flex;
flex-wrap: wrap;
column-gap: 4rem;
row-gap: 2rem;
width: fit-content;
}
div.filterBox::before {
content: "filter";
position: absolute;
top: -0.6lh;
background-color: var(--color-background);
padding: 0 0.5rem;
}
div.filterBox > div {
display: flex;
flex-direction: column;
gap: 0.5rem;
font-size: 1.2rem;
}
div.filterBox > div label {
display: flex;
align-items: center;
gap: 0.5rem;
}
div.filterBox > div label input[type=checkbox] {
appearance: none;
background-color: var(--color-shade-1);
margin: 0;
color: currentColor;
width: 1.8em;
height: 1.8em;
border: 0.3em solid var(--color-shade-4);
border-radius: 0.15em;
transform: translateY(-0.075em);
position: relative;
font-family: inherit;
}
div.filterBox > div label input[type=checkbox]::before {
position: absolute;
inset: 0;
content: "x";
text-align: center;
font-size: 1.2rem;
line-height: 0.7;
transform: scale(0);
transition: 120ms transform ease-in-out;
}
div.filterBox > div label input[type=checkbox]:checked::before {
transform: scale(1);
}
/*# sourceMappingURL=merch.css.map */