X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fmedia%2Fvideocontrols.css;h=f8d4cfd8481297e554b1f6c3f133658d62e356e6;hp=d9acf3614a16c6c782f4a9708e8a410ca8b03783;hb=2e389898f68ebe2e0fd7c7b50ead1dbd3c082405;hpb=a6c8d0f5eca89404094b51eee861f983d2a2a483 diff --git a/LCARStrek/global/media/videocontrols.css b/LCARStrek/global/media/videocontrols.css index d9acf361..f8d4cfd8 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,35 @@ 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 { + width: 32px; + opacity: 0; } -.volumeControl { - min-height: 64px; +.volumeBackground, +.volumeForeground { + background-repeat: no-repeat; + background-position: center; + width: 32px; } -/* .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 { + background-image: url("chrome://global/skin/media/volume-empty.png"); } -.volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active { - background-image: url("chrome://global/skin/media/volumeThumb-hover.png"); + +.volumeForeground { + background-image: url("chrome://global/skin/media/volume-full.png"); + background-clip: content-box; } -.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; +.controlBar[fullscreen-unavailable] > .volumeStack { + /* This value is duplicated in the videocontrols.xml adjustControlSize function. */ + -moz-margin-end: 8px; +} + +.volumeControl .scale-thumb { + min-width: 0; + opacity: 0; } .durationBox { @@ -195,7 +194,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;