Skip to content

Commit f6bf48c

Browse files
added .active class to navbar items
1 parent 6f73ad4 commit f6bf48c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/Components/Navbar/Navbar.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@
146146
background: darken(theme('color', 'primary'), 10.15%);
147147
border-radius: 0;
148148
}
149+
&:active,
150+
&.#{class('button', 'active')} {
151+
color: theme('color', 'negative');
152+
background: darken(theme('color', 'primary'), 7%);
153+
transition: variables('button', 'transition');
154+
&:hover {
155+
transition: variables('button', 'transition');
156+
background: darken(theme('color', 'primary'), 10%);
157+
}
158+
}
149159
}
150160
.#{class('button', 'dropdown')}:last-child,
151161
.#{class('button', 'dropdown')}:last-child > .#{class('button', 'name')}:first-child,

src/Components/Navbar/mixins.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,21 @@
7979
outline: theme('input', 'outline-width') solid lighten($input-border-color, 13%);
8080
}
8181
}
82+
.#{class('button', 'group')} {
83+
.#{class('button', 'name')},
84+
.#{class('button', 'dropdown')} .#{class('button', 'name')} {
85+
&:active,
86+
&.#{class('button', 'active')} {
87+
color: $text-color;
88+
background: darken($bg-color, 7%);
89+
transition: variables('button', 'transition');
90+
&:hover {
91+
transition: variables('button', 'transition');
92+
background: darken($bg-color, 10%);
93+
}
94+
}
95+
}
96+
}
8297
///
8398
/// DIVIDED NAVBAR
8499
///

0 commit comments

Comments
 (0)