Skip to content

Commit

Permalink
removed dependency on transform for halfway fabs
Browse files Browse the repository at this point in the history
  • Loading branch information
acburst committed Mar 17, 2017
1 parent 6321a78 commit f4693a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions bin/materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -5133,16 +5133,18 @@ small {
height: 56px;
}

.btn-floating.btn-large.halfway-fab {
bottom: -28px;
}

.btn-floating.btn-large i {
line-height: 56px;
}

.btn-floating.halfway-fab {
position: absolute;
right: 24px;
bottom: 0;
-webkit-transform: translateY(50%);
transform: translateY(50%);
bottom: -20px;
}

.btn-floating.halfway-fab.left {
Expand Down
2 changes: 1 addition & 1 deletion css/ghpages-materialize.css

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions sass/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
}

&.btn-large {
&.halfway-fab {
bottom: -$button-floating-large-size / 2;
}

width: $button-floating-large-size;
height: $button-floating-large-size;
i {
Expand All @@ -104,8 +108,7 @@

position: absolute;
right: 24px;
bottom: 0;
transform: translateY(50%);
bottom: -$button-floating-size / 2;
}

display: inline-block;
Expand Down

0 comments on commit f4693a9

Please sign in to comment.