/* menu */ /* A menu on the side of a page, defaults to left side. e.g. github.com/about */ .menu { /* stylelint-disable-next-line primer/spacing */ margin-bottom: var(--stack-gap-normal); list-style: none; background-color: var(--bgColor-default); border: var(--borderWidth-thin) solid var(--borderColor-default); border-radius: var(--borderRadius-medium); } .menu-item { position: relative; display: block; /* stylelint-disable-next-line primer/spacing */ padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious); color: var(--fgColor-default); border-bottom: var(--borderWidth-thin) solid var(--borderColor-default); &:first-child { border-top: 0; border-top-left-radius: var(--borderRadius-medium); border-top-right-radius: var(--borderRadius-medium); &::before { border-top-left-radius: var(--borderRadius-medium); } } &:last-child { border-bottom: 0; border-bottom-right-radius: var(--borderRadius-medium); border-bottom-left-radius: var(--borderRadius-medium); &::before { border-bottom-left-radius: var(--borderRadius-medium); } } &:hover { text-decoration: none; background-color: var(--bgColor-neutral-muted); } &:active { background-color: var(--bgColor-muted); } &.selected, &[aria-selected='true'], &[aria-current]:not([aria-current='false']) { cursor: default; background-color: var(--menu-bgColor-active); &::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; content: ''; /* stylelint-disable-next-line primer/colors */ background-color: var(--underlineNav-borderColor-active); } } & .octicon { width: 16px; /* stylelint-disable-next-line primer/spacing */ margin-right: var(--control-medium-gap); color: var(--fgColor-muted); text-align: center; } & .Counter { float: right; /* stylelint-disable-next-line primer/spacing */ margin-left: var(--control-small-gap); } & .menu-warning { float: right; color: var(--fgColor-attention); } & .avatar { float: left; /* stylelint-disable-next-line primer/spacing */ margin-right: var(--control-small-gap); } &.alert { & .Counter { color: var(--fgColor-danger); } } } .menu-heading { display: block; /* stylelint-disable-next-line primer/spacing */ padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious); margin-top: 0; margin-bottom: 0; font-size: inherit; font-weight: var(--base-text-weight-semibold); color: var(--fgColor-default); border-bottom: var(--borderWidth-thin) solid var(--borderColor-default); &:hover { text-decoration: none; } &:first-child { border-top-left-radius: var(--borderRadius-medium); border-top-right-radius: var(--borderRadius-medium); } &:last-child { border-bottom: 0; border-bottom-right-radius: var(--borderRadius-medium); border-bottom-left-radius: var(--borderRadius-medium); } }