diff --git a/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.css b/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.css index 381c2e5a0c0218ca18cf5faec83103cebff5a14a..836e32b821f3c7ac41dba1f1ac463e72ebd48116 100644 --- a/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.css +++ b/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.css @@ -18,21 +18,17 @@ height: 100%; flex-direction: column; align-items: center; + justify-content: center; background-image: url(common/media/bg_blurry.png); background-size: cover; background-position: center center; - padding-start: 64px; - padding-end: 64px; -} - -.title_section { - margin-top: 10%; - flex-direction: row; - justify-content: center; + padding-start: 6%; + padding-end: 6%; } .title { - font-size: 48px; + width: 100%; + margin-top: 10%; color: #FFF; text-align: center; } @@ -49,7 +45,7 @@ } .progress_section { - margin-bottom: 48px; + margin-bottom: 4%; flex-direction: column; } @@ -60,17 +56,13 @@ } .progress_time { - height: 32px; color: #FFF; text-align: center; - font-size: 24px; } .total_time { - height: 32px; color: #FFF; text-align: center; - font-size: 24px; } .music_slider { @@ -82,14 +74,15 @@ .control_section { width: 100%; + height: 10%; justify-content: space-between; flex-direction: row; - margin-bottom: 48px; + margin-bottom: 4%; } .control_button { - height: 96px; - width: 96px; + width: 20%; + aspect-ratio: 1; } .txt { diff --git a/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.hml b/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.hml index 63ecf4bba9228d142baf75ab53dee9b078132e23..a4b6fd501643011308e89fed02abacdc3f091977 100644 --- a/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.hml +++ b/ability/JsDistributedMusicPlayer/entry/src/main/js/default/pages/index/index.hml @@ -14,30 +14,30 @@ */-->