Skip to content
Snippets Groups Projects
Commit 591b4bd1 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

:ISTWCMS-5898: Remove extra padding in card header when no media and div prints

parent 777de8ca
No related branches found
No related tags found
1 merge request!70ISTWCMS-5898: section-spacing-seperator and column-seperator css
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
@include uw-contained-width(var(--layout-max-width)); @include uw-contained-width(var(--layout-max-width));
} }
} }
.uw-node__with-media &{ .uw-node__with-media & {
> .card__header { > .card__header {
padding: 0; padding: 0;
&.uw-node__with-media{ &.uw-node__with-media{
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
} }
.card__header { .card__header {
padding: 0 0 var(--size-2) 0; padding: 0 0 var(--size-2) 0;
&:not(:has(*)) {
padding: 0;
}
} }
} }
.card__tags { .card__tags {
...@@ -58,7 +61,7 @@ ...@@ -58,7 +61,7 @@
} }
// CSS for specific node card presentations: // CSS for specific node card presentations:
&--web-page{ &--web-page {
// Currently this is PL demo only // Currently this is PL demo only
// needs to be implemented correctly when webpage has media. // needs to be implemented correctly when webpage has media.
.uw-node__with-media & { .uw-node__with-media & {
...@@ -67,7 +70,7 @@ ...@@ -67,7 +70,7 @@
padding: var(--size-2) 0; padding: var(--size-2) 0;
} }
} }
.card__featured-image{ .card__featured-image {
align-items: center; align-items: center;
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment