|
70 | 70 | // Selection picks up the primary accent. |
71 | 71 | ::selection { background: rgba(43, 212, 212, 0.28); } |
72 | 72 |
|
73 | | -// Inputs and dropdowns: calmer borders, cyan focus. |
| 73 | +// Inputs and dropdowns on focus: a single clean cyan edge. The base theme |
| 74 | +// doubles up (1px cyan border plus an inset cyan box-shadow), which reads heavy |
| 75 | +// on a transparent control; replace the inset with one soft outer ring. |
74 | 76 | .p-inputtext:enabled:focus, |
75 | 77 | .p-dropdown:not(.p-disabled).p-focus { |
76 | 78 | border-color: var(--zx-cyan); |
| 79 | + box-shadow: 0 0 0 2px rgba(43, 212, 212, 0.25); |
77 | 80 | } |
78 | 81 |
|
79 | 82 | .p-button { |
80 | 83 | font-weight: 600; |
81 | 84 | } |
82 | 85 |
|
83 | 86 | // Run / play actions use the Spectrum green (go), with dark text, per the |
84 | | -// functional colour code. Apply `zx-run` to the button. |
| 87 | +// functional colour code. Hold the green through every state so the button |
| 88 | +// never flips to the cyan primary on hover, focus or active. |
85 | 89 | .p-button.zx-run { |
86 | 90 | background: var(--zx-green); |
87 | 91 | border-color: var(--zx-green); |
88 | 92 | color: #06210D; |
89 | 93 |
|
90 | 94 | .p-button-icon { color: #06210D; } |
| 95 | +} |
| 96 | +.p-button.zx-run:enabled:hover, |
| 97 | +.p-button.zx-run:enabled:active, |
| 98 | +.p-button.zx-run:enabled:focus, |
| 99 | +.p-button.zx-run:focus, |
| 100 | +.p-button.zx-run:focus-visible { |
| 101 | + background: #43D65F; |
| 102 | + border-color: #43D65F; |
| 103 | + color: #06210D; |
| 104 | + box-shadow: 0 0 0 2px rgba(47, 192, 75, 0.35); |
| 105 | +} |
91 | 106 |
|
92 | | - &:enabled:hover { |
93 | | - background: #43D65F; |
94 | | - border-color: #43D65F; |
95 | | - color: #06210D; |
96 | | - } |
| 107 | +// Tabs: an inactive tab's underline should be the same line that runs behind |
| 108 | +// the whole strip, so only the active tab's cyan underline stands out. Make the |
| 109 | +// inactive underline transparent and let the nav's border show through. |
| 110 | +.p-tabview .p-tabview-nav li .p-tabview-nav-link { |
| 111 | + border-bottom-color: transparent; |
97 | 112 | } |
0 commit comments