aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/image/index.css
blob: 86ba44eb34f65f98dc1435337d8883f31ce67339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
:host {
	--src: attr(src)
}

.image {
	width: 100%;
	padding-bottom: 100%;
	height: 0;
	background-image: url("" ++ var(--src));
	background-size: cover;
	background-position: center;
}