From 9b90487d23d164ec79596bc277bfcddb8561c771 Mon Sep 17 00:00:00 2001 From: Martin Leblanc <m26lebla@uwaterloo.ca> Date: Wed, 24 Nov 2021 19:21:59 +0000 Subject: [PATCH] ISTWCMS-5127: css to remove the padding in custom list blocks for services views views-element-container --- .../_patterns/04-components/view/_view.scss | 42 +++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/source/_patterns/04-components/view/_view.scss b/source/_patterns/04-components/view/_view.scss index c2c84344..8ceb9cb4 100644 --- a/source/_patterns/04-components/view/_view.scss +++ b/source/_patterns/04-components/view/_view.scss @@ -13,20 +13,21 @@ $sidebar-width: 18.75rem; &s-element-container{ @include uw-contained-width; position:relative; + .block-views &, + .block-layout-builder &{ + padding:0; + } + @include xl { + .block-views &, + .block-layout-builder & { + padding: 0; + } + } } display: grid; - gap:1rem; grid-template-columns: 100%; padding:0; position: relative; - .block-views &{ - padding:0; - } - @include xl { - .block-views &{ - padding:0; - } - } &.view-uw-view-contacts{ padding-left:0; padding-right:0; @@ -61,7 +62,7 @@ $sidebar-width: 18.75rem; grid-row:2/3; width:100%; .views-row{ - width: 100% + width: 100%; } } @@ -84,9 +85,6 @@ $sidebar-width: 18.75rem; gap:$grid-gap; grid-template-columns: auto $sidebar-width; } - .view-header { - // css - } .view-content { @include uw-flex-grid(); grid-column:1/2; @@ -160,7 +158,7 @@ $sidebar-width: 18.75rem; } } - // Overite the view for when in services or catalog + // Ovewrite the view for when in services or catalog &-uw-view-catalog-show-nodes, &-uw-view-catalog-show-terms, &-uw-view-taxonomy-show-nodes, @@ -189,9 +187,6 @@ $sidebar-width: 18.75rem; } } - } - .views-row{ - } p{ margin:0; @@ -291,16 +286,14 @@ $sidebar-width: 18.75rem; } } } -.uw-offcanvas--filter{ - display: flex; - gap:0.5rem; - justify-content:flex-end; -} //Setting the views views-row item grids. .path-news, +.view-uw-view-news-items, .path-blog, +.view-uw-view-blogs, .path-events, +.view-uw-view-events, .path-profiles, .path-contacts{ .view-content { @@ -314,3 +307,8 @@ $sidebar-width: 18.75rem; } } } +.uw-offcanvas--filter{ + display: flex; + gap:0.5rem; + justify-content:flex-end; +} -- GitLab