Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="import" href="../core-scaffold/core-scaffold.html">
- <link rel="import" href="../core-header-panel/core-header-panel.html">
- <link rel="import" href="../core-menu/core-menu.html">
- <link rel="import" href="../core-item/core-item.html">
- <link rel="import" href="../core-icon-button/core-icon-button.html">
- <link rel="import" href="../core-toolbar/core-toolbar.html">
- <link rel="import" href="../core-menu/core-submenu.html">
- <link rel="import" href="../core-animated-pages/core-animated-pages.html">
- <link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
- <link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
- <link rel="import" href="../core-animated-pages/transitions/slide-down.html">
- <link rel="import" href="../core-animated-pages/transitions/slide-up.html">
- <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
- <polymer-element name="my-element">
- <template>
- <style>
- :host {
- position: absolute;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- #core_scaffold {
- position: absolute;
- top: 0px;
- right: 0px;
- bottom: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- }
- #core_header_panel {
- background-color: rgb(255, 255, 255);
- }
- #core_toolbar {
- color: rgb(255, 255, 255);
- background-color: rgb(79, 125, 201);
- }
- #core_menu {
- font-size: 16px;
- }
- #core_animated_pages {
- width: 100%;
- height: 100%;
- overflow: hidden;
- left: 0px;
- top: 0px;
- position: absolute;
- background-color: rgb(238, 238, 238);
- }
- #core_card {
- width: 300px;
- height: 300px;
- border-radius: 2px;
- box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
- margin: 20px;
- background-color: rgb(255, 255, 255);
- }
- #core_card1 {
- width: 300px;
- height: 300px;
- border-radius: 2px;
- box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
- margin: 20px;
- background-color: rgb(255, 255, 255);
- }
- #core_card2 {
- width: 300px;
- height: 300px;
- border-radius: 2px;
- box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
- margin: 20px;
- background-color: rgb(255, 255, 255);
- }
- #core_card3 {
- width: 300px;
- height: 300px;
- border-radius: 2px;
- box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
- margin: 20px;
- background-color: rgb(255, 255, 255);
- }
- #core_card4 {
- width: 300px;
- height: 300px;
- border-radius: 2px;
- box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
- margin: 20px;
- background-color: rgb(255, 255, 255);
- }
- #section {
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- }
- #div1 {
- margin: 20px;
- padding: 20px;
- opacity: 1;
- height: 100%;
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- }
- #core_scroll_header_panel {
- width: 380px;
- height: 460px;
- }
- #core_toolbar1 {
- color: rgb(241, 241, 241);
- fill: rgb(241, 241, 241);
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- background-color: rgb(66, 133, 244);
- }
- #section3 {
- height: 5000px;
- background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
- }
- #div2 {
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- background: red;
- }
- </style>
- <core-scaffold id="core_scaffold">
- <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
- <core-toolbar id="core_toolbar"></core-toolbar>
- <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
- <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active></core-item>
- <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
- </core-menu>
- </core-header-panel>
- <div id="div" tool>Title</div>
- <core-animated-pages transitions="tile-cascade slide-up cross-fade" selected="{{ $.core_menu.selectedIndex }}" selectedindex="0" notap id="core_animated_pages" lastselected="1">
- <section id="section" layout horizontal center center-justified flex active>
- <div id="div1" tile-cascade horizontal layout wrap justified slide-up>
- <core-card id="core_card" vertical layout></core-card>
- <core-card id="core_card1" layout vertical></core-card>
- <core-card id="core_card2" layout vertical></core-card>
- <core-card id="core_card3" layout vertical></core-card>
- <core-card id="core_card4" layout vertical></core-card>
- <core-card id="core_card5" layout vertical></core-card>
- </div>
- </section>
- <section id="section1">
- <div id="div2" layout vertical center center-justified cross-fade>1</div>
- </section>
- <section id="section2">
- </section>
- </core-animated-pages>
- </core-scaffold>
- </template>
- <script>
- Polymer({
- selectedIndex: 1
- });
- </script>
- </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement