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

272 lines
4.6 KiB
SCSS
Raw Normal View History

2019-11-12 03:10:27 +00:00
.summary-card {
2020-01-27 10:20:36 +00:00
padding: 1rem;
&[data-ani="true"] {
@include animation('slide-in-down .2s .3s 1 ease-in both');
}
2020-01-13 01:05:40 +00:00
.title {
2019-11-04 13:09:44 +00:00
a {
font-family: $title-font;
font-weight: 700;
2020-01-21 02:07:47 +00:00
word-break: break-word;
2020-01-13 01:05:40 +00:00
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;
}
&__image {
width: 100%;
height: 100%;
&[data-ani="true"] {
@include animation('slide-in-left .2s .6s 1 ease-in both');
}
&-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 {
2020-01-27 10:20:36 +00:00
margin-bottom: 2.5rem;
2019-11-04 13:09:44 +00:00
}
}
&:last-child {
hr {
margin-bottom: 2rem;
}
}
}
2019-11-12 03:10:27 +00:00
.summary-classic {
padding: 0 1rem;
2020-01-23 13:00:38 +00:00
@include flexbox();
@include flex-direction(column);
&[data-ani="true"] {
@include animation('slide-in-down .2s .3s 1 ease-in both');
}
2020-01-13 01:05:40 +00:00
2019-11-12 03:10:27 +00:00
.title {
2020-01-13 01:05:40 +00:00
font-size: 24px;
2019-11-12 03:10:27 +00:00
a {
font-family: $title-font;
2019-11-12 03:10:27 +00:00
font-weight: 700;
2020-01-21 02:07:47 +00:00
word-break:break-word;
2020-01-13 01:05:40 +00:00
2019-11-12 03:10:27 +00:00
@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;
&[data-position="left"] {
@include justify-content(space-between);
}
2019-11-12 03:10:27 +00:00
}
&__content {
2020-01-23 13:00:38 +00:00
width: 100%;
padding: 0 0.5rem;
2020-01-23 13:00:38 +00:00
2019-11-12 03:10:27 +00:00
@include flexbox();
@include flex-direction(column);
@include justify-content(flex-start);
}
&__text {
margin-top: 1rem;
line-height: 1.7rem;
}
&__image {
&[data-ani="true"] {
@include animation('slide-in-left .2s .6s 1 ease-in both');
}
&-container {
2019-12-23 09:45:22 +00:00
border-radius: 0.25rem;
padding: 0.25rem;
&[data-hwm="true"] {
@media only screen and (max-width: 600px) {
display: none;
}
}
&[data-position="left"] {
margin-left: .5rem;
}
2020-01-21 02:07:47 +00:00
&[data-position="right"] {
margin-right: .5rem;
}
2020-01-23 13:00:38 +00:00
@include transition(all, 0.2s, ease-out);
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);
}
}
&-wrapper {
max-width: 130px;
min-width: 130px;
overflow: hidden;
@include align-self(center);
2020-01-21 02:07:47 +00:00
@media only screen and (max-width: 769px) {
max-width: 90px;
min-width: 90px;
}
2019-11-12 03:10:27 +00:00
}
&-wrapper2 {
height: 100%;
margin: auto;
}
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;
&[data-ani="true"] {
@include animation('slide-in-down .2s .3s 1 ease-in both');
}
2020-01-24 14:35:34 +00:00
.title {
a {
@include themify($themes) {
color: themed('title-color');
@include on-event {
color: themed('link-hover');
}
}
}
}
.subtitle {
@include themify($themes) {
color: themed('meta-color');
}
}
2020-01-13 01:05:40 +00:00
&__flexbox {
@include flexbox();
margin-top: 1rem;
margin-bottom: 1rem;
}
&__meta {
padding: 1rem 0;
2020-01-13 01:05:40 +00:00
overflow-wrap: break-word;
}
2020-01-24 14:35:34 +00:00
&__tag {
font-size: 0.8rem;
line-height: 0.8rem;
padding: 0.25rem;
margin: 0 0.25rem;
border: none;
border-radius: 0.2rem;
text-transform: capitalize;
cursor: pointer;
@include themify($themes) {
color: themed('body-color');
background-color: themed('taxo-tags-background-color');
}
&--wrapper {
margin-top: 0.75rem;
@include flexbox();
}
}
hr {
@include themify($themes) {
border-top: 1px solid themed('hr-color');
}
}
}