Skip to content
Snippets Groups Projects
adjacent-image-text.scss 3.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • :host {
      display: block;
    }
    
    $margin-mobile: 16px;
    $margin-narrow: 32px;
    
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
      flex-direction: column;
      margin-bottom: 80px;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
      position: relative;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
      @include breakpoint($wide) {
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        flex-direction: row;
        margin-bottom: 96px;
    
      &__image-container {
        display: flex;
        flex: 1;
        justify-content: stretch;
        margin-bottom: 0;
        min-height: 10rem;
        position: relative;
        padding-bottom: var(--aspectRatio);
    
        @include breakpoint($medium) {
          padding-bottom: 0;
    
        img {
          bottom: 0;
          height: 100%;
          left: 0;
          object-fit: cover;
          position: absolute;
          right: 0;
          top: 0;
          width: 100%;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
    
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        @include breakpoint($wide) {
    
          flex: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 6);
    
        }
        @include breakpoint($extrawide) {
    
          flex: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 6 + #{var(--gutter-extrawide)} * 6);
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        background: var(--grayscale-background-box);
    
        border-image: none;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        display: flex;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        flex-direction: column;
    
        -webkit-border-image: none;
        -moz-border-image: none;
        -o-border-image: none;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        @include breakpoint($medium) {
    
          border-left: 1px solid transparent;
          border-image: linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          margin-left: 66px;
          margin-top: -63px;
          padding-top: 38px;
          position: relative;
          z-index: 99;
    
          -webkit-border-image: -webkit-linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0
            100%;
    
          -moz-border-image: linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;
          -o-border-image: linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        }
    
        @include breakpoint($wide) {
    
          border-image: none;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          border-left: none;
    
          flex: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 5);
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          margin-left: 0;
          margin-top: 0;
          padding-top: 0;
          z-index: 0;
    
          -webkit-border-image: none;
          -moz-border-image: none;
          -o-border-image: none;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
        }
    
        @include breakpoint($extrawide) {
    
          flex: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 6 + #{var(--gutter-extrawide)} * 5);
    
        &__info-wrapper {
          padding-left: 0;
          padding-right: 0;
    
          @include breakpoint($medium) {
    
            padding-left: calc((100% - #{var(--gutter-narrow)} * 5) / 6);
            padding-right: calc((100% - #{var(--gutter-narrow)} * 5) / 6);
    
          }
          @include breakpoint($extrawide) {
    
            padding-left: calc((100% - #{var(--gutter-extrawide)} * 5) / 6);
            padding-right: calc((100% - #{var(--gutter-extrawide)} * 5) / 6);
    
        &__title {
          color: var(--brand-main-nearly-black);
    
          font-family: var(--main-font-family);
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          font-size: 22px;
    
          font-weight: 600;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          letter-spacing: -0.69px;
          line-height: 28px;
          margin-top: 32px;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          @include breakpoint($medium) {
    
            font-size: 32px;
            letter-spacing: -1px;
            line-height: 40px;
            margin-top: 41px;
            padding: 0;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          }
    
        }
    
        &__description {
          color: var(--grayscale-dark);
    
          font-family: var(--main-font-family);
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          font-size: 14px;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          letter-spacing: 0;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          line-height: 20px;
    
          margin: 20px 0 32px 0;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          @include breakpoint($medium) {
    
            font-size: 20px;
            letter-spacing: -0.1;
            line-height: 32px;
            margin: 20px 0 61px 0;
            padding: 0;
    
    Ekaterina Kondareva's avatar
    Ekaterina Kondareva committed
          }
    
        &__link {
    
          display: flex;
          justify-content: flex-end;
          margin-bottom: 12px;
          margin-right: -6px;