Skip to content

Commit

Permalink
Merge pull request #890 from 3YOURMIND/fix-margins-on-loading-skeletons
Browse files Browse the repository at this point in the history
feat(docs): add class to separate flex rows
  • Loading branch information
carsoli authored Jan 18, 2024
2 parents e538510 + 85171ee commit 8f4d8d7
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions packages/documentation/pages/usage/components/loadings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="column col-2">
<div class="skeleton square" />
</div>
<div class="column col-8">
<div class="column col-8 col-with-row-gap">
<div class="skeleton rectangle md" />
<div class="skeleton rectangle md" />
<div class="skeleton rectangle md" />
Expand All @@ -38,18 +38,20 @@

Rectangle skeleton with different height.

<div class="element-example">
<div class="element-example col-with-row-gap">
<div class="skeleton rectangle"/>
<div class="skeleton rectangle md"/>
<div class="skeleton rectangle md"/>
<div class="skeleton rectangle lg"/>
</div>

```html
<div class="skeleton rectangle"/>
<div class="skeleton rectangle md"/>
<div class="skeleton rectangle md"/>
<div class="skeleton rectangle lg"/>
<div class="col-with-row-gap">
<div class="skeleton rectangle"/>
<div class="skeleton rectangle md"/>
<div class="skeleton rectangle md"/>
<div class="skeleton rectangle lg"/>
</div>
```

## Spin Loading
Expand All @@ -59,7 +61,7 @@
<div class="element-example">
<div class="columns">
<div class="column col-6">
<div class="loading"/>
<div class="loading"/>
</div>
<div class="column col-6">
<div class="loading lg"/>
Expand Down Expand Up @@ -148,3 +150,11 @@ export default defineComponent({
},
})
</script>

<style scoped>
.col-with-row-gap {
display: flex;
flex-direction: column;
row-gap: 0.4rem;
}
</style>

0 comments on commit 8f4d8d7

Please sign in to comment.