Make Feedbin/Twitter video usable. Issue #718
This commit is contained in:
parent
539722d685
commit
3c1668c178
|
@ -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;
|
||||
|
|
|
@ -137,6 +137,7 @@ function showClickedImage() {
|
|||
function inlineVideos() {
|
||||
document.querySelectorAll("video").forEach(element => {
|
||||
element.setAttribute("playsinline", true)
|
||||
element.setAttribute("controls", true)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue