tenseleyflow/shithub / 6f3d36c

Browse files

Fix dark form controls

Authored by espadonne
SHA
6f3d36cae25b5bebdb79ff00ddd4edaedb4ffd84
Parents
f675333
Tree
43cd236

1 changed file

StatusFile+-
M internal/web/static/css/shithub.css 32 2
internal/web/static/css/shithub.cssmodified
@@ -23,6 +23,8 @@
2323
   --accent-emphasis: #0969da;
2424
   --accent-subtle: #fff8c5; /* GitHub's "you-are-here" line highlight */
2525
   --success-fg: #1a7f37;
26
+  --success-emphasis: #1f883d;
27
+  --success-emphasis-hover: #1a7f37;
2628
   --danger-fg: #cf222e;
2729
   --shithub-mark: var(--danger-fg);
2830
 }
@@ -39,6 +41,8 @@
3941
   --accent-emphasis: #1f6feb;
4042
   --accent-subtle: rgba(187, 128, 9, 0.15); /* dark-mode :target wash */
4143
   --success-fg: #3fb950;
44
+  --success-emphasis: #238636;
45
+  --success-emphasis-hover: #2ea043;
4246
   --danger-fg: #f85149;
4347
 }
4448
 
@@ -54,6 +58,8 @@
5458
   --accent-emphasis: #409eff;
5559
   --accent-subtle: rgba(255, 215, 0, 0.25);
5660
   --success-fg: #4ed162;
61
+  --success-emphasis: #2ea043;
62
+  --success-emphasis-hover: #3fb950;
5763
   --danger-fg: #ff6a69;
5864
 }
5965
 
@@ -286,10 +292,34 @@ code {
286292
 }
287293
 .shithub-button-primary {
288294
   color: #fff;
289
-  background: var(--accent-emphasis);
295
+  background: var(--success-emphasis);
296
+  border-color: var(--success-emphasis);
297
+}
298
+.shithub-button-primary:hover {
299
+  text-decoration: none;
300
+  background: var(--success-emphasis-hover);
301
+  border-color: var(--success-emphasis-hover);
302
+}
303
+
304
+:where(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], textarea, select) {
305
+  color: var(--fg-default);
306
+  background: var(--canvas-default);
307
+  border: 1px solid var(--border-default);
308
+}
309
+:where(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], textarea, select)::placeholder {
310
+  color: var(--fg-muted);
311
+  opacity: 1;
312
+}
313
+:where(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], textarea, select):focus {
290314
   border-color: var(--accent-emphasis);
315
+  box-shadow: inset 0 0 0 1px var(--accent-emphasis);
316
+  outline: none;
317
+}
318
+:where(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], textarea, select):disabled {
319
+  color: var(--fg-muted);
320
+  background: var(--canvas-subtle);
321
+  cursor: not-allowed;
291322
 }
292
-.shithub-button-primary:hover { text-decoration: none; opacity: 0.92; }
293323
 .shithub-icon-button {
294324
   display: inline-flex;
295325
   align-items: center;