Skip to content

Commit

Permalink
Merge pull request #8 from hgroenenboom/fix-dark-theme
Browse files Browse the repository at this point in the history
Fixed dark theme colors not set correctly
  • Loading branch information
hgroenenboom authored Nov 7, 2021
2 parents ff982e0 + 189983f commit de387a0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
10 changes: 10 additions & 0 deletions css/customStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ h5 {
width: 98vh;
}

.footerBackground {
position:absolute;
background-color:#d7d7d7;
height:100%;
width:100%;
top:0px;
z-index:0;
pointer-events:none;
}

.footerContainer {
float: left;
position: relative;
Expand Down
12 changes: 6 additions & 6 deletions css/darkTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ body {
}

button {
color: #000;
color: rgb(71, 71, 71);
}

.footerBackground {
background-color:#282828;
}

.slider {
Expand All @@ -26,10 +30,6 @@ svg {
fill: rgb(255,255,255);
}

h4 {
h1, h2, h3, h4, h5, h6 {
color: #fff;
}

h5 {
color: #fff;
}
10 changes: 5 additions & 5 deletions webaudio-binpanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,18 @@ function toggleHelp() {
<div style="position:relative;height:100%;z-index:1">
<div id="playButtonSVG" class="footerContainer">
<svg class="footerDrawable" viewBox="0 0 24 24" width="30" height="30" xmlns="http://www.w3.org/2000/svg">
<path style="stroke:#111;stroke-width:2;stroke-linejoin:round;fill:#111;" d="M23 12l-22 12v-24l22 12zm-21 10.315l18.912-10.315-18.912-10.315v20.63z"/>
<path style="stroke-width:2;stroke-linejoin:round;" d="M23 12l-22 12v-24l22 12zm-21 10.315l18.912-10.315-18.912-10.315v20.63z"/>
</svg>
</div>
<div style="display:none;" id="pauseButtonSVG" class="footerContainer">
<svg class="footerDrawable" viewBox="0 0 24 24" width="30" height="30" xmlns="http://www.w3.org/2000/svg">
<path style="stroke:#111;stroke-width:2;stroke-linejoin:round;fill:#111;" d="M10 24h-6v-24h6v24zm10 0h-6v-24h6v24zm-11-23h-4v22h4v-22zm10 0h-4v22h4v-22z"/>
<path style="stroke-width:2;stroke-linejoin:round;" d="M10 24h-6v-24h6v24zm10 0h-6v-24h6v24zm-11-23h-4v22h4v-22zm10 0h-4v22h4v-22z"/>
</svg>
</div>
<div class="footerContainer">
<svg class="footerDrawable" xmlns="http://www.w3.org/2000/svg" version="1.0" width="30" height="30" viewBox="0 0 75 75">
<path d="M39.389,13.769 L22.235,28.606 L6,28.606 L6,47.699 L21.989,47.699 L39.389,62.75 L39.389,13.769z" style="stroke:#111;stroke-width:5;stroke-linejoin:round;fill:#111;"/>
<path d="M48,27.6a19.5,19.5 0 0 1 0,21.4M55.1,20.5a30,30 0 0 1 0,35.6M61.6,14a38.8,38.8 0 0 1 0,48.6" style="stroke:#111;stroke-width:5;stroke-linecap:round;fill:#111;"/>
<path d="M39.389,13.769 L22.235,28.606 L6,28.606 L6,47.699 L21.989,47.699 L39.389,62.75 L39.389,13.769z" style="stroke-width:5;stroke-linejoin:round;"/>
<path d="M48,27.6a19.5,19.5 0 0 1 0,21.4M55.1,20.5a30,30 0 0 1 0,35.6M61.6,14a38.8,38.8 0 0 1 0,48.6" style="stroke-width:5;stroke-linecap:round;"/>
</svg>
</div>

Expand Down Expand Up @@ -171,7 +171,7 @@ function toggleHelp() {
</div>
</div>

<div style="position:absolute;background-color:#777777; height:100%; width:100%; top:0px; x-index:-1; z-index:0; pointer-events:none;">
<div class="footerBackground">
</div>
</footer>

Expand Down

0 comments on commit de387a0

Please sign in to comment.