Skip to content

Commit 52dd6fc

Browse files
feat(ui): Allow more emphasis for hover
All UI elements have been toned down slightly to allow them to return to full color on hover. This should make it easier to see which action is being performed if several UI elements are close to each other. Header elements are now much more emphasized to clearly distinguish them from hovered, actionable elements.
1 parent dceb594 commit 52dd6fc

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

packages/userscript/source/ui/UserInterface.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ export class UserInterface extends UiComponent {
193193
`#ks ul li.ks-setting .ks-label {
194194
display: inline-block;
195195
min-width: 120px;
196+
opacity: 0.8;
197+
}`
198+
);
199+
this._addRule(
200+
`#ks ul li.ks-setting .ks-label:hover {
201+
opacity: 1;
196202
}`
197203
);
198204
// Setting: +/- Expando Toggle
@@ -215,6 +221,12 @@ export class UserInterface extends UiComponent {
215221
float: right;
216222
padding-right: 3px;
217223
line-height: 0;
224+
opacity: 0.8;
225+
}`
226+
);
227+
this._addRule(
228+
`#ks ul li.ks-setting .ks-icon-button:hover {
229+
opacity: 1;
218230
}`
219231
);
220232
this._addRule(
@@ -230,15 +242,22 @@ export class UserInterface extends UiComponent {
230242
`#ks ul li.ks-setting .ks-text-button {
231243
cursor: pointer;
232244
display: inline-block;
245+
max-width: 315px;
233246
user-select: none;
247+
opacity: 0.8;
248+
}`
249+
);
250+
this._addRule(
251+
`#ks ul li.ks-setting .ks-text-button:hover {
252+
opacity: 1;
234253
}`
235254
);
236255

237256
// Setting: Header
238257
this._addRule(
239258
`#ks ul li.ks-setting .ks-header {
240-
color: grey;
241259
display: inline-block;
260+
font-weight: bold;
242261
min-width: 100px;
243262
user-select: none;
244263
}`

0 commit comments

Comments
 (0)