|
2 | 2 | // |
3 | 3 | // Name: Material Shadows |
4 | 4 | // Description: Paper shadows of material design. |
5 | | -// Version: 1.0.0 |
| 5 | +// Version: 1.0.1 |
6 | 6 | // |
7 | 7 | // Author: Denis Malinochkin |
8 | 8 | // Git: https://github.com/mrmlnc/material-shadows |
|
15 | 15 | // -------------------------------------------------------------------------------- |
16 | 16 |
|
17 | 17 | $md-z-depth-css: false; |
18 | | -$md-z-depth-browser-prefix: false; |
19 | 18 | $md-z-depth-animation: true; |
20 | 19 | $md-z-depth-animation-time: .28s; |
21 | 20 | $md-z-depth-animation-function: cubic-bezier(.4, 0, .2, 1); |
@@ -47,41 +46,14 @@ $md-z-depth: ( |
47 | 46 | // Mixins |
48 | 47 | // -------------------------------------------------------------------------------- |
49 | 48 |
|
50 | | -@mixin md-prefixer ($property, $value, $prefixes) { |
51 | | - @if $md-z-depth-browser-prefix { |
52 | | - @each $prefix in $prefixes { |
53 | | - @if $prefix == webkit { |
54 | | - -webkit-#{$property}: $value; |
55 | | - } |
56 | | - @else if $prefix == moz { |
57 | | - -moz-#{$property}: $value; |
58 | | - } |
59 | | - @else if $prefix == ms { |
60 | | - -ms-#{$property}: $value; |
61 | | - } |
62 | | - @else if $prefix == o { |
63 | | - -o-#{$property}: $value; |
64 | | - } |
65 | | - @else if $prefix == spec { |
66 | | - #{$property}: $value; |
67 | | - } |
68 | | - @else { |
69 | | - @warn "Unrecognized prefix: #{$prefix}"; |
70 | | - } |
71 | | - } |
72 | | - } @else { |
73 | | - #{$property}: $value; |
74 | | - } |
75 | | -} |
76 | | - |
77 | 49 | // Top & Bottom |
78 | 50 | @mixin md-z-depth($depth: 1, $orientation: null) { |
79 | 51 | @if $orientation == top { |
80 | | - @include md-prefixer(box-shadow, nth(nth($md-z-depth, $depth), 1), spec); |
| 52 | + box-shadow: nth(nth($md-z-depth, $depth), 1); |
81 | 53 | } @else if $orientation == bottom { |
82 | | - @include md-prefixer(box-shadow, nth(nth($md-z-depth, $depth), 2), spec); |
| 54 | + box-shadow: nth(nth($md-z-depth, $depth), 2); |
83 | 55 | } @else { |
84 | | - @include md-prefixer(box-shadow, nth($md-z-depth, $depth), spec); |
| 56 | + box-shadow: nth($md-z-depth, $depth); |
85 | 57 | } |
86 | 58 | } |
87 | 59 |
|
@@ -140,7 +112,7 @@ $md-z-depth: ( |
140 | 112 | .z-depth-z3, |
141 | 113 | .z-depth-z4, |
142 | 114 | .z-depth-z5 { |
143 | | - @include md-prefixer(transition, box-shadow $md-z-depth-animation-time $md-z-depth-animation-function, webkit o spec); |
| 115 | + transition: box-shadow $md-z-depth-animation-time $md-z-depth-animation-function; |
144 | 116 | } |
145 | 117 | } |
146 | 118 | } |
|
0 commit comments