diff --git a/src/components/audio-trimmer/audio-trimmer.css b/src/components/audio-trimmer/audio-trimmer.css index 701b24eff..e7b2fc24d 100644 --- a/src/components/audio-trimmer/audio-trimmer.css +++ b/src/components/audio-trimmer/audio-trimmer.css @@ -1,10 +1,11 @@ @import "../../css/colors.css"; $border-radius: 4px; -$trim-handle-width: 12px; -$trim-handle-height: 14px; +$trim-handle-width: 30px; +$trim-handle-height: 30px; +$trim-handle-border: 3px; $stripe-size: 10px; -$hover-scale: 2; +$hover-scale: 1.25; .absolute { position: absolute; @@ -88,6 +89,10 @@ $hover-scale: 2; border-right: none; } +.right-handle { + transform: scaleX(-1); +} + .selector .left-handle { left: 0 } @@ -106,19 +111,19 @@ $hover-scale: 2; .trim-handle { position: absolute; - left: calc(-$trim-handle-width / 2); width: $trim-handle-width; height: $trim-handle-height; } -.selector .trim-handle { - filter: hue-rotate(180deg); +.trimmer .trim-handle { + filter: hue-rotate(150deg); } .trim-handle img { position: absolute; width: $trim-handle-width; height: $trim-handle-height; + left: calc(-$trim-handle-width + $trim-handle-border * 1.5); /* Make sure image dragging isn't triggered */ user-select: none; @@ -129,22 +134,13 @@ $hover-scale: 2; } .top-trim-handle { - top: -$trim-handle-height; + top: calc(-$trim-handle-height + $trim-handle-border); } .bottom-trim-handle { - bottom: -$trim-handle-height; + bottom: calc(-$trim-handle-height + $trim-handle-border); } .top-trim-handle img { - transform: rotate(180deg); -} - -/* Increase handle size when anywhere on draggable area is hovered */ -.trim-background:hover img { - transform: scale($hover-scale); -} - -.trim-background:hover .top-trim-handle img { - transform: rotate(180deg) scale($hover-scale); + transform: scaleY(-1); } diff --git a/src/components/audio-trimmer/icon--handle.svg b/src/components/audio-trimmer/icon--handle.svg index a3f52078f..dad1ea751 100644 --- a/src/components/audio-trimmer/icon--handle.svg +++ b/src/components/audio-trimmer/icon--handle.svg @@ -1,18 +1,16 @@ - - - - handle + + + + Bottom Left Handle Created with Sketch. - - - - - - - - - - + + + + + + + + diff --git a/src/components/sound-editor/sound-editor.css b/src/components/sound-editor/sound-editor.css index 406a26430..2ad9bb48a 100644 --- a/src/components/sound-editor/sound-editor.css +++ b/src/components/sound-editor/sound-editor.css @@ -64,6 +64,9 @@ border: 1px solid $ui-black-transparent; border-radius: 5px; padding: 3px; + + margin-top: 20px; + margin-bottom: 20px; } $border-radius: 0.25rem; @@ -93,9 +96,9 @@ $border-radius: 0.25rem; height: 3rem; width: 3rem; outline: none; - background: white; + background: $motion-primary; border-radius: 100%; - border: 1px solid $ui-black-transparent; + border: 4px solid $ui-white-dim; cursor: pointer; padding: 0.75rem; user-select: none; @@ -105,6 +108,7 @@ $border-radius: 0.25rem; flex-grow: 1; max-width: 100%; max-height: 100%; + filter: grayscale(1) brightness(10); /*min-width: 1.5rem;*/ }