Permalink
Browse files

Added selection mixin.

  • Loading branch information...
1 parent 8ca930d commit edbfb8802d7297436e0039b47a40fa7614252e64 Tom Krush committed Jun 27, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 _mixins.scss
View
17 _mixins.scss
@@ -10,6 +10,23 @@
background-size: $new_width, ($original_height / $original_width) * $new_width;
}
+@mixin selection($backgroundColor, $textColor, $opacity: 0.8) {
+ ::-moz-selection {
+ background: rgba($backgroundColor, $opacity);
+ color: $textColor;
+ }
+
+ ::-webkit-selection {
+ background: rgba($backgroundColor, $opacity);
+ color: $textColor;
+ }
+
+ ::selection {
+ background: rgba($backgroundColor, $opacity);
+ color: $textColor;
+ }
+}
+
@mixin position($top: false, $left: false, $bottom: false, $right: false, $zindex: false) {
position: absolute;
@if type_of($top) == number {

0 comments on commit edbfb88

Please sign in to comment.