Skip to content

Commit

Permalink
[#4] Styled flip back button, reduced offset height when flipping
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianquek committed Oct 16, 2015
1 parent 9d3cca3 commit 4f96c62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scss/ionic.app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ $ios-side-menu-title-height: 120px;

.card-buttons {
border: 0;
padding: 3vh 5vh 6vh;
padding: 3vh 5vh 7vh;

display: flex;
display: -webkit-flex; /* Safari */
Expand Down Expand Up @@ -545,7 +545,7 @@ $ios-side-menu-title-height: 120px;
.back {
height: 100%;
position: absolute;
top: -5%; // This is a hack
top: -3%; // This is a hack
-webkit-transform: rotateY(180deg);
.back-container {
height: 100%;
Expand Down
7 changes: 4 additions & 3 deletions www/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ <h3>Mutual Friends</h3>
<h3>Likes</h3>
</div>
<div class="item item-footer card-buttons">
<span class="button-flip">
<i class="icon ion-ios-undo button-back"></i>
</span>
<div class="card-button button-flip button-back">
<i class="icon ion-ios-undo"></i>
<div class="button-detail">back</div>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 4f96c62

Please sign in to comment.