<div class="c-media o-media o-media--matryoshka">
    <img class="c-media__figure o-media__figure" src="../../images/svgs/mbl.svg" alt="Mbl" height="" width="180" aria-hidden="true">

    <div class="c-media o-media o-media--nephew">
        <img class="c-media__figure o-media__figure" src="../../images/svgs/ic_call_black_24px.svg" alt="Contatti" height="" width="24">
        <div class="c-media__body o-media__body">
            <strong>Contatti</strong><br>marconilounge@bologna-airport.it<br>Telefono 051-6479616
        </div>
    </div>
    <div class="c-media o-media o-media--nephew">
        <img class="c-media__figure o-media__figure" src="../../images/svgs/ic_schedule_black_18px.svg" alt="Orari" height="" width="24">
        <div class="c-media__body o-media__body">
            <strong>Orari di apertura</strong><br>Lunedì - Domenica:<br>dalle ore 5:00 fino alle ore 23:30
        </div>
    </div>
    <div class="c-media o-media o-media--nephew">
        <img class="c-media__figure o-media__figure" src="../../images/svgs/ic_place_black_24px.svg" alt="Dove si trova" height="" width="24">
        <div class="c-media__body o-media__body">
            <strong>Dove</strong><br>Situata al primo piano dell'aerostazione<br><a href="#">Guarda dove si trova</a>
        </div>
    </div>

</div>
<div class="c-media o-media {{ modifier }}">
  <img class="c-media__figure o-media__figure" src="{{ path img-src }}" alt="{{ img-alt }}" height="{{ img-height }}" width="{{ img-width }}" aria-hidden="true">
    
  {{#each items}}
    {{ render componentName componentInstance merge=true }}
  {{/each}}

</div>
{
  "img-src": "/images/svgs/mbl.svg",
  "img-alt": "Mbl",
  "img-width": "180",
  "body": "lorem ipsum",
  "modifier": "o-media--matryoshka",
  "items": [
    {
      "componentName": "@media",
      "componentInstance": {
        "modifier": "o-media--nephew",
        "img-src": "/images/svgs/ic_call_black_24px.svg",
        "img-alt": "Contatti",
        "img-width": "24",
        "body": "<strong>Contatti</strong><br>marconilounge@bologna-airport.it<br>Telefono 051-6479616"
      }
    },
    {
      "componentName": "@media",
      "componentInstance": {
        "modifier": "o-media--nephew",
        "img-src": "/images/svgs/ic_schedule_black_18px.svg",
        "img-alt": "Orari",
        "img-width": "24",
        "body": "<strong>Orari di apertura</strong><br>Lunedì - Domenica:<br>dalle ore 5:00 fino alle ore 23:30"
      }
    },
    {
      "componentName": "@media",
      "componentInstance": {
        "modifier": "o-media--nephew",
        "img-src": "/images/svgs/ic_place_black_24px.svg",
        "img-alt": "Dove si trova",
        "img-width": "24",
        "body": "<strong>Dove</strong><br>Situata al primo piano dell'aerostazione<br><a href=\"#\">Guarda dove si trova</a>"
      }
    }
  ]
}
  • Content:
    /*------------------------------------*\
      Object CSS
    \*------------------------------------*/
    
    .o-media {
      display: flex;
      align-items: flex-start;
    
      .c-product--payed &,
      .c-privacy-prefs__motivation &,
      .c-advantages &,
      .c-helpdesk--contacts &,
      .c-canvas__paper & {
        align-items: center;
      }
    
      .c-identity & {
        margin-top: remify(40px);
      }
    
      .c-advantages & {
        margin-bottom: remify(40px);
      }
    
      .c-privacy-prefs__motivation & {
        margin-bottom: remify(24px);
      }
    
    }
    
    .o-media__figure {
      margin-right: remify(16px);
    
      .c-identity & {
        margin-right: remify(16px);
      }
    
      .c-product--payed &,
      .c-privacy-prefs__motivation &,
      .c-advantages & {
        display: none;
        @include min-screen (bp(tablet)) {
          display: block;
        }
      }
    
      .c-media--complex & {
        display: none;
    
        @include min-screen (bp(tablet-p)) {
          display: block;
          margin-right: 0;
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          left: -70px;
        }
    
      }
    
    }
    
    .o-media__body {
      flex: 1 1 auto;
    }
    
    .o-media--matryoshka {
      display: block;
    
      main & {
        grid-column: main;
        margin-top: remify(24px);
        margin-bottom: remify(24px);
      }
    
      @include min-screen ($booking-info-second-breakpoint) {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      
      & > .o-media__figure {
        margin-bottom: remify(16px);
        margin-right: 0;
    
        @include min-screen ($booking-info-second-breakpoint) {
          margin-right: remify(16px);
          margin-bottom: 0;
        }
    
      }
    
      .o-media--nephew {
        align-items: flex-start;
        margin-bottom: remify(16px);
        flex: 1 0 remify(200px);
    
        .o-media__figure {
          display: none;
    
          @include min-screen (bp(tablet-p)) {
            display: block;
          }
    
        }
    
        @include min-screen (bp(tablet-p)) {
          margin-right: remify(16px);
          margin-bottom: 0;
        }
    
      }
    
    }
    
    .c-form--outstanding + .o-media--matryoshka {
      margin-top: remify(100px);
    
      @include min-screen (bp(tablet)) {
        margin-top: remify(160px);
      }
    
    }
    
    /*------------------------------------*\
      UI component CSS
    \*------------------------------------*/
    
    .c-media {
    
      .c-helpdesk--contacts & {
        h4 {
          font-size: 200%;
        }
      }
    
    }
    
    /*------------------------------------*\
      Discover modifier
    \*------------------------------------*/
    
    .c-media--discover {
     
      background-color: #fff;
      border-radius: remify(4px);
    
      @include min-screen (bp(tablet)) {
        border-radius: remify(50px);
      }
    
      &.o-media {
        align-items: center;
      }
    
      .c-media__figure {
        border-radius: remify(50px) 0 0 remify(50px);
        display: none;
    
        @include min-screen (bp(tablet)) {
          display: block;
        }
    
      }
    
      .c-media__body {
        padding: remify(16px);
        font-size: 75%;
        line-height: 1.333;
    
        @include min-screen (bp(tablet)) {
          padding: 0;
          font-size: 100%;
          line-height: 1.5;
        }
    
      }
    
    }
    
    /*------------------------------------*\
      Warning modifier
    \*------------------------------------*/
    
    .o-media.c-media--warning {
    
      padding: remify(24px);
      background-color: primary(sun, 10);
      align-items: center;
    
      @include max-screen (bp(tablet)) {
        display: block;
      }
    
      .o-media__figure {
        @include max-screen (bp(tablet)) {
          margin-bottom: remify(16px);
          margin-right: 0;
        }
      }
    
    }
    
    /*------------------------------------*
      Warning sky modifier
    *------------------------------------*/
    .o-media.c-media--warning.c-media--warning-sky {
      background-color: primary(sky, 10);
    }
    
    /*------------------------------------*\
      Booked item modifier
    \*------------------------------------*/
    
    .o-media.c-media--booked-item {
      @include shadow(high);
      padding: remify(16px);
      border-radius: remify(4px);
      align-items: center;
      position: relative;
      background-color: #fff;
      padding-inline: remify(12px) !important;
    
      &:after {
        content: '\276f';
        color: primary(sky, 120);
        position: relative;
        right: remify(-8px);
      }
    
    }
    
    /*------------------------------------*\
      Complex modifier
    \*------------------------------------*/
    
    .c-media--complex {
      position: relative;
      @include shadow(medium);
      background-color: #fff;
      padding: remify(24px);
      border-radius: remify(24px);
      max-width: remify(840px);
      margin-left: auto;
      margin-right: auto;
      flex-wrap: wrap;
    
      @include min-screen (bp(tablet)) {
        padding: remify(24px) remify(48px);
        flex-wrap: nowrap;
        align-items: center;
      }
    
      & + & {
        margin-top: remify(16px);
      }
    
      &:last-child {
        margin-bottom: remify(48px);
      }
    
      .intruder {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: remify(16px);
    
        @include min-screen (bp(tablet)) {
          flex: 1 0 remify(300px);
        }
    
        & > * + * {
          display: block;
          margin-top: remify(16px);
        }
    
        .title {
          text-transform: uppercase;
          color: primary(night, 100);
        }
    
        .is-big {
          font-size: 200%;
          line-height: 1;
        }
    
      }
    
    }
    
    /*------------------------------------*\
      Sticker modifier
    \*------------------------------------*/
    
    .c-media--sticker {
      padding: remify(8px);
      
      &:first-of-type {
        // border-top: 1px solid primary(sky, 20);
        padding-top: remify(20px);
      }
    
      .c-media__body {
        color: primary(night, 100);
        padding-right: remify(8px);
      }
    
      img {
        width: 80px;
        height: 80px;
      }
    
      .c-button:not(.c-dialog__close) {
        margin: 0;
      }
    }
    
    /*------------------------------------*\
      Warning modifier
    \*------------------------------------*/
    
    .o-media--smart-link {
      background-color: primary(sky, 120);
      color: secondary(page, 100);
      padding: remify(24px);
      border-radius: remify(16px);
      align-items: center;
      position: relative;
      display: inline-flex;
      
      @include min-screen ($booking-info-second-breakpoint) {
        display: flex;
      }
     
      a {
        color: secondary(page, 100);
      }
    
      img {
        transform: rotate(-10deg);
      }
    
      
    }
    
    /*------------------------------------*
      Titled modifier
    *------------------------------------*/
    .c-media--titled {
      
      .c-media__body {
        color: primary(night, 80);
      }
    
      .c-media__title {
        @include font-scale(level-6, bold);
        margin-bottom: remify(8px);
    
        @include max-screen(bp(phablet)) {
          margin-top: remify(16px);
        }
    
      }
    
      @include max-screen(bp(phablet)) {
        display: block;
        text-align: center;
      }
    
    }
    
    .c-media--titled-small {
    
      .c-media__title {
        @include font-scale(level-4, bold);
      }
    
    }
    
    /*------------------------------------*
      Vertically centered
    *------------------------------------*/
    .c-media--vertically-centered {
      align-items: center;
    }
  • URL: /components/raw/media/_media.scss
  • Filesystem Path: src/views/02-molecules/media/_media.scss
  • Size: 6.6 KB

No notes defined.