_sass/@primer/css/navigation/sidenav.scss in jekyll-v4-theme-primer-0.12.0 vs _sass/@primer/css/navigation/sidenav.scss in jekyll-v4-theme-primer-0.13.0
- old
+ new
@@ -1,33 +1,33 @@
// Side Nav
//
// A vertical list of navigational links, typically used on the left side of a page.
.SideNav {
- background-color: var(--color-canvas-subtle);
+ background-color: var(--bgColor-muted, var(--color-canvas-subtle));
}
.SideNav-item {
position: relative;
display: block;
width: 100%;
// stylelint-disable-next-line primer/spacing
padding: 12px $spacer-3;
- color: var(--color-fg-default);
+ color: var(--fgColor-default, var(--color-fg-default));
text-align: left;
background-color: transparent;
border: 0;
- border-top: $border-width $border-style var(--color-border-muted);
+ border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
&:first-child {
border-top: 0;
}
&:last-child {
// makes sure there is a "bottom border" in case the list is not long enough
// stylelint-disable-next-line primer/box-shadow
- box-shadow: 0 $border-width 0 var(--color-border-default);
+ box-shadow: 0 $border-width 0 var(--borderColor-default, var(--color-border-default));
}
// Bar on the left
&::before {
position: absolute;
@@ -43,35 +43,35 @@
// States
.SideNav-item:hover {
text-decoration: none;
- background-color: var(--color-neutral-subtle);
+ background-color: var(--bgColor-neutral-muted, var(--color-neutral-subtle));
}
.SideNav-item:active {
- background-color: var(--color-canvas-subtle);
+ background-color: var(--bgColor-muted, var(--color-canvas-subtle));
}
.SideNav-item[aria-current]:not([aria-current='false']),
.SideNav-item[aria-selected='true'] {
- background-color: var(--color-sidenav-selected-bg);
+ background-color: var(--sideNav-bgColor-selected, var(--color-sidenav-selected-bg));
// Bar on the left
&::before {
- background-color: var(--color-primer-border-active);
+ background-color: var(--underlineNav-borderColor-active, var(--color-primer-border-active));
}
}
// Icon
//
// Makes sure multiple icons are vertically aligned
.SideNav-icon {
width: 16px;
margin-right: $spacer-2;
- color: var(--color-fg-muted);
+ color: var(--fgColor-muted, var(--color-fg-muted));
}
// Sub Nav
//
// A more lightweight version, suited as a sub nav
@@ -79,21 +79,21 @@
.SideNav-subItem {
position: relative;
display: block;
width: 100%;
padding: $spacer-1 0;
- color: var(--color-accent-fg);
+ color: var(--fgColor-accent, var(--color-accent-fg));
text-align: left;
background-color: transparent;
border: 0;
}
.SideNav-subItem:hover {
- color: var(--color-fg-default);
+ color: var(--fgColor-default, var(--color-fg-default));
text-decoration: none;
}
.SideNav-subItem[aria-current]:not([aria-current='false']),
.SideNav-subItem[aria-selected='true'] {
font-weight: $font-weight-semibold;
- color: var(--color-fg-default);
+ color: var(--fgColor-default, var(--color-fg-default));
}