GitHub Selected Tab Color by stylishthemes

Imported from https://raw.githubusercontent.com/StylishThemes/GitHub-Selected-Tab-Color/master/github-selected-tab-color.user.css

GitHub Selected Tab Color screenshot
Homepage Install Get Stylus Write a review

Details

Authorstylishthemes

LicenseCC-BY-SA-4.0

Created atApril 03, 2021 00:44

Updated atApril 03, 2021 00:44

Applies toGitHub

Statistics

Learn how we calculate statistics in the FAQ.

Total views149

Total installs127

Weekly installs7

Weekly updates9

Description

Add a custom selected tab color to GitHub

Notes

Userstyle doesn't have notes.

History

Daily snapshots of style statistics.

2021-07-072021-07-212021-08-032021-08-172021-08-302021-09-122021-09-262021-10-092021-10-222021-11-052021-11-182021-12-01Date0.000.881.752.633.504.385.256.137.00Daily countDaily installsDaily updatesDaily views
2021-07-072021-07-212021-08-032021-08-172021-08-302021-09-122021-09-262021-10-092021-10-222021-11-052021-11-182021-12-01Date0.0019.0038.0057.0075.0094.00113.00132.00150.00Total countTotal installsTotal views

Source code

/* ==UserStyle==
@name         GitHub Selected Tab Color
@version      1.3.0
@description  Add a custom selected tab color to GitHub
@namespace    github.com/StylishThemes
@author       StylishThemes <https://github.com/StylishThemes>
@homepageURL  https://github.com/StylishThemes/GitHub-Selected-Tab-Color
@supportURL   https://github.com/StylishThemes/GitHub-Selected-Tab-Color/issues
@updateURL    https://raw.githubusercontent.com/StylishThemes/GitHub-Selected-Tab-Color/master/github-selected-tab-color.user.css
@license      CC-BY-SA-4.0
@advanced     color base-color "Tab color" #4183C4
@preprocessor uso
==/UserStyle== */
@-moz-document regexp("^https?://((blog|gist|guides|docs|lab|launch-editor|raw|resources|status|support|developer)\\.)?github\\.com/((?!generated_pages/preview).)*$"), domain("www.githubstatus.com") {
  :root {
    --base-color: /*[[base-color]]*/;
    --transparent: transparent;
  }
  body .pagehead-tabs-item.selected,
  body .reponav .reponav-item.selected,
  body .btn-link.selected,
  body .tabnav-tab.selected,
  body .tabnav-pr .tabnav-tab.selected,
  body #graph_data .tab.selected,
  body .select-menu-tabs .select-menu-tab-nav[aria-selected="true"],
  body .tabnav-tab[aria-selected=true],
  body .history-nav .button.border-color,
  body .timeline-comment.current-user .tabnav-tab.selected,
  body .tabnav-tab[aria-current] {
    border-top-width: 3px !important;
    border-top-color: var(--base-color) !important;
  }
  body .repo-filterer .repo-filter.filter-selected,
  body .filter-selected,
  body .sub-nav ul a.active,
  body .IconNav-item.selected,
  body .UnderlineNav-item:focus,
  body .UnderlineNav-item:hover,
  body .UnderlineNav-item.selected,
  body .user-status-emoji-tab[role=tab][aria-selected=true],
  body .SegmentedNav .subnav-link.selected,
  body .SegmentedNav .subnav-link:hover,
	body .UnderlineNav-item[role="tab"][aria-selected="true"],
	body .UnderlineNav-item[aria-current]:not([aria-current="false"]) {
    border-bottom-color: var(--base-color) !important;
  }
  body .selected .security-nav-item {
    box-shadow: inset 0 -3px 0 var(--base-color) !important;
  }
  body .menu-item.selected::before,
  body .checks-index-item.selected::after,
  body .SideNav-item[aria-current="page"]::before,
  body .SideNav-item[aria-selected="true"]::before,
  body .SideNav-item:focus::before,
  body .SideNav-item:hover::before {
    background-color: var(--base-color) !important;
  }
  body .js-current .standalone a,
  body .sidebar-module .disable > a {
    border-left-color: var(--base-color) !important;
  }
  @media (hover: hover) {
    body .SelectMenu-tab[aria-selected=true] {
      border-top-width: 2px;
      border-top-color: var(--base-color) !important;
    }
  }
  /* Start Mobile */
  body[class="page-responsive"] .tabs > a.selected,
  body[class="page-responsive"] a.reponav-item.selected {
    border-top-width: 2px !important;
    border-top-color: var(--base-color) !important;
  }
  body a.subnav-link:not(.subnav-primary).selected,
  body a.subnav-link:not(.subnav-primary):hover {
    border-bottom-color: var(--base-color) !important;
  }
  /* see issue https://github.com/StylishThemes/GitHub-Dark/issues/918 */
  @media screen and (max-width: 768px) {
    body .site-subnav .subnav-primary.selected,
    body .site-subnav .subnav-primary:hover {
      border-bottom-color: var(--transparent) !important;
    }
  }
  /* End Mobile */
  /* see issue https://github.com/StylishThemes/GitHub-Dark/issues/918 */
  @media screen and (min-width: 1024px) {
    body .site-subnav .subnav-primary.selected,
    body .site-subnav .subnav-primary:hover {
      border-bottom-color: var(--base-color) !important;
    }
  }
  /* reset shifting selected tabs text down issue #16 */
  body .reponav .reponav-item.selected {
    padding-top: 7px !important;
  }
  body .hx_reponav.reponav .reponav-item.selected {
    padding-top: 5px !important;
    border-bottom: 0 !important;
  }
  body .hx_reponav.reponav .reponav-item {
    padding-top: 7px !important;
    border-bottom: 0 !important;
  }
  body .orgnav .pagehead-tabs-item.selected {
    padding-top: 8px !important;
  }
  body .orgnav .pagehead-tabs-item {
    border-bottom: 0 !important;
  }
}

Reviews

No reviews yet.