-
Notifications
You must be signed in to change notification settings - Fork 450
Closed
Labels
Milestone
Description
I am not pretty sure about the error. I have made a screenshot and attached the .scss-file where it occurs.
Thanks in advance,
Dennis
/**
* This is a card component for displaying text-/media-content in a grid.
**/
$cards-grid-size: 3;
$card-margin: $site-frame-width * 2 / 4;
.c-cards {
margin: - $card-margin;
--cards-grid-size: 3;// $cards-grid-size;
@include media("<small") {
--cards-grid-size: 1;
}
@include media(">=small","<large") {
--cards-grid-size: 2;
}
@include media(">=very-large") {
--cards-grid-size: 4;
}
}
.c-card {
float: left;
width: #{100% * (1 / $cards-grid-size)};
width: calc(100% * 1 / var(--cards-grid-size));
padding: $card-margin;
&--isHidden {
display: none;
}
// Double Sizing of 2x2 one
&--hasPreviewRatio2x2 {
width: #{100% * (2 / $cards-grid-size)};
width: calc(100% * 2 / var(--cards-grid-size));
}
// Hover-Effect
filter: saturate(75%);
transition: $base-transition;
&:hover, &:focus {
filter: saturate(120%);
// transform: translate(0, -3px);
}
.imageset,
img,
video {
background: $color-gray-ultralight;
}
}
/* Preview-Images */
// .c-card--hasPreviewImage {
// ...
// }
/* Preview-Videos */
// .c-card--hasPreviewVideo {
// ...
// }
/* Different Media-Ratios for Images & Video */
.c-card--hasPreviewRatio1x1 > .c-card__media,
.c-card--hasPreviewRatio2x2 > .c-card__media {
display: block;
position: relative;
&:before {
content: '';
display: block;
width: 100%;
padding-top: (1 / 1) * 100%;
}
> .imageset,
> img,
> video {
position: absolute !important;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
> video {
width: 100%;
height: 100%;
}
}
.c-card--hasPreviewRatio1x1\.62 > .c-card__media:before {
padding-top: (1.62 / 1) * 100%;
}
.c-card--hasPreviewRatio1\.62x1 > .c-card__media:before {
padding-top: (1 / 1.62) * 100%;
}
/* Preview-Text */
.c-card__quote {
background: $color-gray-ultralight;
color: $color-gray-ultradark;
@include font-monospace;
@include font-size(13px);
line-height: 1.6;
padding: 1rem;
font-style: italic;
border-top: 3px $color-gray-light solid;
+ .c-card__info {
border-top: 0;
transform: translate3d(0, 0, 0);
}
}
/* Info with Title, Summary & Tags */
.c-card__info {
@include font-monospace();
display: block;
border-top: 2px white solid;
background: $color-gray-ultradark;
background: black;
color: white;
position: relative;
padding: .8rem 1rem;
transition: $base-transition;
transform: translate3d(0, -1px, 0);
}
.c-card__title {
display: block;
color: inherit;
text-decoration: none;
margin-bottom: .3rem;
&:last-child {
margin-bottom: .1rem;
}
h2 {
margin: 0;
letter-spacing: .2px;
@include font-size(15px);
}
.o-icon {
opacity: 0;
transform: translateX(-3px);
transition: $base-transition;
.c-card:hover &,
.c-card:focus & {
transform: translateX(0);
opacity: 1;
}
}
}
.c-card__tags {
margin: 0;
text-overflow: ellipsis;
width: 100%;
ul {
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
margin: -.25rem;
}
a {
@include font-size(12px);
text-decoration: none;
color: $color-gray;
margin: .25rem;
}
ul > li {
}
}
Reactions are currently unavailable
