Template:Storage grid/styles.css: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
removed hardcoded size in favor of a var
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
.storage-grid {
.storage-grid {
display: grid;
display: grid;
width: fit-content;
}
}


.storage-grid > * {
.storage-grid > * {
width: 4rem;
width: var(--s);
height: 4rem;
height: var(--s);
background-color: gray;
}
}


.storage-grid > *.f {
.storage-grid > *.f { }
background-color: green;
 
.storage-grid > *.f img {
width: 100%;
filter: grayscale(75%) saturate(75%) opacity(23%);
}
}

Latest revision as of 05:20, 30 March 2025

.storage-grid {
	display: grid;
	width: fit-content;
}

.storage-grid > * {
	width: var(--s);
	height: var(--s);
}

.storage-grid > *.f { }

.storage-grid > *.f img {
	width: 100%;
	filter: grayscale(75%) saturate(75%) opacity(23%);
}