Advertisement
MastroPino

Untitled

Nov 3rd, 2021
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.65 KB | None | 0 0
  1. .c-mosaik {
  2.   display: flex;
  3.   flex-flow: column wrap;
  4.   gap: 4px;
  5.   height: 100%;
  6.   max-height: 400px;
  7.   width: 100%;
  8.   margin: 0 auto map-get($spacers, 3);
  9.   position: relative;
  10.   border-radius: 0 0 24px 24px;
  11.   overflow: hidden;
  12.  
  13.   @media (min-width: map-get($grid-breakpoints, md)) {
  14.     border-radius: 0 0 48px 48px;
  15.   }
  16.  
  17.   &__big {
  18.     flex: 1 0 100%;
  19.     height: 100%;
  20.  
  21.     @media (min-width: map-get($grid-breakpoints, md)) {
  22.       flex: 1 0;
  23.       width: 50%;
  24.     }
  25.  
  26.     &.is-1 {
  27.       width: 100%;
  28.     }
  29.  
  30.     .c-mosaik__item {
  31.       flex: 1;
  32.     }
  33.   }
  34.  
  35.   &__small {
  36.     display: none;
  37.  
  38.     @media (min-width: map-get($grid-breakpoints, md)) {
  39.       flex: 1 0 calc(50% - #{map-get($spacers, 1)});
  40.       display: flex;
  41.       flex-flow: row wrap;
  42.       gap: 4px;
  43.       max-height: 400px;
  44.       width: 50%;
  45.     }
  46.  
  47.     &.is-2 {
  48.       .c-mosaik__item {
  49.         height: 100%;
  50.       }
  51.     }
  52.  
  53.     .c-mosaik__item {
  54.       flex: 1 0 calc(50% - .15rem);
  55.       width: 50%;
  56.       height: 50%;
  57.     }
  58.   }
  59.  
  60.   &__item {
  61.     display: flex;
  62.     flex: 1 0;
  63.     height: 100%;
  64.  
  65.     position: relative;
  66.     overflow: hidden;
  67.  
  68.     figure {
  69.       width: 100%;
  70.       margin: 0;
  71.     }
  72.  
  73.     img {
  74.       width: 100%;
  75.       height: 100%;
  76.       object-fit: cover;
  77.       cursor: pointer;
  78.     }
  79.   }
  80.  
  81.   &__cta {
  82.     position: absolute;
  83.     top: 1rem;
  84.     right: 1rem;
  85.  
  86.     @media (min-width: map-get($grid-breakpoints, md)) {
  87.       bottom: 2rem;
  88.       right: 2rem;
  89.       top: unset;
  90.     }
  91.   }
  92.  
  93.   .c-chips {
  94.     position: absolute;
  95.     bottom: 2rem;
  96.     left: 2rem;
  97.  
  98.     .c-chip {
  99.       padding: 6px 14px;
  100.     }
  101.   }
  102.  
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement