mediaControlsBlackBerry.css [plain text]
/*
* BlackBerry specific overrides for HTML5 media elements.
*
* Copyright (C) 2009 Apple Inc. All rights reserved.
* Copyright (C) 2010, 2011, 2012 Research In Motion Limited. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* BlackBerry default media controls. */
audio {
background-color: rgba(38, 38, 38, 0.8);
width: 300px;
height: 32px;
}
audio::-webkit-media-controls-embedded-panel, video::-webkit-media-controls-embedded-panel {
display: -webkit-flex;
-webkit-flex-direction: row;
-webkit-align-items: center;
position: absolute;
bottom: 0;
width: 100%;
height: auto;
background-color: rgba(38, 38, 38, 0.8);
}
audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel {
display: none;
}
video::-webkit-media-controls-button-group-container, audio::-webkit-media-controls-button-group-container {
display: none;
}
video::-webkit-media-controls-fullscreen-time-display-container, audio::-webkit-media-controls-fullscreen-time-display-container {
display: none;
}
video::-webkit-media-controls-time-display-container, audio::-webkit-media-controls-time-display-container {
-webkit-appearance: media-controls-background;
display: -webkit-flex;
-webkit-flex-direction: row;
-webkit-align-items: center;
-webkit-justify-content: space-between;
-webkit-flex: 1 1;
}
video::-webkit-media-controls-fullscreen-play-button, audio::-webkit-media-controls-fullscreen-play-button {
display: none;
}
video::-webkit-media-controls-play-button, audio::-webkit-media-controls-play-button {
-webkit-appearance: media-play-button;
display: -webkit-flex;
}
audio::-webkit-media-controls-fullscreen-timeline-container, video::-webkit-media-controls-fullscreen-timeline-container {
display: none;
}
video::-webkit-media-controls-timeline-container, audio::-webkit-media-controls-timeline-container {
-webkit-appearance: media-controls-background;
display: -webkit-flex;
-webkit-flex-direction: column;
-webkit-align-items: stretch;
-webkit-justify-content: center;
-webkit-flex: 1 1;
height: auto;
width: 100%;
}
audio::-webkit-media-controls-fullscreen-current-time-display, video::-webkit-media-controls-fullscreen-current-time-display {
display: none;
}
audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display {
-webkit-appearance: media-current-time-display;
display: -webkit-flex;
-webkit-flex-direction: row;
-webkit-align-items: center;
-webkit-justify-content: flex-end;
-webkit-flex: 0 0;
color: #fafafa;
}
video::-webkit-media-controls-fullscreen-time-remaining-display, audio::-webkit-media-controls-fullscreen-time-remaining-display {
display: none;
}
video::-webkit-media-controls-time-remaining-display, audio::-webkit-media-controls-time-remaining-display {
-webkit-appearance: media-time-remaining-display;
display: -webkit-flex;
-webkit-flex-direction: row;
-webkit-align-items: center;
-webkit-justify-content: flex-end;
-webkit-flex: 0 0;
color: rgb(125, 125, 125);
}
audio::-webkit-media-controls-fullscreen-timeline, video::-webkit-media-controls-fullscreen-timeline {
display: none;
}
audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline {
-webkit-appearance: media-slider;
display: -webkit-flex;
-webkit-flex: 1 1;
margin-bottom: 2px;
}
video::-webkit-media-controls-fullscreen-fullscreen-button, audio::-webkit-media-controls-fullscreen-fullscreen-button {
display: none;
}
video::-webkit-media-controls-fullscreen-button {
-webkit-appearance: media-enter-fullscreen-button;
display: -webkit-flex;
}
audio::-webkit-media-controls-fullscreen-button {
display: none;
}
audio::-webkit-media-controls-audio-mute-button {
-webkit-appearance: media-mute-button;
display: -webkit-flex;
}
video::-webkit-media-controls-audio-mute-button {
display: none;
}
audio::-webkit-media-controls-volume-slider-container {
-webkit-appearance: media-volume-slider-container;
display: -webkit-flex;
-webkit-flex-direction: column;
-webkit-align-items: center;
-webkit-justify-content: flex-end;
-webkit-flex: 1 1;
-webkit-user-select: none;
position: absolute;
left: 0px;
right: 0px;
background-color: rgba(38, 38, 38, 0.8);
}
video::-webkit-media-controls-volume-slider-container {
display: none;
}
audio::-webkit-media-controls-volume-slider {
-webkit-appearance: media-volume-slider;
display: -webkit-flex;
-webkit-flex: 1 1;
position: absolute;
left: 3%;
right: 3%;
}
video::-webkit-media-controls-volume-slider {
display: none;
}
video::-webkit-media-controls-fullscreen-button-divider, audio::-webkit-media-controls-fullscreen-button-divider {
display: none;
}
video::-webkit-media-controls-fullscreen-button-container, video::-webkit-media-controls-play-button-container, audio::-webkit-media-controls-fullscreen-button-container, audio::-webkit-media-controls-play-button-container {
display: none;
}