Skip to content

Commit

Permalink
Move audio controls to bottom center and make it less awkward-looking
Browse files Browse the repository at this point in the history
  • Loading branch information
D4isDAVID committed Aug 31, 2024
1 parent f85db72 commit 7603081
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- Added a note to the example cfg file.
- The error log now also handles the `unhandledrejection` event.
- Removed some lines of code that don't do anything.
- Moved the audio controls to the bottom center to avoid conflicts with the`Loading game` prompt in different resolutions.
- Slightly increased the audio volume slider in width.

### Fixed

Expand Down
18 changes: 8 additions & 10 deletions html/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,12 @@ input[type='range']::-webkit-slider-thumb {

#audio-controls {
position: fixed;
right: 1.75rem;
bottom: 4rem;
left: 50%;
bottom: 3.5rem;
transform: translateX(-50%);
overflow: hidden;
width: 2.5rem;

display: flex;
flex-direction: row;
align-items: center;
justify-content: end;

background-color: var(--shadow-color);
border: 1px solid var(--secondary-color);
border-radius: var(--border-round);
Expand All @@ -175,7 +171,7 @@ input[type='range']::-webkit-slider-thumb {
}

#audio-controls:hover {
width: 7.75rem;
width: 8rem;
}

#audio-mute {
Expand All @@ -197,8 +193,10 @@ input[type='range']::-webkit-slider-thumb {

#audio-volume {
position: absolute;
right: 3rem;
width: 4rem;
left: 2.75rem;
width: 4.5rem;
top: 50%;
transform: translateY(-50%);
}

#loadscreen-wrapper,
Expand Down

0 comments on commit 7603081

Please sign in to comment.