diff --git a/CHANGELOG.md b/CHANGELOG.md index 65e9faa..90bf437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.1.7 + +- Added footer to pages. + # 0.1.6 - Support for `/rss?short` URL for short articles description on the RSS feed. diff --git a/madblog/static/css/common.css b/madblog/static/css/common.css index e97dd82..ce35834 100644 --- a/madblog/static/css/common.css +++ b/madblog/static/css/common.css @@ -1,5 +1,6 @@ html { - height: 100%; + height: -webkit-fill-available; + height: -moz-available; font-size: 20px; font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif; font-weight: 400; @@ -8,8 +9,10 @@ html { body { margin: 0; - width: 100%; - height: 100%; + height: 100vh; + /* mobile viewport bug fix */ + min-height: -webkit-fill-available; + min-height: -moz-available; } a, a:visited { @@ -105,3 +108,13 @@ h2 { line-height: 1.1em; } +footer { + width: 100%; + font-size: .65em; + color: rgba(0, 0, 0, .4); + letter-spacing: .02em; + margin-top: .5em; + padding-top: .25em; + text-align: center; + box-shadow: 1px -2px 2px 0 #bbb; +} diff --git a/madblog/static/css/home.css b/madblog/static/css/home.css index 07f56f3..ad56818 100644 --- a/madblog/static/css/home.css +++ b/madblog/static/css/home.css @@ -2,6 +2,15 @@ main { padding: 0; } +.index { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + overflow: hidden; +} + .articles { width: 100%; height: 100%; diff --git a/madblog/templates/article.html b/madblog/templates/article.html index 97d4a75..1f74564 100644 --- a/madblog/templates/article.html +++ b/madblog/templates/article.html @@ -38,6 +38,8 @@ {{ content | safe }} + + {% include 'footer.html' %} {% include 'common-tail.html' %} diff --git a/madblog/templates/footer.html b/madblog/templates/footer.html new file mode 100644 index 0000000..0245ba2 --- /dev/null +++ b/madblog/templates/footer.html @@ -0,0 +1,3 @@ + diff --git a/madblog/templates/index.html b/madblog/templates/index.html index 10a0f6a..0315b56 100644 --- a/madblog/templates/index.html +++ b/madblog/templates/index.html @@ -3,35 +3,39 @@ {% endwith %}
-
- {% for page in pages %} - - + + {% include 'footer.html' %}
{% include 'common-tail.html' %}