Skip to content

Commit 4f546a8

Browse files
committed
fix: modal nav link active state
1 parent 0f7c44b commit 4f546a8

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

assets/scss/theme/utilities.scss

+22
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,25 @@ $siam: #565D50; // siam
227227
text-fill-color: $codGray;
228228
}
229229
}
230+
231+
@mixin gradientTextBase {
232+
background-clip: text;
233+
-moz-background-clip: text;
234+
-webkit-text-fill-color: transparent;
235+
-moz-text-fill-color: transparent;
236+
text-fill-color: transparent;
237+
// IE11 fix
238+
@include IE10and11 {
239+
background: none;
240+
}
241+
&::-moz-selection {
242+
-webkit-text-fill-color: $codGray;
243+
-moz-text-fill-color: $codGray;
244+
text-fill-color: $codGray;
245+
}
246+
&::selection {
247+
-webkit-text-fill-color: $codGray;
248+
-moz-text-fill-color: $codGray;
249+
text-fill-color: $codGray;
250+
}
251+
}

components/navbar.vue

+6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ const scrollToSection = async (el) => {
6969
}
7070
.nav-link {
7171
@include hamburgerCTA;
72+
background: linear-gradient(135deg, rgba(166,200,136,1) 0%, rgba(212,212,212,1) 33%, rgba(211,211,211,1) 66%, rgba(211,211,211,1) 100%);
73+
@include gradientTextBase;
74+
background-size: 300%;
75+
background-position: 50% 0;
76+
&:active,
7277
&:hover {
78+
background-position: 0% 0;
7379
transform: none;
7480
&:before,
7581
&:after {

0 commit comments

Comments
 (0)