Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Faria <leonardofaria@gmail.com>2020-11-04 07:29:47 +0300
committerLeonardo Faria <leonardofaria@gmail.com>2020-11-04 07:29:47 +0300
commitc0464c75753840a6581cedcc73b879ef8877f419 (patch)
tree503d70b60b650a4ea88fc4c35b9f5aefd5e15009
parent49d66f7e673cc24a4f74f62c3513cdf4cc91fe8a (diff)
Make image/videos wider than paragraphs also on mobile
-rw-r--r--assets/css/site.css12
1 files changed, 9 insertions, 3 deletions
diff --git a/assets/css/site.css b/assets/css/site.css
index b92d563..5f8fdcb 100644
--- a/assets/css/site.css
+++ b/assets/css/site.css
@@ -61,14 +61,20 @@ html {
}
/* Make images/videos wider than post width, like Medium */
+.article__content > p > img,
+.article__content > video,
+.article__content > .wide {
+ max-width: 100vw;
+ position: relative;
+ left: 50%;
+ transform: translateX(-50%);
+}
+
@screen lg {
.article__content > p > img,
.article__content > video,
.article__content > .wide {
@apply max-w-4xl;
- position: relative;
- left: 50%;
- transform: translateX(-50%);
}
}