github.com/KyaXTeam/consul@v1.4.5/website/source/assets/stylesheets/consul-connect/components/_carousel.scss (about)

     1  .g-carousel {
     2    position: relative;
     3    padding-bottom: 60px;
     4  
     5    @media (min-width: 768px) {
     6      padding-left: 88px;
     7      padding-right: 88px;
     8    }
     9  
    10    @media (min-width: 992px) {
    11      padding-left: 146px;
    12      padding-right: 146px;
    13    }
    14  
    15    .siema {
    16      margin: 0 auto;
    17  
    18      & > div {
    19        display: flex;
    20      }
    21    }
    22  
    23    .prev,
    24    .next {
    25      align-items: center;
    26      background: #ffffff;
    27      border-radius: 50%;
    28      box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.08);
    29      cursor: pointer;
    30      display: none;
    31      height: 56px;
    32      justify-content: center;
    33      margin-top: -58px;
    34      position: absolute;
    35      top: 50%;
    36      width: 56px;
    37  
    38      @media (min-width: 768px) {
    39        display: flex;
    40      }
    41    }
    42  
    43    .prev {
    44      transform: rotate(180deg);
    45      
    46      @media (min-width: 768px) {
    47        left: 0;
    48      }
    49      
    50      @media (min-width: 992px) {
    51        left: 58px;
    52      }
    53    }
    54  
    55    .next {
    56      @media (min-width: 768px) {
    57        right: 0;
    58      }
    59      
    60      @media (min-width: 992px) {
    61        right: 58px;
    62      }
    63    }
    64  
    65    .pagination {
    66      bottom: 24px;
    67      display: block;
    68      left: 0;
    69      line-height: 0;
    70      margin: 0;
    71      position: absolute;
    72      right: 0;
    73      text-align: center;
    74  
    75      li {
    76        background: #545a6e;
    77        border-radius: 50%;
    78        cursor: pointer;
    79        display: inline-block;
    80        height: 12px;
    81        margin: 0 6px;
    82        width: 12px;
    83        transition: background 0.2s ease-out;
    84  
    85        &.active {
    86          background: #fff;
    87        }
    88      }
    89    }
    90  
    91    .card {
    92      background: #fff;
    93      color: $consul-black;
    94      display: block;
    95      height: 100%;
    96      text-align: left;
    97  
    98      @media (min-width: 650px) {
    99        display: flex;
   100      }
   101  
   102      div {
   103        &:first-child {
   104          @media (min-width: 650px) {
   105            width: 40%;
   106          }
   107  
   108          @media (min-width: 992px) {
   109            width: 50%;
   110          }
   111        }
   112  
   113        &:last-child {
   114          @media (min-width: 650px) {
   115            width: 60%;
   116          }
   117  
   118          @media (min-width: 992px) {
   119            min-height: 380px;
   120            width: 50%;
   121          }
   122        }
   123      }
   124  
   125      img {
   126        max-height: 240px;
   127        object-fit: cover;
   128        font-family: 'object-fit: cover;';
   129        width: 100%;
   130  
   131        @media (min-width: 450px) {
   132          max-height: 350px;
   133        }
   134  
   135        @media (min-width: 650px) {
   136          height: 100%;
   137          max-height: none;
   138        }
   139      }
   140  
   141      .content {
   142        padding: 32px 16px;
   143        position: relative;
   144  
   145        @media (min-width: 650px) {
   146          padding: 32px 24px 62px;
   147        }
   148  
   149        @media (min-width: 992px) {
   150          padding: 32px 32px 110px;
   151        }
   152  
   153        span {
   154          display: inline-block;
   155          position: relative;
   156  
   157          &:first-child {
   158            padding-left: 30px;
   159  
   160            &:before {
   161              content: "";
   162              background: url("/assets/images/consul-connect/icons/video.svg")
   163                no-repeat center center;
   164              width: 20px;
   165              height: 20px;
   166              position: absolute;
   167              top: 0;
   168              left: 0;
   169            }
   170          }
   171  
   172          &:last-child {
   173            font-weight: 600;
   174            margin-top: 16px;
   175  
   176            @media (min-width: 650px) {
   177              bottom: 32px;
   178              left: 24px;
   179              position: absolute;
   180            }
   181  
   182            @media (min-width: 992px) {
   183              bottom: 62px;
   184              left: 32px;
   185            }
   186  
   187            &:after {
   188              content: "";
   189              background: url("/assets/images/consul-connect/icons/carat.svg")
   190                no-repeat center center;
   191              width: 20px;
   192              height: 20px;
   193              position: absolute;
   194              top: 1px;
   195              right: -20px;
   196            }
   197          }
   198        }
   199  
   200        h4 {
   201          margin: 24px 0 15px;
   202  
   203          @media (min-width: 650px) {
   204            margin-top: 32px;
   205          }
   206        }
   207  
   208        p {
   209          font-size: 1.6rem;
   210        }
   211      }
   212    }
   213  }