242 lines
4.8 KiB
CSS
242 lines
4.8 KiB
CSS
.youtubevideo {
|
|
position: relative;
|
|
font-size: 21px;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper {
|
|
overflow: hidden;
|
|
position: relative;
|
|
height: 0;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage {
|
|
cursor: pointer;
|
|
display: block;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage.play {
|
|
display: none
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>iframe {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0
|
|
}
|
|
|
|
.youtubevideo-gdpr-overlay {
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 10;
|
|
background: rgba(255, 255, 255, 0.93);
|
|
color: #000;
|
|
font-size: 1rem;
|
|
line-height: 1.3em;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: none;
|
|
}
|
|
|
|
.youtubevideo-gdpr-text {
|
|
position: absolute;
|
|
width: 100%;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateY(-50%) translateX(-50%);
|
|
padding: 1em;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.youtubevideo-gdpr-note {
|
|
max-width: 80%;
|
|
margin: auto;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.youtubevideo-gdpr-button {
|
|
text-transform: uppercase;
|
|
border: 1px solid black;
|
|
line-height: 1em;
|
|
padding: 0.5em 1em;
|
|
display: inline-block;
|
|
font-size: 0.75em;
|
|
margin-right: 0.3em;
|
|
margin-bottom: 0.3em;
|
|
color: #000;
|
|
transition: all .3s;
|
|
background: #fff;
|
|
}
|
|
|
|
.youtubevideo-gdpr-button:hover {
|
|
background: #000;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.youtubevideo-gdpr-cancel {
|
|
padding: 0.5em;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
font-size: 2em;
|
|
font-weight: normal;
|
|
color: #000;
|
|
display: block;
|
|
}
|
|
|
|
.youtubevideo-gdpr-cancel:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.small .youtubevideo-gdpr-overlay {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.tiny .youtubevideo-gdpr-overlay {
|
|
font-size: 0.65em;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage>.covertext {
|
|
position: absolute;
|
|
text-align: left;
|
|
box-sizing: border-box;
|
|
font-size: 0.8em;
|
|
line-height: 1.5em;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
padding: 0.8rem 1.2rem;
|
|
margin-left: 1.5rem;
|
|
margin-right: 1.5rem;
|
|
bottom: 1.5rem;
|
|
}
|
|
|
|
.youtubevideo.small>.videoWrapper>.coverimage>.covertext {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
padding: 0.5rem 0.9rem;
|
|
}
|
|
|
|
.youtubevideo.tiny>.videoWrapper>.coverimage>.covertext {
|
|
padding: 0.3rem 0.5rem;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage>.covertext h2 {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage>.covertext h2,
|
|
.youtubevideo>.videoWrapper>.coverimage>.covertext p {
|
|
display: inline-block;
|
|
color: #fff;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.youtubevideo.small>.videoWrapper>.coverimage>.covertext h2 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.youtubevideo.tiny>.videoWrapper>.coverimage>.covertext h2 {
|
|
font-size: 0.9em;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.youtubevideo.small>.videoWrapper>.coverimage>.covertext p {
|
|
display: none;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage-click {
|
|
display: block;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: transparent;
|
|
z-index: 10;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage-click:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage-click.play {
|
|
display: none;
|
|
}
|
|
|
|
.youtubevideo>.videoWrapper>.coverimage-click.play+.coverimage {
|
|
display: none;
|
|
}
|
|
|
|
/* play button colors */
|
|
.youtubevideo .playbutton {
|
|
position: absolute;
|
|
width: 15%;
|
|
height: auto;
|
|
min-width: 40px;
|
|
max-width: 80px;
|
|
top: 50%;
|
|
right: 50%;
|
|
transform: translateY(-50%) translateX(50%);
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.youtubevideo:hover .playbutton .ytp-large-play-button-bg {
|
|
fill: #f00;
|
|
transition: all .3s;
|
|
}
|
|
|
|
/* if .youtubevideo width is under set px, breakpoint is set */
|
|
.youtubevideogallery>.item, .youtubevideogallery>.space {
|
|
float: left;
|
|
}
|
|
|
|
/* column layouts */
|
|
.youtubevideogallery.colcount-0 .space,
|
|
.youtubevideogallery.colcount-3 .space:nth-child(3n),
|
|
.youtubevideogallery.colcount-2 .space:nth-child(4n),
|
|
.youtubevideogallery.colcount-4 .space:nth-child(8n),
|
|
.youtubevideogallery.colcount-5 .space:nth-child(10n),
|
|
.youtubevideogallery.colcount-6 .space:nth-child(12n),
|
|
.youtubevideogallery.colcount-7 .space:nth-child(14n),
|
|
.youtubevideogallery.colcount-8 .space:nth-child(16n) {
|
|
float: none;
|
|
clear: both;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.youtubevideo-gdpr-overlay {
|
|
background: rgba(0, 0, 0, 0.93);
|
|
color: #fff;
|
|
}
|
|
|
|
.youtubevideo-gdpr-button {
|
|
color: #fff;
|
|
background: #000;
|
|
border-color: #fff;
|
|
}
|
|
|
|
.youtubevideo-gdpr-button:hover {
|
|
background: #fff;
|
|
color: #000;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.youtubevideo-gdpr-cancel {
|
|
color: #fff;
|
|
}
|
|
}
|