mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-14 10:13:09 +00:00
Add initial docs for Bottom Bar
This commit is contained in:
parent
ce9be7ca56
commit
000b9da639
3 changed files with 49 additions and 22 deletions
|
|
@ -33,7 +33,7 @@ Vue.use(VueMaterial.MdTheme, {
|
|||
hue: 'A200'
|
||||
}
|
||||
},
|
||||
'bottom-bar': {
|
||||
'teal': {
|
||||
primary: 'teal',
|
||||
accent: 'orange'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,11 +35,6 @@
|
|||
}
|
||||
|
||||
.page-documentation {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
background-color: lighten(#2d3234, 10%);
|
||||
color: #fff;
|
||||
|
||||
::-webkit-scrollbar {
|
||||
box-shadow: inset 1px 1px 0 rgba(#fff, .1);
|
||||
background-color: rgba(#fff, .05);
|
||||
|
|
|
|||
|
|
@ -1,28 +1,60 @@
|
|||
<template>
|
||||
<section v-md-theme="'bottom-bar'">
|
||||
<h2 class="title">Bottom Bar</h2>
|
||||
<page-container>
|
||||
<div slot="example">
|
||||
<code-section title="Bottom Bar">
|
||||
<div class="cell-phone" v-md-theme="'teal'">
|
||||
<md-bottom-bar>
|
||||
<md-bottom-bar-item md-icon="history">Recents</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="favorite" class="md-active">Favorites</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="near_me">Nearby</md-bottom-bar-item>
|
||||
</md-bottom-bar>
|
||||
</div>
|
||||
</code-section>
|
||||
|
||||
<div class="cell-phone">
|
||||
<md-bottom-bar>
|
||||
<md-bottom-bar-item md-icon="history">Recents</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="favorite" class="md-active">Favorites</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="near_me">Nearby</md-bottom-bar-item>
|
||||
</md-bottom-bar>
|
||||
<code-section title="Bottom Bar Shifting">
|
||||
<div class="cell-phone" v-md-theme="'teal'">
|
||||
<md-bottom-bar md-shift>
|
||||
<md-bottom-bar-item md-icon="ondemand_video">Movies</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="music_note">Music</md-bottom-bar-item>
|
||||
<md-bottom-bar-item class="md-active" md-icon="books">Books</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="photo">Pictures</md-bottom-bar-item>
|
||||
</md-bottom-bar>
|
||||
</div>
|
||||
</code-section>
|
||||
</div>
|
||||
|
||||
<div class="cell-phone">
|
||||
<md-bottom-bar md-shift>
|
||||
<md-bottom-bar-item md-icon="ondemand_video">Movies</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="music_note">Music</md-bottom-bar-item>
|
||||
<md-bottom-bar-item class="md-active" md-icon="books">Books</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="photo">Pictures</md-bottom-bar-item>
|
||||
</md-bottom-bar>
|
||||
<div slot="documentation">
|
||||
<code-example>
|
||||
<!-- Bottom Bar -->
|
||||
<md-bottom-bar>
|
||||
<md-bottom-bar-item md-icon="history">Recents</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="favorite" class="md-active">Favorites</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="near_me">Nearby</md-bottom-bar-item>
|
||||
</md-bottom-bar>
|
||||
|
||||
<!-- Bottom Bar Shifting -->
|
||||
<md-bottom-bar md-shift>
|
||||
<md-bottom-bar-item md-icon="ondemand_video">Movies</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="music_note">Music</md-bottom-bar-item>
|
||||
<md-bottom-bar-item class="md-active" md-icon="books">Books</md-bottom-bar-item>
|
||||
<md-bottom-bar-item md-icon="photo">Pictures</md-bottom-bar-item>
|
||||
</md-bottom-bar>
|
||||
</code-example>
|
||||
</div>
|
||||
</section>
|
||||
</page-container>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.cell-phone {
|
||||
background-color: #eee;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
ready() {
|
||||
this.$dispatch('pageTitle', 'Bottom Bar');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue