Skip to content

Instantly share code, notes, and snippets.

@walia
Created February 14, 2018 18:22
Show Gist options
  • Save walia/f2d98e4d2dc53ce5013424993dd01433 to your computer and use it in GitHub Desktop.
Save walia/f2d98e4d2dc53ce5013424993dd01433 to your computer and use it in GitHub Desktop.
ima css
/**
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.ima-ad-container {
top: 0px;
position: absolute;
display: none;
width: 100%;
height: 100%;
font-size: 12px;
}
.vjs-ad-playing {
z-index: 1000002;
}
/* Move overlay if user fast-clicks play button. */
.video-js.vjs-playing .bumpable-ima-ad-container {
margin-top: -40px;
}
/* Move overlay when controls are active. */
.video-js.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container {
margin-top: 0px;
}
.video-js.vjs-paused .bumpable-ima-ad-container,
.video-js.vjs-playing:hover .bumpable-ima-ad-container,
.video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container {
margin-top: -40px;
}
.ima-controls-div {
bottom:0px;
height: 26px;
position: absolute;
overflow: hidden;
display: none;
opacity: 1;
background-color: rgba(7, 20, 30, 0.28);
background: -moz-linear-gradient(
bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* FF3.6+ */
/* background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0%,rgba(7, 20, 30, .7)),
color-stop(100%,rgba(7, 20, 30, 0))); */ /* Chrome,Safari4+ */
/* background: -webkit-linear-gradient(
bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); */ /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* IE10+ */
/* background: linear-gradient(to top,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); */ /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#0007141E',
endColorstr='#07141E',GradientType=0 ); /* IE6-9 */
}
.ima-controls-div.ima-controls-div-showing {
height: 56px;
}
.ima-countdown-div {
color: #FFFFFF;
cursor: default;
font-size: 12px;
margin: 0 14px;
margin-top: 5px;
position: absolute;
}
.ima-seek-bar-div {
top: 20px;
height: 4px;
position: absolute;
background: rgba(255, 255, 255, .4);
}
.ima-progress-div {
width: 0px;
height: 4px;
background-color: #bfbfbf;
}
.ima-play-pause-div, .ima-mute-div, .ima-slider-div, .ima-fullscreen-div {
width: 35px;
height: 30px;
top: 15px;
left: 0px;
position: absolute;
color: #CCCCCC;
font-size: 2em;
line-height: 2;
text-align: center;
font-family: VideoJS;
cursor: pointer;
}
.ima-mute-div {
left: auto;
right: 85px;
}
.ima-slider-div {
left: auto;
right: 35px;
width: 50px;
height: 5px;
top: 36px;
background: rgba(255, 255, 255, .4);
}
.ima-slider-level-div {
width: 100%;
height: 5px;
background-color: #bfbfbf;
}
.ima-fullscreen-div {
left: auto;
right: 0px;
}
.ima-playing:before {
content: "\00f103";
}
.ima-paused:before {
content: "\00f101";
}
.ima-playing:hover:before, .ima-paused:hover:before {
text-shadow: 0 0 1em #fff;
}
.ima-non-muted:before {
content: "\00f107";
}
.ima-muted:before {
content: "\00f104";
}
.ima-non-muted:hover:before, .ima-muted:hover:before {
text-shadow: 0 0 1em #fff;
}
.ima-non-fullscreen:before {
content: "\00f108";
}
.ima-fullscreen:before {
content: "\00f109";
}
.ima-non-fullscreen:hover:before, .ima-fullscreen:hover:before {
text-shadow: 0 0 1em #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment