hugo-theme-zzo/assets/sass/components/_summary.scss

136 lines
2.3 KiB
SCSS

.summary-card {
padding: 0 1rem;
.title {
a {
font-family: $summary_title_font;
font-weight: 700;
@include themify($themes) {
color: themed('title-color');
@include on-event {
color: themed('link-hover');
}
}
}
}
.subtitle {
font-family: $summary_subtitle_font;
@include themify($themes) {
color: themed('meta-color');
}
}
&__content {
@include flexbox();
@include flex-direction(column);
@include justify-content(center);
}
&__text {
margin-top: 1rem;
line-height: 1.7rem;
font-family: $summary_text_font;
}
&__image {
width: 100%;
height: 100%;
&-wrapper {
height: 100%;
width: auto;
margin: 0 auto;
padding: 1rem;
padding-bottom: 0;
}
}
&__video {
width: 100%;
max-height: 500px;
object-fit: contain;
&-wrapper {
padding: 1rem;
padding-bottom: 0;
}
}
hr {
margin-top: 1.5rem;
}
&:not(:last-child) {
hr {
margin-bottom: 4rem;
}
}
&:last-child {
hr {
margin-bottom: 2rem;
}
}
}
.summary-classic {
padding: 0 1rem;
.title {
font-size: 24px;
a {
font-family: $summary_title_font;
font-weight: 700;
@include themify($themes) {
color: themed('title-color');
@include on-event {
color: themed('link-hover');
}
}
}
}
.subtitle {
font-family: $summary_subtitle_font;
@include themify($themes) {
color: themed('meta-color');
}
}
&__flex-box {
@include flexbox();
margin-top: 0.5rem;
margin-bottom: 1rem;
}
&__content {
@include flexbox();
@include flex-direction(column);
@include justify-content(flex-start);
padding-left: 1rem;
}
&__text {
margin-top: 1rem;
line-height: 1.7rem;
font-family: $summary_text_font;
}
&__image {
width: 100%;
height: 100%;
object-fit: contain;
&-wrapper {
max-height: 170px;
max-width: 170px;
min-width: 170px;
@include align-self(center);
}
}
hr {
border-radius: 5rem;
@include themify($themes) {
border-top: 1px solid themed('hr-color');
}
}
}