Skip to content
Snippets Groups Projects
Commit eaaceacc authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-5195: css for the card__header and card__footer when hero is present or not

parent 4e4253dd
No related branches found
No related tags found
1 merge request!118Feature/istwcms 5195 ebremner node theming
...@@ -65,6 +65,9 @@ $card-padding: rem(gesso-spacing(sm)) !default; ...@@ -65,6 +65,9 @@ $card-padding: rem(gesso-spacing(sm)) !default;
$card-link-color-hover $card-link-color-hover
); );
} }
}
.card__sub-title{
} }
.card__author{ .card__author{
@include uw-no-breakout(); @include uw-no-breakout();
......
...@@ -11,71 +11,66 @@ ...@@ -11,71 +11,66 @@
margin:0 !important; margin:0 !important;
} }
.card__node{ .card__node{
.card__header { > .card__header,
@include uw-contained-width; > .card__footer {
background:gesso-brand(org-default,uw-white,primary); margin:0 auto;
margin-top:4rem; max-width: $max-width;
.card__title { }
font-size: gesso-font-size(8); .uw-node__without-image &{
.card__header,
} .card__footer {
margin:0 auto;
.card__sub-title { max-width: $max-width;
font-size: gesso-font-size(4);
}
.card__date {
} }
}
.card__featured-image {
align-items: center;
display: grid;
justify-items: center;
position: relative;
.card__author { .card__header {
align-self: end;
margin-bottom: 0;
margin-top: 0;
max-width: $max-width;
padding: 0 gesso-spacing(md);
@include xl{
padding: 0;
}
}
}
.uw-node__with-image &{ .card__date {
margin-bottom: 0;
margin-top: 0;
}
.card__header {
@include uw-contained-width();
bottom:0;
.card__title { .card__title {
padding: gesso-spacing(xs) gesso-spacing(md); background: gesso-brand(org-default, uw-white, primary);
font-size: gesso-font-size(8);
margin-bottom: 0;
margin-top: 0;
padding: gesso-spacing(sm) gesso-spacing(md);
} }
.card__sub-title { .card__sub-title {
background: gesso-brand(org-default, uw-white, primary);
font-size: gesso-font-size(4);
margin-bottom: 0;
margin-top: 0;
padding: gesso-spacing(xs) gesso-spacing(md); padding: gesso-spacing(xs) gesso-spacing(md);
} }
.card__author { .card__author {
background: gesso-brand(org-default, uw-white, primary);
margin-bottom: 0;
margin-top: 0;
padding: gesso-spacing(xs) gesso-spacing(md); padding: gesso-spacing(xs) gesso-spacing(md);
} }
} }
.card__date { }
//margin-top: -2.25rem; .card__footer{
.uw-date { padding: gesso-spacing(xs) gesso-spacing(md);
}
}
} }
} }
.card__body {
//margin-top: -7rem;
}
//.card__footer{
// //@include uw-contained-width(55rem);
// padding: gesso-spacing(xs) gesso-spacing(md);
//}
//.node--type-uw-ct-profile,
//.node--type-uw-ct-contact {
// .uw-node__without-image,
// .uw-node__with-image{
// .card.node {
// margin-top: 1rem;
// .card__body {
// @include uw-contained-width;
// }
// }
// }
//}
...@@ -24,5 +24,5 @@ ...@@ -24,5 +24,5 @@
{% endif%} {% endif%}
{% if sub_title %} {% if sub_title %}
<span class="sub-title">{{ sub_title }}</span> <span class="card__sub-title">{{ sub_title }}</span>
{% endif %} {% endif %}
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