embeds style fixes

This commit is contained in:
Sean Yesmunt 2020-04-30 11:01:11 -04:00
parent 6b02805645
commit 49275c298a
3 changed files with 21 additions and 7 deletions

View file

@ -15,8 +15,8 @@
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: 100%;
height: 300px;
width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;

View file

@ -222,19 +222,27 @@
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: var(--spacing-small);
background-repeat: repeat-x;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==);
.button {
padding: var(--spacing-small);
color: var(--color-white);
.button__label {
white-space: nowrap;
}
&:hover {
color: var(--color-white);
}
&:first-of-type {
max-width: 90%;
@media (max-width: $breakpoint-small) {
max-width: 80%;
}
}
}
}
@ -351,17 +359,23 @@
}
.file-render--embed {
/* on embeds, do not inject our colors until interaction*/
.video-js.vjs-paused {
// on embeds, do not inject our colors until interaction
.video-js:hover {
.vjs-big-play-button {
background-color: var(--color-primary);
}
}
.vjs-paused {
.vjs-big-play-button {
display: block;
background-color: rgba(0, 0, 0, 0.6);
}
}
.video-js:hover {
.vjs-ended {
.vjs-big-play-button {
background-color: var(--color-primary);
display: none;
}
}
}

View file

@ -1,5 +1,5 @@
.header {
z-index: 2; // Main content uses z-index: 1, this ensures it always scrolls under the header
z-index: 3; // Main content uses z-index: 1, other content uses z-index: 2, this ensures it always scrolls under the header
position: fixed;
top: 0;
width: 100%;