Normalize secondary buttons
- SHA
935ff95130b620f2eb4c444a89bc3e1468382adc- Parents
-
6f3d36c - Tree
8b37903
935ff95
935ff95130b620f2eb4c444a89bc3e1468382adc6f3d36c
8b37903| Status | File | + | - |
|---|---|---|---|
| M |
internal/web/static/css/shithub.css
|
14 | 0 |
internal/web/static/css/shithub.cssmodified@@ -25,6 +25,8 @@ | ||
| 25 | 25 | --success-fg: #1a7f37; |
| 26 | 26 | --success-emphasis: #1f883d; |
| 27 | 27 | --success-emphasis-hover: #1a7f37; |
| 28 | + --button-default-bg: #f6f8fa; | |
| 29 | + --button-default-hover-bg: #f3f4f6; | |
| 28 | 30 | --danger-fg: #cf222e; |
| 29 | 31 | --shithub-mark: var(--danger-fg); |
| 30 | 32 | } |
@@ -43,6 +45,8 @@ | ||
| 43 | 45 | --success-fg: #3fb950; |
| 44 | 46 | --success-emphasis: #238636; |
| 45 | 47 | --success-emphasis-hover: #2ea043; |
| 48 | + --button-default-bg: #21262d; | |
| 49 | + --button-default-hover-bg: #30363d; | |
| 46 | 50 | --danger-fg: #f85149; |
| 47 | 51 | } |
| 48 | 52 | |
@@ -60,6 +64,8 @@ | ||
| 60 | 64 | --success-fg: #4ed162; |
| 61 | 65 | --success-emphasis: #2ea043; |
| 62 | 66 | --success-emphasis-hover: #3fb950; |
| 67 | + --button-default-bg: #0a0c10; | |
| 68 | + --button-default-hover-bg: #1c222a; | |
| 63 | 69 | --danger-fg: #ff6a69; |
| 64 | 70 | } |
| 65 | 71 | |
@@ -275,7 +281,15 @@ code { | ||
| 275 | 281 | font-size: 0.875rem; |
| 276 | 282 | font-weight: 500; |
| 277 | 283 | border: 1px solid transparent; |
| 284 | + color: var(--fg-default); | |
| 285 | + background: var(--button-default-bg); | |
| 286 | + border-color: var(--border-default); | |
| 278 | 287 | cursor: pointer; |
| 288 | + text-decoration: none; | |
| 289 | +} | |
| 290 | +.shithub-button:hover { | |
| 291 | + background: var(--button-default-hover-bg); | |
| 292 | + text-decoration: none; | |
| 279 | 293 | } |
| 280 | 294 | .shithub-button:disabled { |
| 281 | 295 | cursor: default; |