From 93e0a82f2e91537941c56b1cb31f29e9e4a9338e Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 10 Jan 2018 11:41:00 +0100 Subject: [PATCH] Improve tab header styles, center headings, flexbox Signed-off-by: Jan-Christoph Borchardt --- css/style.scss | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/css/style.scss b/css/style.scss index b767dfe85..095658242 100644 --- a/css/style.scss +++ b/css/style.scss @@ -802,32 +802,39 @@ video { /* START: move padding fixes and icons-for-tabs capability into core */ .tabHeaders { + display: flex; margin-top: 0; + margin-bottom: 10px; } .tabHeaders .tabHeader { + flex-basis: 50%; + flex-grow: 0; padding: 12px; - padding-left: 32px; - background-position: 12px; - background-repeat: no-repeat; - opacity: .5; + text-align: center; + border-bottom: 1px solid $color-border; + margin-bottom: 0; + + a { + padding-left: 32px; + background-position: 12px; + background-repeat: no-repeat; + color: $color-main-text; + opacity: .5; + } } -.tabHeaders .tabHeader a { - color: $color-main-text; -} - -.tabHeaders .tabHeader.selected, -.tabHeaders .tabHeader:hover, -.tabHeaders .tabHeader:focus { +.tabHeaders .tabHeader.selected a, +.tabHeaders .tabHeader:hover a, +.tabHeaders .tabHeader:focus a { opacity: 1; } -#tabHeaderChat { +#tabHeaderChat a { background-image: url('../../../core/img/actions/comment.svg?v=1'); } -#tabHeaderParticipants { +#tabHeaderParticipants a { background-image: url('../../../core/img/places/contacts-dark.svg?v=1'); } /* END: move padding fixes and icons-for-tabs capability into core */