From 1ed8bf3a4821ee9e32485f38e171851c54bd681e Mon Sep 17 00:00:00 2001 From: Carlos <53526597+carlosgauci@users.noreply.github.com> Date: Thu, 14 Sep 2023 11:32:02 +0200 Subject: [PATCH] add haystack version tag (#207) --- .../assets/sass/pages/_grid-page.scss | 15 ++++++------ .../layouts/partials/integration-card.html | 23 +++++++++++++++++++ 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/themes/haystack/assets/sass/pages/_grid-page.scss b/themes/haystack/assets/sass/pages/_grid-page.scss index 6a6d0f70..4b29ffe9 100644 --- a/themes/haystack/assets/sass/pages/_grid-page.scss +++ b/themes/haystack/assets/sass/pages/_grid-page.scss @@ -30,7 +30,6 @@ // Integrations grid .grid-page-grid.integrations-grid { - @include sm { grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); } @@ -79,7 +78,7 @@ position: relative; background-color: var(--color-bg-dark-blue); - h3 { + h3 { font-size: 1.5rem; text-align: center; color: var(--color-white); @@ -114,7 +113,7 @@ display: flex; flex-wrap: wrap; align-items: flex-start; - gap: 0.25rem; + gap: 0.5rem; > div { font-size: 0.8rem; @@ -122,11 +121,14 @@ background-color: var(--color-light-grey); color: var(--color-dark-blue); text-transform: capitalize; - border-radius:999px; + border-radius: 999px; display: flex; align-items: center; gap: 0.25rem; + &.version { + background-color: var(--color-yellow); + } .icon { flex-shrink: 0; @@ -147,7 +149,7 @@ gap: 0.5rem; align-items: flex-end; z-index: 999; - + .maintainer-icon { background-color: var(--color-blue); padding: 0.6rem; @@ -179,9 +181,6 @@ } } } - - - } // Tutorial footer diff --git a/themes/haystack/layouts/partials/integration-card.html b/themes/haystack/layouts/partials/integration-card.html index 48532768..3d5784bb 100644 --- a/themes/haystack/layouts/partials/integration-card.html +++ b/themes/haystack/layouts/partials/integration-card.html @@ -28,7 +28,30 @@

{{ .Params.name }}

{{ .Params.description }}

+ {{/* Tags */}}
+ {{/* Version */}} + {{ with .Params.version }} +
+ + + + + + {{ . }} +
+ {{ end }} + + {{/* Type */}}