.c-divided-inbox

scss
.c-inbox-tab {
  background-color: use-color('base', 'true-white');
  box-shadow: 0 1px 2px 0 use-color('secondary', 'base');
  position: relative;
  z-index: use-layer('base');

  @include element('button-wrapper') {
    background-color: use-color('base', 'true-white');
    display: flex;
  }
  
  @include element('button') {
    @include use-font('caption', 'bold');
    background-color: use-color('base', 'true-white');
    border: 0;
    cursor: pointer;
    padding: 20px;
    text-transform: uppercase;
    width: 50%;

    @include modifier('active') {
      border: 0;
      box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.22);
    }
  }

  @include element('tab-pane-container') {
    border-radius: 0 0 6px 6px;
    padding: 12px 16px;

    @include element('tab-pane') {
      display: none;

      @include modifier('active') {
        display: block;
      }
    }
  }
}

Componente desarrollado para separar los chats agendados de los pausados.

El componente incluye modificadores:

  • Activar un tab pane c-inbox-tab__tab-pane-container__tab-pane--active.
  • Darle estilo de activado al botón de selección de tab presionado. c-inbox-tab__button--active.

Example

html
<div class="c-divided-inbox-wrapper">
  <div class="l-inbox-n-chat__inbox">
    <div class="c-inbox-tab">
    <div class="c-inbox-tab__button-wrapper">
      <button class="c-inbox-tab__button">Chats Agendados</button>
      <button class="c-inbox-tab__button c-inbox-tab__button--active">Chats Pausados</button>
    </div>
    </div>
    <div class="u-scrolling-content">
    <div class="c-inbox-tab__tab-pane-container__tab-pane">
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
    </div>
    <div class="c-inbox-tab__tab-pane-container__tab-pane c-inbox-tab__tab-pane-container__tab-pane--active">
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius  c-transfer-card--near-activate">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius c-transfer-card--near-activate">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius  c-transfer-card--near-activate">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius c-transfer-card--near-activate">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius  c-transfer-card--near-activate">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
      <div class="c-transfer-card c-transfer-card--chats-scheduled c-transfer-card--radius c-transfer-card--near-activate">
        <div class="c-transfer-card__section">
          <div class="c-transfer-card__avatar">
          <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
          </div>
          <div class="c-transfer-card__data">
          <label>Charlie</label>
          <span class="c-transfer-card__data--rol">
            dev@chattigo.com
          </span>
          </div>
        </div>
      
        <div class="c-transfer-card__section c-transfer-card__section--date-actions">
          <span>
            vie
            <b>13, 09:00</b>
            hrs
          </span>
        
          <div class="c-transfer-card__actions--minutes">
            <span>15 min</span>
          </div>
        </div>
      </div>
    </div>
    </div>
  </div>
</div>

.l-inbox

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

  @include modifier('borderless') {
    border: 0;
  }
  @include modifier('large') {
    min-width: 293px;
  }

  @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;
    right: 20%;
    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);
      }
    }
  }

  @include modifier('on-hold') {
    max-width: 300px;
    min-width: 250px;
  }

  // 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;
    display: flex;
    // grid-template-columns: repeat(2, 1fr);
    height: 76px;
    // position: absolute;
    width: 100%;

    @include modifier('one-action') {
      grid-template-columns: 1fr;
      padding: 4px 16px;
      
    }
  }

  // overrides
  .c-inbox-card {
    @include element('counter') {
      margin: unset;
    }
  }

  .u-scrolling-content {
    height: 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.

Examples

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>
html large &amp; borderless
<div class="l-inbox l-inbox--large l-inbox--borderless">
  <div class="c-inbox-card__counter">
    bandeja de Grupos
  </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: '\E003'; //icon-chats-inbox
      font-family: 'chattigoicons';
      font-size: 18px;
      left: 8px;
      position: absolute;
      top: 10px;
    }

    &--large {
      border-bottom: solid 1px use-color('secondary');
      box-sizing: border-box;
      height: 55px;
      letter-spacing: 0.07px;
      padding: 18px 8px 18px 36px;

      &::before {
        left: 10px;
        top: 18px;
      }
    }

    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>

.c-inbox-on-hold-card

scss
.c-inbox-on-hold-card {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-flow: wrap;
  padding: 12px 8px;

  @include element('time') {
    @include use-font('caption');
    color: use-color('event', 'error');
    order: 3;
    padding-bottom: 4px;
    padding-left: 14px;
    padding-top: 4px;
    position: relative;
    white-space: nowrap;
    width: 100%;

    &::before {
      background-color: use-color('event', 'error');
      border-radius: 50%;
      bottom: 0;
      content: '';
      height: 8px;
      left: 0;
      margin: auto;
      position: absolute;
      top: 0;
      width: 8px;
    }
  }

  @include element('channel') {
    order: 1;
    padding: 0 8px 0 0;
    text-align: center;
    width: fit-content;

    @include modifier('image') {
      height: 24px;
      width: 24px;
    }
  }

  @include element('client-name') {
    @include use-font('body');
    height: 100%;
    margin-right: 16px;
    max-width: 310px;
    order: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 80%;
  }

  @include element('campaign') {
    @include use-font('body-alt');
    color: use-color('grey', 'light');
    margin: 0;
    order: 4;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  @include modifier('selected') {
    background-image: use-color('gradients', 'select-grey');
  }

  &:not(:last-child) {
    border-bottom: 1px solid use-color('grey', 'light-ii');
  }
}

Tarjeta con la información referente a los mensajes en espera, también tiene un estado selected.

Example

html
<div class="c-inbox-on-hold-card c-inbox-on-hold-card--selected">
  <div class="c-inbox-on-hold-card__time">
    más de 21 hrs.
  </div>

  <div class="c-inbox-on-hold-card__channel">
    <img class="c-inbox-on-hold-card__channel--image" src="https://cdn.chattigo.com/assets/img/channels/whatsapp-channel.svg" alt="Channel image"/>
  </div>

  <div class="c-inbox-on-hold-card__client-name">
    Robert Zemeasdfqwerty
  </div>

  <div class="c-inbox-on-hold-card__campaign">
    [Nombre Campaña 01]
  </div>
</div>

<div class="c-inbox-on-hold-card">
  <div class="c-inbox-on-hold-card__time">
    más de 21 hrs.
  </div>

  <div class="c-inbox-on-hold-card__channel">
    <img class="c-inbox-on-hold-card__channel--image" src="https://cdn.chattigo.com/assets/img/channels/widget-channel.svg" alt="Channel image"/>
  </div>

  <div class="c-inbox-on-hold-card__client-name">
    Emmett Brown
  </div>

  <div class="c-inbox-on-hold-card__campaign">
    [Nombre Campaña 01]
  </div>
</div>