From 08874bba6e31f4c4335394aaec88bc9298a7d5a7 Mon Sep 17 00:00:00 2001 From: uy-rrodriguez <5296200+uy-rrodriguez@users.noreply.github.com> Date: Fri, 8 Mar 2024 22:27:25 +0000 Subject: [PATCH] Updated style of iframes - CSS to set a sensible minimal width - JS to resize iframes that embed local files --- _includes/head.html | 62 ++++++++++++++++++++++++++++++++++++++++++++- _sass/main.scss | 8 +++--- 2 files changed, 66 insertions(+), 4 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index b52d9cd..76abac7 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -8,9 +8,69 @@ + + {%- feed_meta -%} {%- if jekyll.environment == 'production' and site.google_analytics -%} {%- include google-analytics.html -%} {%- endif -%} - \ No newline at end of file diff --git a/_sass/main.scss b/_sass/main.scss index e84170e..d8b3edc 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -35,12 +35,14 @@ html, body { padding: 1rem 0; } -.tab-content { - padding-top: 1rem; +.post { + .tab-content { + padding-top: 1rem; + } iframe { width: 100%; - height: 100%; + min-height: 50vh; } }