Use classes for SVG globe icons
This commit is contained in:
20
src/style/atoms/_icon-globe.scss
Normal file
20
src/style/atoms/_icon-globe.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
// SVG Globe icon
|
||||
.icon-svg {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 133.93%; /* 1.33 ratio */
|
||||
}
|
||||
|
||||
// Small size
|
||||
&--small {
|
||||
&:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 100%; /* 1:1 ratio */
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user