Template:Demo RecipeItemIcon/styles.css: Difference between revisions

From Eco - English Wiki
[unchecked revision][unchecked revision]
WugWugg (talk | contribs)
mNo edit summary
WugWugg (talk | contribs)
mNo edit summary
Line 3: Line 3:
width: fit-content;
width: fit-content;
height: fit-content;
height: fit-content;
    background-color: yellow;
background-color: yellow;
border: clamp(2px, 0.1em, 8px) solid yellow;
border: clamp(2px, 0.1em, 8px) solid yellow;
border-radius: clamp(1px, 0.1em, 4px);
border-radius: clamp(1px, 0.1em, 4px);
Line 21: Line 21:
text-shadow: 0 1px 2px rgba(0,0,0,0.85);
text-shadow: 0 1px 2px rgba(0,0,0,0.85);
font-weight: bold;
font-weight: bold;
font-size: 0.3em;
}
}

Revision as of 14:07, 19 February 2026

.recipe-item-icon {
	position: relative;
	width: fit-content;
	height: fit-content;
	background-color: yellow;
	border: clamp(2px, 0.1em, 8px) solid yellow;
	border-radius: clamp(1px, 0.1em, 4px);
}

.recipe-item-icon__img-container {
	width: 1em;
	height: 1em;
}

.recipe-item-icon__count {
	position: absolute;
	bottom: 4px;
	right: 4px;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.85);
	font-weight: bold;
	font-size: 0.3em;
}