Skip to content

Instantly share code, notes, and snippets.

@Livshitz
Last active August 29, 2015 14:08
Show Gist options
  • Save Livshitz/23abd1714de9c7e8215c to your computer and use it in GitHub Desktop.
Save Livshitz/23abd1714de9c7e8215c to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-ajax/core-ajax.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">
<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-header-panel/core-header-panel.html">
<link rel="import" href="../core-pages/core-pages.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-icons/core-icons.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#notification_alert {
left: 730px;
top: 380px;
position: absolute;
}
#core_ajax {
left: 620px;
top: 310px;
position: absolute;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
left: 0px;
top: 0px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#core_card {
width: 90%;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
height: 400px;
background-color: rgb(255, 255, 255);
}
#core_header_panel {
width: 100%;
height: 100%;
}
#core_toolbar {
color: rgb(255, 255, 255);
opacity: 1;
background-color: rgb(79, 125, 201);
}
#section3 {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_input1 {
padding: 15px;
}
#core_menu {
font-size: 16px;
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
}
</style>
<notification-alert message="Hi there!" icon="icon.png" name="notification" id="notification_alert"></notification-alert>
<core-ajax handleas="json" method="GET" id="core_ajax" hidden></core-ajax>
<core-animated-pages lastselected="1" selectedindex="0" notap id="core_animated_pages">
<section id="section" layout horizontal center-justified top active>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button active icon="menu" id="core_icon_button" class="selected"></core-icon-button>
<div id="div">ChallengeAccepted App</div>
</core-toolbar>
<section id="section3" center-justified layout horizontal>
<core-pages multi selectedindex="0" notap id="core_pages" selected="0">
<section id="section4" center-justified layout horizontal active>
<core-card id="core_card" layout vertical>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input willvalidate placeholder="text input" id="core_input" flex></core-input>
</core-field>
<div id="div1">hello world</div>
<core-icon icon="search" id="core_icon1"></core-icon>
<core-icon-button icon="menu" id="core_icon_button1" theme="core-light-theme"></core-icon-button>
<core-input willvalidate placeholder="Type something..." id="core_input1"></core-input>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu opened active id="core_submenu" icon="settings" label="Topics">
<core-item id="core_item" label="Topic 1" horizontal center layout active></core-item>
<core-item id="core_item1" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-submenu id="core_submenu1" icon="settings" label="Favorites">
<core-item id="core_item2" label="Favorite 1" horizontal center layout></core-item>
<core-item id="core_item3" label="Favorite 2" horizontal center layout></core-item>
<core-item id="core_item4" label="Favorite 3" horizontal center layout></core-item>
</core-submenu>
</core-menu>
</core-card>
</section>
<section id="section5">Page Two</section>
</core-pages>
</section>
</core-header-panel>
</section>
<section id="section1">
</section>
<section id="section2">
</section>
</core-animated-pages>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment