Skip to content

Commit

Permalink
chore(fe): css variables to rgba where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
AshDyson committed Apr 4, 2024
1 parent e58dd64 commit bf0deee
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/frontend/src/styles/components/hero.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

&:before {
content: '';
background: rgba(var(--grey), 0.2);
background: rgba(var(--grey-rgb), 0.2);
top: 0;
left: 0;
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions pkg/frontend/src/styles/components/nav.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
z-index: 500;
backdrop-filter: blur(20px);
border-bottom: solid 1px rgba(#fff, 0.2);
background: rgba(#000, 0.6);
background: rgba(var(--grey-rgb), 0.6);
// height: 51px;

@media (min-width: $lg) {
Expand Down Expand Up @@ -227,7 +227,7 @@
height: calc(60px + env(safe-area-inset-bottom));
backdrop-filter: blur(20px);
border-top: solid 1px rgba(#fff, 0.2);
background: rgba(var(--grey), 0.6);
background: rgba(var(--grey-rgb), 0.6);
z-index: 500;
padding: 0 20px;
padding-bottom: env(safe-area-inset-bottom);
Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/src/styles/components/trailer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
&__buffer {
height: 100%;
width: 25%;
background: rgba(var(--orange-dark-30), 0.5);
background: rgba(var(--orange-dark-30-rgb), 0.5);
position: absolute;
top: 0;
left: 0;
Expand Down
4 changes: 3 additions & 1 deletion pkg/frontend/src/styles/global/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
--black: #111;
--white: #fff;
--grey: #202020;
--grey-rgb: 32, 32, 32;
--grey-light-10: color-mix(in srgb, var(--grey), #fff 10%);
--grey-light-20: color-mix(in srgb, var(--grey), #fff 20%);
--grey-light-30: color-mix(in srgb, var(--grey), #fff 30%);
Expand All @@ -16,6 +17,7 @@
--orange: #ff8300;
--orange-dark-10: color-mix(in srgb, var(--orange), #000 10%);
--orange-dark-30: color-mix(in srgb, var(--orange), #000 30%);
--orange-dark-30-rgb: 178, 91, 0;
--green: #98dd32;
--green-dark-30: color-mix(in srgb, var(--green), #000 30%);
--green-dark: #2e8321;
Expand Down Expand Up @@ -160,7 +162,7 @@ hr {
color: white;

@media (max-width: $lg) {
background: rgba(var(--grey), 0.8);
background: rgba(var(--grey-rgb), 0.8);
backdrop-filter: blur(20px);
margin-top: 5px;
border-radius: 5px !important;
Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/src/styles/views/movie.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@

&__option {
padding: 10px;
border-bottom: solid 1px rgba(var(--grey), 0.5);
border-bottom: solid 1px rgba(var(--grey-rgb), 0.5);
cursor: pointer;

&:last-child {
Expand Down

0 comments on commit bf0deee

Please sign in to comment.