From f302e0a4ad6b57a2c77b3c563d2888de2533b059 Mon Sep 17 00:00:00 2001 From: Darya Plotnytska Date: Thu, 31 Oct 2024 14:41:40 +0100 Subject: [PATCH 1/2] doc: Fix badges and tag --- doc/static/img/tts_frames/frame_aws.svg | 17 ++------- doc/static/img/tts_frames/frame_cloud.svg | 17 ++------- .../img/tts_frames/frame_enterprise.svg | 17 ++------- .../img/tts_frames/frame_open_source.svg | 17 ++------- doc/static/img/tts_frames/frame_ttss.svg | 28 +++++++------- .../assets/css/common/global.scss | 12 ++++-- .../css/vendor/bulma/sass/elements/tag.sass | 4 +- .../layouts/_default/list.html | 35 +++++++++--------- .../layouts/_default/single.html | 37 +++++++++---------- .../layouts/partials/distribution-icons.html | 2 +- .../layouts/partials/pages-cards.html | 32 ++++++++-------- 11 files changed, 89 insertions(+), 129 deletions(-) diff --git a/doc/static/img/tts_frames/frame_aws.svg b/doc/static/img/tts_frames/frame_aws.svg index 1dc76ee0d4..9388ea8318 100644 --- a/doc/static/img/tts_frames/frame_aws.svg +++ b/doc/static/img/tts_frames/frame_aws.svg @@ -1,15 +1,4 @@ - - - frame_aws - - - - - - - - - - - + + + diff --git a/doc/static/img/tts_frames/frame_cloud.svg b/doc/static/img/tts_frames/frame_cloud.svg index 78b631c05c..02103da4f5 100644 --- a/doc/static/img/tts_frames/frame_cloud.svg +++ b/doc/static/img/tts_frames/frame_cloud.svg @@ -1,15 +1,4 @@ - - - frame_enterprise - - - - - - - - - - - + + + diff --git a/doc/static/img/tts_frames/frame_enterprise.svg b/doc/static/img/tts_frames/frame_enterprise.svg index c68f910426..71c29cc08c 100644 --- a/doc/static/img/tts_frames/frame_enterprise.svg +++ b/doc/static/img/tts_frames/frame_enterprise.svg @@ -1,15 +1,4 @@ - - - frame_open_source - - - - - - - - - - - + + + diff --git a/doc/static/img/tts_frames/frame_open_source.svg b/doc/static/img/tts_frames/frame_open_source.svg index 813367f3cb..1b8186b5a0 100644 --- a/doc/static/img/tts_frames/frame_open_source.svg +++ b/doc/static/img/tts_frames/frame_open_source.svg @@ -1,15 +1,4 @@ - - - frame_cloud - - - - - - - - - - - + + + diff --git a/doc/static/img/tts_frames/frame_ttss.svg b/doc/static/img/tts_frames/frame_ttss.svg index 4ec0efa9ae..8f7247af99 100644 --- a/doc/static/img/tts_frames/frame_ttss.svg +++ b/doc/static/img/tts_frames/frame_ttss.svg @@ -1,15 +1,15 @@ - - - frame_deicated_cloud - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/doc/themes/the-things-stack/assets/css/common/global.scss b/doc/themes/the-things-stack/assets/css/common/global.scss index c3d74748eb..793ca7d396 100644 --- a/doc/themes/the-things-stack/assets/css/common/global.scss +++ b/doc/themes/the-things-stack/assets/css/common/global.scss @@ -132,16 +132,22 @@ table.fixed td { overflow: auto; } } } +.content-tags { + display: flex; + gap: 0.3rem; + margin-bottom: 1.5rem; +} + .badge-stack { - margin-left: .25em; white-space: nowrap; display: flex; flex-direction: row; + gap: 0.3rem; } .badge-stack .badge { - height: 1em; - width: 1em; + height: 1.6em; + width: auto; } .card { diff --git a/doc/themes/the-things-stack/assets/css/vendor/bulma/sass/elements/tag.sass b/doc/themes/the-things-stack/assets/css/vendor/bulma/sass/elements/tag.sass index 392daee6f7..0896ff5dbd 100644 --- a/doc/themes/the-things-stack/assets/css/vendor/bulma/sass/elements/tag.sass +++ b/doc/themes/the-things-stack/assets/css/vendor/bulma/sass/elements/tag.sass @@ -61,11 +61,11 @@ $tag-colors: $colors !default .tag:not(body) align-items: center background-color: $tag-background-color - border-radius: $tag-radius + border-radius: $radius-large color: $tag-color display: inline-flex font-size: $size-small - height: 2em + height: 2.13em justify-content: center line-height: 1.5 padding-left: 0.75em diff --git a/doc/themes/the-things-stack/layouts/_default/list.html b/doc/themes/the-things-stack/layouts/_default/list.html index 080994737f..ff5a4432cc 100644 --- a/doc/themes/the-things-stack/layouts/_default/list.html +++ b/doc/themes/the-things-stack/layouts/_default/list.html @@ -11,26 +11,25 @@ {{ end }}