fix: theme's menu_text_active stopped working

Fix #1430
This commit is contained in:
George Cushen committed 2019-11-18 23:11:01 +00:00
1 parent b9bba28813
commit d7749fdaa8
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -42,6 +42,7 @@
&.active {
font-weight: bold !important;
color: $sta-menu-text-active !important;
}
}
}
@@ -50,8 +51,11 @@
font-size: #{$sta-font-size-small}px;
}
.dropdown-item.active {
// Note: dedicated `i18n-active` class to prevent ScrollSpy removing `active` class from language chooser.
.dropdown-item.active,
.i18n-active {
font-weight: bold;
color: $sta-menu-text-active !important;
}
}
+1 -1
View File
@@ -121,7 +121,7 @@
<i class="fas fa-globe mr-1" aria-hidden="true"></i><span class="d-none d-lg-inline">{{ index site.Data.i18n.languages .Lang }}</span>
</a>
<div class="dropdown-menu">
<div class="dropdown-item active font-weight-bold">
<div class="dropdown-item i18n-active font-weight-bold">
<span>{{ index site.Data.i18n.languages .Lang }}</span>
</div>
{{ range .Translations }}