parent
90f527ff5d
commit
dcf226aaa4
|
@ -105,6 +105,21 @@ categories:
|
|||
components:
|
||||
- name: menu
|
||||
class: mdl-menu
|
||||
snippets:
|
||||
- snippet_group:
|
||||
- caption: Lower left
|
||||
file: lower-left.html
|
||||
demo_file: lower-left-demo.html
|
||||
- caption: Lower right
|
||||
file: lower-right.html
|
||||
demo_file: lower-right-demo.html
|
||||
- snippet_group:
|
||||
- caption: Top left
|
||||
file: top-left.html
|
||||
demo_file: top-left-demo.html
|
||||
- caption: Top right
|
||||
file: top-right.html
|
||||
demo_file: top-right-demo.html
|
||||
- name: sliders
|
||||
title: Sliders
|
||||
description: Selecting a value out of a range.
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
.demo-page--menu {
|
||||
position: relative;
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.demo-menu-button-left {
|
||||
position: absolute;
|
||||
left: 24px;
|
||||
top: 250px;
|
||||
}
|
||||
|
||||
.demo-menu-button-left2 {
|
||||
position: absolute;
|
||||
left: 72px;
|
||||
top: 250px;
|
||||
}
|
||||
|
||||
.demo-menu-button-right {
|
||||
position: absolute;
|
||||
right: 24px;
|
||||
top: 250px;
|
||||
}
|
||||
|
||||
.demo-menu-button-right2 {
|
||||
position: absolute;
|
||||
right: 72px;
|
||||
top: 250px;
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
<div class="demo-preview-block demo-page--menu">
|
||||
|
||||
<button id="clickable1" class="demo-menu-button-left mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-js-menu mdl-js-ripple-effect" for="clickable1">
|
||||
<li class="mdl-menu__item">5.0 Lollipop</li>
|
||||
<li class="mdl-menu__item">4.4 KitKat</li>
|
||||
<li disabled class="mdl-menu__item">4.3 Jelly Bean</li>
|
||||
<li class="mdl-menu__item">Android History</li>
|
||||
</ul>
|
||||
|
||||
<button id="clickable2" class="demo-menu-button-left2 mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--top-left mdl-js-menu mdl-js-ripple-effect" for="clickable2">
|
||||
<li class="mdl-menu__item">5.0 Lollipop</li>
|
||||
<li class="mdl-menu__item">4.4 KitKat</li>
|
||||
<li disabled class="mdl-menu__item">4.3 Jelly Bean</li>
|
||||
<li class="mdl-menu__item">Android History</li>
|
||||
</ul>
|
||||
|
||||
<button id="clickable3" class="demo-menu-button-right2 mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="clickable3">
|
||||
<li class="mdl-menu__item">5.0 Lollipop</li>
|
||||
<li class="mdl-menu__item">4.4 KitKat</li>
|
||||
<li disabled class="mdl-menu__item">4.3 Jelly Bean</li>
|
||||
<li class="mdl-menu__item">Android History</li>
|
||||
</ul>
|
||||
|
||||
<button id="clickable4" class="demo-menu-button-right mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--top-right mdl-js-menu mdl-js-ripple-effect" for="clickable4">
|
||||
<li class="mdl-menu__item">5.0 Lollipop</li>
|
||||
<li class="mdl-menu__item">4.4 KitKat</li>
|
||||
<li disabled class="mdl-menu__item">4.3 Jelly Bean</li>
|
||||
<li class="mdl-menu__item">Android History</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
|
@ -0,0 +1,25 @@
|
|||
<style>
|
||||
.container-menu-lower-left {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
}
|
||||
.background-menu-lower-left {
|
||||
background: white;
|
||||
height: 148px;
|
||||
width: 100%;
|
||||
}
|
||||
.bar-menu-lower-left {
|
||||
box-sizing: border-box;
|
||||
background: #3F51B5;
|
||||
color: white;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-menu-lower-left mdl-shadow--2dp">
|
||||
<div class="bar-menu-lower-left">
|
||||
{% include "lower-left.html" %}
|
||||
</div>
|
||||
<div class="background-menu-lower-left"></div>
|
||||
</div>
|
|
@ -0,0 +1,12 @@
|
|||
<button id="demo-menu-lower-left"
|
||||
class="mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effect"
|
||||
for="demo-menu-lower-left">
|
||||
<li class="mdl-menu__item">Some Action</li>
|
||||
<li class="mdl-menu__item">Another Action</li>
|
||||
<li disabled class="mdl-menu__item">Disabled Action</li>
|
||||
<li class="mdl-menu__item">Yet Another Action</li>
|
||||
</ul>
|
|
@ -0,0 +1,34 @@
|
|||
<style>
|
||||
.container-menu-lower-right {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
}
|
||||
.background-menu-lower-right {
|
||||
background: white;
|
||||
height: 148px;
|
||||
width: 100%;
|
||||
}
|
||||
.bar-menu-lower-right {
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
background: #3F51B5;
|
||||
color: white;
|
||||
height: 64px;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
}
|
||||
.wrapper-menu-lower-right {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-menu-lower-right mdl-shadow--2dp">
|
||||
<div class="bar-menu-lower-right">
|
||||
<div class="wrapper-menu-lower-right">
|
||||
{% include "lower-right.html" %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="background-menu-lower-right"></div>
|
||||
</div>
|
|
@ -0,0 +1,12 @@
|
|||
<button id="demo-menu-lower-right"
|
||||
class="mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect"
|
||||
for="demo-menu-lower-right">
|
||||
<li class="mdl-menu__item">Some Action</li>
|
||||
<li class="mdl-menu__item">Another Action</li>
|
||||
<li disabled class="mdl-menu__item">Disabled Action</li>
|
||||
<li class="mdl-menu__item">Yet Another Action</li>
|
||||
</ul>
|
|
@ -0,0 +1,25 @@
|
|||
<style>
|
||||
.container-menu-top-left {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
}
|
||||
.background-menu-top-left {
|
||||
background: white;
|
||||
height: 148px;
|
||||
width: 100%;
|
||||
}
|
||||
.bar-menu-top-left {
|
||||
box-sizing: border-box;
|
||||
background: #3F51B5;
|
||||
color: white;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-menu-top-left mdl-shadow--2dp">
|
||||
<div class="background-menu-top-left"></div>
|
||||
<div class="bar-menu-top-left">
|
||||
{% include "top-left.html" %}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,12 @@
|
|||
<button id="demo-menu-top-left"
|
||||
class="mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--top-left mdl-js-menu mdl-js-ripple-effect"
|
||||
for="demo-menu-top-left">
|
||||
<li class="mdl-menu__item">Some Action</li>
|
||||
<li class="mdl-menu__item">Another Action</li>
|
||||
<li disabled class="mdl-menu__item">Disabled Action</li>
|
||||
<li class="mdl-menu__item">Yet Another Action</li>
|
||||
</ul>
|
|
@ -0,0 +1,34 @@
|
|||
<style>
|
||||
.container-menu-top-right {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
}
|
||||
.background-menu-top-right {
|
||||
background: white;
|
||||
height: 148px;
|
||||
width: 100%;
|
||||
}
|
||||
.bar-menu-top-right {
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
background: #3F51B5;
|
||||
color: white;
|
||||
height: 64px;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
}
|
||||
.wrapper-menu-top-right {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-menu-top-right mdl-shadow--2dp">
|
||||
<div class="background-menu-top-right"></div>
|
||||
<div class="bar-menu-top-right">
|
||||
<div class="wrapper-menu-top-right">
|
||||
{% include "top-right.html" %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,12 @@
|
|||
<button id="demo-menu-top-right"
|
||||
class="mdl-button mdl-js-button mdl-button--icon">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--top-right mdl-js-menu mdl-js-ripple-effect"
|
||||
for="demo-menu-top-right">
|
||||
<li class="mdl-menu__item">Some Action</li>
|
||||
<li class="mdl-menu__item">Another Action</li>
|
||||
<li disabled class="mdl-menu__item">Disabled Action</li>
|
||||
<li class="mdl-menu__item">Yet Another Action</li>
|
||||
</ul>
|
Loading…
Reference in New Issue