summaryrefslogtreecommitdiff
path: root/paper/bootswatch.less
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.co>2016-10-10 18:49:43 -0400
committerGitHub <noreply@github.com>2016-10-10 18:49:43 -0400
commit7773c1598c88a1e717e171c4ce70775f508680c9 (patch)
treefc563d0421b01a14d9e9f39ca7abf4ffeca51e75 /paper/bootswatch.less
parent6388e7ad23f1fc20303143be0140b3647e7bec2f (diff)
parent3d60a9bf5d71f6f9917d81e5e174a5917d738424 (diff)
Merge pull request #594 from mladenplavsic/gh-pages
Fixed #595 [Paper] ripple effect and README.md
Diffstat (limited to 'paper/bootswatch.less')
-rw-r--r--paper/bootswatch.less34
1 files changed, 28 insertions, 6 deletions
diff --git a/paper/bootswatch.less b/paper/bootswatch.less
index 1d32ced7..88569de7 100644
--- a/paper/bootswatch.less
+++ b/paper/bootswatch.less
@@ -40,9 +40,6 @@
#btn(@class,@bg) {
.btn-@{class} {
- background-size: 200% 200%;
- background-position: 50%;
-
&:focus {
background-color: @bg;
}
@@ -53,9 +50,6 @@
}
&:active {
- background-color: darken(@bg, 12%);
- #gradient > .radial(darken(@bg, 12%) 10%, @bg 11%);
- background-size: 1000% 1000%;
.box-shadow(2px 2px 4px rgba(0,0,0,.4));
}
}
@@ -74,6 +68,7 @@
border: none;
.box-shadow(1px 1px 4px rgba(0,0,0,.4));
.transition(all 0.4s);
+ .ripple();
&-link {
border-radius: @btn-border-radius-base;
@@ -621,3 +616,30 @@ input[type="checkbox"],
}
}
+// 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