X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fmedia%2Fvideocontrols.css;h=76a34ef37f8faf60beb11ba658089e3f79c92450;hp=d9acf3614a16c6c782f4a9708e8a410ca8b03783;hb=e64883579c16c1c431ffd39cb7af0d551e10dd6f;hpb=114c63a29de43bf0fab87ddb948eadd3b0f9a328 diff --git a/LCARStrek/global/media/videocontrols.css b/LCARStrek/global/media/videocontrols.css index d9acf361..76a34ef3 100644 --- a/LCARStrek/global/media/videocontrols.css +++ b/LCARStrek/global/media/videocontrols.css @@ -76,6 +76,10 @@ background-image: url("chrome://global/skin/media/noAudio.png"); } +.muteButton[noAudio] + .volumeStack { + display: none; +} + .fullscreenButton { background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0); } @@ -92,40 +96,25 @@ background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 32, 32, 16); } -.volumeStack { - width: 28px; - height: 70px; - background-color: rgba(156,156,255,0.74); - /* use negative margin to place stack over the mute button to its left. */ - margin: -70px 3px 28px -31px; - overflow: hidden; /* crop it when sliding down, don't grow the control bar */ - position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */ - padding-top: 6px; - border-radius: 3px 3px 0 0; -} - .volumeControl { - min-height: 64px; + width: 32px; + opacity: 0; } -/* .scale-thumb is an element inside the implementation. */ -.volumeControl .scale-thumb { - /* Override the default thumb appearance with a custom image. */ - -moz-appearance: none; - background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center; - border: none !important; - min-width: 20px; - min-height: 10px; +.volumeBackground, +.volumeForeground { + background-repeat: no-repeat; + background-position: center; + width: 32px; } -.volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active { - background-image: url("chrome://global/skin/media/volumeThumb-hover.png"); + +.volumeBackground { + background-image: url("chrome://global/skin/media/volume-empty.png"); } -.volumeBackgroundBar { - /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */ - margin: 0px 10px; - background-color: rgba(0,0,0,0.5); - border-radius: 2.5px; +.volumeForeground { + background-image: url("chrome://global/skin/media/volume-full.png"); + background-clip: content-box; } .durationBox { @@ -195,7 +184,8 @@ } /* .scale-thumb is an element inside the implementation. */ -.scrubber .scale-thumb { +.scrubber .scale-thumb, +.volumeControl .scale-thumb { /* Override the default thumb appearance with a custom image. */ background: transparent; border: none !important;