.l-inbox

scss
.l-inbox {
  background-color: use-color('base', true-white);
  border: 1px solid use-color('grey', light-i);
  box-sizing: border-box;
  height: 600px;
  max-width: 300px;
  overflow: hidden;
  position: relative;

  @include element('badge') {
    align-items: center;
    background-color: use-color(primary);
    border: solid 1px use-color(base, true-white);
    border-radius: 50%;
    color: use-color(base, true-white);
    display: flex;
    height: 21px;
    justify-content: center;
    position: absolute;
    right: 42px;
    text-align: center;
    top: 4px;
    width: 21px;
  }

  @include element('option-item') {
    @include use-font('caption', 'regular');
    box-sizing: border-box;
    color: use-color('grey', light);
    cursor: pointer;
    height: 100%;
    justify-self: center;
    padding: 16px 32px 0;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    width: inherit;

    [class^='icon-'],
    [class*=' icon-'] {
      color: use-color('grey', 'light-alt');
      display: inline-block;
      font-size: 22px;
      width: 100%;
    }

    &.active {
      background-color: use-color('grey', 'light-iii');
      color: use-color(primary);

      [class^='icon-'],
      [class*=' icon-'] {
        color: use-color(primary);
      }
    }
  }

  // Note: for bottom menu options
  &-options {
    align-items: center;
    background-color: use-color('base', true-white);
    border-top: solid 1px use-color('grey', light-alt);
    bottom: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 76px;
    position: absolute;
    width: 100%;
  }
}

Layout para los componentes del inbox, incluye el bloque para los opciones.

También el elemento c-inbox-card__counter funciona como header de este layout.

Example

html
<div class="l-inbox">
  <div class="c-inbox-card__counter">
    bandeja de Grupos
    <strong>11</strong>
  </div>
  <div class="l-inbox-options">
    <div class="l-inbox__option-item">
      <span class="icon-message"></span>
      chats
    </div>
    <div class="l-inbox__option-item active">
      <span class="icon-group"></span>
      <span class="l-inbox__badge">10</span>
      grupos
    </div>
  </div>
</div>

.c-inbox-card

scss
.c-inbox-card {
  background-color: use-color(base, true-white);
  border-bottom: 1px solid use-color('grey', light-i);
  box-sizing: border-box;
  color: use-color(base, 'black');
  cursor: pointer;
  overflow: hidden;
  padding: 12px 8px 12px 12px;
  position: relative;
  text-decoration: none;

  @include element('counter') {
    @include use-font('caption', 'semibold');
    align-items: baseline;
    background: transparent;
    border-bottom: solid 2px use-color('secondary');
    box-shadow: $box-shadow-card-lvl-1;
    display: flex;
    margin: auto;
    max-width: 800px;
    padding: 8px 8px 8px 34px;
    position: relative;
    text-transform: uppercase;

    + .app-c-inbox-card {
      border-top: 1px solid use-color('grey', light-i);
    }

    &::before {
      color: use-color('grey', light-alt);
      content: '\e90b';
      font-family: 'icomoon';
      font-size: 18px;
      left: 8px;
      position: absolute;
      top: 10px;
    }

    span {
      color: use-color('grey', light-alt);
      font-size: 18px;
      margin-right: 8px;
    }

    strong {
      @include use-font('body', 'bold');
      margin-left: 8px;
    }
  }

  @include element('wrapper') {
    width: 90%;
  }

  @include element('info') {
    margin-bottom: 4px;
    width: 100%;
  }

  @include element('body') {
    display: flex;
    flex-flow: row;
    position: relative;
  }

  @include element('campaing-name') {
    @include use-font('caption', 'light');  
    color: use-color(base, 'black');
    display: inline-block;
    max-width: 90%;
    overflow: hidden;
    padding-left: 0;
    text-overflow: ellipsis;
    white-space: nowrap;

    &::first-letter {
      text-transform: capitalize;
    }
  }

  @include element('username') {
    @include use-font('body', 'semibold');
    display: inline-block;
    line-height: 19px;
    max-width: 90%;
    overflow: hidden;
    padding-left: 0;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
  }

  @include element('message-preview') {
    @include use-font('body', 'semibold');
    color: use-color('base', 'black');
    display: inline-block;
    margin: 0;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 28px);
  }

  @include element('footer') {
    display: flex;
    margin: auto;
    max-width: 800px;
  }

  @include element('time-stamp') {
    @include use-font(caption, 'semibold');
    bottom: 0;
    color: use-color('grey', light);
    margin: 0 0 0 auto;
    position: absolute;
    right: 4%;
  }

  @include element('members') {
    @include use-font(caption, 'semibold');
    color: use-color('grey', light);
    display: block;
  }

  // channels part
  @include element('channel') {
    margin-bottom: 32px;
    position: relative;
  }

  @include element('channel-badge') {
    background-color: use-color('grey', light-i);
    border: 2px solid use-color(base, true-white);
    border-radius: 50%;
    color: use-color('grey', dark);
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    height: 24px;
    left: -24px;
    line-height: 24px;
    position: absolute;
    text-align: center;
    top: 2px;
    width: 24px;
  }

  @include element('channel-image') {
    height: 30px;
    width: 30px;
  }

  @include modifier('focus') {
    background-color: use-color('grey', 'light-iii');
  }

  // background modifiers
  @include modifier('new') {
    order: 1;
  }
}

Tarjeta con la información referente a los nuevos mensajes, también tiene un estado focus.

Examples

html simple
<div class="c-inbox-card">
  <div class="c-inbox-card__body">  
    <div class="c-inbox-card__wrapper">
      <div class="c-inbox-card__info">
        <label class="c-inbox-card__username">#GerenciaDesarrollo</label>
      </div>

      <p class="c-inbox-card__message-preview">
        Oliver: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus malesuada nulla a magna egestas, vitae facilisis dolor facilisis. Vivamus auctor mauris sit amet urna tincidunt ullamcorper.
      </p>

      <ul class="app-c-list-messages-status">
        <li class="app-c-list-messages-status__item on-limit">
          Al limite
        </li>
      </ul>
    </div>

    <div class="c-inbox-card__channel">
      <span class="c-inbox-card__channel-badge">
        1
      </span>
      <img class="c-inbox-card__channel-image" src="https://cdn.chattigo.com/assets/img/channels/whatsapp-channel.svg">
    </div>

    <time class="c-inbox-card__time-stamp">X min</time>
  </div>
</div>
html chat focus
<div class="c-inbox-card c-inbox-card--focus">
  <div class="c-inbox-card__body">  
    <div class="c-inbox-card__wrapper">
      <div class="c-inbox-card__info">
        <label class="c-inbox-card__username">#GerenciaDesarrollo</label>
      </div>

      <p class="c-inbox-card__message-preview">
        Oliver: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus malesuada nulla a magna egestas, vitae facilisis dolor facilisis. Vivamus auctor mauris sit amet urna tincidunt ullamcorper.
      </p>

      <span class="c-inbox-card__members">
        <strong>95</strong> participantes
      </span>
    </div>

    <div class="c-inbox-card__channel">
      <span class="c-inbox-card__channel-badge">
        1
      </span>
      <img class="c-inbox-card__channel-image" src="https://cdn.chattigo.com/assets/img/channels/whatsapp-channel.svg">
    </div>

    <time class="c-inbox-card__time-stamp">X min</time>
  </div>
</div>