Skip to content

Commit

Permalink
console,account: Refactor color assignments for new components
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiffer committed Jan 23, 2024
1 parent f300faa commit 4d6e93a
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.dedicated-entity
text-decoration: none
line-height: 1.6rem
color: $c.grey-900
color: var(--c-text-neutral-heavy)
position: relative
height: 2.5rem

Expand All @@ -39,7 +39,7 @@

&-item
display: flex
color: $c.grey-900
color: var(--c-text-neutral-heavy)
opacity: 1
position: absolute
left: 2.5rem
Expand All @@ -55,13 +55,13 @@
display: list-item
height: 100%
margin: 0 $cs.xs 0 $cs.s
border-left: 1px solid $c.grey-200
background-color: $c.grey-200
border-left: 1px solid var(--c-border-neutral-semilight)
background-color: var(--c-border-neutral-light)

&-button
border-radius: $br.l
padding: 0 $cs.xs 0 0.73rem
background-color: $c.grey-900
background-color: var(--c-bg-neutral-heavy)
position: relative
display: inline-flex
border-radius: $br.l
Expand All @@ -84,4 +84,4 @@

&:not(:disabled)
+focus-visible()
background-color: hoverize($c.grey-500)
background-color: var(--c-bg-neutral-light)
11 changes: 5 additions & 6 deletions pkg/webui/components/sidebar/search-button/search-button.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

.search-button
font-size: $fs.m
color: $c.grey-500
color: var(--c-text-neutral-light)
width: 100%
position: relative
display: flex
Expand All @@ -24,14 +24,13 @@
gap: $cs.xxs
box-shadow: 0px 2px 7px 1px rgba(0, 0, 0, 0.06)
background: var(--c-bg-neutral-min)
border: 1px solid $c.grey-200
border: 1px solid var(--c-border-neutral-semilight)
border-radius: $br.l
transition: border-color 0.08s linear, box-shadow 0.08s linear, color 0.08s linear


&:hover
border: 1px solid $c.grey-200
color: $c.grey-700
color: var(--c-text-neutral-min-hover)
box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.08)

&.is-minimized
Expand All @@ -58,7 +57,7 @@
width: 1.65rem // 24px
text-align: center
border-radius: $br.m
border: 1px solid $c.grey-200
border: 1px solid var(--c-border-neutral-light)
font-size: $fs.m
display: flex
justify-content: center
Expand All @@ -68,4 +67,4 @@
.fly-out-list
--dropdown-offset: calc(.75rem - 2px)
top: - $cs.xs
color: $c.grey-900
color: var(--c-text-neutral-heavy)
2 changes: 1 addition & 1 deletion pkg/webui/components/sidebar/section-label/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SectionLabel = ({
'd-flex',
'j-between',
'al-center',
'c-grey-500',
'c-text-neutral-light',
'ml-cs-s',
'fs-s',
)}
Expand Down
10 changes: 5 additions & 5 deletions pkg/webui/components/sidebar/side-menu/item/item.styl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
transition: color 50ms linear
border-radius: $br.m
text-decoration: none
color: $c.grey-700
color: var(--c-text-neutral-semilight)
display: flex
align-items: center
gap: $cs.xs
Expand All @@ -59,20 +59,20 @@
padding-left: $cs.xs

&.active
background: $c.tts-primary-150
color: $c.grey-900
background: var(--c-bg-neutral-light)
color: var(--c-text-neutral-heavy)

.icon
color: inherit

&.disabled
color: $c.grey-400
color: var(--c-text-neutral-extralight)

.icon
color: inherit

&:hover
color: $c.grey-900
color: var(--c-text-neutral-heavy)

.icon
color: inherit
Expand Down
17 changes: 6 additions & 11 deletions pkg/webui/components/sidebar/switcher/switcher.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

.switcher-container
border-radius: $br.l
border: 1px solid $c.grey-200
border: 1px solid var(--c-border-neutral-light)
background: var(--c-bg-neutral-min)
box-shadow: 0px 2px 7px 1px rgba(0, 0, 0, 0.06)
display: flex
Expand All @@ -25,7 +25,7 @@
.link
border-radius: $br.m
text-decoration: none
color: $c.grey-700
color: var(--c-text-neutral-semilight)
display: flex
justify-content: center
width: 100%
Expand All @@ -34,19 +34,14 @@
padding: $cs.s $cs.xxs

&.active
background: $c.grey-900
color: $c.white
background: var(--c-bg-neutral-heavy)
color: var(--c-text-neutral-min)
font-weight: $fw.bold

&:visited
text-decoration: none
&:not(.active)
color: $c.grey-700

&:hover
text-decoration: none
&:not(.active)
background: $c.grey-100
background: var(--c-bg-neutral-light)

&.is-minimized
flex-direction: column
Expand All @@ -68,4 +63,4 @@
.fly-out-list
--dropdown-offset: calc(1rem - 2px)
top: - $cs.xs
color: $c.grey-900
color: var(--c-text-neutral-heavy)
2 changes: 1 addition & 1 deletion pkg/webui/components/table/row/row.styl
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
color: unset

&:hover
background-color: var(--c-bg-neutral-light)
background-color: var(--c-bg-neutral-min-hover)
2 changes: 1 addition & 1 deletion pkg/webui/console/components/events/events.styl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ $event-container-height = 40px

.body
overflow: hidden
background-color: var(--c-bg-neutral-light)
background-color: var(--c-bg-brand-extralight)
flex-grow: 1
position: relative

Expand Down

0 comments on commit 4d6e93a

Please sign in to comment.