forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolors.vue
More file actions
63 lines (56 loc) · 1.65 KB
/
colors.vue
File metadata and controls
63 lines (56 loc) · 1.65 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
<div>
<div class="layout-padding text-center" id="view-colors">
<h5>Main Colors</h5>
<div
class="main-color shadow-1 row inline items-center justify-center text-white"
v-for="color in mainColors"
:class="'bg-' + color"
>
{{color}}
</div>
<div
class="main-color shadow-1 row inline items-center justify-center text-dark"
v-for="color in mainLightColors"
:class="'bg-' + color"
>
{{color}}
</div>
<h5>Full Palette</h5>
<div class="detail" v-for="color in colors">
<h5 class="detailed-color shadow-1 column items-center justify-center text-white" :class="'bg-' + color">{{color}}</h5>
<div class="detailed-color column items-center justify-center" v-for="n in 14" :class="'bg-' + color + '-' + (n+1)">{{color}}-{{(n+1)}}</div>
</div>
</div>
</div>
</template>
<script>
export default {
data () {
return {
mainColors: ['primary', 'secondary', 'tertiary', 'positive', 'negative', 'info', 'warning', 'faded', 'dark'],
mainLightColors: ['white', 'light'],
colors: ['red', 'pink', 'purple', 'deep-purple', 'indigo', 'blue', 'light-blue', 'cyan', 'teal', 'green', 'light-green', 'lime', 'yellow', 'amber', 'orange', 'deep-orange', 'brown', 'grey', 'blue-grey']
}
}
}
</script>
<style lang="styl">
#view-colors
div.main-color
width 110px
margin 5px
height 40px
.detailed-color
width 100%
div.detailed-color
height 55px
div.detail
margin-bottom 25px
max-width 400px
min-width 135px
display inline-block
margin-right 5px
h5
margin-bottom 5px
</style>