themes/cardinal_service/lib/scss/spotlight/_spotlight.scss
@charset 'UTF-8';
// Spotlight Content Type Styles
.spotlight-header-content-container {
@include responsive-spacing('margin-top', 6);
@include responsive-spacing('margin-bottom', 8);
.node-su-spotlight-su-spotlight-feature-image {
@include responsive-spacing('margin-bottom', 0);
img {
margin: 0 auto;
}
}
.main-region {
text-align: center;
h2 {
@include modular-typography(1);
max-width: 20ch;
}
}
@include grid-media-min('lg') {
.node-su-spotlight-su-spotlight-feature-image {
margin-bottom: 0;
img {
margin: unset;
margin-left: auto;
}
}
.main-region {
text-align: left;
display: flex;
flex-direction: column;
justify-content: center;
}
}
}
.spotlight-body-content-container {
.main-region,
.body,
p {
@include big-paragraph;
max-width: 70ch;
}
.node-su-spotlight-title {
h1 {
@include responsive-spacing('margin-bottom', 4);
@include modular-typography(4);
text-align: center;
margin: 0;
}
}
.su-spotlight-student-name {
h2 {
@include modular-typography(1);
margin: 0;
}
}
.su-spotlight-grad-area {
@include modular-typography(0);
}
.su-spotlight-context {
@include responsive-spacing('margin-top', 3);
font-style: italic;
}
.content {
@include responsive-spacing('margin-bottom', 8);
}
.su-spotlight-body {
@include modular-typography(0);
.media {
@include padding(null null 2em null);
}
// Remove the bottom padding when the media has a caption since we add padding
// to the caption itself.
figure {
.media {
@include padding(null null 0 null);
}
}
// Caption Styles.
.caption {
figcaption {
text-align: center;
@include padding(null null 2em null);
}
}
.align-right {
figcaption {
padding-left: 1em;
}
}
.align-left {
figcaption {
padding-right: 1em;
}
}
}
}