From 92a23b7e9d8d18716325d828d7ce4d8da77105c9 Mon Sep 17 00:00:00 2001 From: Davinder Singh Date: Wed, 23 Oct 2024 11:34:37 +0100 Subject: [PATCH] Gallery redesign - Making the changes on tagged page to match figma design (#21256) * Adding max width for gallery-summary * changin card background color * removing row from within the card * matching the padding of gray card with figma design * removing row and spaced row to avoid extra padding and adding doc-rows-container * adding grid for templates and removing some old styling * adding .recent-templates-container to add the padding and margins * deleting a comment and adding img border radius for the thumbnail * adding margin-bottom on recent-templates-container * adding .gallery-tagged-title-container to match the figma padding and then a fix was needed for the width of the filters * renaming gallery-tagged-title-container to gallery-tagged-container-spacing and re-using it for Related tags container * making recent heading as heading-xl to match figma * adding badge styling and its container styling via .gallery-tagged-template-tags-container * making two classes out of this class .gallery-tagged-container-spacing to add the styling for the h2 heading * adding margin-bottom to match figma style * making class generic and using it at multiple places * removing some extra code * removing grid styling because after rebase the layout was fixed with col classes * adding rows back * adding h2 instead of h3 and making them heading-xl * adapting some changes after merge conflicts * removing duplicate classname after rebase GitOrigin-RevId: d02a0b1e2784fd96d2af2326700829879dacc464 --- .../bootstrap-5/components/card.scss | 6 ++- .../bootstrap-5/pages/templates-v2.scss | 47 ++++++++++++++++++- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/services/web/frontend/stylesheets/bootstrap-5/components/card.scss b/services/web/frontend/stylesheets/bootstrap-5/components/card.scss index 826809a0d0..250370ceda 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/components/card.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/components/card.scss @@ -176,6 +176,10 @@ } .card-gray-dark { - background-color: var(--neutral-20); + background-color: var(--neutral-10); border-radius: var(--border-radius-base); + + .card-body { + padding: var(--spacing-10) var(--spacing-09); + } } diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/templates-v2.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/templates-v2.scss index 8b846d481c..096c770625 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/templates-v2.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/templates-v2.scss @@ -12,6 +12,19 @@ .gallery { margin-top: var(--spacing-10); + .gallery-tagged-container-spacing { + padding: 0 var(--spacing-09); + } + + .gallery-tagged-tags-container-spacing { + padding: 0 var(--spacing-09); + margin-bottom: var(--spacing-16); + + h2 { + margin-bottom: var(--spacing-09); + } + } + .filters { float: right; margin-bottom: var(--spacing-11); @@ -72,8 +85,23 @@ padding: 0; margin: var(--spacing-16) auto; - h3 { - font-size: var(--font-size-08); + h2 { + @include heading-xl; + } + + .doc-rows-container { + margin-top: var(--spacing-09); + } + } + + .recent-templates-container { + padding: 0 var(--spacing-09); + margin-bottom: var(--spacing-16); + + h2 { + margin-bottom: var(--spacing-09); + + @include heading-xl; } } @@ -170,6 +198,21 @@ } } + .related-tags-top-spacing { + margin-top: var(--spacing-16); + } + + .gallery-tagged-template-tags-container { + display: flex; + flex-wrap: wrap; + gap: var(--spacing-05); + + .badge-content { + padding-left: var(--spacing-02); + padding-right: var(--spacing-02); + } + } + .pagination { margin-top: var(--spacing-13); }