From eeb29fe8a721e723eed8166be1f341b486d8ab98 Mon Sep 17 00:00:00 2001 From: "kujiu (@rincevent.nerv-project.eu)" Date: Fri, 5 Jun 2020 00:39:00 +0200 Subject: [PATCH] Fix tag cloud --- CHANGES | 5 +++++ setup.py | 2 +- sphinx_nervproject_theme/__init__.py | 2 +- sphinx_nervproject_theme/theme.conf | 1 + ui/src/vuepress/styles/theme.less | 24 +++++++++++++++--------- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/CHANGES b/CHANGES index 91a6a54..225769f 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,11 @@ Changes ======= +1.0.7 (*2020-06-05*) +==================== + +- Fix size of tags + 1.0.6 (*2020-06-03*) ==================== diff --git a/setup.py b/setup.py index 8394681..1c0ae9f 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ with open("README.rst", "r") as fh: setup( name="sphinx_nervproject_theme", - version="1.0.6", + version="1.0.7", url="https://procrastinator.nerv-project.eu/nerv-project/communication/sphinx_nervproject_theme", license="EUPL 1.2", author="Kujiu", diff --git a/sphinx_nervproject_theme/__init__.py b/sphinx_nervproject_theme/__init__.py index 4334a39..41bd8ee 100644 --- a/sphinx_nervproject_theme/__init__.py +++ b/sphinx_nervproject_theme/__init__.py @@ -5,7 +5,7 @@ from sphinx.environment.collectors import EnvironmentCollector from sphinx import addnodes from sphinx.util.osutil import relative_uri -__version__ = (1, 0, 6) +__version__ = (1, 0, 7) class SimpleTocTreeCollector(EnvironmentCollector): diff --git a/sphinx_nervproject_theme/theme.conf b/sphinx_nervproject_theme/theme.conf index 07d1382..74f3356 100644 --- a/sphinx_nervproject_theme/theme.conf +++ b/sphinx_nervproject_theme/theme.conf @@ -6,6 +6,7 @@ sidebars = util/searchbox.html, util/sidetoc.html [options] external_links = +external_languages = fathom = isso = social = diff --git a/ui/src/vuepress/styles/theme.less b/ui/src/vuepress/styles/theme.less index 628eb35..923c4a2 100644 --- a/ui/src/vuepress/styles/theme.less +++ b/ui/src/vuepress/styles/theme.less @@ -920,12 +920,12 @@ img.align-right, figure.align-right { ul.ablog-archive { list-style: none; overflow: auto; - margin-left: 0px; + margin-left: 0; } ul.ablog-archive li { float: left; - margin-right: 5px; + margin-right: 0.1em; font-size: 0.9em; } @@ -947,14 +947,20 @@ ul.postlist-style-circle { ul.ablog-cloud { list-style: none; - overflow: auto; + display: flex; + flex-flow: row wrap; + justify-content: space-around; } ul.ablog-cloud li { float: left; - height: 20pt; - line-height: 18pt; - margin-right: 5px; + margin: 0 0 0 0; + padding: 0.005em 1em 0.005em 1em; + + a { + padding: 0 0 0 0; + margin: 0 0 0 0; + } } ul.ablog-cloud a, ul.ablog-cloud a:visited { @@ -971,15 +977,15 @@ li.ablog-cloud-2 { } li.ablog-cloud-3 { - font-size: 11em !important; + font-size: 1.1em !important; } li.ablog-cloud-4 { - font-size: 12.5em !important; + font-size: 1.25em !important; } li.ablog-cloud-5 { - font-size: 14em !important; + font-size: 1.4em !important; } .nav-links summary {