Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added selection mixin.

  • Loading branch information...
commit edbfb8802d7297436e0039b47a40fa7614252e64 1 parent 8ca930d
Tom Krush authored

Showing 1 changed file with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +17 0 _mixins.scss
17 _mixins.scss
@@ -10,6 +10,23 @@
10 10 background-size: $new_width, ($original_height / $original_width) * $new_width;
11 11 }
12 12
  13 +@mixin selection($backgroundColor, $textColor, $opacity: 0.8) {
  14 + ::-moz-selection {
  15 + background: rgba($backgroundColor, $opacity);
  16 + color: $textColor;
  17 + }
  18 +
  19 + ::-webkit-selection {
  20 + background: rgba($backgroundColor, $opacity);
  21 + color: $textColor;
  22 + }
  23 +
  24 + ::selection {
  25 + background: rgba($backgroundColor, $opacity);
  26 + color: $textColor;
  27 + }
  28 +}
  29 +
13 30 @mixin position($top: false, $left: false, $bottom: false, $right: false, $zindex: false) {
14 31 position: absolute;
15 32 @if type_of($top) == number {

0 comments on commit edbfb88

Please sign in to comment.
Something went wrong with that request. Please try again.