Nav: Change parent icon with Material icons arrows

This commit is contained in:
Konstantinos Triantafyllou 2022-11-03 15:49:40 +02:00
parent c2bf664ce3
commit a1cc7cb316
1 changed files with 26 additions and 1 deletions

View File

@ -1,11 +1,15 @@
@nav-parent-icon-width: @global-line-height; @nav-parent-icon-width: @global-line-height;
@nav-default-item-color: @global-meta-color; @nav-default-item-color: @global-color;
@nav-default-item-hover-color: @global-link-hover-color; @nav-default-item-hover-color: @global-link-hover-color;
@nav-default-item-active-font-weight: 600; @nav-default-item-active-font-weight: 600;
@nav-item-padding-horizontal: 30px; @nav-item-padding-horizontal: 30px;
@nav-sublist-padding-left: 45px; @nav-sublist-padding-left: 45px;
@nav-default-sublist-item-color: @nav-default-item-color;
@nav-default-sublist-item-hover-color: @nav-default-item-hover-color;
@nav-default-sublist-item-active-font-weight: @nav-default-item-active-font-weight;
@nav-header-color: @global-emphasis-color; @nav-header-color: @global-emphasis-color;
.hook-nav-default-item-active() { .hook-nav-default-item-active() {
@ -15,3 +19,24 @@
.hook-nav-header() { .hook-nav-header() {
color: @nav-header-color; color: @nav-header-color;
} }
.hook-nav-parent-icon() {
background-image: none !important;
font-family: "Material Icons";
font-weight: 400 !important;
font-size: 1.5em;
width: auto;
height: auto;
content: "\e5c5";
}
.hook-nav-misc() {
.uk-nav-default .uk-nav-sub li.uk-active > a {
font-weight: @nav-default-item-active-font-weight;
}
.uk-nav-parent-icon > .uk-parent.uk-open > a::after {
content: "\e5c7";
}
}