-
Notifications
You must be signed in to change notification settings - Fork 20
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 #206 from rsksmart/fix/styles-issues
Fix: fixed some styling and added loading effects on tables
- Loading branch information
Showing
24 changed files
with
282 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ export default { | |
display flex | ||
.decode | ||
align-self flex-end | ||
margin-left 10px | ||
textarea | ||
padding 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,3 @@ export default { | |
} | ||
</script> | ||
<style lang="stylus"> | ||
// @import ('../lib/styl/style.styl') | ||
</style> |
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,36 @@ | ||
<template> | ||
<div> | ||
<spinner v-if="type === 'spinner'" /> | ||
<table-loader v-if="typeLoader === 'table'" /> | ||
<section-loader v-if="typeLoader === 'section'" /> | ||
</div> | ||
</template> | ||
<script> | ||
import Spinner from './Spinner.vue' | ||
import TableLoader from './TableLoader.vue' | ||
import SectionLoader from './SectionLoader.vue' | ||
export default { | ||
components: { | ||
Spinner, | ||
TableLoader, | ||
SectionLoader | ||
}, | ||
props: ['type', 'fixed'], | ||
data () { | ||
return { | ||
typeLoader: '' | ||
} | ||
}, | ||
created () { | ||
if (this.fixed) { | ||
this.typeLoader = this.type | ||
return | ||
} | ||
if (Object.values(this.$route.params).length > 0) { | ||
this.typeLoader = 'section' | ||
} else { | ||
this.typeLoader = 'table' | ||
} | ||
} | ||
} | ||
</script> |
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,20 @@ | ||
<template> | ||
<div class="section-loader animate-pulse bg-secondary"> | ||
<svg width="1300" height="470" viewBox="0 0 1300 470" fill="red" xmlns="http://www.w3.org/2000/svg"> | ||
<rect x="0" y="1" rx="5" ry="5" width="120px" height="10" /> | ||
<rect x="0" y="41" rx="5" ry="5" width="270px" height="30" /> | ||
<rect x="0" y="100" rx="5" ry="5" width="100px" height="30" /> | ||
<rect x="120" y="100" rx="5" ry="5" width="100px" height="30" /> | ||
<circle cx="18" cy="190" r="18" /> | ||
<rect x="67" y="175" rx="5" ry="5" width="87%" height="30" /> | ||
<circle cx="18" cy="250" r="18" /> | ||
<rect x="67" y="235" rx="5" ry="5" width="87%" height="30" /> | ||
<circle cx="18" cy="310" r="18" /> | ||
<rect x="67" y="295" rx="5" ry="5" width="87%" height="30" /> | ||
<circle cx="18" cy="370" r="18" /> | ||
<rect x="67" y="355" rx="5" ry="5" width="87%" height="30" /> | ||
<circle cx="18" cy="430" r="18" /> | ||
<rect x="67" y="415" rx="5" ry="5" width="87%" height="30" /> | ||
</svg> | ||
</div> | ||
</template> |
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,71 @@ | ||
<template> | ||
<div class="table-loader animate-pulse"> | ||
<svg width="1400" height="450" viewBox="0 0 1400 450" xmlns="http://www.w3.org/2000/svg"> | ||
<rect x="0" y="0" rx="4" ry="4" width="100%" height="52" /> | ||
<rect x="67" y="15" rx="10" ry="10" width="85" height="20" fill="#3A3A3A" /> | ||
<rect x="188" y="15" rx="10" ry="10" width="169" height="19" fill="#3A3A3A" /> | ||
<rect x="402" y="15" rx="10" ry="10" width="85" height="19" fill="#3A3A3A" /> | ||
<rect x="523" y="15" rx="10" ry="10" width="169" height="19" fill="#3A3A3A" /> | ||
<rect x="731" y="15" rx="10" ry="10" width="85" height="19" fill="#3A3A3A" /> | ||
<rect x="852" y="15" rx="10" ry="10" width="85" height="19" fill="#3A3A3A" /> | ||
<rect x="978" y="15" rx="10" ry="10" width="169" height="19" fill="#3A3A3A" /> | ||
<rect x="1180" y="15" rx="10" ry="10" width="50" height="19" fill="#3A3A3A" /> | ||
|
||
<rect x="10" y="72" rx="50" ry="50" width="30" height="30" /> | ||
<rect x="66" y="80" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="187" y="80" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="401" y="80" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="522" y="80" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="730" y="80" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="851" y="80" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="977" y="80" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="1180" y="80" rx="10" ry="10" width="50" height="19" /> | ||
<rect x="0" y="120" rx="10" ry="10" width="100%" height="1" /> | ||
|
||
<rect x="10" y="152" rx="50" ry="50" width="30" height="30" /> | ||
<rect x="66" y="160" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="187" y="160" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="401" y="160" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="522" y="160" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="730" y="160" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="851" y="160" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="977" y="160" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="1180" y="160" rx="10" ry="10" width="50" height="19" /> | ||
<rect x="0" y="200" rx="10" ry="10" width="100%" height="1" /> | ||
|
||
<rect x="10" y="232" rx="50" ry="50" width="30" height="30" /> | ||
<rect x="66" y="240" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="187" y="240" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="401" y="240" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="522" y="240" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="730" y="240" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="851" y="240" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="977" y="240" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="1180" y="240" rx="10" ry="10" width="50" height="19" /> | ||
<rect x="0" y="280" rx="10" ry="10" width="100%" height="1" /> | ||
|
||
<rect x="10" y="312" rx="50" ry="50" width="30" height="30" /> | ||
<rect x="66" y="320" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="187" y="320" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="401" y="320" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="522" y="320" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="730" y="320" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="851" y="320" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="977" y="320" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="1180" y="320" rx="10" ry="10" width="50" height="19" /> | ||
<rect x="0" y="360" rx="10" ry="10" width="100%" height="1" /> | ||
|
||
<rect x="10" y="392" rx="50" ry="50" width="30" height="30" /> | ||
<rect x="66" y="400" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="187" y="400" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="401" y="400" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="522" y="400" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="730" y="400" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="851" y="400" rx="10" ry="10" width="85" height="19" /> | ||
<rect x="977" y="400" rx="10" ry="10" width="169" height="19" /> | ||
<rect x="1180" y="400" rx="10" ry="10" width="50" height="19" /> | ||
<rect x="0" y="440" rx="10" ry="10" width="100%" height="1" /> | ||
|
||
</svg> | ||
</div> | ||
</template> |
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
Oops, something went wrong.