Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 2.22 KB | None | 0 0
  1. .general-carousel {
  2.   position: relative;
  3.   width: auto;
  4.   padding-right: 0;
  5.  
  6.   @include media-breakpoint-up(lg) {
  7.     right: auto;
  8.     left: 0;
  9.     width: 150%;
  10.     width: calc((((100vw - 100%) / 2) + 100%) - 1px);
  11.     max-width: rem(1576);
  12.     margin-right: 0;
  13.     margin-left: auto;
  14.   }
  15.  
  16.   @include media-breakpoint-up(xl) {
  17.     width: rem(1576);
  18.     margin-right: auto;
  19.     margin-left: calc((100% - 1232px) / 2);
  20.     border-color: green;
  21.   }
  22.  
  23.   &::after {
  24.     position: absolute;
  25.     top: 0;
  26.     right: 0;
  27.     z-index: $z-index-base;
  28.     width: rem(30);
  29.     height: 100%;
  30.     background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, white 90%, white 100%);
  31.     content: '';
  32.  
  33.     @include media-breakpoint-up(md) {
  34.       right: 0;
  35.       left: auto;
  36.       width: 13%;
  37.     }
  38.  
  39.     @include media-breakpoint-up(lg) {
  40.       right: 0;
  41.       left: auto;
  42.       width: 13%;
  43.     }
  44.  
  45.     @include media-breakpoint-up(xl) {
  46.       left: calc(87%);
  47.       width: 13%;
  48.     }
  49.   }
  50.  
  51.   &__control {
  52.     @include size(rem(48));
  53.     position: absolute;
  54.     top: 50%;
  55.     z-index: $z-index-above;
  56.     display: none;
  57.     padding: rem(10);
  58.     line-height: $line-height-base;
  59.     color: $color-s000;
  60.     background-color: $color-b400;
  61.     border-radius: 50%;
  62.  
  63.     &.is-active {
  64.       display: block;
  65.     }
  66.  
  67.     &:focus {
  68.       outline: none;
  69.     }
  70.  
  71.     &--left {
  72.       left: -16px;
  73.       transform: translateY(-50%) rotate(180deg);
  74.  
  75.       @include media-breakpoint-only(md) {
  76.         left: -24px;
  77.       }
  78.  
  79.       @include media-breakpoint-up(lg) {
  80.         left: -24px;
  81.       }
  82.     }
  83.  
  84.     &--right {
  85.       right: rem(-16);
  86.       transform: translateY(-50%);
  87.  
  88.       @include media-breakpoint-only(md) {
  89.         right: rem(-24);
  90.       }
  91.  
  92.       @include media-breakpoint-up(lg) {
  93.         right: calc((100vw - 100%) - 24px);
  94.       }
  95.  
  96.       @include media-breakpoint-up(xl) {
  97.         right: rem(322);
  98.       }
  99.     }
  100.  
  101.     &::after {
  102.       @include size(rem(48));
  103.       font-weight: $font-weight-semi-bold;
  104.       content: '\2192';
  105.     }
  106.   }
  107.  
  108.   &__list {
  109.     display: flex;
  110.     flex-flow: row wrap;
  111.   }
  112. }
  113.  
  114. .glide__slides {
  115.   white-space: normal;
  116.   backface-visibility: visible;
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement