mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Make iconButton round to display a more elegant ripple-effect
This commit is contained in:
committed by
Francis Lachapelle
parent
d6a294b89f
commit
ca1831271b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user