From aefa7acbe45d7269773e6bc6c2145a44808a25b2 Mon Sep 17 00:00:00 2001 From: Adewale Azeez Date: Tue, 12 May 2020 01:54:28 +0100 Subject: [PATCH] add the document_font_size theme option to change the font size --- .gitignore | 1 + setup.py | 2 +- themata/clear/static/css/clear.css_t | 1 + themata/clear/theme.conf | 1 + themata/fandango/static/css/fandango.css_t | 1 + themata/fandango/theme.conf | 1 + themata/fluid/static/css/fluid.css_t | 1 + themata/fluid/theme.conf | 1 + themata/garri/static/css/garri.css_t | 1 + themata/garri/theme.conf | 1 + themata/hackish/static/css/hackish.css_t | 1 + themata/hackish/theme.conf | 1 + themata/milkish/static/css/milkiish.css_t | 1 + themata/milkish/theme.conf | 1 + themata/sugar/static/css/sugar.css_t | 1 + themata/sugar/theme.conf | 1 + themata/water/static/css/water.css_t | 1 + themata/water/theme.conf | 1 + 18 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3d36ae0..425239c 100644 --- a/.gitignore +++ b/.gitignore @@ -130,4 +130,5 @@ dmypy.json /test/junks/ *build/ +*test/ *dist/ diff --git a/setup.py b/setup.py index 14f5f75..194f736 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ zip_safe=False, install_requires=["sphinx>=1.1"], name="themata", - version=1.0, + version=1.1, author="Adewale Azeez", author_email="azeezadewale98@gmail.com", description="Set of Highly customizable sphinx themes. hackish, milkish, fandango, clear, fluid, garri, water and sugar.", diff --git a/themata/clear/static/css/clear.css_t b/themata/clear/static/css/clear.css_t index af153ac..25312ec 100644 --- a/themata/clear/static/css/clear.css_t +++ b/themata/clear/static/css/clear.css_t @@ -173,6 +173,7 @@ pre { .documentwrapper { margin-top: 90px; max-height: 100%; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } .sidebar-left { diff --git a/themata/clear/theme.conf b/themata/clear/theme.conf index 06784e5..d3f7a48 100644 --- a/themata/clear/theme.conf +++ b/themata/clear/theme.conf @@ -16,6 +16,7 @@ left_sidebar_only = no_sidebar = collapsible_sidebar = True collapsible_sidebar_display = block +document_font_size = 16px #css text_color = #727273 diff --git a/themata/fandango/static/css/fandango.css_t b/themata/fandango/static/css/fandango.css_t index 62b204c..0794c10 100644 --- a/themata/fandango/static/css/fandango.css_t +++ b/themata/fandango/static/css/fandango.css_t @@ -192,6 +192,7 @@ pre { max-height: 100%; display: flex; justify-content: center; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } diff --git a/themata/fandango/theme.conf b/themata/fandango/theme.conf index c5b8d8b..c38d8d5 100644 --- a/themata/fandango/theme.conf +++ b/themata/fandango/theme.conf @@ -18,6 +18,7 @@ no_sidebar = secondary_header_link = toc_title = Browse exclude_secondary_header_in = +document_font_size = 16px #css text_color = #02516e diff --git a/themata/fluid/static/css/fluid.css_t b/themata/fluid/static/css/fluid.css_t index 30a8d88..2a69f7c 100644 --- a/themata/fluid/static/css/fluid.css_t +++ b/themata/fluid/static/css/fluid.css_t @@ -160,6 +160,7 @@ pre { max-height: 100%; display: flex; justify-content: center; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } diff --git a/themata/fluid/theme.conf b/themata/fluid/theme.conf index 8985045..8222201 100644 --- a/themata/fluid/theme.conf +++ b/themata/fluid/theme.conf @@ -18,6 +18,7 @@ left_sidebar_only = no_sidebar = collapsible_sidebar = True collapsible_sidebar_display = block +document_font_size = 16px #css text_color = #363638 diff --git a/themata/garri/static/css/garri.css_t b/themata/garri/static/css/garri.css_t index 62ec83f..49f3ec2 100644 --- a/themata/garri/static/css/garri.css_t +++ b/themata/garri/static/css/garri.css_t @@ -156,6 +156,7 @@ table.hlist ul { .documentwrapper { width: 70%; margin: 20px; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } diff --git a/themata/garri/theme.conf b/themata/garri/theme.conf index 7b60cb7..eea5818 100644 --- a/themata/garri/theme.conf +++ b/themata/garri/theme.conf @@ -10,6 +10,7 @@ index_is_single = True sidebar_position = left has_sidebar = True no_sidebar = +document_font_size = 16px #css text_color = #000000 diff --git a/themata/hackish/static/css/hackish.css_t b/themata/hackish/static/css/hackish.css_t index 556fe53..912c0d0 100644 --- a/themata/hackish/static/css/hackish.css_t +++ b/themata/hackish/static/css/hackish.css_t @@ -190,6 +190,7 @@ pre { max-height: 100%; display: flex; justify-content: center; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } diff --git a/themata/hackish/theme.conf b/themata/hackish/theme.conf index 269cabf..400d5ee 100644 --- a/themata/hackish/theme.conf +++ b/themata/hackish/theme.conf @@ -15,6 +15,7 @@ show_navigators = True left_sidebar_only = no_sidebar = toc_title = Browse +document_font_size = 16px #css text_color = rgb(36,233,10) diff --git a/themata/milkish/static/css/milkiish.css_t b/themata/milkish/static/css/milkiish.css_t index 495b370..3e53587 100644 --- a/themata/milkish/static/css/milkiish.css_t +++ b/themata/milkish/static/css/milkiish.css_t @@ -171,6 +171,7 @@ pre { margin: 5%; margin-top: 70px; max-height: 100%; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } .sidebar-left { diff --git a/themata/milkish/theme.conf b/themata/milkish/theme.conf index 3992318..bbe06e9 100644 --- a/themata/milkish/theme.conf +++ b/themata/milkish/theme.conf @@ -18,6 +18,7 @@ left_sidebar_only = no_sidebar = collapsible_sidebar = True collapsible_sidebar_display = block +document_font_size = 16px #css text_color = #727273 diff --git a/themata/sugar/static/css/sugar.css_t b/themata/sugar/static/css/sugar.css_t index 75fd5e6..9bfc512 100644 --- a/themata/sugar/static/css/sugar.css_t +++ b/themata/sugar/static/css/sugar.css_t @@ -194,6 +194,7 @@ pre { margin: 5%; margin-top: 10px; max-height: 100%; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } .sidebar-left { diff --git a/themata/sugar/theme.conf b/themata/sugar/theme.conf index 1602b7c..057a563 100644 --- a/themata/sugar/theme.conf +++ b/themata/sugar/theme.conf @@ -19,6 +19,7 @@ left_sidebar_only = no_sidebar = collapsible_sidebar = True collapsible_sidebar_display = none +document_font_size = 16px #css text_color = #727273 diff --git a/themata/water/static/css/water.css_t b/themata/water/static/css/water.css_t index 2c7566c..75bdd85 100644 --- a/themata/water/static/css/water.css_t +++ b/themata/water/static/css/water.css_t @@ -138,6 +138,7 @@ pre { margin-top: 70px; max-width: 58%; margin: auto; + font-size: {{ theme_document_font_size }}; /* theme_document_font_size */ } .sidebar-left { diff --git a/themata/water/theme.conf b/themata/water/theme.conf index d19e8eb..533b0f1 100644 --- a/themata/water/theme.conf +++ b/themata/water/theme.conf @@ -14,6 +14,7 @@ social_icons = show_navigators = True left_sidebar_only = no_sidebar = +document_font_size = 16px #css text_color = #727273