-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from sebgroup/develop
Develop
- Loading branch information
Showing
21 changed files
with
11,549 additions
and
9,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
$skeleton-loader-mask-color: $white; | ||
.skeleton-loader { | ||
//background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 87.7' class='skeleton-loader'%3E%3Cpath fill='%23FFF' d='M292 87.7H0V0h292v87.7zM80.7 20V3H3v17h77.7zm39.8 0V3h-36v17h36zm63.3 21.4v-17H3v17h180.8zm104.7 21.4v-17H3v17h285.5zm0 21.5v-17H3v17h285.5z'/%3E%3C/svg%3E"); | ||
//background: linear-gradient(to right, $gray-100 0%,$gray-300 100%); | ||
position: relative; | ||
overflow: hidden; | ||
min-height: 153px; | ||
&::before { | ||
background: str-replace(url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 87.7' class='skeleton-loader'%3E%3Cpath fill='#{$skeleton-loader-mask-color}' d='M292 87.7H0V0h292v87.7zM80.7 20V3H3v17h77.7zm39.8 0V3h-36v17h36zm63.3 21.4v-17H3v17h180.8zm104.7 21.4v-17H3v17h285.5zm0 21.5v-17H3v17h285.5z'/%3E%3C/svg%3E"), "#", "%23"); | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 321'%3E%3Cdefs%3E%3Cstyle%3E .cls-1%7Bfill:%23fff%7D %3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M310 0h410v57H310zM0 57h720v8H0zM0 89h720v8H0zM0 121h720v8H0zM0 153h720v8H0zM0 185h720v8H0zM230 65h8v24h-8zM290 97h8v24h-8zM375 129h8v24h-8zM238 161h8v24h-8zM0 217h720v8H0zM0 249h720v8H0zM0 281h720v8H0zM0 313h720v8H0zM200 0h8v57h-8zM450 65h270v24H450zM524 193h8v24h-8zM310 257h8v24h-8zM411 225h8v24h-8zM230 289h8v24h-8zM524 289h8v24h-8zM192 225h8v24h-8z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath fill='%23fff' d='M0 0h1v1H0z'/%3E%3C/svg%3E"); | ||
display: block; | ||
position: absolute; | ||
content: ''; | ||
z-index: 1; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
background-position-x: 0, 520px; | ||
background-size: 720px 321px; | ||
background-repeat:no-repeat; | ||
} | ||
&::after { | ||
background: linear-gradient(80deg, $gray-100 10%, $gray-200 80%, transparent 90%), $gray-100; | ||
animation-duration: 2000ms; | ||
animation-fill-mode: forwards; | ||
animation-iteration-count: infinite; | ||
animation-name: skeletonLoader; | ||
animation-timing-function: ease-out; | ||
background-size: 50% 100%; | ||
background-repeat: no-repeat; | ||
position: absolute; | ||
content: ''; | ||
z-index: 0; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
} | ||
&.skeleton-loader-table { | ||
height: 195px; | ||
&::before { | ||
background-size: 600px 647px; | ||
background-position-y: -1px; | ||
background-repeat: repeat-x; | ||
background-image: str-replace(url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 87.7'%3E%3Cpath fill='#{$skeleton-loader-mask-color}' d='M0 0v87.7h292V0H0zm283.1 6h6.3v6.2h-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h31c.3 0 .6.3.6.6v5z'/%3E%3C/svg%3E"), "#", "%23"); | ||
//background-image: str-replace(url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 87.7'%3E%3Cpath fill='#{$skeleton-loader-mask-color}' d='M0 0v87.7h292V0H0zm283.1 6h6.3v6.2h-6.3V6zm-19.7 0h18.1v6.2h-18.1V6zm-96.9 0h6.3v6.2h-6.3V6zm-47.3 0h45.7v6.2h-45.7V6zM86.1 6h6.3v6.2h-6.3V6zM52 6h32.5v6.2H52V6zM38.2 6h6.3v6.2h-6.3V6zM4.1 6h32.5v6.2H4.1V6zm0 8.3h285.3v1.3H4.1v-1.3zM152 20v6.2h-32.8V20H152zm-48.2 0v6.2H52V20h51.8zM4.1 20H40v6.2H4.1V20zm285.4 65.4H4.1v-.6h285.4v.6zM4.1 81.3v-6.2h25.4v6.2H4.1zm47.9 0v-6.2h47.5v6.2H52zm67.2 0v-6.2h41.3v6.2h-41.3zm170.3-.6c0 .3-.3.6-.6.6h-33.5c-.3 0-.6-.3-.6-.6v-5c0-.3.3-.6.6-.6h33.5c.3 0 .6.3.6.6v5zm0-9.3H4.1v-.6h285.4v.6zM4.1 67.3v-6.2h25.4v6.2H4.1zm47.9 0v-6.2h47.5v6.2H52zm67.2 0v-6.2h34.3v6.2h-34.3zm170.3-.6c0 .3-.3.6-.6.6h-33.5c-.3 0-.6-.3-.6-.6v-5c0-.3.3-.6.6-.6h33.5c.3 0 .6.3.6.6v5zm0-9.2H4.1V57h285.4v.5zM4.1 53.4v-6.2H40v6.2H4.1zm47.9 0v-6.2h27.8v6.2H52zm67.2 0v-6.2h63.6v6.2h-63.6zm170.3-.6c0 .3-.3.6-.6.6h-45.8c-.3 0-.6-.3-.6-.6v-5c0-.3.3-.6.6-.6h45.8c.3 0 .6.3.6.6v5zm0-8.6H4.1v-.6h285.4v.6zM4.1 40v-6.2h25.4V40H4.1zM52 40v-6.2h47.5V40H52zm67.2 0v-6.2h41.3V40h-41.3zm170.3-.6c0 .3-.3.6-.6.6h-33.5c-.3 0-.6-.3-.6-.6v-5c0-.3.3-.6.6-.6h33.5c.3 0 .6.3.6.6v5zm0-9.1H4.1v-.6h285.4v.6zm0-4.7c0 .3-.3.6-.6.6h-31c-.3 0-.6-.3-.6-.6v-5c0-.3.3-.6.6-.6h31c.3 0 .6.3.6.6v5z'/%3E%3C/svg%3E"), "#", "%23"); | ||
background-image: str-replace(url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 646'%3E%3Cdefs%3E%3Cstyle%3E .a%7Bfill:#{$skeleton-loader-mask-color}%7D %3C/style%3E%3C/defs%3E%3Cpath class='a' d='M450 122h56v24h-56zM0 0h600v8H0zM0 23h600v8H0zM0 32h600v8H0zM0 64h600v8H0zM0 73h600v8H0zM0 105h600v8H0zM0 114h600v8H0zM0 146h600v8H0zM84 8h32v15H84zM92 40h24v24H92zM76 81h40v24H76zM100 122h16v24h-16zM232 8h44v15h-44zM210 40h66v24h-66zM260 81h16v24h-16zM236 122h40v24h-40zM418 8h92v15h-92zM426 40h64v24h-64zM410 81h72v24h-72zM434 245h72v24h-72zM0 155h600v8H0zM0 187h600v8H0zM0 196h600v8H0zM0 228h600v8H0zM0 237h600v8H0zM0 269h600v8H0zM52 163h64v24H52zM76 204h40v24H76zM100 245h16v24h-16zM252 163h24v24h-24zM260 204h16v24h-16zM236 245h40v24h-40zM426 163h40v24h-40zM410 204h116v24H410zM391 368h115v24H391zM0 278h600v8H0zM0 310h600v8H0zM0 319h600v8H0zM0 351h600v8H0zM0 360h600v8H0zM0 392h600v8H0zM92 286h24v24H92zM76 327h40v24H76zM100 368h16v24h-16zM252 286h24v24h-24zM210 327h66v24h-66zM236 368h40v24h-40zM370 286h120v24H370zM410 327h56v24h-56zM376 491h90v24h-90zM0 401h600v8H0zM0 433h600v8H0zM0 442h600v8H0zM0 474h600v8H0zM0 483h600v8H0zM0 515h600v8H0zM92 409h24v24H92zM76 450h40v24H76zM100 491h16v24h-16zM252 409h24v24h-24zM260 450h16v24h-16zM236 491h40v24h-40zM450 409h40v24h-40zM410 450h72v24h-72zM434 614h72v24h-72zM0 524h600v8H0zM0 556h600v8H0zM0 565h600v8H0zM0 597h600v8H0zM0 606h600v8H0zM0 638h600v8H0zM92 532h24v24H92zM76 573h40v24H76zM100 614h16v24h-16zM252 532h24v24h-24zM260 573h16v24h-16zM236 614h40v24h-40zM426 532h64v24h-64zM410 573h72v24h-72zM584 8h16v15h-16zM584 40h16v24h-16zM584 81h16v24h-16zM584 122h16v24h-16zM584 163h16v24h-16zM584 204h16v24h-16zM584 245h16v24h-16zM584 286h16v24h-16zM584 327h16v24h-16zM584 368h16v24h-16zM584 409h16v24h-16zM584 450h16v24h-16zM584 491h16v24h-16zM584 532h16v24h-16zM584 573h16v24h-16zM584 614h16v24h-16z'/%3E%3C/svg%3E"), "#", "%23"); } | ||
} | ||
} | ||
@include media-breakpoint-up(sm) { | ||
.skeleton-loader::after { | ||
//animation-duration: 1400ms; | ||
} | ||
} | ||
@include media-breakpoint-up(md) { | ||
.skeleton-loader { | ||
min-height: 249px; | ||
&::after { | ||
animation-duration: 1800ms; | ||
} | ||
} | ||
.skeleton-loader-table { | ||
min-height: 237px; | ||
} | ||
} | ||
@include media-breakpoint-up(lg) { | ||
.skeleton-loader { | ||
&::after { | ||
animation-duration: 1600ms; | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(xl) { | ||
.skeleton-loader-table { | ||
min-height: 277px; | ||
} | ||
} | ||
|
||
@keyframes skeletonLoader { | ||
0% { | ||
//background-size: 0 100%; | ||
//background-position: -100% 0; | ||
//background-position: -100vw 0; | ||
background-position-x: -100%; | ||
} | ||
70%, 100% { | ||
//background-size: 100% 100%; | ||
//background-position: 200% 0; | ||
//background-position: 200vw 0; | ||
background-position-x: calc(-100% + 1200px); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
header { | ||
height: 56px; | ||
position: fixed; | ||
z-index: 2; | ||
z-index: 1080; | ||
left: 0; | ||
//padding-left: 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/example/components/skeleton-loader/skeleton-loader.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<h2 class="px-3 px-md-0 my-3">Skeleton loader</h2> | ||
<div class="card"> | ||
<div class="card-body" id="skeletonLoader"> | ||
<div class="skeleton-loader"></div> | ||
<exemplify [selector]="'#skeletonLoader .skeleton-loader'"></exemplify> | ||
</div> | ||
<div class="card-body" id="skeletonLoaderTable"> | ||
<div class="skeleton-loader skeleton-loader-table"></div> | ||
<exemplify [selector]="'#skeletonLoaderTable .skeleton-loader-table'"></exemplify> | ||
</div> | ||
</div> | ||
<div class="row mt-3 mt-xl-4"> | ||
<div class="col-12 col-sm"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="skeleton-loader"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-sm mt-3 mt-sm-0"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="skeleton-loader"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row mt-3 mt-xl-4"> | ||
<div class="col-12 col-sm"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="skeleton-loader"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-sm mt-3 mt-sm-0"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="skeleton-loader"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-sm mt-3 mt-sm-0"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="skeleton-loader"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
15 changes: 15 additions & 0 deletions
15
src/example/components/skeleton-loader/skeleton-loader.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-skeleton-loader', | ||
templateUrl: './skeleton-loader.component.html', | ||
styles: [] | ||
}) | ||
export class SkeletonLoaderComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters