diff options
Update button groups and tabs style
1 files changed, 19 insertions, 16 deletions
| -rw-r--r-- | src/navigation.less | 35 |
diff --git a/src/navigation.less b/src/navigation.less index 503ca72..f6295bc 100644 --- a/src/navigation.less +++ b/src/navigation.less @@ -35,18 +35,22 @@ // Tabs .tab { - border-bottom: .1rem solid @control-color; display: flex; + flex-wrap: nowrap; + max-width: 100%; + overflow-x: auto; .tab-item { - margin-bottom: -.1rem; + border-bottom: .1rem solid @control-color; margin-top: 0; a { border-bottom: .2rem solid transparent; color: @body-font-color; display: block; - padding: .5rem 1.2rem; + margin-bottom: -.1rem; + margin-top: 0; + padding: .8rem 1.4rem; text-decoration: none; &:focus, &:hover { @@ -54,10 +58,18 @@ } } - &.active { - a { - border-bottom-color: darken(@core-color, 10%); - color: darken(@core-link-color, 10%); + &.active a, + a.active { + border-bottom-color: darken(@core-color, 10%); + color: darken(@core-link-color, 10%); + } + + .badge { + &[data-badge]::after { + position: absolute; + right: -1.4rem; + top: 1rem; + transform: translate(-50%, -1rem); } } } @@ -66,15 +78,6 @@ .tab-item { flex: 1 0 auto; text-align: center; - - .badge { - &[data-badge]::after { - position: absolute; - right: 1.5rem; - top: .6rem; - transform: translate(50%, -.8rem); - } - } } } } |