Skip to content

Commit

Permalink
refactor: viz height as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cueaz committed Oct 11, 2023
1 parent fb492fc commit a86ef2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ body {
}

.visualizer {
flex: 0 0 10px;
--height: 10px;
flex: 0 0 var(--height);
--inactive: #cdcdcd;
background: var(--inactive);
position: relative;
Expand All @@ -17,7 +18,7 @@ body {

.effect {
position: absolute;
height: calc(50vh - 10px);
height: calc(50vh - var(--height));
width: 100%;
--break-1: rgb(0 0 0 / 0.3);
--break-2: rgb(0 0 0 / 0.1) 30px;
Expand Down

0 comments on commit a86ef2f

Please sign in to comment.