Make Feedbin/Twitter video usable. Issue #718

This commit is contained in:
Maurice Parker 2020-01-17 12:17:38 -07:00
parent 539722d685
commit 3c1668c178
3 changed files with 15 additions and 2 deletions

View File

@ -129,12 +129,18 @@ code, pre {
font-family: "SF Mono", Menlo, "Courier New", Courier, monospace;
font-size: 14px;
}
img, figure, video, iframe, div {
img, figure, iframe, div {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
video {
width: 100% !important;
height: auto !important;
margin: 0 auto;
}
figcaption {
font-size: 14px;
line-height: 1.3em;

View File

@ -137,6 +137,7 @@ function showClickedImage() {
function inlineVideos() {
document.querySelectorAll("video").forEach(element => {
element.setAttribute("playsinline", true)
element.setAttribute("controls", true)
});
}

View File

@ -142,12 +142,18 @@ code, pre {
font-size: .8235rem;
-webkit-hyphens: none;
}
img, figure, video, iframe, div {
img, figure, iframe, div {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
video {
width: 100% !important;
height: auto !important;
margin: 0 auto;
}
figcaption {
font-size: 14px;
line-height: 1.3em;