vue-material/docs/src/pages/components/Menu.vue

110 lines
1.8 KiB
Vue
Raw Normal View History

2016-10-19 04:25:00 +00:00
<template>
<demo-page label="Components - Menu">
<div slot="examples">
<demo-example label="Default">
2016-10-19 04:25:54 +00:00
<md-menu></md-menu>
2016-10-19 04:25:00 +00:00
</demo-example>
</div>
<div slot="code">
</div>
<div slot="api">
</div>
</demo-page>
</template>
<style lang="scss">
@import '../../../../src/core/stylesheets/variables.scss';
.phone-viewport {
width: 360px;
height: 540px;
margin-right: 16px;
display: inline-block;
position: relative;
overflow: hidden;
background-color: #fff;
border: 1px solid rgba(#000, .12);
}
.custom-list {
.md-list-action {
position: absolute;
top: 8px;
right: 16px;
pointer-events: auto;
z-index: 2;
}
.md-icon {
color: rgba(#000, .26);
}
}
.complete-example {
height: 540px;
display: flex;
flex-flow: column;
position: relative;
overflow: hidden;
z-index: 1;
.md-fab {
margin: 0;
position: absolute;
bottom: -20px;
left: 16px;
box-shadow: $material-shadow-5dp;
}
.md-toolbar {
.md-icon {
color: #014e70;
}
}
.md-title {
color: #fff;
}
.md-list {
overflow: auto;
}
.md-list-action .md-icon {
color: rgba(#000, .26);
}
.md-avatar-icon .md-icon {
color: #fff !important;
}
.md-sidenav .md-list-text-container > :nth-child(2) {
color: rgba(#fff, .54);
}
.md-account-header {
.md-list-item:hover .md-button:hover {
background-color: inherit;
}
.md-avatar-list .md-list-item-container:hover {
background: none !important;
}
}
}
</style>
<script>
export default {
methods: {
toggleSidenav() {
this.$refs.sidebar.toggle();
}
}
};
</script>