Skip to content

Commit

Permalink
Use var for shadow color
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Sep 25, 2024
1 parent 52da0b9 commit 2864ed9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
height: 3rem;
border-radius: 0.2rem;
color: white;
border: 1px solid rgba(0, 0, 0, 0.5);
border: 1px solid var(--pxt-page-dark-shadow);
font-size: 1rem;
font-weight: bold;
background-color: var(--category-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
width: 100%;
height: 100%;
z-index: 49; // Above everything except toasts
background-color: rgba(0, 0, 0, 0.5);
background-color: var(--pxt-page-dark-shadow);

color: var(--pxt-page-foreground);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
.block-name-param {
border-radius: 1rem;
padding: 0.2rem 0.4rem;
background-color: rgba(0, 0, 0, 0.3);
background-color: var(--pxt-page-dark-shadow);
}
}

Expand Down
1 change: 1 addition & 0 deletions theme/themepacks.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
--pxt-page-foreground: black;
--pxt-page-foreground-light: #767676;
--pxt-page-foreground-shadow: rgba(0, 0, 0, 0.08);
--pxt-page-dark-shadow: rgba(0, 0, 0, 0.5);
/// Header bar
--pxt-headerbar-background: #475569;
--pxt-headerbar-background-glass: #47556940;
Expand Down

0 comments on commit 2864ed9

Please sign in to comment.