Skip to content

Commit

Permalink
Merge pull request #644 from bitmovin/feature/button-interaction
Browse files Browse the repository at this point in the history
Feature/button interaction
  • Loading branch information
alesmaye authored Aug 20, 2024
2 parents 8be63ad + b6f5a0f commit 6c09514
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 44 deletions.
6 changes: 1 addition & 5 deletions src/scss/skin-super-modern/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@
}

@mixin svg-icon-shadow {
filter: drop-shadow(0 0 1px $color-primary);
}

@mixin svg-icon-on-shadow {
filter: drop-shadow(0 0 1px $color-highlight);
filter: drop-shadow(0 0 .25px $color-primary);
}

@mixin seekbar-position-marker($marker-dimension) {
Expand Down
5 changes: 5 additions & 0 deletions src/scss/skin-super-modern/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
%ui-button {
@extend %ui-component;

transition: transform 0.15s ease;
background-color: transparent;
background-origin: content-box;
background-position: center;
Expand Down Expand Up @@ -36,6 +37,10 @@
}
}

&:active {
transform: scale(0.9);
}

@include hidden;
@include focusable;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
&:hover {
@include svg-icon-on-shadow;
}
}
}

.#{$prefix}-ui-settingstogglebutton {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,8 @@
.#{$prefix}-ui-smallcenteredplaybacktogglebutton {
@extend %ui-button;

@keyframes #{$prefix}-fade-out {
from {
opacity: 1;
visibility: visible;
}

to {
opacity: 0;
transform: scale(2);
visibility: hidden;
}
}

@keyframes #{$prefix}-fade-in {
from {
opacity: 0;
transform: scale(2);
visibility: visible;
}

to {
opacity: 1;
}
}

@keyframes #{$prefix}-breathe {
30% {
transform: scale(1.1);
}

60% {
transform: scale(1);
}
&:hover {
@include svg-icon-shadow;
}

cursor: default;
Expand Down

0 comments on commit 6c09514

Please sign in to comment.