Skip to content

Commit

Permalink
Minor CSS optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamToki committed Dec 23, 2024
1 parent b091e5f commit 78005ac
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions PROJECT/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,10 @@

/* Interactions */
/* Hover */
a:hover, label:not(:has(:disabled)):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
a:hover, label:not(:has(:disabled:not(option))):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
background-color: #F0D0FF;
}
.Active:enabled:hover, .Active:not(:has(:disabled)):hover {
.Active:enabled:hover, .Active:not(:has(:disabled:not(option))):hover {
background-color: #B8E8B8;
}
.Button.Shaped:enabled:hover .Shape {
Expand All @@ -625,9 +625,9 @@
}

/* Click */
a:active, label:not(:has(:disabled)):active, .Button:enabled:active,
a:active, label:not(:has(:disabled:not(option))):active, .Button:enabled:active,
.Combobox:enabled:active, .Textbox:enabled:active, .Textbox.ShownAsLabel:enabled:active,
.Active:enabled:active, .Active:not(:has(:disabled)):active {
.Active:enabled:active, .Active:not(:has(:disabled:not(option))):active {
background-color: #8040A0;
color: #FFFFFF;
}
Expand Down
8 changes: 4 additions & 4 deletions PROJECT/styles/common_Dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@

/* Interactions */
/* Hover */
a:hover, label:not(:has(:disabled)):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
a:hover, label:not(:has(:disabled:not(option))):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
background-color: #583868;
}
.Active:enabled:hover, .Active:not(:has(:disabled)):hover {
.Active:enabled:hover, .Active:not(:has(:disabled:not(option))):hover {
background-color: #185818;
}
.Button.Shaped:enabled:hover .Shape {
Expand All @@ -166,9 +166,9 @@
}

/* Click */
a:active, label:not(:has(:disabled)):active, .Button:enabled:active,
a:active, label:not(:has(:disabled:not(option))):active, .Button:enabled:active,
.Combobox:enabled:active, .Textbox:enabled:active, .Textbox.ShownAsLabel:enabled:active,
.Active:enabled:active, .Active:not(:has(:disabled)):active {
.Active:enabled:active, .Active:not(:has(:disabled:not(option))):active {
background-color: #D090F0;
color: #000000;
}
Expand Down
10 changes: 5 additions & 5 deletions PROJECT/styles/common_Genshin.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@

/* Interactions */
/* Hover */
a:hover, label:not(:has(:disabled)):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
a:hover, label:not(:has(:disabled:not(option))):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
background-color: #EEE4D9; box-shadow: 0 0 0 3px #DEB76C;
color: #485267;
}
.Active:enabled:hover, .Active:not(:has(:disabled)):hover {
.Active:enabled:hover, .Active:not(:has(:disabled:not(option))):hover {
background-color: #C8EC86;
}
.Button.Shaped:enabled:hover {
Expand All @@ -177,7 +177,7 @@
box-shadow: none;
color: #DEB76C;
}
.Dropctrl .Button:enabled:hover, .ScrollableList label:not(:has(:disabled)):hover {
.Dropctrl .Button:enabled:hover, .ScrollableList label:not(:has(:disabled:not(option))):hover {
box-shadow: 0 0 0 3px inset #DEB76C;
}
.Textbox.ShownAsLabel:enabled:hover, .Textbox.ShownAsLabel:focus-visible {
Expand All @@ -186,9 +186,9 @@
}

/* Click */
a:active, label:not(:has(:disabled)):active, .Button:enabled:active,
a:active, label:not(:has(:disabled:not(option))):active, .Button:enabled:active,
.Combobox:enabled:active, .Textbox:enabled:active, .Textbox.ShownAsLabel:enabled:active,
.Active:enabled:active, .Active:not(:has(:disabled)):active {
.Active:enabled:active, .Active:not(:has(:disabled:not(option))):active {
background-color: #D0C6BD;
color: #EEE4D9;
}
Expand Down
8 changes: 4 additions & 4 deletions PROJECT/styles/common_HighContrast.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@

/* Interactions */
/* Hover */
a:hover, label:not(:has(:disabled)):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
a:hover, label:not(:has(:disabled:not(option))):hover, .Button:enabled:hover /* .Combobox:enabled:hover, .Textbox:enabled:hover */ {
background-color: #00C0FF;
color: #000000;
}
.Active:enabled:hover, .Active:not(:has(:disabled)):hover {
.Active:enabled:hover, .Active:not(:has(:disabled:not(option))):hover {
background-color: #00D800;
}
.Button.Shaped:enabled:hover .Shape {
Expand All @@ -166,9 +166,9 @@
}

/* Click */
a:active, label:not(:has(:disabled)):active, .Button:enabled:active,
a:active, label:not(:has(:disabled:not(option))):active, .Button:enabled:active,
.Combobox:enabled:active, .Textbox:enabled:active, .Textbox.ShownAsLabel:enabled:active,
.Active:enabled:active, .Active:not(:has(:disabled)):active {
.Active:enabled:active, .Active:not(:has(:disabled:not(option))):active {
background-color: #00FFFF;
color: #000000;
}
Expand Down

0 comments on commit 78005ac

Please sign in to comment.