.c-transferable-user
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;
}
}
@include modifier('bot') {
border: solid 1px use-color('secondary', 'base');
@include media-breakpoint-up('phone-i') {
&::before {
left: 9px;
top: 23px;
}
}
}
}
Es una card con la información de un usuario al que quiero elegir para transferir un chat.
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>
Requires
@mixin media-breakpoint-up()
@mixin use-font()
@mixin element()
@mixin modifier()
@mixin if-block-has-modifier()
@function use-color()
$box-shadow-card-lvl-1 [private]
$box-shadow-card-lvl-2 [private]
.c-web-transfers-container
scss
.c-web-transfers-container {
height: 404px;
margin-bottom: 16px;
overflow: hidden;
overflow-y: scroll;
// overrides
.c-transferable-user {
cursor: pointer;
margin-left: 4px;
margin-right: 4px;
@include element('main') {
background-image: none;
}
@include element('attendees') {
@include use-font('body-alt');
}
@include element('status') {
@include use-font('body-alt', 'bold');
}
@include element('pic') {
height: 44px;
width: 44px;
}
@include modifier('selected') {
border: solid 1px use-color('event', 'success');
@include media-breakpoint-up('phone-i') {
&::before {
left: 9px;
top: 23px;
}
}
&::before {
height: 44px;
top: 11px;
width: 44px;
}
}
}
}
Bloque que simplifica los estilos del componente .c-transferable-user
y hace que el contenido sea scrolleable.
Desarrollado para ser usado dentro del componente c-section-card
.
Example
html
<div class="c-section-card">
<div class="c-web-transfers-container">
<div class="c-transferable-user c-transferable-user--pause">
<div class="c-transferable-user__main">
<div class="c-transferable-user__pic">
<img src="https://cdn.chattigo.com/assets/img/profiles/4_dummy.png"/>
</div>
<div class="c-transferable-user__info-wrap">
<label>Vinnie Daniel</label>
<ul class="app-c-list-channels app-c-list-channels--alt-wicon">
<li class="app-c-list-channels__item u-tag-wicon--campaign">
Nombre Campaña
</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">
en pausa <span>(27min)</span>
</div>
</div>
</div>
<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/1_dummy.png"/>
</div>
<div class="c-transferable-user__info-wrap">
<label>Warren Buffet</label>
<ul class="app-c-list-channels app-c-list-channels--alt-wicon">
<li class="app-c-list-channels__item u-tag-wicon--campaign">
Nombre Campaña
</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">
active
</div>
</div>
</div>
<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>Ben Ricker</label>
<ul class="app-c-list-channels app-c-list-channels--alt-wicon">
<li class="app-c-list-channels__item u-tag-wicon--campaign">
Nombre Campaña
</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">
active
</div>
</div>
</div>
<div class="c-transferable-user c-transferable-user--pause">
<div class="c-transferable-user__main">
<div class="c-transferable-user__pic">
<img src="https://cdn.chattigo.com/assets/img/profiles/4_dummy.png"/>
</div>
<div class="c-transferable-user__info-wrap">
<label>Vinnie Daniel</label>
<ul class="app-c-list-channels app-c-list-channels--alt-wicon">
<li class="app-c-list-channels__item u-tag-wicon--campaign">
Nombre Campaña
</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">
en pausa <span>(27min)</span>
</div>
</div>
</div>
<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/1_dummy.png"/>
</div>
<div class="c-transferable-user__info-wrap">
<label>Warren Buffet</label>
<ul class="app-c-list-channels app-c-list-channels--alt-wicon">
<li class="app-c-list-channels__item u-tag-wicon--campaign">
Nombre Campaña
</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">
active
</div>
</div>
</div>
<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>Ben Ricker</label>
<ul class="app-c-list-channels app-c-list-channels--alt-wicon">
<li class="app-c-list-channels__item u-tag-wicon--campaign">
Nombre Campaña
</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">
active
</div>
</div>
</div>
</div>
<a class="c-button c-button--primary" href="" disabled>
Transferir Chat
</a>
</div>