@import "../tokens/spacing"; @import "../tokens/colors"; @import "../tokens/border_radius"; @import "../tokens/animation-curves"; @import "../tokens/typography"; @import "../pb_body/body_mixins"; @import "../pb_title/title_mixin"; @import "./subtle_mixin"; $selector: ".pb_nav_list"; [class^=pb_nav_list][class*=_vertical] { ul { padding: 0; margin: 0; list-style: none; } [class*=_title] { padding: 0 $space_md $space_sm; } // Normal Variant &[class*=_normal] { [class*=pb_nav_list_kit_item] { list-style: none; border-bottom: 1px solid $border_light; &[class*=_active] { [class*=_link] { border-color: $primary; [class*=_item_icon] { color: $primary; } [class*=_item_text] { color: $primary; font-weight: $bold; } } } [class*=_link] { text-decoration: none; display: flex; align-items: center; padding: $space_sm $space_sm $space_sm ($space_sm - 3px); border: 0 solid transparent; border-width: 0 0 0 3px; transition-property: color, border-color, background-color; transition-duration: 0.15s; transition-timing-function: $bezier; @media (hover:hover) { &:hover { background-color: rgba($primary, 0.03); [class*=_icon] { color: $primary; } [class*=_text] { color: $primary; } } } [class*=_icon_left] { font-size: $font_large; margin-right: $space_xs; color: $text_lt_lighter; } [class*=_icon_right] { font-size: $font_large; margin-left: $space_sm; color: $text_lt_default; } [class*=_text] { font-size: $font_base; color: $text_lt_default; flex: 1; } [class*=_img_left] { margin-right: $space_xs; height: 20px; width: 25px; } } &:last-child { border-bottom: 0; } } } // Subtle Variant &[class*=_subtle] { @include subtle; } // Show Highlight &[class*=_highlight] { [class*=_active] { background-color: $active_light; } &[class*=dark]{ [class*=_active] { background-color: rgba($white, $opacity_1); } } } &[class*=dark]{ background: tint($bg_dark,10%); [class*=pb_nav_list_kit_item]{ border-color: rgba($white, $opacity_1); &[class*=_active] [class*=_link]{ border-color: $white; [class*=_text],[class*=_icon]{ color: $text_dk_default; } } [class*=_link] { [class*=_text],[class*=_icon]{ color: $text_dk_lighter; } &:hover{ background-color: rgba($white, $opacity_1); [class*=_icon],[class*=_text] { color: $white; } } } } } //Borderless &[class*=_borderless] { [class*=pb_nav_list_kit_item] { list-style: none; border-bottom: 0; } } } //Image Wrapper .pb_nav_img_wrapper { width: 24px; height: 24px; margin-right: $space_xs; }