/* tabnav */ /* Outer wrapper */ .tabnav { margin-top: 0; margin-bottom: var(--yattho-stack-gap-normal, 16px); border-bottom: var(--yattho-borderWidth-thin, 1px) solid var(--color-border-default); } .tabnav-tabs { display: flex; margin-bottom: calc(var(--yattho-borderWidth-thin, 1px) * -1); overflow: auto; } .tabnav-tab { display: inline-block; flex-shrink: 0; padding: var(--base-size-8, 8px) var(--yattho-control-medium-paddingInline-spacious, 16px); font-size: var(--yattho-text-body-size-medium, 14px); line-height: 23px; color: var(--color-fg-muted); text-decoration: none; background-color: transparent; border: var(--yattho-borderWidth-thin, 1px) solid transparent; border-bottom: 0; transition: color 0.2s cubic-bezier(0.3, 0, 0.5, 1); } .tabnav-tab.selected, .tabnav-tab[aria-selected='true'], .tabnav-tab[aria-current]:not([aria-current='false']) { color: var(--color-fg-default); background-color: var(--color-canvas-default); /* cover bottom border */ border-color: var(--color-border-default); border-radius: var(--yattho-borderRadius-medium, 6px) var(--yattho-borderRadius-medium, 6px) 0 0; } .tabnav-tab.selected .octicon, .tabnav-tab[aria-selected='true'] .octicon, .tabnav-tab[aria-current]:not([aria-current='false']) .octicon { color: inherit; } .tabnav-tab:hover { color: var(--color-fg-default); text-decoration: none; transition-duration: 0.1s; } .tabnav-tab:focus, .tabnav-tab:focus-visible { border-radius: var(--yattho-borderRadius-medium, 6px) var(--yattho-borderRadius-medium, 6px) 0 0 !important; } .tabnav-tab:focus, .tabnav-tab:focus-visible { outline-offset: -6px; } .tabnav-tab:active { color: var(--color-fg-muted); } .tabnav-tab .octicon { margin-right: var(--yattho-control-small-gap, 4px); color: var(--color-fg-muted); } .tabnav-tab .Counter { margin-left: var(--yattho-control-small-gap, 4px); color: inherit; } /* Tabnav extras ** ** Tabnav extras are non-tab elements that sit in the tabnav. Usually they're ** inline text or links. */ .tabnav-extra { display: inline-block; padding-top: 10px; margin-left: 10px; font-size: var(--yattho-text-body-size-small, 12px); color: var(--color-fg-muted); } .tabnav-extra > .octicon { margin-right: 2px; } /* When tabnav-extra are anchors ** stylelint-disable-next-line selector-no-qualifying-type */ a.tabnav-extra:hover { color: var(--color-accent-fg); text-decoration: none; } /* Tabnav buttons ** ** For when there are multiple buttons, space them out appropriately. Requires ** the buttons to be floated or inline-block. */ .tabnav-btn { margin-left: var(--yattho-controlStack-medium-gap-condensed, 8px); }