Add shadow

So kannst Du eine neue, eigene Utility-Klasse zum erzeugen von Schatten bereitstellen.

Hier das benötigte CSS:

.box-shadow-xs {
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.box-shadow-xs:hover {
	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.box-shadow-sm {
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.box-shadow-md {
	box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.box-shadow-lg {
	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.box-shadow-xl {
	box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

 

 

Beispiel (hover)

Box shadow
image-286

I was particularly looking at this codepen https://codepen.io/sdthornton/pen/wBZdXq
and was thinking it would be nice to have this in the utility section, rapidly adding shadow into your work.