Skip to content

Commit

Permalink
focus ring patches
Browse files Browse the repository at this point in the history
  • Loading branch information
milogert committed Dec 21, 2023
1 parent 4cb2870 commit bc7c02a
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 22 deletions.
16 changes: 0 additions & 16 deletions steam-deck/Custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,3 @@
.salepreviewwidgets_Discounted_35-Ub {
background: var(--srcery-bright-white);
}

/* Carousel stuff */

.basicgamecarousel_TextBoxCarouselContents_3bvCH.basicgamecarousel_BasicGameCarouselItemMediaContainer_1HIFN.Panel.Focusable.gpfocus.gpfocuswithin {
color: var(--srcery-bright-white);
}

.basicgamecarousel_BasicGameCarouselItem_3YYQ9 .basicgamecarousel_TextBoxCarouselContents_3bvCH {
background: linear-gradient(313deg, var(--srcery-xgray1), var(--srcery-xgray6));
}

.appportrait_LibraryItemBox_WYgDg.appportrait_Portrait_1Pf6J.appportrait_InRecentGames_biTV-.appportrait_BasicMode_3vi6S.Panel.Focusable.gpfocus.gpfocuswithin {
transition: filter,box-shadow,transform .3s cubic-bezier(0.16, 0.86, 0.43, 0.99);
box-shadow: 0px 16px 24px 0px var(--srcery-hard-black);
outline: 2px solid var(--srcery-bright-black);
}
37 changes: 32 additions & 5 deletions steam-deck/home-page.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/* Carousel stuff */

.basicgamecarousel_TextBoxCarouselContents_3bvCH.basicgamecarousel_BasicGameCarouselItemMediaContainer_1HIFN.Panel.Focusable.gpfocus.gpfocuswithin {
color: var(--srcery-bright-white);
}

.basicgamecarousel_BasicGameCarouselItem_3YYQ9 .basicgamecarousel_TextBoxCarouselContents_3bvCH {
background: linear-gradient(313deg, var(--srcery-xgray1), var(--srcery-xgray6));
}

@keyframes appportrait_fadeOutline_1FLuV {
0% {
outline-color: var(--srcery-xgray3);
}

100% {
outline-color: var(--srcery-bright-black);
}
}

@keyframes appportrait_blinker_2tSbN {
50% {
outline: 2px solid var(--srcery-bright-white);
}
}

.BasicUI .appportrait_LibraryItemBox_WYgDg.Focusable:focus,
.appportrait_LibraryItemBox_WYgDg.appportrait_Portrait_1Pf6J.appportrait_InRecentGames_biTV-.appportrait_BasicMode_3vi6S.Panel.Focusable.gpfocus.gpfocuswithin {
box-shadow: 0 16px 24px 0 var(--srcery-hard-black);
outline: 2px solid var(--srcery-bright-black);
}

.BasicUI .basicappdetailssectionstyler_AppDetailsRoot_3fp5y {
background: transparent;
}
Expand Down Expand Up @@ -133,11 +165,6 @@
background: var(--srcery-xgray6);
}

.appdetailsfriendssection_FriendsPlayingNowBadge_38sNQ.appdetailsfriendssection_InFriendsTab_15Vpl.appdetailsfriendssection_TabSelected_mHKj- {
background-color: var(--srcery-green);
color: var(--srcery-bright-white);
}

/** Recommended */
.BasicUI .discoveryqueuewidget_DiscoveryQueueWidgetCtn_1iOb7 .discoveryqueuewidget_WidgetHeaderCtn_3u5R_ {
background: linear-gradient(90deg, var(--srcery-blue) 0%, var(--srcery-bright-blue) 75%, transparent 100%);
Expand Down
2 changes: 1 addition & 1 deletion steam-deck/pill-menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

/* Friends playing pills label */
.appdetailsfriendssection_FriendsPlayingNowBadge_38sNQ.appdetailsfriendssection_InFriendsTab_15Vpl {
.appdetailsfriendssection_FriendsPlayingNowBadge_38sNQ.appdetailsfriendssection_InFriendsTab_15Vpl.appdetailsfriendssection_TabSelected_mHKj- {
color: var(--srcery-bright-white);
background-color: var(--srcery-green);
}
Expand Down
24 changes: 24 additions & 0 deletions steam-deck/system.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,30 @@

/* Focus Ring */

@keyframes srcery-focusring_flash_1YTKZ {
0% {
background-color: rgba(255,255,255,.08)

Check failure on line 110 in steam-deck/system.css

View workflow job for this annotation

GitHub Actions / stylelint

steam-deck/system.css#L110

Expected ".08" to be "8%" (alpha-value-notation)

Check failure on line 110 in steam-deck/system.css

View workflow job for this annotation

GitHub Actions / stylelint

steam-deck/system.css#L110

Expected modern color-function notation (color-function-notation)
}

100% {
background-color: transparent
}
}

@keyframes srcery-focusring_fadeOutline_2hZu3 {
0% {
outline-color: var(--srcery-xgray3);
}

100% {
outline-color: var(--srcery-bright-black);
}
}

.focusring_FocusRingRoot_3PH_X .focusring_FocusRing_1IZrQ {
animation: srcery-focusring_flash_1YTKZ .5s ease,
focusring_growOutline_Z3LxS .4s ease,
srcery-focusring_fadeOutline_2hZu3 .4s ease,
focusring_blinker_3wFMM 1.2s ease-in-out .4s 20;
outline: 2px solid var(--srcery-bright-black);
}

0 comments on commit bc7c02a

Please sign in to comment.