discourse/plugins/lazy-yt/assets/stylesheets/lazyYT.css

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

127 lines
2.5 KiB
CSS
Raw Normal View History

2014-07-21 22:39:32 -04:00
/*!
2015-01-27 07:30:07 -05:00
* lazyYT (lazy load YouTube videos)
* v1.0.1 - 2014-12-30
* (CC) This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
* http://creativecommons.org/licenses/by-sa/4.0/
* Contributors: https://github.com/tylerpearson/lazyYT/graphs/contributors || https://github.com/daugilas/lazyYT/graphs/contributors
2014-07-21 22:39:32 -04:00
*/
2015-01-27 07:30:07 -05:00
.lazyYT-container {
position: relative;
z-index: z("base");
2015-01-27 07:30:07 -05:00
display: block;
height: 0;
padding: 0 0 56.25% 0;
overflow: hidden;
background-color: #000000;
margin-bottom: 12px;
2015-01-27 07:30:07 -05:00
}
.lazyYT-container iframe {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
/*
* Video Title (YouTube style)
*/
.lazyYT-container .html5-info-bar {
position: absolute;
top: 0;
z-index: 935;
width: 100%;
height: 30px;
overflow: hidden;
font-family: Arial, sans-serif;
2015-01-27 07:30:07 -05:00
font-size: 12px;
color: #fff;
background-color: rgba(0, 0, 0, 0.8);
-webkit-transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1);
-moz-transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1);
transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1);
}
.lazyYT-container .html5-title {
padding-right: 6px;
padding-left: 12px;
}
.lazyYT-container .html5-title-text-wrapper {
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
word-wrap: normal;
white-space: nowrap;
}
.lazyYT-container .html5-title-text {
width: 100%;
font-size: 13px;
line-height: 30px;
color: #ccc;
text-decoration: none;
}
.lazyYT-container .html5-title-text:hover {
color: #fff;
text-decoration: underline;
}
/*
* Thumbnail
*/
.ytp-thumbnail {
padding-bottom: inherit;
cursor: pointer;
background-position: 50% 50%;
background-repeat: no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
/*
* Play button (YouTube style)
*/
.ytp-large-play-button {
position: absolute;
top: 50% !important;
left: 50% !important;
width: 86px !important;
height: 60px !important;
padding: 0 !important;
margin: -29px 0 0 -42px !important;
font-size: normal !important;
font-weight: normal !important;
line-height: 1 !important;
opacity: 0.9;
z-index: 935;
2015-01-27 07:30:07 -05:00
}
.ytp-large-play-button-svg {
opacity: 0.9;
2015-01-27 07:30:07 -05:00
fill: #1f1f1f;
}
.lazyYT-image-loaded:hover .ytp-large-play-button-svg,
.ytp-large-play-button:focus .ytp-large-play-button-svg {
opacity: 1;
fill: #cc181e;
2014-07-21 22:39:32 -04:00
}
.ytp-thumbnail-image {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}