Skip to content

Instantly share code, notes, and snippets.

@lyuehh
Last active August 29, 2015 14:14
Show Gist options
  • Save lyuehh/89ed7567dffef3adfc27 to your computer and use it in GitHub Desktop.
Save lyuehh/89ed7567dffef3adfc27 to your computer and use it in GitHub Desktop.
designer
<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="../notification-elements/notification-alert.html">
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../paper-input/paper-input.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;
}
#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;
}
#notification_alert {
left: 780px;
top: 350px;
position: absolute;
}
#ace_element {
width: 400px;
height: 300px;
left: 650px;
top: 220px;
position: absolute;
}
#paper_button {
left: 1143px;
top: 240px;
position: absolute;
}
#paper_calculator {
width: 400px;
height: 560px;
left: 440px;
top: 190px;
position: absolute;
}
#paper_ripple {
width: 300px;
height: 300px;
left: 1190px;
top: 390px;
position: absolute;
}
#paper_tab {
width: 120px;
height: 40px;
left: 280px;
top: 230px;
position: absolute;
}
#paper_toast {
left: 0px;
top: 0px;
position: absolute;
}
#div1 {
height: 100%;
width: 100%;
overflow: hidden;
left: 0px;
top: 0px;
position: absolute;
}
#paper_input {
left: 490px;
top: 300px;
position: absolute;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">222运维数据平台</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>
<notification-alert message="Hi there!" icon="icon.png" name="notification" id="notification_alert"></notification-alert>
<ace-element id="ace_element">function test() {
var x = true;
}</ace-element>
<paper-button id="paper_button">button</paper-button>
<paper-calculator responsivewidth="2000px" expression="96+3" result="99" id="paper_calculator"></paper-calculator>
<paper-ripple id="paper_ripple"></paper-ripple>
<paper-tab id="paper_tab" inline flex center-center horizontal layout>TAB</paper-tab>
<paper-toast text="Toast!" id="paper_toast" class="core-transition core-transition-bottom" touch-action="none"></paper-toast>
<div id="div1">
<topeka-app selected="leaderboard" connected="{{ $.datasource.connected }}" id="app" user='{"name":"3 3","avatar":6,"score":0}' categories="[]" fit vertical layout></topeka-app>
<topeka-datasource url="../topeka-elements/categories.json" id="datasource" hidden></topeka-datasource>
</div>
<paper-input label="Type something..." id="paper_input"></paper-input>
</core-scaffold>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment