init project

This commit is contained in:
saeid
2019-04-14 21:13:55 +04:30
commit 9f2acb855c
213 changed files with 124305 additions and 0 deletions
@@ -0,0 +1,49 @@
<template>
<div
:style="styles"
:class="classes"
class="v-offset"
>
<slot />
</div>
</template>
<script>
export default {
props: {
fullWidth: {
type: Boolean,
default: false
},
offset: {
type: [Number, String],
default: 0
}
},
computed: {
classes () {
return {
'v-offset--full-width': this.fullWidth
}
},
styles () {
return {
top: `-${this.offset}px`,
marginBottom: `-${this.offset}px`
}
}
}
}
</script>
<style>
.v-offset {
margin: 0 auto;
max-width: calc(100% - 32px);
position: relative;
}
.v-offset--full-width {
max-width: 100%;
}
</style>