420 lines
8.1 KiB
SCSS
Vendored
420 lines
8.1 KiB
SCSS
Vendored
.product-card,
|
|
.gamme-card {
|
|
display: flex;
|
|
position: relative;
|
|
height: 375px;
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
> img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
max-width: none;
|
|
}
|
|
a {
|
|
top: 0;
|
|
z-index: 9;
|
|
}
|
|
.overlay {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 50%;
|
|
font-weight: bold;
|
|
transition: bottom 0.4s;
|
|
}
|
|
}
|
|
.product-card {
|
|
.product-card__title,
|
|
a {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
.product-card__title {
|
|
padding: 1em 0.2em;
|
|
background-color: rgba($color-light, 0.5);
|
|
}
|
|
.overlay {
|
|
bottom: -200px;
|
|
span {
|
|
width: 50%;
|
|
padding-top: 1em;
|
|
padding-bottom: 1em;
|
|
background-color: $color-light;
|
|
border-radius: 2em;
|
|
}
|
|
}
|
|
&:hover .overlay {
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
.gamme-card {
|
|
.gamme-card__title,
|
|
a {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
.gamme-card__title {
|
|
padding: 1em 0.2em;
|
|
background-color: rgba($color-light, 0.5);
|
|
}
|
|
.overlay {
|
|
bottom: -50px;
|
|
span {
|
|
color: $color-light;
|
|
font-size: 30px;
|
|
font-family: $fontbarlow-bold;
|
|
}
|
|
}
|
|
&:hover .overlay {
|
|
bottom: 50px;
|
|
}
|
|
}
|
|
|
|
#list {
|
|
.wrapper > div:first-child {
|
|
padding-top: 0;
|
|
}
|
|
.title {
|
|
color: $color-light;
|
|
font-size: calc(#{$globalfont} * 3.25);
|
|
}
|
|
.is-flex {
|
|
margin-bottom: 60px;
|
|
column-gap: 20px;
|
|
flex-wrap: wrap;
|
|
flex-direction: initial;
|
|
}
|
|
.section-header {
|
|
margin-bottom: 30px;
|
|
color: $color-light;
|
|
|
|
.title {
|
|
margin-bottom: 5px;
|
|
}
|
|
.content {
|
|
top: 30px;
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
}
|
|
& > img {
|
|
object-fit: cover;
|
|
max-height: 243px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.overlay {
|
|
span {
|
|
color: $color-brown;
|
|
// text-shadow: 0px 0px 2px #000;
|
|
}
|
|
}
|
|
|
|
// .is-brown {
|
|
// header .content {
|
|
// background-color: rgba($color-brown, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-brown, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-brown;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// .is-orange {
|
|
// header .content {
|
|
// background-color: rgba($color-orange, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-orange, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-orange;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// .is-grey {
|
|
// header .content {
|
|
// background-color: rgba($color-newgrey, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-newgrey, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-newgrey;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// .is-yellow {
|
|
// header .content {
|
|
// background-color: rgba($color-main, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-main, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-main;
|
|
// }
|
|
// }
|
|
// }
|
|
// .gamme-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-light;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// .is-blue {
|
|
// header .content {
|
|
// background-color: rgba($color-newblue, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-newblue, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-newblue;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// .is-green {
|
|
// header .content {
|
|
// background-color: rgba($color-green, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-green, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-green;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// .is-pink {
|
|
// header .content {
|
|
// background-color: rgba($color-pink, 0.8);
|
|
// }
|
|
// .overlay {
|
|
// background-color: rgba($color-pink, 0.8);
|
|
// }
|
|
// .product-card {
|
|
// .overlay {
|
|
// span {
|
|
// color: $color-pink;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
#posts {
|
|
position: relative;
|
|
|
|
.sectiontitle:after {
|
|
content: "";
|
|
background-color: $color-dark;
|
|
}
|
|
}
|
|
|
|
.posts-list {
|
|
width: 1120px;
|
|
margin: 0 auto;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
column-gap: 20px;
|
|
}
|
|
.post-card {
|
|
width: 360px;
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
.product-card {
|
|
width: 32%;
|
|
max-width: 32%;
|
|
}
|
|
.posts-list {
|
|
align-items: initial;
|
|
}
|
|
.gamme-card {
|
|
&:nth-child(n) {
|
|
width: 32%;
|
|
max-width: 32%;
|
|
}
|
|
}
|
|
// .gamme-card {
|
|
// &:nth-child(4),
|
|
// &:nth-child(5),
|
|
// &:nth-child(9),
|
|
// &:nth-child(10) {
|
|
// width: 49%;
|
|
// max-width: 49%;
|
|
// }
|
|
// }
|
|
// .gammes-6 .gamme-card {
|
|
// &:nth-child(n) {
|
|
// width: 32%;
|
|
// max-width: 32%;
|
|
// }
|
|
// }
|
|
.gammes-3 .gamme-card,
|
|
.gammes-6 .gamme-card,
|
|
.gammes-9 .gamme-card {
|
|
&:nth-child(1),
|
|
&:nth-child(2),
|
|
&:nth-child(3),
|
|
&:nth-child(4),
|
|
&:nth-child(5),
|
|
&:nth-child(6),
|
|
&:nth-child(7),
|
|
&:nth-child(8),
|
|
&:nth-child(9) {
|
|
width: 32%;
|
|
max-width: 32%;
|
|
}
|
|
}
|
|
.gammes-1 .gamme-card,
|
|
.gammes-2 .gamme-card,
|
|
.gammes-4 .gamme-card {
|
|
&:nth-child(1),
|
|
&:nth-child(2),
|
|
&:nth-child(3),
|
|
&:nth-child(4) {
|
|
width: 49%;
|
|
max-width: 49%;
|
|
}
|
|
}
|
|
.gammes-5 .gamme-card,
|
|
.gammes-8 .gamme-card {
|
|
&:nth-child(4),
|
|
&:nth-child(5) {
|
|
width: 49%;
|
|
max-width: 49%;
|
|
}
|
|
}
|
|
.gammes-7 .gamme-card {
|
|
&:nth-child(1),
|
|
&:nth-child(2),
|
|
&:nth-child(6),
|
|
&:nth-child(7) {
|
|
width: 49%;
|
|
max-width: 49%;
|
|
}
|
|
}
|
|
|
|
// .post-card {
|
|
// flex: 1;
|
|
// margin-right: 30px;
|
|
|
|
// &:last-child {
|
|
// margin-right: 0;
|
|
// }
|
|
// }
|
|
|
|
#list {
|
|
.section-header {
|
|
.content {
|
|
position: absolute;
|
|
width: 100%;
|
|
padding-top: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
}
|
|
}
|
|
#posts {
|
|
> img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
// height: 50%;
|
|
z-index: -1;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
#list {
|
|
.section-header {
|
|
margin-bottom: 80px;
|
|
}
|
|
.is-flex {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.posts-list {
|
|
width: 100%;
|
|
}
|
|
// .post-card {
|
|
// width: 360px;
|
|
// margin-bottom: 50px;
|
|
// }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
#list {
|
|
// .wrapper > div:not(:last-child) {
|
|
// margin-bottom: 2rem;
|
|
// }
|
|
.section-header {
|
|
.content {
|
|
position: relative;
|
|
}
|
|
}
|
|
}
|
|
#posts {
|
|
> img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 14%;
|
|
z-index: -1;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
.post-card {
|
|
width: 100%;
|
|
max-width: 360px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
#posts > img {
|
|
height: 8%;
|
|
}
|
|
}
|