From 991cebf95dc49098f0c9ccc1d21298fac7663eae Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 17 Aug 2021 16:26:32 +1000 Subject: [PATCH] Update notmyidea theme to scale down to smaller screens The aim here is to make the theme work respectably on mobile devices with only modest changes. Providing different layouts at multiple breakpoints is beyond the scope of this change. The changes here are: 1. `base.html`: Add a ` .hentry {border: 0; margin: 0;} position: relative; float: left; top: 0.5em; - width: 190px; + max-width: 190px; } /* About the Author */ @@ -453,12 +459,12 @@ li:first-child .hentry, #content > .hentry {border: 0; margin: 0;} #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;} /* Add a Comment */ - #add-comment label {clear: left; float: left; text-align: left; width: 150px;} + #add-comment label {clear: left; float: left; text-align: left; max-width: 150px;} #add-comment input[type='text'], #add-comment input[type='email'], - #add-comment input[type='url'] {float: left; width: 200px;} + #add-comment input[type='url'] {float: left; max-width: 200px;} - #add-comment textarea {float: left; height: 150px; width: 495px;} + #add-comment textarea {float: left; height: 150px; max-width: 495px;} #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;} diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html index 6be5f1d8..2b302899 100644 --- a/pelican/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -3,6 +3,7 @@ {% block head %} + {% block title %}{{ SITENAME }}{%endblock%}