Skip to content

Commit

Permalink
fix: audio controls CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Dec 7, 2023
1 parent fb163f6 commit 03de704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/vanilla-ts-esm/public/mux-player-audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
display: block;
width: 100%;
margin: 1rem 0 2rem;
background-color: #000;
}

mux-player[title] {
Expand Down
7 changes: 4 additions & 3 deletions packages/mux-player/src/themes/gerwig/gerwig.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
}

:host([audio]) {
--_secondary-color: var(--media-secondary-color, black);
--media-preview-time-border-radius: 3px;
--media-preview-time-margin: 0 0 5px;
--media-preview-time-text-shadow: none;
Expand All @@ -64,6 +65,7 @@

:host([audio]) media-control-bar {
width: 100%;
background-color: var(--media-control-background);
}

/*
Expand Down Expand Up @@ -487,7 +489,7 @@
* Our defaults for these buttons are to hide them at small sizes
* users can override this with CSS
*/
:not([breakpointsm]) {
media-controller:not([breakpointsm]):not([audio]) {
--bottom-play-button: none;
--bottom-seek-backward-button: none;
--bottom-seek-forward-button: none;
Expand Down Expand Up @@ -965,7 +967,6 @@
{{>MuteButton}}
<template if="breakpointsm">{{>VolumeRange}}</template>
{{>TimeDisplay}} {{>TimeRange}}
<div class="spacer"></div>
<template if="breakpointsm">{{>PlaybackRateSelect}}</template>
{{>AirplayButton}} {{>CastButton}}
</media-control-bar>
Expand All @@ -981,7 +982,7 @@
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
</template>
<template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>
<div class="spacer"></div>
<template if="!targetlivewindow"><div class="spacer"></div></template>
{{>AirplayButton}} {{>CastButton}}
</media-control-bar>
</template>
Expand Down

0 comments on commit 03de704

Please sign in to comment.