Skip to content

Commit

Permalink
Missing button corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-rebecca committed Mar 27, 2024
1 parent 6330169 commit 2a8db7a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/app/components/kit/editKit/editKit.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h2 class="timeline_stepName timeline-title">
</div>
<!-- TODO: Cosmetic Make nicer -->
<!-- <md-button style="margin-left: auto" class="md-flat md-primary timeline_buttonBack" ng-click="vm.backToDevice()">Back to Device</md-button> -->
<md-button ng-show="vm.step===1" class="md-flat md-primary timeline_buttonBack btn-round-new" ng-click="vm.backToProfile()">Back<span class="timeline-btn-extra"> to Profile</span></md-button>
<md-button class="md-flat md-primary timeline_buttonSave btn-round-new" ng-click="vm.submitFormAndKit()">Save</md-button>
<md-button ng-show="vm.step===1" class="timeline_buttonBack btn-round-new btn-outline-white" ng-click="vm.backToProfile()">Back<span class="timeline-btn-extra"> to Profile</span></md-button>
<md-button class="btn-round-new btn-outline-white-blue" ng-click="vm.submitFormAndKit()">Save</md-button>
</div>
</section>
<section class="timeline_content" flex="1">
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/kit/newKit/newKit.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
Add your kit
</div>
</div>
<md-button ng-show="vm.step===1" class="md-flat md-primary timeline_buttonBack btn-round-new" ng-click="vm.backToProfile()">Back<span class="timeline-btn-extra"> to Profile</span></md-button>
<md-button class="md-flat md-primary timeline_buttonSave btn-round-new" ng-click="vm.submitStepOne()">Next</md-button>
<md-button ng-show="vm.step===1" class="timeline_buttonBack btn-round-new btn-outline-white" ng-click="vm.backToProfile()">Back<span class="timeline-btn-extra"> to Profile</span></md-button>
<md-button class="btn-round-new btn-outline-white-blue" ng-click="vm.submitStepOne()">Next</md-button>
</div>
</section>
<section class="timeline_content" flex="1">
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/upload/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<section class="upload-csv timeline" flex="1" layout="row" layout-align="center center">
<div class="container" layout="row" layout-align="space-between center">
<span class="timeline-title">CSV File Upload</span>
<md-button style="margin-left: auto" class="md-flat md-primary timeline_buttonBack" ui-sref="layout.home.kit({id: vm.kit.id})" >Back to Kit</md-button>
<md-button style="margin-left: auto" class="timeline_buttonBack btn-round-new btn-outline-white" ui-sref="layout.home.kit({id: vm.kit.id})" >Back to Kit</md-button>
<!-- <md-button style="margin-left: auto" class="md-flat md-primary timeline_buttonBack" ng-click="vm.backToProfile()">Back to Profile</md-button> -->
</div>
</div>
Expand Down
24 changes: 23 additions & 1 deletion src/app/helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@
background: white !important;
color: $off_black;
}
.btn-outline-white-blue{
border:2px solid white;
color: white;
padding:10px 29px;
}
.btn-outline-white-blue:hover{
background: $blue !important;
}
.btn-outline-yellow{
border:2px solid $yellow;
color: $yellow;
Expand All @@ -136,6 +144,7 @@
color: $off_black;
}
.btn-yellow{
border:2px solid $yellow;
background: $yellow;
color: $off_black;
padding:12px 29px;
Expand All @@ -155,6 +164,7 @@
color: white;
}
.btn-blue{
border:2px solid $blue;
background: $blue;
color: white;
padding:12px 29px;
Expand All @@ -164,9 +174,21 @@
color: $blue;
background: $grey_lighter !important;
}
.btn-white-blue{
border:2px solid white;
background: none;
color: white;
padding:12px 29px;
}

.btn-white-blue:hover{
color: $blue;
background: white !important;
border:2px solid $blue;
}

// TODO: Cosmetic Fix buttons in general
.btn-round-new{
.btn-round-new {
border-radius: 40px;
font-family: 'Roboto Condensed';
font-size: 16px;
Expand Down
23 changes: 0 additions & 23 deletions src/app/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1779,32 +1779,9 @@ footer {
// }
// }

.md-button.timeline_buttonSave {
color: white !important;
border: 2px solid white !important;
width: 130px;
height: 44px;
border-radius: 22px;
font-size: 18px;
font-weight: $font-weight-heavy;
}

.md-button.timeline_buttonBack{
color: white !important;
border: 2px solid white !important;
flex-shrink: 1;
flex-basis: 260px;
height: 44px;
border-radius: 22px;
font-size: 18px;
margin-left: auto;
margin-right: 20px;
font-weight: $font-weight-heavy;
}

.md-button.timeline_buttonBack:hover {
color: black !important;
background-color: white !important;
}

section.relaxed-layout {
Expand Down

0 comments on commit 2a8db7a

Please sign in to comment.