Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/#3207-fab-icon #3213

Merged
merged 1 commit into from
Feb 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/stylus/components/_avatars.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
border-radius: 50%
display: inline-flex
justify-content: center
position: relative
text-align: center
vertical-align: middle

Expand All @@ -13,10 +14,10 @@
border-radius: 50%
height: inherit
width: inherit

&--tile
border-radius: 0

img,
.icon
border-radius: 0
border-radius: 0
18 changes: 12 additions & 6 deletions src/stylus/components/_buttons.styl
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,31 @@ theme(button, "btn")
:not(:only-child)
transition: $primary-transition

&:first-child
opacity: 1

&:last-child
opacity: 0
position: absolute
transform: rotate(-45deg)
left: calc(50% - 12px)
top: calc(50% - 12px)

&:last-child,
&:first-child
// https://stackoverflow.com/questions/14729492/css3-transform-rotate-causing-1px-shift-in-chrome
-webkit-backface-visibility: hidden
position: absolute
left: 0
top: 0

&.btn--active
.btn__content
:not(:only-child)
&:first-child
opacity: 0
transform: rotate(45deg)
left: 'calc(50% - %s)' % (24 / 2)
top: 'calc(50% - %s)' % (24 / 2)

&:last-child
opacity: 1
transform: none
transform: rotate(0)

.icon
height: inherit
Expand Down