From 1ecf62eb670d77cc9122bdb6c80e261bbc6b3b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Mon, 3 Sep 2018 22:46:01 +0200 Subject: [PATCH] responsive fixes --- resources/scss/_main.scss | 77 +++++++++++++++++++++++++++------------ 1 file changed, 54 insertions(+), 23 deletions(-) diff --git a/resources/scss/_main.scss b/resources/scss/_main.scss index ae19f3f..007058f 100644 --- a/resources/scss/_main.scss +++ b/resources/scss/_main.scss @@ -2,6 +2,10 @@ section.presets { margin-top: 0.5rem; margin-bottom: 1rem; + @include media-breakpoint-down(md) { + text-align: center; + } + .btn { margin-bottom: 0.25rem; @@ -23,56 +27,83 @@ section.tabs { .nav-tabs { .nav-item { + flex-basis: 50%; + + @include media-breakpoint-down(lg) { + a { + border-bottom-left-radius: $border-radius; + border-bottom-right-radius: $border-radius; + } + + &:nth-last-child(-n+2) { + a { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + } + } + + @include media-breakpoint-up(xl) { + flex: 1 1 auto; + } + a { cursor: pointer; position: relative; transition: all 0.25s; - padding-left: 0.9rem; - padding-right: 0.9rem; + font-size: 0.9rem; + white-space: nowrap; - @include media-breakpoint-up(md) { - font-size: 0.8rem; + @include media-breakpoint-up(xl) { + padding-left: 0; + padding-right: 0; + font-size: 1rem; + text-align: center; } - @include media-breakpoint-up(lg) { - padding-left: 0.5rem; - padding-right: 0.5rem; - font-size: 0.9rem; - } + &.active { + @include media-breakpoint-down(lg) { + color: #fff; + border-color: #343a40; + background-color: #343a40; - @include media-breakpoint-up(xl) { - padding-left: 1rem; - padding-right: 1rem; - font-size: 1rem; + &.text-muted { + color: #fff !important; + } + } + + @include media-breakpoint-up(xl) { + border-bottom-color: #fff; + background-color: transparent; + } } &.changed { font-weight: 700; - padding-left: 0.5rem; - padding-right: 1.3rem; - - @include media-breakpoint-up(lg) { - padding-left: 0.3rem; - padding-right: 1.1rem; - } @include media-breakpoint-up(xl) { - padding-left: 0.6rem; - padding-right: 1.4rem; + padding-right: 1rem; } small { display: inline; + + @include media-breakpoint-up(xl) { + padding-left: 0.1rem; + } } } small { position: absolute; top: 50%; - right: 0.25rem; transform: translateY(-50%); display: none; color: #999; + + @include media-breakpoint-down(lg) { + right: 0.25rem; + } } } }