Created
January 28, 2013 17:04
-
-
Save kausters/4657220 to your computer and use it in GitHub Desktop.
A simple SCSS mixin for generating ::selection rules for selected text. Usage: @include selection { /* your style */ }
This file contains 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
@mixin selection { | |
& ::selection { | |
@content; | |
} | |
& ::-moz-selection { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment