Skip to content

Commit

Permalink
file view fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Nov 14, 2024
1 parent f341f4c commit 49f89cb
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 0 deletions.
239 changes: 239 additions & 0 deletions github-dark.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@
.text-mono, .kKFNhh, .Link--secondary {
color: #aaa !important;
}
table[class*="DiffLines-module"], div[data-diff-anchor], #comments .border {
background: #181818;
}
/* remove frontpage background */
.application-main > .color-bg-default, .feed-background {
background: transparent !important;
Expand Down Expand Up @@ -542,6 +545,9 @@
.GlowCircleBackground-module__backgroundContainer--Lnepi {
background-color: #f0f0f0;
}
.cgFZpq:hover, .gjQlJX, .jdgHnn th {
background-color: var(--bgColor-muted, var(--color-canvas-subtle, #222));
}
[data-color-mode="auto"][data-light-theme="light"],
[data-color-mode="auto"][data-light-theme="light"] ::backdrop,
[data-color-mode="light"][data-light-theme="light"],
Expand Down Expand Up @@ -1541,6 +1547,239 @@
background-color: transparent;
}
}
.bHLmSv {
background-color: transparent;
}
.kTvpNk {
background-color: var(--bgColor-muted, var(--color-canvas-subtle, #222));
}
.kBQCgV {
background-color: transparent;
}
.kBQCgV, .kBQCgV:focus:not(:disabled) {
box-shadow: none;
}
.kBQCgV:focus-visible:not(:disabled) {
box-shadow: none;
}
.kBQCgV:disabled {
box-shadow: none;
background-color: var(--button-invisible-bgColor-disabled, transparent);
}
.kBQCgV[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.dPmZyJ {
background-color: transparent;
}
.dPmZyJ, .dPmZyJ:focus:not(:disabled) {
box-shadow: none;
}
.dPmZyJ:focus-visible:not(:disabled) {
box-shadow: none;
}
.dPmZyJ:disabled {
box-shadow: none;
background-color: var(--button-invisible-bgColor-disabled, transparent);
}
.dPmZyJ[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.iQGjqs {
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg, #222));
}
.iQGjqs:focus:not(:disabled) {
box-shadow: none;
}
.iQGjqs:focus-visible:not(:disabled) {
box-shadow: none;
}
.iQGjqs:disabled {
box-shadow: none;
}
.iQGjqs[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.iQGjqs:hover:not([disabled]):not([data-inactive]) {
background-color: var(--button-default-bgColor-hover, var(--color-btn-hover-bg, #242424));
}
.iLfocZ {
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg, #222));
}
.iLfocZ:focus:not(:disabled) {
box-shadow: none;
}
.iLfocZ:focus-visible:not(:disabled) {
box-shadow: none;
}
.iLfocZ:disabled {
box-shadow: none;
}
.iLfocZ[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.iLfocZ:hover:not([disabled]):not([data-inactive]) {
background-color: var(--button-default-bgColor-hover, var(--color-btn-hover-bg, #242424));
}
.JVsBq {
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg, #222));
}
.JVsBq:focus:not(:disabled) {
box-shadow: none;
}
.JVsBq:focus-visible:not(:disabled) {
box-shadow: none;
}
.JVsBq:disabled {
box-shadow: none;
}
.JVsBq[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.JVsBq:hover:not([disabled]):not([data-inactive]) {
background-color: var(--button-default-bgColor-hover, var(--color-btn-hover-bg, #242424));
}
.fwExmK {
background-color: transparent;
}
.fwExmK, .fwExmK:focus:not(:disabled) {
box-shadow: none;
}
.fwExmK:focus-visible:not(:disabled) {
box-shadow: none;
}
.fwExmK:disabled {
box-shadow: none;
background-color: var(--button-invisible-bgColor-disabled, transparent);
}
.fwExmK[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.ifVXZX {
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg, #222));
}
.ifVXZX:focus:not(:disabled) {
box-shadow: none;
}
.ifVXZX:focus-visible:not(:disabled) {
box-shadow: none;
}
.ifVXZX:disabled {
box-shadow: none;
}
.ifVXZX[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.ifVXZX:hover:not([disabled]):not([data-inactive]) {
background-color: var(--button-default-bgColor-hover, var(--color-btn-hover-bg, #242424));
}
.gGdPyq {
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg, #222));
}
.gGdPyq:focus:not(:disabled) {
box-shadow: none;
}
.gGdPyq:focus-visible:not(:disabled) {
box-shadow: none;
}
.gGdPyq:disabled {
box-shadow: none;
}
.gGdPyq[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.gGdPyq:hover:not([disabled]):not([data-inactive]) {
background-color: var(--button-default-bgColor-hover, var(--color-btn-hover-bg, #242424));
}
.dOuZvu {
background-color: var(--button-default-bgColor-rest, var(--color-btn-bg, #222));
}
.dOuZvu:focus:not(:disabled) {
box-shadow: none;
}
.dOuZvu:focus-visible:not(:disabled) {
box-shadow: none;
}
.dOuZvu:disabled {
box-shadow: none;
}
.dOuZvu[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.dOuZvu:hover:not([disabled]):not([data-inactive]) {
background-color: var(--button-default-bgColor-hover, var(--color-btn-hover-bg, #242424));
}
.kOvYzm {
background-color: transparent;
}
.kOvYzm, .kOvYzm:focus:not(:disabled) {
box-shadow: none;
}
.kOvYzm:focus-visible:not(:disabled) {
box-shadow: none;
}
.kOvYzm:disabled {
box-shadow: none;
background-color: var(--button-invisible-bgColor-disabled, transparent);
}
.kOvYzm[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.ggSvLP {
background-color: transparent;
}
.ggSvLP, .ggSvLP:focus:not(:disabled) {
box-shadow: none;
}
.ggSvLP:focus-visible:not(:disabled) {
box-shadow: none;
}
.ggSvLP:disabled {
box-shadow: none;
background-color: var(--button-invisible-bgColor-disabled, transparent);
}
.ggSvLP[data-inactive]:not([disabled]):focus-visible {
box-shadow: none;
}
.hWlpPn::after {
color: var(--tooltip-fgColor, var(--fgColor-onEmphasis, var(--color-fg-on-emphasis, #181818)));
}
.gwqFqs {
background-color: var(--bgColor-default, var(--color-canvas-default, #181818));
}
.dwImxt, .kbCLEG {
background-color: transparent;
}
.dwImxt:focus:not(:disabled) {
box-shadow: none;
}
.dwImxt:focus-visible:not(:disabled) {
box-shadow: none;
}
.dwImxt .segmentedControl-content {
background-color: var(--controlKnob-bgColor-rest, var(--color-segmented-control-button-bg, #181818));
}
.iFTkun {
background-color: transparent;
}
.iFTkun:focus:not(:disabled) {
box-shadow: none;
}
.iFTkun:focus-visible:not(:disabled) {
box-shadow: none;
}
.bHmvop, .iFTkun .segmentedControl-content {
background-color: transparent;
}
.bHmvop:focus:not(:disabled) {
box-shadow: none;
}
.bHmvop:focus-visible:not(:disabled) {
box-shadow: none;
}
.bHmvop .segmentedControl-content {
background-color: transparent;
}
/* end github.com rules */
body, body.bg-gray {
color: var(--ghd-body-color);
Expand Down
3 changes: 3 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
.text-mono, .kKFNhh, .Link--secondary {
color: #aaa !important;
}
table[class*="DiffLines-module"], div[data-diff-anchor], #comments .border {
background: #181818;
}
/* remove frontpage background */
.application-main > .color-bg-default, .feed-background {
background: transparent !important;
Expand Down

0 comments on commit 49f89cb

Please sign in to comment.