Fix Dynamic Audio player looks

- Removed unnecessary text for audio player
- Fixed styling for audio player
This commit is contained in:
AlexVeeBee 2023-10-01 15:49:53 +00:00
parent e9afb39a4a
commit b9ea0061d5
3 changed files with 58 additions and 24 deletions

View File

@ -1,3 +1,5 @@
// / <reference path=""/>
/*
Ideas:
- Clean design of new ui

View File

@ -5,15 +5,15 @@
.audio-mixer-div {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
/* align-items: center; */
/* justify-content: center; */
padding: 5px;
background-color: rgba(38, 38, 38, 0.5);
border: 1px rgb(75, 75, 75) solid;
border-radius: 10px;
}
.audio-mixer-element {
/* .audio-mixer-element {
height: 60px;
float: left;
margin-right: 10px;
@ -28,7 +28,7 @@
padding: 5px;
width: 100%;
}
}
} */
.audio-label {
display: block;
@ -78,13 +78,13 @@
width: 10%;
}
.audio-mixer-volume {
/* .audio-mixer-volume {
width: 25%;
}
} */
.audio-mixer-playlist {
/* .audio-mixer-playlist {
width: 45%;
}
} */
.audio-mixer-lock {
width: 10%;
@ -92,4 +92,36 @@
.audio-mixer-random {
width: 10%;
}
}
/* FIX */
/* .audio-container {
} */
/* .audio-container .flex { */
/* } */
.audio-container {
display: flex;
gap: 10px;
align-items: center;
}
.audio-container > .vol {
width: 100px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.audio-container > .vol > input {
width: 100%;
}
.audio-container > .playlist {
flex-grow: 1;
}
.audio-container > .playlist > select {
height: 100%;
margin: 0 !important;
}

View File

@ -40,30 +40,30 @@
<div>
<div class="audio-ui-block">
<label for="audio_bgm_volume_slider">Music</label>
<div class="audio-mixer-div">
<div class="audio-mixer-div audio-container">
<div class="audio-mixer-element audio-mixer-mute">
<label for="audio_bgm_lock" class="audio-label">Mute</label>
<!-- <label for="audio_bgm_lock" class="audio-label">Mute</label> -->
<div id="audio_bgm_mute" class="menu_button audio-mute-button">
<i class="fa-solid fa-volume-high fa-lg" id="audio_bgm_mute_icon"></i>
</div>
</div>
<div class="audio-mixer-element audio-mixer-volume">
<label for="audio_bgm_lock" class="audio-label">Vol <span id="audio_bgm_volume"></span></label>
<div class="audio-mixer-element vol audio-mixer-volume">
<!-- <label for="audio_bgm_lock" class="audio-label">Vol <span id="audio_bgm_volume"></span></label> -->
<input type="range" class ="audio-slider" id ="audio_bgm_volume_slider" value = "0" maxlength ="100">
</div>
<div class="audio-mixer-element audio-mixer-playlist">
<label for="audio_bgm_lock" class="audio-label">Playlist</label>
<div class="audio-mixer-element playlist audio-mixer-playlist">
<!-- <label for="audio_bgm_lock" class="audio-label">Playlist</label> -->
<select id="audio_bgm_select">
</select>
</div>
<div class="audio-mixer-element audio-mixer-lock">
<label for="audio_bgm_lock" class="audio-label">Loop</label>
<!-- <label for="audio_bgm_lock" class="audio-label">Loop</label> -->
<div id="audio_bgm_lock" class="menu_button audio-lock-button">
<i class="fa-solid fa-repeat fa-lg" id="audio_bgm_lock_icon"></i>
</div>
</div>
<div class="audio-mixer-element audio-mixer-random">
<label for="audio_bgm_random" class="audio-label">Roll</label>
<!-- <label for="audio_bgm_random" class="audio-label">Roll</label> -->
<div id="audio_bgm_random" class="menu_button audio-random-button">
<i class="fa-solid fa-random fa-lg" id="audio_bgm_random_icon"></i>
</div>
@ -73,24 +73,24 @@
</div>
<div>
<label for="audio_ambient_volume_slider">Ambient</label>
<div class="audio-mixer-div">
<div class="audio-mixer-div audio-container">
<div class="audio-mixer-element audio-mixer-mute">
<label for="audio_ambient_lock" class="audio-label">Mute</label>
<!-- <label for="audio_ambient_lock" class="audio-label">Mute</label> -->
<div id="audio_ambient_mute" class="menu_button audio-mute-button">
<i class="fa-solid fa-volume-high fa-lg" id="audio_ambient_mute_icon"></i>
</div>
</div>
<div class="audio-mixer-element audio-mixer-volume">
<label for="audio_ambient_lock" class="audio-label">Vol <span id="audio_ambient_volume"></span></label>
<div class="audio-mixer-element vol audio-mixer-volume">
<!-- <label for="audio_ambient_lock" class="audio-label">Vol <span id="audio_ambient_volume"></span></label> -->
<input type="range" class ="audio-slider" id ="audio_ambient_volume_slider" value = "0" maxlength ="100">
</div>
<div class="audio-mixer-element audio-mixer-playlist">
<label for="audio_ambient_lock" class="audio-label">Playlist</label>
<div class="audio-mixer-element playlist audio-mixer-playlist">
<!-- <label for="audio_ambient_lock" class="audio-label">Playlist</label> -->
<select id="audio_ambient_select">
</select>
</div>
<div class="audio-mixer-element">
<label for="audio_ambient_lock audio-mixer-lock" class="audio-label">Lock</label>
<!-- <label for="audio_ambient_lock audio-mixer-lock" class="audio-label">Lock</label> -->
<div id="audio_ambient_lock" class="menu_button audio-lock-button">
<i class="fa-solid fa-lock-open fa-lg" id="audio_ambient_lock_icon"></i>
</div>