Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Make tabs more visible - Closes #220 #248

Merged
merged 2 commits into from
May 21, 2017
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
3 changes: 3 additions & 0 deletions src/components/forging/forging.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
forging {
md-card md-card {
background: #f7f8f9;
}
md-card-content {
padding: 0 0 5px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/forging/forging.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div.offline-hide
md-card.offline-hide
div
md-card.loading(ng-show='!$ctrl.delegate')
md-progress-linear(md-mode='indeterminate')
Expand Down
24 changes: 24 additions & 0 deletions src/components/main/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,27 @@ md-menu-item md-checkbox {
margin: 0;
padding: 8px;
}

md-tabs.main-tabs {
margin: 0 0 -8px 0;
md-tabs-wrapper {
margin: 0 8px;

&.md-stretch-tabs md-pagination-wrapper {
width: auto;
display: block;
}
md-ink-bar {
bottom: auto;
top: 0;
}
}
.md-tab {
background: #f4f4f4;
box-shadow: inset 0px -1px 1px -1px rgba(0, 0, 0, 0.12);
&.md-active {
background: white;
box-shadow: 0px -2px 1px 0px rgba(0,0,0,0.54);
}
}
}
2 changes: 1 addition & 1 deletion src/components/main/main.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
top
md-tabs(md-stretch-tabs='always')
md-tabs.main-tabs(md-stretch-tabs='always')
md-tab(data-ui-sref='main.transactions', md-active='$ctrl.activeTab === "main.transactions"')
md-tab-label Transactions
md-tab(data-ui-sref='main.voting', md-active='$ctrl.activeTab === "main.voting"')
Expand Down
1 change: 0 additions & 1 deletion src/components/transactions/transactions.pug
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
md-card.offline-hide
md-card-content
md-content(layout='row', layout-align='start center', layout-padding)
span.title.md-title Transactions
div(flex)
span.empty(ng-show='!$ctrl.transactions.length && $ctrl.loaded') No transactions
md-content(layout='column', layout-align='center center')
Expand Down