aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.ch>2021-06-08 22:53:10 +0200
committerGitHub <noreply@github.com>2021-06-08 16:53:10 -0400
commit73a245c65024297bd4a47c65da99bdf06069f35a (patch)
treead4ca3a615c6f99725badcf0847785acd1760290
parentb7e04b6cc126f6cd4d71ad5bdee9da6c543256c9 (diff)
downloadxesite-73a245c65024297bd4a47c65da99bdf06069f35a.tar.xz
xesite-73a245c65024297bd4a47c65da99bdf06069f35a.zip
css: constraint iframe max width (#373)
Last blog post contains a Youtube iframe which is too large on mobile. Constraint its width to maximum viewport width.
-rw-r--r--css/hack.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/css/hack.css b/css/hack.css
index 5a7346c..cbbc496 100644
--- a/css/hack.css
+++ b/css/hack.css
@@ -43,6 +43,9 @@ pre code {
text-shadow: none;
margin: 1.75rem 0;
}
+iframe {
+ max-width: 100%;
+}
a {
cursor: pointer;
color: #ff2e88;