Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-elements   php

Repository URL to install this package:

/ scss / addons / _jet-inline-svg.scss

.jet-inline-svg {
	display: inline-block;
	
	svg {
		min-width: 20px;

		> circle,
		> ellipse,
		> polygon,
		> path,
		> rect {
			&:not([stroke]){
				stroke: none;
			}
			&:not([stroke-width]){
				stroke-width: 2px;
			}
			&:not([stroke-linecap]){
				stroke-linecap: butt;
			}
			&:not([stroke-dasharray]){
				stroke-dasharray: none;
			}
			&:not([stroke-miterlimit]){
				stroke-miterlimit: 4;
			}
		}
	}
	
	&--custom-width {
		width: 100%;
		svg {
			width: 100%;
			height: auto;
			display: block;
		}
	}
	
	&--custom-color {
		svg {
			fill: currentColor;
			stroke: currentColor;
		}
	}
}