.app-c-inbox-card
scss
.app-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');
overflow: hidden;
padding: 12px 8px 12px 12px;
position: relative;
text-decoration: none;
@include element('counter') {
@include use-font('caption', 'regular');
align-items: baseline;
background: transparent;
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 media-breakpoint-down(phone-i) {
width: 80%;
}
}
@include element('body') {
display: flex;
flex-flow: row;
position: relative;
@include media-breakpoint-up(tablet) {
flex-direction: row-reverse;
margin: auto;
max-width: 800px;
}
}
@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', 'bold');
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', 'regular');
display: inline-block;
margin: 0;
overflow: hidden;
padding-right: 34px;
position: relative;
text-overflow: ellipsis;
white-space: nowrap;
width: 95%;
}
@include element('footer') {
display: flex;
margin: auto;
max-width: 800px;
@include media-breakpoint-down(phone-i) {
display: inline-block;
}
@include media-breakpoint-only(tablet) {
padding-left: 10%;
}
@include media-breakpoint-up(tablet-landscape) {
padding-left: 150px;
}
}
@include element('time-stamp') {
@include use-font(caption, 'regular');
bottom: 0;
color: use-color('grey', light);
margin: 4px 0 0 auto;
margin: 0;
position: absolute;
right: 4%;
@include media-breakpoint-up(tablet) {
right: 0;
}
}
// channels part
@include element('channel') {
position: relative;
@include media-breakpoint-up(tablet) {
margin-right: 16px;
}
}
@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 media-breakpoint-up(tablet) {
left: 25px;
top: 30px;
}
}
@include element('channel-image') {
height: 30px;
width: 30px;
@include media-breakpoint-up(tablet) {
height: 45px;
width: 45px;
}
}
// background modifiers
@include modifier('new') {
background-image: use-color(gradients, primary-soft);
&::before {
background-color: use-color(primary);
content: '';
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 4px;
}
}
}
Inbox card para la vista previa de los nuevos mensajes, contiene un contador, canal, nombre cliente, campaña, tiempo y la lista de estados del mensaje.
Consta de un elemento para el contador total que debe ir antes de la primer card.
<div class="app-c-inbox-card__counter">
bandeja de chats
<strong>11</strong>
</div>
.app-c-inbox-card__counter
contador.app-c-inbox-card
contenedor principal.app-c-inbox-card__body
contiene nombre campaña, cliente, preview del mensaje, canal, badge de mensajes nuevos.app-c-inbox-card__wrapper
.app-c-inbox-card__info
.app-c-inbox-card__username
.app-c-inbox-card__campaing-name
.app-c-inbox-card__message-preview
.app-c-list-messages-status
.app-c-inbox-card__channel
.app-c-inbox-card__channel-badge
.app-c-inbox-card__channel-image
.app-c-inbox-card__time-stamp
También consta con la clase modificadora .app-c-inbox-card--new
para nuevos mensajes.
Examples
html
<div class="app-c-inbox-card__counter">
bandeja de chats
<strong>11</strong>
</div>
<div class="app-c-inbox-card">
<div class="app-c-inbox-card__body">
<div class="app-c-inbox-card__wrapper">
<div class="app-c-inbox-card__info">
<label class="app-c-inbox-card__username">Jared Vennet</label>
<label class="app-c-inbox-card__campaing-name">
[Nombre campaña]
</label>
</div>
<p class="app-c-inbox-card__message-preview">
When you come for the payday, I'm gonna rip your eyes out. I'm gonna make a fortune. The good news is Vinnie, you're not going to care cause you're gonna make so much money.
</p>
<ul class="app-c-list-messages-status">
<li class="app-c-list-messages-status__item on-exceed">
excedido
</li>
<li class="app-c-list-messages-status__item on-whisper">
susurro de Oliver Hidalgo
</li>
</ul>
</div>
<div class="app-c-inbox-card__channel">
<span class="app-c-inbox-card__channel-badge">
1
</span>
<img class="app-c-inbox-card__channel-image" src="https://cdn.chattigo.com/assets/img/channels/messenger-channel.svg">
</div>
<time class="app-c-inbox-card__time-stamp">X min</time>
</div>
</div>
html
nuevo mensaje
<div class="app-c-inbox-card__counter">
bandeja de chats
<strong>11</strong>
</div>
<div class="app-c-inbox-card app-c-inbox-card--new">
<div class="app-c-inbox-card__body">
<div class="app-c-inbox-card__wrapper">
<div class="app-c-inbox-card__info">
<label class="app-c-inbox-card__username">Jared Vennet</label>
<label class="app-c-inbox-card__campaing-name">
[Nombre Campaña]
</label>
</div>
<p class="app-c-inbox-card__message-preview">
I'm gonna make a fortune. The good news is Vinnie, you're not going to care cause you're gonna make so much money.
</p>
<ul class="app-c-list-messages-status">
<li class="app-c-list-messages-status__item new">
nuevo chat
</li>
</ul>
</div>
<div class="app-c-inbox-card__channel">
<span class="app-c-inbox-card__channel-badge">
1
</span>
<img class="app-c-inbox-card__channel-image" src="https://cdn.chattigo.com/assets/img/channels/facebook-channel.svg">
</div>
<time class="app-c-inbox-card__time-stamp">X min</time>
</div>
</div>