diff options
Merge pull request #108 from picturepan2/feature/general-improvements
Feature/general improvements
1 files changed, 26 insertions, 25 deletions
| -rw-r--r-- | src/navigation.less | 51 |
diff --git a/src/navigation.less b/src/navigation.less index 82d0e6f..f6295bc 100644 --- a/src/navigation.less +++ b/src/navigation.less @@ -16,7 +16,6 @@ a { text-decoration: none; } - &:last-child { &, a { @@ -24,7 +23,6 @@ pointer-events: none; } } - &:not(:last-child) { &::after { color: @control-color; @@ -34,33 +32,44 @@ } } } + // 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.5rem; + margin-bottom: -.1rem; + margin-top: 0; + padding: .8rem 1.4rem; text-decoration: none; - - &:hover, - &:focus { - border-bottom-color: @core-color; + &:focus, + &:hover { color: @core-link-color; } } - &.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); } } } @@ -69,18 +78,10 @@ .tab-item { flex: 1 0 auto; text-align: center; - - .badge { - &[data-badge]::after { - position: absolute; - right: 1.5rem; - top: .6rem; - transform: translate(50%, -.8rem); - } - } } } } + // Pagination .pagination { display: inline-block; @@ -93,15 +94,15 @@ display: inline-block; padding: .6rem .5rem; } + a { border-radius: .3rem; display: inline-block; margin: 0 .1rem; padding: .6rem 1.2rem; text-decoration: none; - - &:hover, - &:focus { + &:focus, + &:hover { background: @core-secondary-color; } } |