|
2 | 2 | // @name Better GitHub Navigation |
3 | 3 | // @name:zh-CN 更好的 GitHub 导航栏 |
4 | 4 | // @namespace https://github.com/ImXiangYu/better-github-nav |
5 | | -// @version 0.1.37 |
| 5 | +// @version 0.1.38 |
6 | 6 | // @description Add quick access to Dashboard, Trending, Explore, Collections, and Stars from GitHub's top navigation. |
7 | 7 | // @description:zh-CN 在 GitHub 顶部导航中加入 Dashboard、Trending、Explore、Collections、Stars 快捷入口,常用页面一键直达。 |
8 | 8 | // @author Ayubass |
|
16 | 16 |
|
17 | 17 | (() => { |
18 | 18 | // src/constants.js |
19 | | - var SCRIPT_VERSION = "0.1.37"; |
| 19 | + var SCRIPT_VERSION = "0.1.38"; |
20 | 20 | var CUSTOM_BUTTON_CLASS = "custom-gh-nav-btn"; |
21 | 21 | var CUSTOM_BUTTON_ACTIVE_CLASS = "custom-gh-nav-btn-active"; |
22 | 22 | var CUSTOM_BUTTON_COMPACT_CLASS = "custom-gh-nav-btn-compact"; |
|
205 | 205 | gap: 4px; |
206 | 206 | margin: 0; |
207 | 207 | padding: 0; |
208 | | - border: 0; |
| 208 | + border: none !important; |
| 209 | + box-shadow: none !important; |
209 | 210 | font: inherit; |
210 | 211 | color: inherit; |
211 | | - background: transparent; |
212 | | - text-decoration: none; |
| 212 | + background: transparent !important; |
| 213 | + text-decoration: none !important; |
213 | 214 | } |
214 | 215 | .custom-gh-nav-tooltip-chord { |
215 | | - display: inline-flex; |
216 | | - align-items: center; |
217 | | - justify-content: center; |
218 | | - min-width: 18px; |
219 | | - height: 18px; |
| 216 | + display: inline-block; |
| 217 | + vertical-align: middle; |
220 | 218 | padding: 0 4px; |
221 | 219 | border-radius: 4px; |
222 | | - background: #6e7681; |
| 220 | + background: rgba(110, 118, 129, 0.4); |
223 | 221 | color: #ffffff; |
224 | 222 | font-size: 11px; |
225 | 223 | font-weight: 400; |
226 | | - line-height: 1; |
| 224 | + line-height: 18px; |
227 | 225 | font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; |
228 | 226 | text-transform: uppercase; |
229 | 227 | box-sizing: border-box; |
230 | | - border: 1px solid rgba(255, 255, 255, 0.1); |
231 | | - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); |
232 | | - text-decoration: none; |
| 228 | + border: none !important; |
| 229 | + box-shadow: none !important; |
| 230 | + text-decoration: none !important; |
233 | 231 | } |
234 | 232 | #${SETTINGS_OVERLAY_ID} { |
235 | 233 | position: fixed; |
|
0 commit comments