Skip to content

Commit a1b6d30

Browse files
updated tabnav for bottom position
1 parent be7448c commit a1b6d30

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

src/Components/Tabnav/Tabnav.scss

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
background: transparent;
2525
border: none;
2626
border-radius: 0 !important;
27-
line-height: initial;
27+
line-height: unset;
2828
font-size: 1.025em;
2929
color: theme('text-color');
3030
padding: .935rem 1.4rem;
@@ -53,19 +53,21 @@
5353
///
5454
/// Bottom Tabnav
5555
///
56-
&.#{$tabnav-bottom} {
57-
border-bottom: 0;
58-
border-top: $tabnav-border-width theme('border-style') theme('color-secondary');
59-
@include tab-button-styles() {
60-
margin-top: -$tabnav-border-width;
61-
border-top: $tabnav-border-width solid transparent;
56+
@if $components-tabnav-bottom-position {
57+
&.#{$tabnav-bottom} {
6258
border-bottom: 0;
63-
margin-bottom: 0;
64-
&:hover {
65-
border-top-color: theme('color-grey');
66-
}
67-
&.#{$tabnav-active} {
68-
border-top-color: theme('primary-color');
59+
border-top: $tabnav-border-width theme('border-style') theme('color-secondary');
60+
@include tab-button-styles() {
61+
margin-top: -$tabnav-border-width;
62+
border-top: $tabnav-border-width solid transparent;
63+
border-bottom: 0;
64+
margin-bottom: 0;
65+
&:hover {
66+
border-top-color: theme('color-grey');
67+
}
68+
&.#{$tabnav-active} {
69+
border-top-color: theme('primary-color');
70+
}
6971
}
7072
}
7173
}
@@ -85,6 +87,21 @@
8587
}
8688
}
8789
}
90+
///
91+
/// Bottom Tabnav
92+
///
93+
@if $components-tabnav-bottom-position {
94+
&.#{$type-name}.#{$tabnav-bottom} {
95+
.#{$button-class},
96+
a.#{$button-class},
97+
.#{$dropdown-name} .#{$button-class},
98+
.#{$dropdown-name} a.#{$button-class} {
99+
&.#{$tabnav-active} {
100+
border-top-color: $color;
101+
}
102+
}
103+
}
104+
}
88105
}
89106
}
90107
&.#{$tabnav-centered} {

0 commit comments

Comments
 (0)