From 8cd398d4aae88d730c1af5b83cae00ab299b748e Mon Sep 17 00:00:00 2001 From: Spyros Nikolakis Date: Fri, 9 Feb 2018 11:52:56 +0200 Subject: [PATCH] made summaries page bottom nav-tab separate buttons --- src/pages/summary/summary.html | 18 ++++++++++-------- src/pages/summary/summary.scss | 19 ++++++++----------- src/theme/dark.scss | 2 +- src/theme/light.scss | 14 ++------------ 4 files changed, 21 insertions(+), 32 deletions(-) diff --git a/src/pages/summary/summary.html b/src/pages/summary/summary.html index a17bd38..ff7765b 100644 --- a/src/pages/summary/summary.html +++ b/src/pages/summary/summary.html @@ -53,14 +53,16 @@ -
- - -
+ + + + {{"Previous" | translate}} + + + {{"Next" | translate}} + + + diff --git a/src/pages/summary/summary.scss b/src/pages/summary/summary.scss index 85f4b9a..4500f69 100644 --- a/src/pages/summary/summary.scss +++ b/src/pages/summary/summary.scss @@ -83,24 +83,21 @@ page-summary { } #summaries-navigator { - position: relative; - bottom: 0; - display: table; - width: 100%; - height: 50px; padding: 10px; + margin-bottom: 25px; #nav-to-previous { - text-align: left; - display: table-cell; - vertical-align: middle; + text-align: center; + display: block; } #nav-to-next { - text-align: right; - display: table-cell; - vertical-align: middle; + text-align: center; + display: block; } a { + padding: 15px 10px; text-decoration: none; + max-width: 150px; + margin: 0 auto; } } } diff --git a/src/theme/dark.scss b/src/theme/dark.scss index 01a59d4..c1d3389 100644 --- a/src/theme/dark.scss +++ b/src/theme/dark.scss @@ -45,8 +45,8 @@ ion-nav.dark-theme { color: lightgray; } #summaries-navigator { - background-color: $dark-gray; a { + background-color: $dark-gray; color: $white; } } diff --git a/src/theme/light.scss b/src/theme/light.scss index 3bfb931..40c5396 100644 --- a/src/theme/light.scss +++ b/src/theme/light.scss @@ -4,21 +4,11 @@ $almost-white: rgb(248, 248, 248); ion-nav.light-theme { page-summary { #summaries-navigator { - background-color: $almost-white; a { + border: 1px solid $dark-gray; + background-color: $almost-white; color: $dark-gray; } - &:before { - left: 0; - top: -5px; - background-position: left 0 bottom -2px; - position: absolute; - width: 100%; - height: 5px; - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAHBAMAAADzDtBxAAAAD1BMVEUAAAAAAAAAAAAAAAAAAABPDueNAAAABXRSTlMUCS0gBIh/TXEAAAAaSURBVAjXYxCEAgY4UIICBmMogMsgFLtAAQCNSwXZKOdPxgAAAABJRU5ErkJggg==); - background-repeat: repeat-x; - content: ""; - } } } }