From fb753bef76874a0887dfc66a5a7b4006403b0d08 Mon Sep 17 00:00:00 2001 From: khk Date: Tue, 26 Nov 2019 15:11:07 +0900 Subject: [PATCH] sound-viewer --- .../file-viewer/binary-viewer.component.scss | 2 +- .../file-viewer/sound-viewer.component.html | 101 ++++++++++-------- .../file-viewer/sound-viewer.component.scss | 88 +++++++++++---- 3 files changed, 125 insertions(+), 66 deletions(-) diff --git a/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/binary-viewer.component.scss b/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/binary-viewer.component.scss index 776b1d9f..cc42df30 100644 --- a/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/binary-viewer.component.scss +++ b/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/binary-viewer.component.scss @@ -53,7 +53,7 @@ justify-content: center; align-items: center; border:2px solid #ffffff; - background-color:rgba(256, 256, 256, 0.6); + background-color:rgba(256, 256, 256, 0.7); } .guide-msg{ font-size:16px; diff --git a/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.html b/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.html index 959d7f31..b603f572 100644 --- a/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.html +++ b/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.html @@ -5,21 +5,30 @@ +
@@ -50,46 +59,50 @@ (loadstart)="onLoadStartAudio()" (loadeddata)="onLoadedDataAudio()" > - music_note -
-
- - -
-
-
- {{ currentTime | ucapSecondsToMinutes }} +
+ music_note
- - - -
- {{ duration | ucapSecondsToMinutes }} + + +
+
+
+ {{ currentTime | ucapSecondsToMinutes }} +
+ + + +
+ {{ duration | ucapSecondsToMinutes }} +
- + \ No newline at end of file diff --git a/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.scss b/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.scss index d2d0bfbf..9fb05407 100644 --- a/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.scss +++ b/projects/ucap-webmessenger-ui/src/lib/components/file-viewer/sound-viewer.component.scss @@ -4,40 +4,73 @@ .ucap-sound-viewer-header { width: 100%; - height: 50px; + height: 60px; + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); + background-color: #333333; .ucap-sound-viewer-icon { + margin-right: 10px; } .ucap-sound-viewer-title { + font-size:16px; + } + .stroke-bar { + width: 1px; + height: 30px; + background-color: rgba(256, 256, 256, 0.3); + margin: 0 10px; + } + .ucap-sound-viewer-action { + &:hover { + opacity: 0.7; + } } } .ucap-sound-viewer-body { position: relative; - background-color: white; width: 100%; - height: 100%; - padding-bottom: 70px; + height: calc(100% - 60px); - .ucap-sound-viewer-sound-icon { - width: 100%; - height: calc(100% - 60px); - } - .ucap-sound-viewer-sound-time { - width: 100%; - height: 30px; - } - .ucap-sound-viewer-sound-controls { - width: 100%; - height: 30px; - - .ucap-sound-viewer-sound-time-current { - padding-left: 30px; + .circle-box{ + display:flex; + width:140px; + height:140px; + border-radius:50%; + justify-content: center; + align-items: center; + border:2px solid #ffffff; + background-color:rgba(256, 256, 256, 0.7); + .mat-icon{ + font-size: 100px; + height: 100px; + width: 100px; } + } - .ucap-sound-viewer-sound-time-total { - padding-right: 30px; + .ucap-sound-viewer-sound-icon{ + width: 100%; + height: calc(100% - 80px); + } + .viewer-bottom{ + background-color: #212121; + color:#ffffff; + .ucap-sound-viewer-sound-time { + width: 100%; + height: 30px; + } + .ucap-sound-viewer-sound-controls { + width: 100%; + height: 50px; + + .ucap-sound-viewer-sound-time-current { + padding-left: 30px; + } + + .ucap-sound-viewer-sound-time-total { + padding-right: 30px; + } } } } @@ -45,9 +78,22 @@ flex: 1 1 auto; } .ucap-sound-viewer-action { + .mat-icon{ + font-size: 40px; + width: 100%; + height: 100%; + line-height:40px; + } } } mat-slider { - width: 95%; + width: 94%; } + +::ng-deep .mat-slider-horizontal .mat-slider-track-background{ + background-color: #999999 !important; +} +::ng-deep .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{ + border-color: #999999 !important; +} \ No newline at end of file