Skip to content

Commit

Permalink
Web Theme: Refine Selectors (#143, Fixes #132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foldex authored Apr 28, 2023
1 parent ef26739 commit 9318058
Show file tree
Hide file tree
Showing 17 changed files with 558 additions and 563 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ A skin to make Steam look more like a native GNOME app
* **Main window**: done.
* **Settings**: mostly done.
* **New library, new chat, other web-based client parts**: mostly done, with slight [limitations](#limitations).
* **New Big Picture**: Not done.
* **Overlay**: done.
* **Small mode**: done.
* **Old library, old chat, other old unused windows**: not planned.
Expand Down
2 changes: 1 addition & 1 deletion extras/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Some classes will be randomly suffixed, eg `library_MainPanel_3BFcm`
You will need to use the `*=` selector for those:

```css
[class*="library_MainPanel_"]
div[class*="library_MainPanel_"]
{
background: purple !important;
}
Expand Down
12 changes: 6 additions & 6 deletions extras/web/base/collections.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/* --- Collection View --- */
/* Background */
[class*="allcollections_ScrollContainer_"],
[class*="collectionview_OuterContainer_"]
#SteamDesktop div[class*="allcollections_ScrollContainer_"],
#SteamDesktop div[class*="collectionview_OuterContainer_"]
{
background: var(--bg) !important;
}

[class*="allcollections_Collection_"]
#SteamDesktop div[class*="allcollections_Collection_"]
{
background: var(--button_bg) !important;
}

[class*="allcollections_Collection_"]:hover
#SteamDesktop div[class*="allcollections_Collection_"]:hover
{
background: var(--button_hover_bg) !important;
}

/* Title */
[class*="allcollections_Label_"]
#SteamDesktop div[class*="allcollections_Label_"]
{
color: var(--fg) !important;
font-family: var(--basefont) !important;
Expand All @@ -26,7 +26,7 @@
}

/* Horiz Rule */
[class*="allcollections_Rule_"]
#SteamDesktop div[class*="allcollections_Rule_"]
{
background-color: var(--dim_label_fg) !important;
opacity: 0.55 !important;
Expand Down
66 changes: 33 additions & 33 deletions extras/web/base/dialogs/launch_options.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* --- Launch Options --- */
[class*="launchoptionsdialog_LaunchOptionDialog_"]
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"]
{
background: var(--popover_bg) !important;
color: var(--popover_fg) !important;
padding: 0 !important;
}

[class*="launchoptionsdialog_AppNameHeader_"]
.ModalDialogPopup div[class*="launchoptionsdialog_AppNameHeader_"]
{
box-sizing: border-box !important;
height: 48px !important;
Expand All @@ -28,12 +28,12 @@
text-overflow: ellipsis !important;
}

[class*="launchoptionsdialog_OptionList_"]
.ModalDialogPopup div[class*="launchoptionsdialog_OptionList_"]
{
padding: 0 16px 16px 16px !important;
}

[class*="launchoptionsdialog_ListHeader_"]
.ModalDialogPopup div[class*="launchoptionsdialog_ListHeader_"]
{
font-family: var(--basefont) !important;
font-size: 14px !important;
Expand All @@ -45,7 +45,7 @@
margin-bottom: 8px !important;
}

[class*="launchoptionsdialog_ListContainer_"]
.ModalDialogPopup div[class*="launchoptionsdialog_ListContainer_"]
{
padding: 0 !important;
margin: 0 !important;
Expand All @@ -55,7 +55,7 @@
border-radius: 0 !important;
}

[class*="launchoptionsdialog_ListItem_"]
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"]
{
background: var(--button_bg) !important;
box-sizing: border-box !important;
Expand All @@ -68,37 +68,37 @@
display: flex !important;
}

[class*="launchoptionsdialog_ListItem_"]:first-child
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"]:first-child
{
border-top-left-radius: var(--card_radius) !important;
border-top-right-radius: var(--card_radius) !important;
}

[class*="launchoptionsdialog_ListItem_"]:last-child
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"]:last-child
{
border-bottom-left-radius: var(--card_radius) !important;
border-bottom-right-radius: var(--card_radius) !important;
border-bottom: none !important;
}

[class*="launchoptionsdialog_ListItem_"]:hover
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"]:hover
{
background: var(--button_hover_bg) !important;
}

[class*="launchoptionsdialog_ListItem_"]:active
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"]:active
{
background: var(--button_active_bg) !important;
}

[class*="launchoptionsdialog_ListItem_"] > input
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"] > input
{
width: 16px !important;
height: 16px !important;
margin: 16px !important;
}

[class*="launchoptionsdialog_ListItem_"] > label
.ModalDialogPopup div[class*="launchoptionsdialog_ListItem_"] > label
{
box-sizing: border-box !important;
flex-grow: 1 !important;
Expand All @@ -115,7 +115,7 @@
letter-spacing: normal !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox
{
background-color: var(--checkbox_bg) !important;
box-shadow: var(--checkbox_bs) !important;
Expand All @@ -125,53 +125,53 @@
margin-top: 3px !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox:hover
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox:hover
{
box-shadow: var(--checkbox_hover_bs) !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox:active:not(.Active)
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox:active:not(.Active)
{
box-shadow: none !important;
background: var(--checkbox_active_bg) !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox.Active
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox.Active
{
background: var(--checkbox_checked_bg) !important;
background-blend-mode: var(--button_suggested_blend) !important;
border-radius: var(--checkbox_radius) !important;
box-shadow: none !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox.Active:hover
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox.Active:hover
{
background-color: var(--button_suggested_hover_bg) !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox.Active:active
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox.Active:active
{
background-color: var(--button_suggested_click_bg) !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox svg
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox svg
{
stroke-width: var(--checkbox_checked_sw) !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox svg path
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox svg path
{
stroke: var(--fg) !important;
d: path("M 185 63 L 92 170 l -53 -52") !important;
transition: none !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox_Container
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogCheckbox_Container
{
margin-bottom: 9px !important;
}

[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogToggle_Label
.ModalDialogPopup div[class*="launchoptionsdialog_LaunchOptionDialog_"] .DialogToggle_Label
{
padding-top: 4px !important;
color: var(--button_fg) !important;
Expand All @@ -182,7 +182,7 @@
letter-spacing: normal !important;
}

[class*="launchoptionsdialog_SeeProperties_"]
.ModalDialogPopup div[class*="launchoptionsdialog_SeeProperties_"]
{
color: var(--dim_label_fg) !important;
font-family: var(--basefont) !important;
Expand All @@ -193,14 +193,14 @@
}

/* Swap buttons to make the Cancel button first */
[class*="launchoptionsdialog_ButtonContainer_"]
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"]
{
flex-direction: row-reverse !important;
overflow: hidden !important;
margin: 0 !important;
}

[class*="launchoptionsdialog_ButtonContainer_"] > *
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"] > *
{
height: 42px !important;
line-height: 42px !important;
Expand All @@ -223,34 +223,34 @@
}


[class*="launchoptionsdialog_ButtonContainer_"] > *:hover
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"] > *:hover
{
background: rgba(255, 255, 255, 0.07) !important;
box-shadow: none !important;
}

[class*="launchoptionsdialog_ButtonContainer_"] > *:active
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"] > *:active
{
background: rgba(255, 255, 255, 0.16) !important;
box-shadow: none !important;
}

[class*="launchoptionsdialog_ButtonContainer_"] > [class*="launchoptionsdialog_PlayButton_"]
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"] > [class*="launchoptionsdialog_PlayButton_"]
{
color: var(--accent) !important;
}

[class*="launchoptionsdialog_ButtonContainer_"] > [class*="launchoptionsdialog_PlayButton_"]:hover
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"] > [class*="launchoptionsdialog_PlayButton_"]:hover
{
background: rgba(120, 174, 237, 0.07) !important;
}

[class*="launchoptionsdialog_ButtonContainer_"] > [class*="launchoptionsdialog_PlayButton_"]:active
.ModalDialogPopup div[class*="launchoptionsdialog_ButtonContainer_"] > [class*="launchoptionsdialog_PlayButton_"]:active
{
background: rgba(120, 174, 237, 0.16) !important;
}

[class*="launchoptionsdialog_ListContainer_"] input[type="radio"]
.ModalDialogPopup div[class*="launchoptionsdialog_ListContainer_"] input[type="radio"]
{
appearance: var(--radio_appearance) !important;
border: var(--radio_border) !important;
Expand All @@ -259,7 +259,7 @@
min-width: var(--radio_min_width) !important;
}

[class*="launchoptionsdialog_ListContainer_"] input[type="radio"]:checked
.ModalDialogPopup div[class*="launchoptionsdialog_ListContainer_"] input[type="radio"]:checked
{
appearance: var(--radio_appearance) !important;
background: var(--radio_checked_bg) !important;
Expand All @@ -269,7 +269,7 @@
min-width: var(--radio_min_width) !important;
}

[class*="launchoptionsdialog_ListContainer_"] input[type="radio"]:focus
.ModalDialogPopup div[class*="launchoptionsdialog_ListContainer_"] input[type="radio"]:focus
{
outline: none !important;
}
Loading

0 comments on commit 9318058

Please sign in to comment.