diff --git a/app/components/dependency-list/row.hbs b/app/components/dependency-list/row.hbs index bf115196a0c..7fe45d404c5 100644 --- a/app/components/dependency-list/row.hbs +++ b/app/components/dependency-list/row.hbs @@ -2,8 +2,8 @@ local-class=" row {{if @dependency.optional "optional"}} - {{if this.focused "focused"}} " + class="{{ if this.focused "focused" }}" data-test-dependency={{@dependency.crate_id}} ...attributes > @@ -64,4 +64,4 @@ {{/if}} - \ No newline at end of file + diff --git a/app/components/dependency-list/row.module.css b/app/components/dependency-list/row.module.css index 0000a668982..012bc9f84c3 100644 --- a/app/components/dependency-list/row.module.css +++ b/app/components/dependency-list/row.module.css @@ -1,33 +1,14 @@ .row { - --bg-color: var(--grey200); - --hover-bg-color: light-dark(hsl(217, 37%, 98%), hsl(204, 3%, 11%)); - --range-color: light-dark(var(--grey900), #d1cfc7); - --crate-color: light-dark(var(--grey700), #d1cfc7); --placeholder-opacity: 0.35; - --shadow: 0 1px 3px light-dark(hsla(51, 90%, 42%, .35), #232321); + + composes: row from global; display: flex; align-items: center; - position: relative; - font-size: 18px; - padding: var(--space-s) var(--space-m); - background-color: light-dark(white, #141413); - border-radius: var(--space-3xs); - box-shadow: var(--shadow); - transition: all var(--transition-slow); - - &:hover, &.focused { - background-color: var(--hover-bg-color); - transition: all var(--transition-instant); - } - - &.focused { - box-shadow: 0 0 0 3px var(--yellow500), var(--shadow); - } &.optional { - --range-color: light-dark(var(--grey600), var(--grey600)); - --crate-color: light-dark(var(--grey600), var(--grey600)); + --row-bg: light-dark(#f6f6f6, #292726); + --row-content: light-dark(var(--grey800), var(--grey400)); --placeholder-opacity: 0.15; } @@ -49,7 +30,7 @@ .range-lg, .range-sm { margin-right: var(--space-s); min-width: 100px; - color: var(--range-color); + color: var(--row-content); font-variant: tabular-nums; } @@ -70,13 +51,13 @@ } .link { - color: var(--crate-color); + color: var(--row-content); font-weight: 500; margin-right: var(--space-s); outline: none; &:hover { - color: var(--crate-color); + color: var(--row-content); } &::after { @@ -90,7 +71,7 @@ } .optional-label, .features-label { - color: var(--grey600); + color: light-dark(var(--grey700), var(--grey400)); text-transform: uppercase; letter-spacing: .7px; font-size: 13px; @@ -138,7 +119,7 @@ .description { margin-top: var(--space-xs); - color: var(--crate-color); + color: var(--row-content); font-size: 90%; line-height: 1.5; } diff --git a/app/components/front-page-list/item.module.css b/app/components/front-page-list/item.module.css index 9deb5ba5f9b..bb9ee615483 100644 --- a/app/components/front-page-list/item.module.css +++ b/app/components/front-page-list/item.module.css @@ -48,7 +48,7 @@ .subtitle { margin-top: var(--space-3xs); font-size: 13px; - color: light-dark(rgb(118, 131, 138), #cccac2); + color: var(--main-color-light); } .right { @@ -56,5 +56,5 @@ height: var(--space-s); width: auto; margin-left: var(--space-xs); - color: light-dark(rgb(118, 131, 138), #cccac2); + color: var(--main-color-light); } diff --git a/app/components/pagination.module.css b/app/components/pagination.module.css index f71a1f1f4f8..17596471c95 100644 --- a/app/components/pagination.module.css +++ b/app/components/pagination.module.css @@ -2,7 +2,7 @@ display: flex; align-items: center; justify-content: center; - font-size: 90%; + font-size: 110%; margin-bottom: var(--space-xs); ol { @@ -21,7 +21,7 @@ a:hover { background-color: var(--main-bg-dark); } a:global(.active) { background-color: var(--main-bg-dark); } - img, svg { vertical-align: middle; } + img, svg { vertical-align: middle; width: 2em; height: 2em; } .prev, .next { diff --git a/app/components/rev-dep-row.hbs b/app/components/rev-dep-row.hbs index 16ffc7a57a3..8ed11e42726 100644 --- a/app/components/rev-dep-row.hbs +++ b/app/components/rev-dep-row.hbs @@ -1,4 +1,4 @@ -