diff options
author | mystist <gjl87910lq@gmail.com> | 2016-10-12 17:25:00 +0800 |
---|---|---|
committer | mystist <gjl87910lq@gmail.com> | 2016-10-12 17:25:00 +0800 |
commit | bc5519490564602aa308adeed0d5a91e46d77370 (patch) | |
tree | fd1a2eda938b8378c488805b6ac4defb0f45538d /paper/bootswatch.less | |
parent | 7773c1598c88a1e717e171c4ce70775f508680c9 (diff) |
fix(paper): a mixin shoule always uses () as a function
This will cause the sass version miss the ripple mixin.
Diffstat (limited to 'paper/bootswatch.less')
-rw-r--r-- | paper/bootswatch.less | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/paper/bootswatch.less b/paper/bootswatch.less index 88569de7..263a612a 100644 --- a/paper/bootswatch.less +++ b/paper/bootswatch.less @@ -9,6 +9,34 @@ } .web-font(@web-font-path); +// Effects ================================================================= + +.ripple() { + position: relative; + + &:after { + content: ""; + display: block; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + #gradient > .radial(#000 10%, transparent 10.01%); + background-size: 1000% 1000%; + background-position: 50%; + opacity: 0; + pointer-events: none; + transition: background .5s, opacity 1s; + } + + &:active:after { + background-size: 0% 0%; + opacity: .2; + transition: 0s; + } +} + // Navbar ===================================================================== .navbar { @@ -614,32 +642,4 @@ input[type="checkbox"], color: inherit; } } -} - -// Effects ================================================================= - -.ripple { - position: relative; - - &:after { - content: ""; - display: block; - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - #gradient > .radial(#000 10%, transparent 10.01%); - background-size: 1000% 1000%; - background-position: 50%; - opacity: 0; - pointer-events: none; - transition: background .5s, opacity 1s; - } - - &:active:after { - background-size: 0% 0%; - opacity: .2; - transition: 0s; - } }
\ No newline at end of file |