Skip to content

Commit

Permalink
[#4] Updated styling of profile card buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianquek committed Oct 16, 2015
1 parent 7e62213 commit da9f612
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 13 deletions.
54 changes: 46 additions & 8 deletions scss/ionic.app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -456,29 +456,67 @@ $ios-side-menu-title-height: 120px;

.card-buttons {
border: 0;
text-align: center;
font-size: 22px;
padding: 3vh 5vh 6vh;

i {
display: flex;
display: -webkit-flex; /* Safari */
align-items: center;
-webkit-align-items: center; /* Safari */
justify-content: center;
-webkit-justify-content: center; /* Safari */

.card-button {
$size: 45px;
cursor: pointer;
width: $size;
height: $size;
border: 1px solid;
border-radius: 50px;
border-radius: 50%;
margin: 0px 10px;
font-size: 13px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);

display: flex;
display: -webkit-flex; /* Safari */
flex-flow: column nowrap;
-webkit-flex-flow: column nowrap; /* Safari */
align-items: center;
-webkit-align-items: center; /* Safari */
justify-content: center;
-webkit-justify-content: center; /* Safari */

.button-detail {
width: $size;
text-align: center;
@include uppercase-bold-font();
position: fixed;
margin-top: 3vh;
font-size: 9px;
color: lighten($colourSubtitle, 8%);
}
}

.button-reject {
color: $colourPrimary;
padding: 2px 8px 2px 8px;
border-color: lighten($colourPrimary, 15%);
}

.button-profile, .button-back {
$size: 65px;
color: $colourSecondaryText;
font-size: 32px;
padding: 2px 9px 2px 9px;
border-color: lighten($colourSecondaryText, 15%);
font-size: 25px;
width: $size;
height: $size;
.button-detail {
margin-top: 4vh;
width: $size;
}
}

.button-answer {
color: $colourPositive;
padding: 2px 6px 2px 7px;
border-color: lighten($colourPositive, 15%);
}

}
Expand Down
17 changes: 12 additions & 5 deletions www/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@
<p>{{ (card.bio.length > 0) ? card.bio : '&nbsp;' }}</p>
</div>
<div class="item item-footer card-buttons">
<i class="icon ion-android-close button-reject"></i>
<span class="button-flip">
<i class="icon ion-android-person button-profile"></i>
</span>
<i class="icon ion-android-done button-answer" ng-click="openQuestionModal()"></i>
<div class="card-button button-reject">
<i class="icon ion-close"></i>
<div class="button-detail">skip</div>
</div>
<div class="button-flip card-button button-profile">
<i class="icon ion-person"></i>
<div class="button-detail">profile</div>
</div>
<div class="card-button button-answer" ng-click="openQuestionModal()">
<i class="icon ion-edit"></i>
<div class="button-detail">answer</div>
</div>
</div>
</div>

Expand Down

0 comments on commit da9f612

Please sign in to comment.