Last active
January 3, 2018 17:32
-
-
Save jeremycaldwell/6bce910f2fa606d34d6f6852682bddcf to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.4.21) | |
| // Compass (v1.0.3) | |
| // ---- | |
| // Mixins. | |
| @mixin icon { | |
| background-position: 0 0; | |
| background-repeat: no-repeat; | |
| background-size: contain; | |
| display: block; | |
| height: 20px; | |
| width: 20px; | |
| } | |
| @mixin icon-phone { | |
| @include icon; | |
| background-image: url(../images/icons/phone.svg); | |
| } | |
| // Apply icon to ":before" psuedo element. | |
| .custom-title { | |
| padding-left: 30px; | |
| position: relative; | |
| text-align: left; | |
| // Icon. | |
| &:before { | |
| @include icon-phone; | |
| content: ''; | |
| left: 0; | |
| position: absolute; | |
| } | |
| } | |
| // Apply icon to specific element. | |
| .icon-phone { | |
| @include icon-phone; | |
| } | |
| // Apply icon to specific element and increase size of icon. | |
| .icon-phone__large { | |
| @include icon-phone; | |
| height: 50px; | |
| width: 50px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .custom-title { | |
| padding-left: 30px; | |
| position: relative; | |
| text-align: left; | |
| } | |
| .custom-title:before { | |
| background-position: 0 0; | |
| background-repeat: no-repeat; | |
| background-size: contain; | |
| display: block; | |
| height: 20px; | |
| width: 20px; | |
| background-image: url(../images/icons/phone.svg); | |
| content: ''; | |
| left: 0; | |
| position: absolute; | |
| } | |
| .icon-phone { | |
| background-position: 0 0; | |
| background-repeat: no-repeat; | |
| background-size: contain; | |
| display: block; | |
| height: 20px; | |
| width: 20px; | |
| background-image: url(../images/icons/phone.svg); | |
| } | |
| .icon-phone__large { | |
| background-position: 0 0; | |
| background-repeat: no-repeat; | |
| background-size: contain; | |
| display: block; | |
| height: 20px; | |
| width: 20px; | |
| background-image: url(../images/icons/phone.svg); | |
| height: 50px; | |
| width: 50px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment