Created
July 21, 2014 09:27
-
-
Save dominik0711/f8257e32e11d802b72db to your computer and use it in GitHub Desktop.
designer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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-icons/core-icons.html"> | |
| <link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
| <link rel="import" href="../core-field/core-field.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <link rel="import" href="../core-input/core-input.html"> | |
| <link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
| <link rel="import" href="../paper-item/paper-item.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| box-sizing: border-box; | |
| } | |
| #app_toolbar { | |
| right: 0px; | |
| left: 0px; | |
| color: rgb(255, 255, 255); | |
| fill: rgb(255, 255, 255); | |
| top: 0px; | |
| position: absolute; | |
| background-color: rgb(34, 187, 213); | |
| } | |
| #core_drawer_panel { | |
| position: absolute; | |
| top: 60px; | |
| right: 0px; | |
| bottom: 0px; | |
| left: 0px; | |
| } | |
| #left_content { | |
| box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
| background-color: rgb(250, 250, 250); | |
| } | |
| #section1 { | |
| height: 100%; | |
| box-sizing: border-box; | |
| background-color: rgb(255, 255, 255); | |
| } | |
| #left_toolbar { | |
| right: 0px; | |
| color: rgb(255, 255, 255); | |
| fill: rgb(255, 255, 255); | |
| background-color: rgb(189, 189, 189); | |
| } | |
| #core_toolbar2 { | |
| right: 0px; | |
| color: rgb(255, 255, 255); | |
| fill: rgb(255, 255, 255); | |
| background-color: rgb(238, 238, 238); | |
| } | |
| #core_icon_button1 { | |
| opacity: 1; | |
| } | |
| #paper_item { | |
| color: rgb(43, 175, 43); | |
| } | |
| #paper_item1 { | |
| color: rgb(43, 175, 43); | |
| } | |
| #paper_item2 { | |
| color: rgb(43, 175, 43); | |
| } | |
| #search-icon { | |
| height: 24px; | |
| width: 24px; | |
| color: rgb(250, 250, 250); | |
| } | |
| #core_drawer_panel1 { | |
| right: 0px; | |
| bottom: 0px; | |
| } | |
| #section { | |
| box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
| background-color: rgb(250, 250, 250); | |
| } | |
| #section2 { | |
| height: 100%; | |
| box-sizing: border-box; | |
| background-color: rgb(221, 221, 221); | |
| } | |
| #core_toolbar { | |
| right: 0px; | |
| color: rgb(255, 255, 255); | |
| fill: rgb(255, 255, 255); | |
| background-color: rgb(238, 238, 238); | |
| } | |
| #core_toolbar1 { | |
| right: 0px; | |
| color: rgb(255, 255, 255); | |
| fill: rgb(255, 255, 255); | |
| background-color: rgb(185, 185, 185); | |
| } | |
| #core_field { | |
| width: 150px; | |
| } | |
| </style> | |
| <core-toolbar id="app_toolbar"> | |
| <paper-icon-button icon="menu" id="core_icon_button" on-tap="{{ toggleLeftDrawer }}"></paper-icon-button> | |
| <div id="div" flex></div> | |
| <core-field id="core_field" icon="search" theme="core-light-theme" horizontal layout center> | |
| <core-icon icon="search" id="search-icon"></core-icon> | |
| <core-input placeholder="text input" id="search_input" flex></core-input> | |
| </core-field> | |
| <paper-icon-button icon="info-outline" id="info-outline" on-tap="{{ toggleInfoDrawer }}"></paper-icon-button> | |
| <paper-icon-button icon="more-vert" id="paper_icon_button" on-tap="{{ toggleRightDrawer }}"></paper-icon-button> | |
| </core-toolbar> | |
| <core-drawer-panel selected="main" id="core_drawer_panel"> | |
| <section id="left_content" drawer> | |
| <core-toolbar id="left_toolbar"> | |
| <paper-icon-button icon="arrow-back" id="core_icon_button1"></paper-icon-button> | |
| <div id="div1" flex>Projekte</div> | |
| <paper-icon-button icon="add-circle" id="core_icon_button2" on-tap="{{ createProject }}" theme="core-light-theme"></paper-icon-button> | |
| </core-toolbar> | |
| <paper-item label="Demag AG - Komplex C" icon="folder" id="paper_item" on-tap="{{ showProject }}" horizontal layout center></paper-item> | |
| <paper-item label="Deufringer Stadtpark" icon="folder" id="paper_item1" on-tap="{{ showProject }}" center horizontal layout></paper-item> | |
| <paper-item label="Rennstraße 12A" icon="folder" id="paper_item2" on-tap="{{ showProject }}" center horizontal layout></paper-item> | |
| </section> | |
| <section id="section1" main> | |
| <core-toolbar id="core_toolbar2"> | |
| <paper-icon-button icon="menu" id="core_icon_button3"></paper-icon-button> | |
| <div id="div2" flex>Main content</div> | |
| </core-toolbar> | |
| <core-drawer-panel selected="main" id="core_drawer_panel1"> | |
| <section id="section" right-drawer> | |
| <core-toolbar id="core_toolbar"> | |
| <paper-icon-button icon="menu" id="core_icon_button4"></paper-icon-button> | |
| <div id="div3" flex>Toolbar</div> | |
| </core-toolbar> | |
| </section> | |
| <section id="section2" main> | |
| <core-toolbar id="core_toolbar1"> | |
| <paper-icon-button icon="menu" id="core_icon_button5"></paper-icon-button> | |
| <div id="div4" flex>Information</div> | |
| </core-toolbar> | |
| </section> | |
| </core-drawer-panel> | |
| </section> | |
| </core-drawer-panel> | |
| </template> | |
| <script> | |
| Polymer('my-element', { | |
| createProject: function () { | |
| console.log('Create new project'); | |
| }, | |
| showProject: function () { | |
| console.log('Show project'); | |
| }, | |
| toggleLeftDrawer: function () { | |
| console.log('Toggle left drawer'); | |
| }, | |
| toggleRightDrawer: function () { | |
| console.log('Toggle right drawer'); | |
| }, | |
| toggleInfoDrawer: function () { | |
| console.log('Toggle info drawer'); | |
| } | |
| }); | |
| </script> | |
| </polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment