Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
feat: table component state synchronizing
Browse files Browse the repository at this point in the history
  • Loading branch information
GusBaamonde committed Jul 16, 2019
1 parent 4405625 commit b151378
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
48 changes: 44 additions & 4 deletions assets/scss/modules/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,65 @@

tbody {
tr {
border-bottom: 1px solid $dp-color-silver;

&:nth-of-type(odd) {
background: $bg-color-zebra;
&:nth-child(odd) {
background: $bg-color-zebra;
}

&:nth-child(even) {
background: $dp-color-white;
}

&:hover {
background: $bg-color-hover;
}
}


td {
color: $dp-color-grey;
border: $dp-spaces--lv0;
box-shadow: $dp-spaces--lv0 -1px $dp-spaces--lv0 $dp-spaces--lv0 $dp-color-silver inset;
height: $dp-spaces--lv7;
padding-left: $dp-spaces--lv2;
padding-right: $dp-spaces--lv3;
font-size: $font-size-table;
}

.sync{
color: $dp-color-green;

td{
color: $dp-color-green;
background: $dp-color-white;
border-top: 1px solid $dp-color-green;
border-bottom: 1px solid $dp-color-green;
}

.text-sync {
animation: flash 2s infinite;

.icon-clock{
margin: 0 5px;
top: -2px;
position: relative;
}
}

/// Animation text
@keyframes flash {
from,
50%,
to {
opacity: 1;
}

25%,
75% {
opacity: 0;
}
}
}

}

caption,
Expand Down
5 changes: 5 additions & 0 deletions assets/templates/partials/_table-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
<td>Content 4</td>
<td>Content 5</td>
</tr>
<tr class="sync">
<td colspan="1">Enderec (dplrvetex)</td>
<td colspan="1">Lista nueva</td>
<td colspan="3"><span class="text-sync"><i class="ms-icon icon-clock"></i> Synchronizing...</span></td>
</tr>
<tr>
<td>Content 1</td>
<td>Content 2</td>
Expand Down

0 comments on commit b151378

Please sign in to comment.