.c-transfer-card

scss
.c-transfer-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: column;
  margin-bottom: 16px;
  padding: 4px 0 0;
  position: relative;

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

    @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);

      strong {
        margin-right: 4px;
      }

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

  @include element('avatar') {
    border-radius: 50%;
    height: 38px;
    margin-right: 8px;
    overflow: hidden;
    width: 38px;

    img {
      height: 100%;
      width: auto;

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

  @include element('status-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;

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

  @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: '\e95f';
      display: flex;
      font-family: 'icomoon' !important;
      font-size: 20px;
      height: 38px;
      justify-content: center;
      left: 9px;
      position: absolute;
      top: 11px;
      width: 38px;
    }
  }
}

.c-transfer-card

  • .c-transfer-card--selected

.c-transfer-card__status-badge default: active

  • .c-transfer-card__status-badge--paused
  • .c-transfer-card__status-badge--offline

Examples

html card-selected - badge active
<div class="c-transfer-card c-transfer-card--selected">
  <div class="c-transfer-card__section">
    <div class="c-transfer-card__avatar">
      <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
      
      <span class="c-transfer-card__status-badge"></span>
    </div>

    <div class="c-transfer-card__data">
      <label>Charlie</label>
      <span>Rol Usuario</span>
    </div>
  </div>

  <div class="c-transfer-card__section c-transfer-card__section--attendees">
    <strong>8</strong> chats asignados
  </div>

  <div class="c-transfer-card__section">
    <ul class="app-c-list-channels app-c-list-channels--alt-wicon">
      <li class="app-c-list-channels__item u-tag-wicon--campaign">
        HablaConmigo
      </li>
      
      <li class="app-c-list-channels__item u-tag-wicon--campaign">
        HablaConmigo HablaConmigo
      </li>

      <li class="app-c-list-channels__item u-tag-wicon--campaign">
        HablaConmigo HablaConmigo HablaConmigo
      </li>
    </ul>
  </div>  
</div>
html badge paused
<div class="c-transfer-card">
  <div class="c-transfer-card__section">
    <div class="c-transfer-card__avatar">
      <img src="https://cdn.chattigo.com/assets/img/profiles/1_dummy.png"/>
      
      <span class="c-transfer-card__status-badge c-transfer-card__status-badge--paused"></span>
    </div>

    <div class="c-transfer-card__data">
      <label>Charlie</label>
      <span>Rol Usuario</span>
    </div>
  </div>

  <div class="c-transfer-card__section c-transfer-card__section--attendees">
    <strong>8</strong> chats asignados
  </div> 
</div>

Requires

@mixin use-font()

@mixin element()

@mixin modifier()

@function use-color()

.c-transferable-user [deprecated]

scss
.c-transferable-user {
  background-color: use-color(base, true-white);
  box-shadow: $box-shadow-card-lvl-1;
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;

  @include media-breakpoint-up('phone-i') {
    border-radius: 4px;
    margin-left: 8px;
    margin-right: 8px;
  }

  @include media-breakpoint-up('phone-ii') {
    margin-left: 16px;
    margin-right: 16px;
  }

  @include modifier('pause') {
    background-color: lighten(use-color('event', 'paused'), 52%);
  }

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

  @include element('main') {
    @include use-font('body', 'regular');
    align-items: center;
    background-image: url('https://cdn.chattigo.com/assets/img/transferables-background.svg');
    background-position: -30% 50%;
    background-repeat: repeat;
    display: flex;
    justify-content: flex-start;
    padding: 8px 8px 4px;

    @include if-block-has-modifier('c-transferable-user', 'inactive') {
      background-image: none;
    }
  }

  @include element('pic') {
    border: 1px solid use-color('grey', light-ii);
    border-radius: 50%;
    box-shadow: $box-shadow-card-lvl-2;
    flex-shrink: 0;
    height: 48px;
    margin-right: 8px;
    overflow: hidden;
    position: relative;
    width: 48px;
    
    // @include media-breakpoint-up('phone-i') {
    //   height: 48px;
    //   width: 48px;
    // }

    @include if-block-has-modifier('c-transferable-user', 'selected') {
      border: 0;
      box-shadow: none;

      img {
        display: none;
      }
    }

    img {
      height: 100%;
      width: auto;
    }
  }

  @include element('info-wrap') {
    height: auto;
    width: auto;

    label {
      @include use-font('body', 'regular');
    }
  }

  // FOOTER OF CARD
  @include element('footer') {
    @include use-font('body', 'regular');
    display: flex;

    >div {
      padding: 8px 0;
      text-align: center;
      width: 50%;
    }
  }

  @include element('attendees') {
    background-color: transparentize(use-color('grey', dark), 0.96);

    span {
      font-weight: bold;
    }
  }

  @include element('status') {
    font-weight: bold;

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

  @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: '\e95f';
      display: flex;
      font-family: 'icomoon' !important;
      font-size: 20px;
      height: 48px;
      justify-content: center;
      left: 9px;
      position: absolute;
      top: 11px;
      width: 48px;
    }
  }
}

Es una card con la información de un usuario al que quiero elegir para transferir un chat.

DEPRECATED:

use .c-transfer-card instead.

Examples

html
<div class="c-transferable-user">
  <div class="c-transferable-user__main">
    <div class="c-transferable-user__pic">
      <img src="https://cdn.chattigo.com/assets/img/profiles/7_dummy.png"/>
    </div>

    <div class="c-transferable-user__info-wrap">
      <label>Mark Baum</label>

      <ul class="app-c-list-channels app-c-list-channels--alt-wicon">
        <li class="app-c-list-channels__item u-tag-wicon--campaign">
          Habla conmigo
        </li>
        
        <li class="app-c-list-channels__item u-tag-wicon--group">
          Ingeniería Civil Industrial
        </li>

        <li class="app-c-list-channels__item u-tag-wicon--location">
          Concepción
        </li>
      </ul>
    </div>
  </div>
  
  <div class="c-transferable-user__footer">
    <div class="c-transferable-user__attendees">
      <span>8</span> chats asignados
    </div>

    <div class="c-transferable-user__status">
      activo</span> 
    </div>
  </div>
</div>
html selected
<div class="c-transferable-user c-transferable-user--selected">
  <div class="c-transferable-user__main">
    <div class="c-transferable-user__pic">
      <img src="https://cdn.chattigo.com/assets/img/profiles/7_dummy.png"/>
    </div>

    <div class="c-transferable-user__info-wrap">
      <label>Mark Baum</label>

      <ul class="app-c-list-channels app-c-list-channels--alt-wicon">
        <li class="app-c-list-channels__item u-tag-wicon--campaign">
          Habla conmigo
        </li>
        
        <li class="app-c-list-channels__item u-tag-wicon--group">
          Ingeniería Civil Industrial
        </li>

        <li class="app-c-list-channels__item u-tag-wicon--location">
          Concepción
        </li>
      </ul>
    </div>
  </div>
  
  <div class="c-transferable-user__footer">
    <div class="c-transferable-user__attendees">
      <span>8</span> chats asignados
    </div>

    <div class="c-transferable-user__status">
      activo</span> 
    </div>
  </div>
</div>