1
0
Fork 0

Spells page fully functional

This commit is contained in:
sharpshark28 2017-05-21 16:17:45 -05:00
parent 4a0adb7984
commit 5ef1c284d0
3 changed files with 107 additions and 49 deletions

View file

@ -1,6 +1,6 @@
<template>
<div id="q-app">
<q-layout>
<q-layout class="bg-light">
<nav-header-primary
slot="header"
class="toolbar dark"
@ -73,3 +73,9 @@ export default {
}
}
</script>
<style lang="stylus">
.toolbar > .q-picker-textfield
margin: 0 .75em
</style>

View file

@ -1,12 +1,36 @@
<template>
<div>
<h1>
<div class="page-spell">
<router-link
tag="button"
to="/"
class="page-back-small primary shadow-1"
>
<i>arrow_back</i>
Back
</router-link>
<router-link
tag="button"
to="/"
class="page-back-big primary circular big shadow-2"
>
<i>arrow_back</i>
</router-link>
<div class="card bg-white">
<div class="card-title bg-pink text-white">
{{spell.name}}
<span class="label circular bg-primary text-white">
{{level}}
<span class="label bg-white text-pink">
Level {{level}}
</span>
</h1>
</div>
<ol class="list no-border">
<li class="item">
<i class="item-primary">short_text</i>
<div class="item-content">
{{spell.description}}
</div>
</li>
<li class="item">
<i class="item-primary">accessibility</i>
<div class="item-content">
@ -37,14 +61,9 @@
{{spell.casting_time}}
</div>
</li>
<li class="item">
<i class="item-primary">short_text</i>
<div class="item-content">
{{spell.description}}
</div>
</li>
</ol>
</div>
</div>
</template>
<script>
@ -69,5 +88,40 @@ export default {
}
</script>
<style>
<style scoped lang="stylus">
.page-spell
width: 100%
height: 100%
position: relative
padding: 1rem
.page-back-small
margin-bottom: 1rem
.page-back-big
display: none
.card
margin: 0 auto
max-width: 40rem
.card-title .label
margin-left: .5em
.list
padding-left: 16px
.item
height: auto
.item-primary
margin: 12px 0
.item-content
margin-left: 50px
@media screen and (min-height: 800px)
.card
position: relative
top: 50%
transform: translateY(-50%)
.page-back-big
display: block
position: absolute
top: 1rem
left: 1rem
z-index: 1
.page-back-small
display: none
</style>

View file

@ -69,8 +69,6 @@ export default {
</script>
<style lang="stylus">
.toolbar > .q-picker-textfield
margin: 0 .75em
.list.striped .item:nth-child(2n).checked
background: #fff9c4
.list.striped .item:nth-child(2n+1).checked