Skip to content

Commit

Permalink
only highlight notes which are "required"
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Jun 15, 2023
1 parent 10cb162 commit a6aec26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
7 changes: 1 addition & 6 deletions src/app/keyboard/keyboard.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<ul>
<li
*ngFor="let key of notes.keys"
class="{{ key.note }}"
[class.pressed]="key.pressed"
[class.required]="key.required"
>
<li *ngFor="let key of notes.keys" class="{{ key.note }}" [class.required]="key.required">
{{ key.finger }}
</li>
</ul>
18 changes: 3 additions & 15 deletions src/app/keyboard/keyboard.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
@mixin color($color) {
background: $color;
opacity: 0.6;
}

$offset: -0.48%;
$radius: 3px;

Expand Down Expand Up @@ -37,16 +32,9 @@ li {
border-radius: 0 5px 5px 5px;
}

&.pressed.required {
@include color(#bbb);
}

&:not(.pressed).required {
@include color(#33e02f);
}

&.pressed:not(.required) {
@include color(#f32020);
&.required {
background: #33e02f !important;
opacity: 0.6;
}

&:not([class*='S']) {
Expand Down

0 comments on commit a6aec26

Please sign in to comment.