.c-data-card

scss
.c-data-card {
  background-color: use-color(base, true-white);
  border: 1px solid use-color('grey', light-i);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  width: auto;

  @include element('channelimage') {
    @include modifier('small') {
      height: 44px;
      margin-right: 16px;
      width: 44px;
    }
  }

  @include element('section') {
    align-items: center;
    margin: 8px 16px;

    @include modifier('header') {
      @include use-font('body-alt', 'bold');
      display: block;
      height: 40px;
      overflow: hidden;
      padding: 0 5px;
    }

    @include modifier('content') {
      @include use-font('body-alt');
      box-sizing: border-box;
      height: 80px;
      margin-bottom: 16px;
      overflow: hidden;
      padding: 0 5px;
      padding-bottom: 0;
      text-align: justify;
    }

    @include modifier('actions') {
      @include use-font('caption');
      background-color: use-color('grey', 'light-iii');
      border-bottom: 1px solid use-color('grey', light-i);
      border-top: 1px solid use-color('grey', light-i);
      display: flex;
      height: 24px;
      justify-content: space-between;
      margin: 0;
      padding: 8px 16px;

      @include if-block-has-modifier('c-transfer-card', 'pending') {
        color: use-color('grey', 'light-alt');
      }

      &:last-child {
        border-bottom: 0;
        border-radius: 0 0 8px 8px;
      }

      // overrides
      .c-switch {
        + label {
          width: 40px;
        }
      }
    }
  }

  @include element('options') {
    display: flex;

    // overrides
    .c-action-link {
      @include use-font('title');
      border-bottom: 0;
      margin-right: 32px;

      [class^='icon-'],
      [class*=' icon-'] {
        color: use-color('grey', light);
        display: flex;
      }

      &:last-child {
        margin-right: 0;
      }

      &.preview {
        [class^='icon-'],
        [class*=' icon-'] {
          color: use-color('secondary');
        }
      }
    }
  }

  @include modifier('selected') {
    border: solid 1px use-color('event', 'success');
  }


  //TODO: fix class naming
  &-channelimage {
    display: block;
    height: inherit;
    margin: auto;
  }

  &-channelLabel {
    font-family: 'Open Sans';
    font-size: larger;
    font-weight: 600;
    margin: auto;
    text-align: center;
  }
}

Card para el contenido de datos.

  • c-data-card
    • c-data-card__section
      • c-data-card__section–header
      • c-data-card__section–content
      • c-data-card__section–actions

Example

html card-selected - badge active
<div class="c-data-card">
  <div class="c-data-card__section c-data-card__section--header">
    ¿Qué es el ChattigoBot?
  </div>
  
  <div class="c-data-card__section c-data-card__section--content">
    Es un robot con inteligencia artificial que atiende a clientes de forma automatizada con un conocimineto inicial y aprendizaje permanente.
  </div>
  
  
  <div class="c-data-card__section c-data-card__section--actions">
    <input type="checkbox" class="c-switch" id="first">
    <label for="first"></label>
    
    <div class="c-data-card__options">
      <a class="c-action-link preview">
        <span class="icon-attachment"></span>
      </a>
      
      <a class="c-action-link">
        <span class="icon-trash"></span>
      </a>
      
      <a class="c-action-link">
        <span class="icon-edit"></span>
      </a>
    </div>
  </div>
</div>

.c-agent-status-card

scss
.c-agent-status-card {
  background-color: use-color(base, true-white);
  border: 1px solid use-color('grey', light-i);
  border-radius: 4px;
  box-shadow: $box-shadow-card-lvl-1;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 4px 0 0;
  position: relative;

  @include element('section') {
    align-items: center;
    display: flex;
    margin-top: 4px;
    padding: 4px 8px;
    position: relative;

    @include modifier('user') {
      width: 100%;

      @include media-breakpoint-up('tablet-landscape') {
        width: 32%;
      }
    }

    @include modifier('percent-data') {
      justify-content: space-between;
      padding: 0 8px;
      width: 100%;

      @include media-breakpoint-up('tablet-landscape') {
        width: 30%;
      }
    }

    @include modifier('select') {
      display: none;
      margin: 4px 8px 4px auto;
      width: 20%;

      @include media-breakpoint-up('tablet-landscape') {
        display: flex;
      }
    }

    @include modifier('attendees') {
      @include use-font('caption');
      background-color: use-color('grey', 'light-iii');
      border-bottom: 1px solid use-color('grey', light-i);
      border-top: 1px solid use-color('grey', light-i);
      width: 100%;

      @include media-breakpoint-up('tablet-landscape') {
        order: 3;
      }

      strong {
        margin-right: 4px;
      }

      &:last-child {
        border-bottom: 0;
        border-radius: 0 0 4px 4px;
      }
    }

    // overrides
    [class*='c-dropup'] {
      margin: 4px 8px 4px auto;

      @include media-breakpoint-up('tablet-landscape') {
        display: none;
      }
    }
  }

  @include element('avatar') {
    align-self: flex-start;
    border-radius: 50%;
    height: 32px;
    margin-right: 12px;
    min-width: 32px;
    overflow: hidden;
    width: 32px;

    img {
      height: 100%;
      width: auto;

      @include if-block-has-modifier('c-transfer-card', 'selected') {
        display: none;
      }
    }
  }

  @include element('badge') {
    background-color: use-color('event', 'success');
    border: solid 1px use-color('base', 'white');
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    left: 36px;
    position: absolute;
    top: 10px;
    width: 10px;

    @include modifier('paused') {
      background-color: use-color('event', 'warning');
    }
    
    @include modifier('offline') {
      background-color: use-color('event', 'error');
    }
  }

  @include element('data') {
    @include use-font('caption', 'semibold');
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding-right: 16px;

    @include modifier('status') {
      color: use-color('grey', 'light');

      @include media-breakpoint-up('tablet-landscape') {
        display: none;
      }
    }

    label {
      overflow: auto;
      white-space: normal;
      word-break: normal;
      
      @include media-breakpoint-up('tablet') {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: break-word;
      }
    }
  }

  @include modifier('selected') {
    border: solid 1px use-color('event', 'success');

    @include media-breakpoint-up('phone-i') {
      &::before {
        left: 9px;
        top: 23px;
      }
    }

    &::before {
      align-items: center;
      background-color: use-color('event', 'success');
      border-radius: 50%;
      color: use-color('base', true-white);
      content: '\E00D'; // icon-message-sent
      display: flex;
      font-family: 'chattigoicons';
      font-size: 20px;
      height: 38px;
      justify-content: center;
      left: 9px;
      position: absolute;
      top: 11px;
      width: 38px;
    }
  }

  @include element('counter') {
    align-items: center;
    display: flex;
    padding: 4px 0 8px;
    text-align: center;

    @include modifier('number') {
      @include use-font('subheading', 'bold');
      margin-right: 4px;
    }

    @include modifier('percent-label') {
      @include use-font('caption');
      line-height: 12px;
      white-space: nowrap;

      @include media-breakpoint-up('tablet') {
        line-height: 19px;
      }
    }

    @include modifier('wrapper') {
      align-items: flex-start;
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    &:not(:last-child) {
      margin-right: 16px;
    }

    // overrides
    .c-percent-indicator {
      margin-top: 0;
    }
  }
}

Example

html
<div class="c-agent-status-card">
  <div class="c-agent-status-card__section">
    <div class="c-agent-status-card__avatar">
      <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png">
      <span class="c-agent-status-card__badge c-agent-status-card__badge--paused"></span>
    </div>

    <div class="c-agent-status-card__data">
      <label>Lorem ipsum dolor sit amet, consectetur adipiscing elit</label>
      <span class="c-agent-status-card__data--status">Ausente</span>
    </div>

    
    <div class="c-dropup__trigger">
      <span class="icon-menu-options"></span>
    </div>

    <ul class="c-dropup c-dropup--bottom-left">
      <li class="c-dropup__item">
        <a href="#">
          Online
        </a>
      </li>
      <li class="c-dropup__item">
        <a href="#">
          Almuerzo
        </a>
      </li>
      <li class="c-dropup__item c-dropup__item--selected">
        <a href="#">
          Ausente
        </a>
      </li>
      <li class="c-dropup__item">
        <a href="#">
          Baño
        </a>
      </li>
    </ul>
  </div>

  <div class="c-agent-status-card__section c-agent-status-card__section--attendees">
    <strong>5 minutos</strong> en sesión
  </div>

  <div class="c-agent-status-card__section c-agent-status-card__section--percent-data">
    <div class="c-agent-status-card__counter">
      <label class="c-agent-status-card__counter--number">401</label>
      
      <div class="c-agent-status-card__counter--wrapper">
        <div class="c-percent-indicator">
          <span class="c-percent-indicator__progress-bar" style="width: 100%;"></span>
        </div>
        <label class="c-agent-status-card__counter--percent-label">chats cerrados</label>
      </div>
    </div>
    
    <div class="c-agent-status-card__counter">
      <label class="c-agent-status-card__counter--number">21</label>
      
      <div class="c-agent-status-card__counter--wrapper">
        <div class="c-percent-indicator">
          <span class="c-percent-indicator__progress-bar c-percent-indicator__progress-bar--attention" style="width: 89%;"></span>
        </div>
        <label class="c-agent-status-card__counter--percent-label">chats en atención</label>
      </div>
    </div>
  </div>
</div>