| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
/// Outputs the spec and prefixed versions of the `::selection` pseudo-element. |
| 4 |
/// |
| 5 |
/// @param {Bool} $current-selector [false] |
| 6 |
/// If set to `true`, it takes the current element into consideration. |
| 7 |
/// |
| 8 |
/// @example scss - Usage |
| 9 |
/// .element { |
| 10 |
/// @include selection(true) { |
| 11 |
/// background-color: #ffbb52; |
| 12 |
/// } |
| 13 |
/// } |
| 14 |
/// |
| 15 |
/// @example css - CSS Output |
| 16 |
/// .element::-moz-selection { |
| 17 |
/// background-color: #ffbb52; |
| 18 |
/// } |
| 19 |
/// |
| 20 |
/// .element::selection { |
| 21 |
/// background-color: #ffbb52; |
| 22 |
/// } |
| 23 |
|
| 24 |
@mixin selection($current-selector: false) { |
| 25 |
@include _bourbon-deprecate-for-prefixing("selection"); |
| 26 |
|
| 27 |
@if $current-selector { |
| 28 |
&::-moz-selection { |
| 29 |
@content; |
| 30 |
} |
| 31 |
|
| 32 |
&::selection { |
| 33 |
@content; |
| 34 |
} |
| 35 |
} @else { |
| 36 |
::-moz-selection { |
| 37 |
@content; |
| 38 |
} |
| 39 |
|
| 40 |
::selection { |
| 41 |
@content; |
| 42 |
} |
| 43 |
} |
| 44 |
} |