Status: Empty

<div class='c-status'>

    <div class='c-status__txt'>
        <strong>Attesa ai controlli di sicurezza</strong>
        <small>Stima indicativa - Ultimo aggiornamento 14:30</small>
    </div>
</div>
{{! Check into NOTES tab for more info }}

<div class='c-status'>
  {{#if icon-path}}
    <div class='c-icon'>
      <img
        src="{{path icon-path}}"
        class='c-icon'
        alt="{{icon-alt}}"
        aria-hidden='true'
      />
    </div>
  {{/if}}

  <div class='c-status__txt'>
    {{{primary-txt}}}
    {{{secondary-txt}}}
  </div>
</div>
{
  "svg-class": "one",
  "primary-txt": "<strong>Attesa ai controlli di sicurezza</strong>",
  "secondary-txt": "<small>Stima indicativa - Ultimo aggiornamento 14:30</small>"
}
  • Content:
    $status-svg-size: 76px;
    
    .c-status {
    
      display: inline-flex;
      align-items: center;
      @include shadow(medium);
      border-radius: remify(50px);
      padding: remify(8px) remify(16px) remify(8px) remify(8px);
    
      .c-billboard__label & {
        box-shadow: none;
        padding: 0;
      }
    
      &:not(.c-status--delay) svg {
        width: remify($status-svg-size);
        height: remify($status-svg-size); // For IE
        stroke-width: 30;
        background-color: #fff;
        border-radius: 50%;
        padding: remify(4px);
    
        path {
          stroke: #ccc;
        }
    
      }
    
      svg.one {
        path:nth-child(n+1):nth-child(-n+1) {
          stroke: status(positive);
        }
      }
    
      svg.two {
        path:nth-child(n+1):nth-child(-n+2) {
          stroke: status(warning);
        }
      }
    
      svg.three {
        path:nth-child(n+1):nth-child(-n+3) {
          stroke: status(warning);
        }
      }
    
      svg.four {
        path:nth-child(n+1):nth-child(-n+4) {
          stroke: status(negative);
        }
      }
    
      svg.five {
        path:nth-child(n+1):nth-child(-n+5) {
          stroke: status(negative);
        }
      }
    
    }
    
    .c-status__img {
      position: relative;
      max-height: remify($status-svg-size);
    
      .c-billboard__label & {
        order: 2;
      }
    
      .waiting-time {
        text-transform: uppercase;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        transform: translate(-50%, -50%);
        color: secondary(text, 100);
    
        p {
          font-size: 75%;
        }
    
        strong {
          font-size: 90%;
          display: block;
          line-height: remify(16px);
        }
    
      }
    
    }
    
    .c-status__txt {
      margin-left: remify(16px);
      color: primary(night, 100);
    
      .c-status--delay & {
        text-align: left;
      }
    
      .c-billboard__label & {
        color: currentColor;
        margin-right: remify(16px);
        margin-left: 0;
        order: 1;
        text-align: right;
      }
    
      &>* {
        display: block;
      }
    
      strong {
        font-size: 75%;
    
        @include min-screen(bp(phone-p)) {
          font-size: 90%;
        }
    
      }
    
    }
    
  • URL: /components/raw/status/_status.scss
  • Filesystem Path: src/views/01-atoms/status/_status.scss
  • Size: 1.9 KB

To change the color of the stroke, you can use the following classes on the svg element: .one, .two, .three, .four, .five