From 03b7169a47c492acc3a3a998767fab1dd22231ba Mon Sep 17 00:00:00 2001 From: FernandoCelmer Date: Thu, 19 Jan 2023 00:12:38 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8C=20ISSUE-#5=20-=20Adjust=20blog=20i?= =?UTF-8?q?nterface=20for=20mobile=20devices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/stylesheets/theme.css | 36 ++++++++++++++++++- mkdocs_simple_blog/modules/header.html | 2 +- mkdocs_simple_blog/modules/preview.html | 4 +-- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/mkdocs_simple_blog/assets/stylesheets/theme.css b/mkdocs_simple_blog/assets/stylesheets/theme.css index f879167..1819550 100644 --- a/mkdocs_simple_blog/assets/stylesheets/theme.css +++ b/mkdocs_simple_blog/assets/stylesheets/theme.css @@ -75,7 +75,7 @@ pre { @media only screen and (min-device-width:320px) and (max-device-width:480px) { body { - font-size: 1.4em; + font-size: 1.0em; line-height: 1.6em; } } @@ -606,3 +606,37 @@ table tr td:last-child,table tr th:last-child { .overline { text-decoration: overline; } + +@media only screen and (max-width: 680px) { + .site-name { + font-size: 14px !important; + } + + .title { + font-size: 18px !important; + } + + .container { + padding-left: 5% !important; + padding-right: 5% !important; + } + + main { + margin-left: 0% !important; + margin-right: 0% !important; + line-height: 1.8 !important + } + + h1,h2,h3,h4,h5,h6 { + font-size: 18px !important; + margin-top: 1.0rem !important; + margin-bottom: 1rem !important; + } + + p, a, li, code, small { + font-size: 12px !important; + margin-top: 1.0rem !important; + margin-bottom: 1rem !important; + } + + } \ No newline at end of file diff --git a/mkdocs_simple_blog/modules/header.html b/mkdocs_simple_blog/modules/header.html index 6c22145..a3010af 100644 --- a/mkdocs_simple_blog/modules/header.html +++ b/mkdocs_simple_blog/modules/header.html @@ -4,7 +4,7 @@ {% if config.theme.logo %} {% endif %} - {{ config.site_name }} + {{ config.site_name }}