Make iconButton round to display a more elegant ripple-effect

This commit is contained in:
Benoit Favreault
2015-03-19 05:45:42 -04:00
committed by Francis Lachapelle
parent d6a294b89f
commit ca1831271b
3 changed files with 11 additions and 5 deletions
@@ -58,9 +58,15 @@ $iconButton-transition: transform $swift-ease-in-duration $swift-ease-in-timing-
// Classes
.iconButton {
padding: $iconButton-padding;
border-radius: 50%;
overflow: hidden;
// z-index provides a stacking context that prevent ripple-effect from overflowing
z-index: 1;
background-clip: content-box;
background-color: transparent;
color: inherit;
&:hover {
&:hover,
&:active {
background-color: transparent;
[class ^= md-icon],
[class *= md-icon-] {
@@ -74,6 +80,9 @@ $iconButton-transition: transform $swift-ease-in-duration $swift-ease-in-timing-
font-size: $iconButton-icon-size;
transition: $iconButton-transition;
}
.md-ripple-container {
border-radius: 50%;
}
}
// Icon-bars are for iconButtons, by default they're vertical and at the right
// the modifier class is to reflect those values and leave place to other versions