From 1f0015ce12714c6337195ad647e66723e0527643 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 20 Jul 2015 17:27:08 -0500 Subject: [PATCH] Outline ripppppppple --- .../button/extensions/material.scss | 27 ++++++++++ .../components/button/test/outline/main.html | 50 +++++-------------- 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/ionic/components/button/extensions/material.scss b/ionic/components/button/extensions/material.scss index cf875c9b89..db246b4fd7 100644 --- a/ionic/components/button/extensions/material.scss +++ b/ionic/components/button/extensions/material.scss @@ -43,6 +43,16 @@ $button-material-border-radius: 3px !default; font-size: $button-small-icon-size; } + &[outline] { + box-shadow: none; + + .md-ripple { + &.is-visible { + opacity: 0.2; + } + } + } + @each $color, $value in $colors { &[#{$color}] { @@ -58,6 +68,23 @@ $button-material-border-radius: 3px !default; opacity: 1; background-color: get-color($color, base); } + + &[outline] { + @if lightness(get-color($color, base)) >= 80 { + .md-ripple { + background-color: black; + } + } @else { + .md-ripple { + background-color: get-color($color, base); + } + } + &:active, + &.activated { + opacity: 1; + background: transparent; + } + } } } } diff --git a/ionic/components/button/test/outline/main.html b/ionic/components/button/test/outline/main.html index 4bb8865ce0..e638d7b92b 100644 --- a/ionic/components/button/test/outline/main.html +++ b/ionic/components/button/test/outline/main.html @@ -1,42 +1,16 @@
- a.primary - - - + + + + + +
-
- a.secondary - - - -
- -
- a.danger - - - -
- -
- a.light - - - -
- -
- a.stable - - - -
- -
- a.dark - - - -
+