forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathElevationView.vue
executable file
·40 lines (36 loc) · 1.12 KB
/
ElevationView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template lang="pug">
.view(id="elevation-view")
v-layout(row)
v-flex(xs12 sm8 md12)
section-def
dt(slot="title") Elevation
dd(slot="desc") The elevation helpers allow you to control relative depth, or distance, between two surfaces along the z-axis.
ad
section
h6 Variants
p.mb-5 There's a total of 25 elevation levels. You can set an element's elevation by using the class <code>elevation-N</code>, where N is a integer between 0-24 corresponding to the desired elevation.
h6 Playground
v-container(fluid)
v-layout(row)
v-flex(xs4)
v-slider(prepend-icon="fa-arrows-h" v-model="selected" min="0" max="24" thumb-label)
v-flex(xs6 offset-xs1)
v-card(v-bind:class="{ [`elevation-${selected}`]: true }")
v-card-text
p.text-xs-center.ma-0 Elevation {{ selected }}
</template>
<script>
export default {
name: 'elevation-view',
data () {
return {
selected: 0
}
}
}
</script>
<style lang="stylus">
#display-view
.toolbar
height: 64px
</style>