X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=EarlyBlue%2Fglobal%2Fmedia%2Fvideocontrols.css;h=9d0334fda3fcdd5f30b36854adb1b012fd500f81;hp=51276bd56295fef27cb17ed4920caaad878a4bf7;hb=441d02947409ca4d22ac53d247dabc3873d6ea3f;hpb=a6c8d0f5eca89404094b51eee861f983d2a2a483 diff --git a/EarlyBlue/global/media/videocontrols.css b/EarlyBlue/global/media/videocontrols.css index 51276bd5..9d0334fd 100644 --- a/EarlyBlue/global/media/videocontrols.css +++ b/EarlyBlue/global/media/videocontrols.css @@ -42,6 +42,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); } @@ -50,35 +54,35 @@ background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16); } -.volumeStack { - width: 28px; - height: 70px; - background-color: rgba(102,102,153,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; +.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"); +} + +.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); +.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 { @@ -145,7 +149,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;