diff options
author | Thomas Park <thomas@thomaspark.co> | 2016-10-10 18:49:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 18:49:43 -0400 |
commit | 7773c1598c88a1e717e171c4ce70775f508680c9 (patch) | |
tree | fc563d0421b01a14d9e9f39ca7abf4ffeca51e75 /paper/_bootswatch.scss | |
parent | 6388e7ad23f1fc20303143be0140b3647e7bec2f (diff) | |
parent | 3d60a9bf5d71f6f9917d81e5e174a5917d738424 (diff) |
Merge pull request #594 from mladenplavsic/gh-pages
Fixed #595 [Paper] ripple effect and README.md
Diffstat (limited to 'paper/_bootswatch.scss')
-rw-r--r-- | paper/_bootswatch.scss | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/paper/_bootswatch.scss b/paper/_bootswatch.scss index 56275ec7..3f0b4f8d 100644 --- a/paper/_bootswatch.scss +++ b/paper/_bootswatch.scss @@ -36,9 +36,6 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" @mixin btn($class,$bg){ .btn-#{$class} { - background-size: 200% 200%; - background-position: 50%; - &:focus { background-color: $bg; } @@ -49,9 +46,6 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" } &:active { - background-color: darken($bg, 12%); - @include gradient-radial(darken($bg, 12%) 10%, $bg 11%); - background-size: 1000% 1000%; @include box-shadow(2px 2px 4px rgba(0,0,0,.4)); } } @@ -70,6 +64,7 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" border: none; @include box-shadow(1px 1px 4px rgba(0,0,0,.4)); @include transition(all 0.4s); + @include ripple(); &-link { border-radius: $btn-border-radius-base; @@ -617,3 +612,30 @@ input[type="checkbox"], } } +// Effects ================================================================= + +.ripple { + position: relative; + + &:after { + content: ""; + display: block; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + @include 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 |