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

173 lines
2.8 KiB
SCSS
Raw Normal View History

2019-11-12 03:10:27 +00:00
.summary-card {
margin: 0 0.5rem;
padding: 0 0.5rem;
.title {
2019-11-04 13:09:44 +00:00
a {
font-family: $title-font;
font-weight: 700;
2019-11-04 13:09:44 +00:00
@include themify($themes) {
color: themed('title-color');
@include on-event {
color: themed('link-hover');
}
}
}
}
.subtitle {
@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: $content-font;
2019-11-04 13:09:44 +00:00
}
&__image {
width: 100%;
height: 100%;
&-wrapper {
height: 100%;
width: auto;
margin: 0 auto;
padding: 1rem;
padding-bottom: 0;
}
2019-11-04 13:09:44 +00:00
}
2019-11-12 03:10:27 +00:00
&__video {
2019-11-04 13:09:44 +00:00
width: 100%;
max-height: 500px;
object-fit: contain;
&-wrapper {
padding: 1rem;
padding-bottom: 0;
}
2019-11-04 13:09:44 +00:00
}
hr {
margin-top: 1.5rem;
@include themify($themes) {
border-top: 1px solid themed('hr-color');
}
2019-11-04 13:09:44 +00:00
}
&:not(:last-child) {
hr {
margin-bottom: 4rem;
}
}
&:last-child {
hr {
margin-bottom: 2rem;
}
}
}
2019-11-12 03:10:27 +00:00
.summary-classic {
2019-12-23 09:45:22 +00:00
padding: 0 1rem;
2019-11-12 03:10:27 +00:00
.title {
font-size: 24px;
a {
font-family: $title-font;
2019-11-12 03:10:27 +00:00
font-weight: 700;
@include themify($themes) {
color: themed('title-color');
@include on-event {
color: themed('link-hover');
}
}
}
}
.subtitle {
@include themify($themes) {
color: themed('meta-color');
}
}
&__flex-box {
@include flexbox();
margin-top: 1rem;
2019-11-12 03:10:27 +00:00
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: $content_font;
2019-11-12 03:10:27 +00:00
}
&__image {
width: 100%;
height: 100%;
object-fit: contain;
2019-11-12 03:10:27 +00:00
&-wrapper {
2019-11-17 16:44:04 +00:00
max-width: 130px;
min-width: 130px;
overflow: hidden;
2019-12-23 09:45:22 +00:00
border-radius: 0.25rem;
2019-11-12 03:10:27 +00:00
@include align-self(center);
2019-12-23 09:45:22 +00:00
@include on-event {
@include box-shadow(1px, 1px, 3px, 0px, rgba(0, 0, 0, 0.25));
background-color: rgba(125, 125, 125, 0.1);
}
2019-11-12 03:10:27 +00:00
}
}
hr {
@include themify($themes) {
border-top: 1px solid themed('hr-color');
2019-11-12 03:10:27 +00:00
}
}
&:not(:last-child) {
hr {
margin-bottom: 1.5rem;
}
}
&:last-child {
hr {
display: none;
}
}
2019-11-12 03:10:27 +00:00
}
.summary-compact {
padding: 0 1rem;
&__flexbox {
@include flexbox();
margin-top: 1rem;
margin-bottom: 1rem;
}
&__meta {
padding: 1rem 0;
}
hr {
@include themify($themes) {
border-top: 1px solid themed('hr-color');
}
}
}