From 7f5e66f2632d5b6323522795d4e4273a86632291 Mon Sep 17 00:00:00 2001 From: ImXiangYu <2670833123@qq.com> Date: Fri, 6 Mar 2026 15:26:01 +0800 Subject: [PATCH 1/6] fix: remove existing SVG icons from cloned templates to prevent incorrect icons --- better-github-nav.user.js | 6 ++++-- package-lock.json | 4 ++-- package.json | 2 +- src/navigation.js | 4 ++++ 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/better-github-nav.user.js b/better-github-nav.user.js index ba87771..525f0b0 100644 --- a/better-github-nav.user.js +++ b/better-github-nav.user.js @@ -2,7 +2,7 @@ // @name Better GitHub Navigation // @name:zh-CN 更好的 GitHub 导航栏 // @namespace https://github.com/ImXiangYu/better-github-nav -// @version 0.1.33 +// @version 0.1.34 // @description Add quick access to Dashboard, Trending, Explore, Collections, and Stars from GitHub's top navigation. // @description:zh-CN 在 GitHub 顶部导航中加入 Dashboard、Trending、Explore、Collections、Stars 快捷入口,常用页面一键直达。 // @author Ayubass @@ -16,7 +16,7 @@ (() => { // src/constants.js - var SCRIPT_VERSION = "0.1.33"; + var SCRIPT_VERSION = "0.1.34"; var CUSTOM_BUTTON_CLASS = "custom-gh-nav-btn"; var CUSTOM_BUTTON_ACTIVE_CLASS = "custom-gh-nav-btn-active"; var CUSTOM_BUTTON_COMPACT_CLASS = "custom-gh-nav-btn-compact"; @@ -393,6 +393,8 @@ function setLinkText(aTag, text) { aTag.removeAttribute("aria-describedby"); aTag.setAttribute("aria-label", text); + const icons = aTag.querySelectorAll("svg"); + icons.forEach((icon) => icon.remove()); const innerSpan = aTag.querySelector("span"); if (innerSpan) { innerSpan.textContent = text; diff --git a/package-lock.json b/package-lock.json index 119b280..64f611a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "better-github-nav", - "version": "0.1.33", + "version": "0.1.34", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "better-github-nav", - "version": "0.1.33", + "version": "0.1.34", "license": "MIT", "devDependencies": { "esbuild": "^0.27.3" diff --git a/package.json b/package.json index 751443e..0ddf74d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-github-nav", - "version": "0.1.33", + "version": "0.1.34", "description": "Build tools for the Better GitHub Navigation userscript.", "private": true, "scripts": { diff --git a/src/navigation.js b/src/navigation.js index cddbd78..cf6c021 100644 --- a/src/navigation.js +++ b/src/navigation.js @@ -34,6 +34,10 @@ export function setLinkText(aTag, text) { aTag.removeAttribute('aria-describedby'); aTag.setAttribute('aria-label', text); + // 移除所有已存在的图标(SVG),防止从模板克隆出错误的图标 + const icons = aTag.querySelectorAll('svg'); + icons.forEach(icon => icon.remove()); + const innerSpan = aTag.querySelector('span'); if (innerSpan) { innerSpan.textContent = text; From 210b9eec9f56f9c4b6ed0e1879ae9800299c1701 Mon Sep 17 00:00:00 2001 From: ImXiangYu <2670833123@qq.com> Date: Fri, 6 Mar 2026 15:26:37 +0800 Subject: [PATCH 2/6] chore: update gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 327f723..aebc377 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,5 @@ vite.config.js.timestamp-* vite.config.ts.timestamp-* TODO.md + +temp/ From a0bb2438d30947bcafca4d19e99bb60158703eed Mon Sep 17 00:00:00 2001 From: ImXiangYu <2670833123@qq.com> Date: Fri, 6 Mar 2026 15:30:23 +0800 Subject: [PATCH 3/6] style: synchronize tooltip and hotkey chord appearance with GitHub native style --- better-github-nav.user.js | 29 ++++++++++++++++------------- package-lock.json | 4 ++-- package.json | 2 +- src/styles.js | 25 ++++++++++++++----------- 4 files changed, 33 insertions(+), 27 deletions(-) diff --git a/better-github-nav.user.js b/better-github-nav.user.js index 525f0b0..58bd2d8 100644 --- a/better-github-nav.user.js +++ b/better-github-nav.user.js @@ -2,7 +2,7 @@ // @name Better GitHub Navigation // @name:zh-CN 更好的 GitHub 导航栏 // @namespace https://github.com/ImXiangYu/better-github-nav -// @version 0.1.34 +// @version 0.1.35 // @description Add quick access to Dashboard, Trending, Explore, Collections, and Stars from GitHub's top navigation. // @description:zh-CN 在 GitHub 顶部导航中加入 Dashboard、Trending、Explore、Collections、Stars 快捷入口,常用页面一键直达。 // @author Ayubass @@ -16,7 +16,7 @@ (() => { // src/constants.js - var SCRIPT_VERSION = "0.1.34"; + var SCRIPT_VERSION = "0.1.35"; var CUSTOM_BUTTON_CLASS = "custom-gh-nav-btn"; var CUSTOM_BUTTON_ACTIVE_CLASS = "custom-gh-nav-btn-active"; var CUSTOM_BUTTON_COMPACT_CLASS = "custom-gh-nav-btn-compact"; @@ -169,8 +169,8 @@ align-items: center; gap: 8px; max-width: min(320px, calc(100vw - 16px)); - background: #25292E; - color: #FFFFFF; + background: var(--color-neutral-emphasis-plus, #1f2328); + color: var(--color-fg-on-emphasis, #ffffff); border-radius: 6px; padding: 4px 8px; font-size: 12px; @@ -179,6 +179,8 @@ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; pointer-events: none; box-sizing: border-box; + box-shadow: var(--color-shadow-medium, 0 8px 24px rgba(0,0,0,0.2)); + border: 1px solid var(--color-border-default, transparent); } .custom-gh-nav-tooltip[hidden] { display: none !important; @@ -192,6 +194,7 @@ display: inline-flex; align-items: center; flex-shrink: 0; + margin-left: 4px; } .custom-gh-nav-tooltip-kbd { display: inline-flex; @@ -208,19 +211,19 @@ display: inline-flex; align-items: center; justify-content: center; - min-width: 16px; - height: 14px; - padding: 2px 4px; + min-width: 18px; + height: 18px; + padding: 0 4px; border-radius: 4px; - border: 0; - background: #59636E; - color: #FFFFFF; + background: rgba(110, 118, 129, 0.4); + color: var(--color-fg-on-emphasis, #ffffff); font-size: 11px; - font-weight: 400; - line-height: 10px; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; + font-weight: 500; + line-height: 1; + font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; + border: 1px solid rgba(255, 255, 255, 0.1); } #${SETTINGS_OVERLAY_ID} { position: fixed; diff --git a/package-lock.json b/package-lock.json index 64f611a..916198a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "better-github-nav", - "version": "0.1.34", + "version": "0.1.35", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "better-github-nav", - "version": "0.1.34", + "version": "0.1.35", "license": "MIT", "devDependencies": { "esbuild": "^0.27.3" diff --git a/package.json b/package.json index 0ddf74d..868b14d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-github-nav", - "version": "0.1.34", + "version": "0.1.35", "description": "Build tools for the Better GitHub Navigation userscript.", "private": true, "scripts": { diff --git a/src/styles.js b/src/styles.js index 1ad8084..68c761d 100644 --- a/src/styles.js +++ b/src/styles.js @@ -42,8 +42,8 @@ export function ensureStyles() { align-items: center; gap: 8px; max-width: min(320px, calc(100vw - 16px)); - background: #25292E; - color: #FFFFFF; + background: var(--color-neutral-emphasis-plus, #1f2328); + color: var(--color-fg-on-emphasis, #ffffff); border-radius: 6px; padding: 4px 8px; font-size: 12px; @@ -52,6 +52,8 @@ export function ensureStyles() { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; pointer-events: none; box-sizing: border-box; + box-shadow: var(--color-shadow-medium, 0 8px 24px rgba(0,0,0,0.2)); + border: 1px solid var(--color-border-default, transparent); } .custom-gh-nav-tooltip[hidden] { display: none !important; @@ -65,6 +67,7 @@ export function ensureStyles() { display: inline-flex; align-items: center; flex-shrink: 0; + margin-left: 4px; } .custom-gh-nav-tooltip-kbd { display: inline-flex; @@ -81,19 +84,19 @@ export function ensureStyles() { display: inline-flex; align-items: center; justify-content: center; - min-width: 16px; - height: 14px; - padding: 2px 4px; + min-width: 18px; + height: 18px; + padding: 0 4px; border-radius: 4px; - border: 0; - background: #59636E; - color: #FFFFFF; + background: rgba(110, 118, 129, 0.4); + color: var(--color-fg-on-emphasis, #ffffff); font-size: 11px; - font-weight: 400; - line-height: 10px; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; + font-weight: 500; + line-height: 1; + font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; + border: 1px solid rgba(255, 255, 255, 0.1); } #${SETTINGS_OVERLAY_ID} { position: fixed; From b28b61f3e3fb4ae0a25e008a3e41db70d617fb28 Mon Sep 17 00:00:00 2001 From: ImXiangYu <2670833123@qq.com> Date: Fri, 6 Mar 2026 15:36:00 +0800 Subject: [PATCH 4/6] style: further refine tooltip chord to match native shortcut display page --- better-github-nav.user.js | 17 +++++++++-------- package-lock.json | 4 ++-- package.json | 2 +- src/styles.js | 13 +++++++------ 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/better-github-nav.user.js b/better-github-nav.user.js index 58bd2d8..6fd9a37 100644 --- a/better-github-nav.user.js +++ b/better-github-nav.user.js @@ -2,7 +2,7 @@ // @name Better GitHub Navigation // @name:zh-CN 更好的 GitHub 导航栏 // @namespace https://github.com/ImXiangYu/better-github-nav -// @version 0.1.35 +// @version 0.1.36 // @description Add quick access to Dashboard, Trending, Explore, Collections, and Stars from GitHub's top navigation. // @description:zh-CN 在 GitHub 顶部导航中加入 Dashboard、Trending、Explore、Collections、Stars 快捷入口,常用页面一键直达。 // @author Ayubass @@ -16,7 +16,7 @@ (() => { // src/constants.js - var SCRIPT_VERSION = "0.1.35"; + var SCRIPT_VERSION = "0.1.36"; var CUSTOM_BUTTON_CLASS = "custom-gh-nav-btn"; var CUSTOM_BUTTON_ACTIVE_CLASS = "custom-gh-nav-btn-active"; var CUSTOM_BUTTON_COMPACT_CLASS = "custom-gh-nav-btn-compact"; @@ -211,19 +211,20 @@ display: inline-flex; align-items: center; justify-content: center; - min-width: 18px; - height: 18px; - padding: 0 4px; + min-width: 20px; + height: 20px; + padding: 0 6px; border-radius: 4px; - background: rgba(110, 118, 129, 0.4); - color: var(--color-fg-on-emphasis, #ffffff); + background: #6e7681; + color: #ffffff; font-size: 11px; - font-weight: 500; + font-weight: 600; line-height: 1; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); } #${SETTINGS_OVERLAY_ID} { position: fixed; diff --git a/package-lock.json b/package-lock.json index 916198a..5c9bd58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "better-github-nav", - "version": "0.1.35", + "version": "0.1.36", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "better-github-nav", - "version": "0.1.35", + "version": "0.1.36", "license": "MIT", "devDependencies": { "esbuild": "^0.27.3" diff --git a/package.json b/package.json index 868b14d..b1a9c96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-github-nav", - "version": "0.1.35", + "version": "0.1.36", "description": "Build tools for the Better GitHub Navigation userscript.", "private": true, "scripts": { diff --git a/src/styles.js b/src/styles.js index 68c761d..6266e63 100644 --- a/src/styles.js +++ b/src/styles.js @@ -84,19 +84,20 @@ export function ensureStyles() { display: inline-flex; align-items: center; justify-content: center; - min-width: 18px; - height: 18px; - padding: 0 4px; + min-width: 20px; + height: 20px; + padding: 0 6px; border-radius: 4px; - background: rgba(110, 118, 129, 0.4); - color: var(--color-fg-on-emphasis, #ffffff); + background: #6e7681; + color: #ffffff; font-size: 11px; - font-weight: 500; + font-weight: 600; line-height: 1; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); } #${SETTINGS_OVERLAY_ID} { position: fixed; From b405ca925d5818d4dce2f33bfdac7f29c6673dce Mon Sep 17 00:00:00 2001 From: ImXiangYu <2670833123@qq.com> Date: Fri, 6 Mar 2026 15:39:14 +0800 Subject: [PATCH 5/6] style: fix font weight, reduce chord size, and remove unwanted connecting lines in tooltip --- better-github-nav.user.js | 17 +++++++++++------ package-lock.json | 4 ++-- package.json | 2 +- src/styles.js | 13 +++++++++---- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/better-github-nav.user.js b/better-github-nav.user.js index 6fd9a37..d4b063e 100644 --- a/better-github-nav.user.js +++ b/better-github-nav.user.js @@ -2,7 +2,7 @@ // @name Better GitHub Navigation // @name:zh-CN 更好的 GitHub 导航栏 // @namespace https://github.com/ImXiangYu/better-github-nav -// @version 0.1.36 +// @version 0.1.37 // @description Add quick access to Dashboard, Trending, Explore, Collections, and Stars from GitHub's top navigation. // @description:zh-CN 在 GitHub 顶部导航中加入 Dashboard、Trending、Explore、Collections、Stars 快捷入口,常用页面一键直达。 // @author Ayubass @@ -16,7 +16,7 @@ (() => { // src/constants.js - var SCRIPT_VERSION = "0.1.36"; + var SCRIPT_VERSION = "0.1.37"; var CUSTOM_BUTTON_CLASS = "custom-gh-nav-btn"; var CUSTOM_BUTTON_ACTIVE_CLASS = "custom-gh-nav-btn-active"; var CUSTOM_BUTTON_COMPACT_CLASS = "custom-gh-nav-btn-compact"; @@ -181,6 +181,7 @@ box-sizing: border-box; box-shadow: var(--color-shadow-medium, 0 8px 24px rgba(0,0,0,0.2)); border: 1px solid var(--color-border-default, transparent); + text-decoration: none; } .custom-gh-nav-tooltip[hidden] { display: none !important; @@ -189,12 +190,14 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + text-decoration: none; } .custom-gh-nav-tooltip-hint-container { display: inline-flex; align-items: center; flex-shrink: 0; margin-left: 4px; + text-decoration: none; } .custom-gh-nav-tooltip-kbd { display: inline-flex; @@ -206,25 +209,27 @@ font: inherit; color: inherit; background: transparent; + text-decoration: none; } .custom-gh-nav-tooltip-chord { display: inline-flex; align-items: center; justify-content: center; - min-width: 20px; - height: 20px; - padding: 0 6px; + min-width: 18px; + height: 18px; + padding: 0 4px; border-radius: 4px; background: #6e7681; color: #ffffff; font-size: 11px; - font-weight: 600; + font-weight: 400; line-height: 1; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); + text-decoration: none; } #${SETTINGS_OVERLAY_ID} { position: fixed; diff --git a/package-lock.json b/package-lock.json index 5c9bd58..5696915 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "better-github-nav", - "version": "0.1.36", + "version": "0.1.37", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "better-github-nav", - "version": "0.1.36", + "version": "0.1.37", "license": "MIT", "devDependencies": { "esbuild": "^0.27.3" diff --git a/package.json b/package.json index b1a9c96..d7ba140 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-github-nav", - "version": "0.1.36", + "version": "0.1.37", "description": "Build tools for the Better GitHub Navigation userscript.", "private": true, "scripts": { diff --git a/src/styles.js b/src/styles.js index 6266e63..e40352e 100644 --- a/src/styles.js +++ b/src/styles.js @@ -54,6 +54,7 @@ export function ensureStyles() { box-sizing: border-box; box-shadow: var(--color-shadow-medium, 0 8px 24px rgba(0,0,0,0.2)); border: 1px solid var(--color-border-default, transparent); + text-decoration: none; } .custom-gh-nav-tooltip[hidden] { display: none !important; @@ -62,12 +63,14 @@ export function ensureStyles() { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + text-decoration: none; } .custom-gh-nav-tooltip-hint-container { display: inline-flex; align-items: center; flex-shrink: 0; margin-left: 4px; + text-decoration: none; } .custom-gh-nav-tooltip-kbd { display: inline-flex; @@ -79,25 +82,27 @@ export function ensureStyles() { font: inherit; color: inherit; background: transparent; + text-decoration: none; } .custom-gh-nav-tooltip-chord { display: inline-flex; align-items: center; justify-content: center; - min-width: 20px; - height: 20px; - padding: 0 6px; + min-width: 18px; + height: 18px; + padding: 0 4px; border-radius: 4px; background: #6e7681; color: #ffffff; font-size: 11px; - font-weight: 600; + font-weight: 400; line-height: 1; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); + text-decoration: none; } #${SETTINGS_OVERLAY_ID} { position: fixed; From 52fb3d581c8530ad2d0deb50be4e866c93afc176 Mon Sep 17 00:00:00 2001 From: ImXiangYu <2670833123@qq.com> Date: Fri, 6 Mar 2026 15:47:01 +0800 Subject: [PATCH 6/6] style: finalize tooltip chord style by removing fixed dimensions and cleaning up decorations --- better-github-nav.user.js | 28 +++++++++++++--------------- package-lock.json | 4 ++-- package.json | 2 +- src/styles.js | 24 +++++++++++------------- 4 files changed, 27 insertions(+), 31 deletions(-) diff --git a/better-github-nav.user.js b/better-github-nav.user.js index d4b063e..d2f166b 100644 --- a/better-github-nav.user.js +++ b/better-github-nav.user.js @@ -2,7 +2,7 @@ // @name Better GitHub Navigation // @name:zh-CN 更好的 GitHub 导航栏 // @namespace https://github.com/ImXiangYu/better-github-nav -// @version 0.1.37 +// @version 0.1.38 // @description Add quick access to Dashboard, Trending, Explore, Collections, and Stars from GitHub's top navigation. // @description:zh-CN 在 GitHub 顶部导航中加入 Dashboard、Trending、Explore、Collections、Stars 快捷入口,常用页面一键直达。 // @author Ayubass @@ -16,7 +16,7 @@ (() => { // src/constants.js - var SCRIPT_VERSION = "0.1.37"; + var SCRIPT_VERSION = "0.1.38"; var CUSTOM_BUTTON_CLASS = "custom-gh-nav-btn"; var CUSTOM_BUTTON_ACTIVE_CLASS = "custom-gh-nav-btn-active"; var CUSTOM_BUTTON_COMPACT_CLASS = "custom-gh-nav-btn-compact"; @@ -205,31 +205,29 @@ gap: 4px; margin: 0; padding: 0; - border: 0; + border: none !important; + box-shadow: none !important; font: inherit; color: inherit; - background: transparent; - text-decoration: none; + background: transparent !important; + text-decoration: none !important; } .custom-gh-nav-tooltip-chord { - display: inline-flex; - align-items: center; - justify-content: center; - min-width: 18px; - height: 18px; + display: inline-block; + vertical-align: middle; padding: 0 4px; border-radius: 4px; - background: #6e7681; + background: rgba(110, 118, 129, 0.4); color: #ffffff; font-size: 11px; font-weight: 400; - line-height: 1; + line-height: 18px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; - border: 1px solid rgba(255, 255, 255, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); - text-decoration: none; + border: none !important; + box-shadow: none !important; + text-decoration: none !important; } #${SETTINGS_OVERLAY_ID} { position: fixed; diff --git a/package-lock.json b/package-lock.json index 5696915..4bcc89f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "better-github-nav", - "version": "0.1.37", + "version": "0.1.38", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "better-github-nav", - "version": "0.1.37", + "version": "0.1.38", "license": "MIT", "devDependencies": { "esbuild": "^0.27.3" diff --git a/package.json b/package.json index d7ba140..769d7af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-github-nav", - "version": "0.1.37", + "version": "0.1.38", "description": "Build tools for the Better GitHub Navigation userscript.", "private": true, "scripts": { diff --git a/src/styles.js b/src/styles.js index e40352e..79e43f7 100644 --- a/src/styles.js +++ b/src/styles.js @@ -78,31 +78,29 @@ export function ensureStyles() { gap: 4px; margin: 0; padding: 0; - border: 0; + border: none !important; + box-shadow: none !important; font: inherit; color: inherit; - background: transparent; - text-decoration: none; + background: transparent !important; + text-decoration: none !important; } .custom-gh-nav-tooltip-chord { - display: inline-flex; - align-items: center; - justify-content: center; - min-width: 18px; - height: 18px; + display: inline-block; + vertical-align: middle; padding: 0 4px; border-radius: 4px; - background: #6e7681; + background: rgba(110, 118, 129, 0.4); color: #ffffff; font-size: 11px; font-weight: 400; - line-height: 1; + line-height: 18px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; box-sizing: border-box; - border: 1px solid rgba(255, 255, 255, 0.1); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); - text-decoration: none; + border: none !important; + box-shadow: none !important; + text-decoration: none !important; } #${SETTINGS_OVERLAY_ID} { position: fixed;