From 877e02087739e446cb000b619ac0a12d171d04ab Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 15 Jan 2025 15:39:09 -0500 Subject: Created mobile layout for blog --- app/assets/stylesheets/main/entries.scss | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'app/assets/stylesheets/main/entries.scss') diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index 609a5f7..4afd15d 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss @@ -3,9 +3,9 @@ // You can use Sass (SCSS) here: http://sass-lang.com/ .blog-post { - font-size: 16px; - line-height: 24px; + line-height: 1.5em; margin: 0 1em 1em; + clear: both; .blog-title { flex-grow: 1; @@ -41,6 +41,7 @@ .post-calendar { width: 45px; height: 49px; + flex-shrink: 0; &.post-date-1 { background: image-url("date-bg-1.gif") no-repeat; @@ -198,6 +199,10 @@ max-width: 100%; } + iframe { + max-width: 100%; + } + figure { background-color: #eee; border: 1px solid #bbb; @@ -205,6 +210,10 @@ font-size: 0.75em; line-height: 24px; + @media only screen and (max-width: 767px) { + margin: 0; + } + img { display: block; border: 1px solid #bbb; -- cgit 1.4.1