From 044b5d491a673c74d770c3f43276c2b85380a485 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sun, 8 Apr 2012 21:59:58 +0200 Subject: [PATCH] finish up sync with Mozilla 12 toolkit winstripe --- .../global/media/videoClickToPlayButton.svg | 99 +++++++++++++++++++ EarlyBlue/global/media/videocontrols.css | 30 ++++++ .../global/media/videoClickToPlayButton.svg | 99 +++++++++++++++++++ LCARStrek/global/media/videocontrols.css | 30 ++++++ 4 files changed, 258 insertions(+) create mode 100644 EarlyBlue/global/media/videoClickToPlayButton.svg create mode 100644 LCARStrek/global/media/videoClickToPlayButton.svg diff --git a/EarlyBlue/global/media/videoClickToPlayButton.svg b/EarlyBlue/global/media/videoClickToPlayButton.svg new file mode 100644 index 00000000..c8d6f23c --- /dev/null +++ b/EarlyBlue/global/media/videoClickToPlayButton.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EarlyBlue/global/media/videocontrols.css b/EarlyBlue/global/media/videocontrols.css index c76db360..78b9764b 100644 --- a/EarlyBlue/global/media/videocontrols.css +++ b/EarlyBlue/global/media/videocontrols.css @@ -205,6 +205,24 @@ background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center; } +/* Overlay Play button */ +.clickToPlay { + width: 64px; + height: 64px; + -moz-box-pack: center; + -moz-box-align: center; + opacity: 0.7; + background-image: url("chrome://global/skin/media/clicktoplay-bgtexture.png"), + url("chrome://global/skin/media/videoClickToPlayButton.svg"); + background-repeat: repeat, no-repeat; + background-position: center, center; + background-size: auto, 64px 64px; + background-color: hsla(0,0%,10%,.5); +} +.clickToPlay:hover { + opacity: 1; +} + /* Statistics formatting */ html|*.statsDiv { position: relative; @@ -231,6 +249,18 @@ html|table { } /* CSS Transitions */ +.clickToPlay { + -moz-transition-property: opacity, background-size; + -moz-transition-duration: 400ms, 400ms; +} +.clickToPlay[fadeout] { + background-size: auto, 192px 192px; + opacity: 0; +} +.clickToPlay[fadeout][immediate] { + -moz-transition-property: opacity, background-size; + -moz-transition-duration: 0s, 0s; +} .controlBar:not([immediate]) { -moz-transition-property: opacity; -moz-transition-duration: 200ms; diff --git a/LCARStrek/global/media/videoClickToPlayButton.svg b/LCARStrek/global/media/videoClickToPlayButton.svg new file mode 100644 index 00000000..d5e21c78 --- /dev/null +++ b/LCARStrek/global/media/videoClickToPlayButton.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/LCARStrek/global/media/videocontrols.css b/LCARStrek/global/media/videocontrols.css index 1c7d9fc4..3220dcaf 100644 --- a/LCARStrek/global/media/videocontrols.css +++ b/LCARStrek/global/media/videocontrols.css @@ -242,6 +242,24 @@ background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center; } +/* Overlay Play button */ +.clickToPlay { + width: 64px; + height: 64px; + -moz-box-pack: center; + -moz-box-align: center; + opacity: 0.7; + background-image: url("chrome://global/skin/media/clicktoplay-bgtexture.png"), + url("chrome://global/skin/media/videoClickToPlayButton.svg"); + background-repeat: repeat, no-repeat; + background-position: center, center; + background-size: auto, 64px 64px; + background-color: hsla(0,0%,10%,.5); +} +.clickToPlay:hover { + opacity: 1; +} + /* Statistics formatting */ html|*.statsDiv { position: relative; @@ -268,6 +286,18 @@ html|table { } /* CSS Transitions */ +.clickToPlay { + -moz-transition-property: opacity, background-size; + -moz-transition-duration: 400ms, 400ms; +} +.clickToPlay[fadeout] { + background-size: auto, 192px 192px; + opacity: 0; +} +.clickToPlay[fadeout][immediate] { + -moz-transition-property: opacity, background-size; + -moz-transition-duration: 0s, 0s; +} .controlBar:not([immediate]) { -moz-transition-property: opacity; -moz-transition-duration: 200ms; -- 2.43.0