From e815ec0d9f015bdb49f69360eb24e23e399a5401 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 11 Apr 2025 11:10:38 +0200 Subject: [PATCH 1/2] Extract global `.load-more-button` CSS class --- app/styles/dashboard.module.css | 15 --------------- app/styles/shared/buttons.module.css | 15 +++++++++++++++ app/templates/crate/versions.hbs | 1 + app/templates/dashboard.hbs | 2 +- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/app/styles/dashboard.module.css b/app/styles/dashboard.module.css index 18e2471aef7..1b5df9d7f93 100644 --- a/app/styles/dashboard.module.css +++ b/app/styles/dashboard.module.css @@ -118,19 +118,4 @@ :global(.load-more) { padding: var(--space-s); border-top: 1px solid light-dark(hsla(51, 90%, 42%, .25), #232321); - - button { - display: block; - text-align: center; - width: 100%; - padding: var(--space-2xs); - outline: 0; - border: 0; - background-color: light-dark(#dbd9cf, #202023); - color: light-dark(#525252, #f9f7ec); - - &:hover, &:focus { - background-color: light-dark(#c5c2b2, #26262b); - } - } } diff --git a/app/styles/shared/buttons.module.css b/app/styles/shared/buttons.module.css index 23708f132bd..cee8a2aeebf 100644 --- a/app/styles/shared/buttons.module.css +++ b/app/styles/shared/buttons.module.css @@ -84,3 +84,18 @@ :global(.button--small) { padding: var(--space-2xs) var(--space-s); } + +:global(.load-more-button) { + display: block; + text-align: center; + width: 100%; + padding: var(--space-2xs); + outline: 0; + border: 0; + background-color: light-dark(#dbd9cf, #202023); + color: light-dark(#525252, #f9f7ec); + + &:hover, &:focus { + background-color: light-dark(#c5c2b2, #26262b); + } +} diff --git a/app/templates/crate/versions.hbs b/app/templates/crate/versions.hbs index 1a700342e8e..dc115ad92d4 100644 --- a/app/templates/crate/versions.hbs +++ b/app/templates/crate/versions.hbs @@ -30,6 +30,7 @@