Skip to content

Instantly share code, notes, and snippets.

@kingroryg
Last active August 29, 2015 14:14
Show Gist options
  • Save kingroryg/84c46c96c9ea0e668053 to your computer and use it in GitHub Desktop.
Save kingroryg/84c46c96c9ea0e668053 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-icons/core-icons.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-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#yt_search_video {
width: 300px;
height: 300px;
left: 550px;
top: 300px;
position: absolute;
}
#core_menu_button {
left: 640px;
top: 140px;
position: absolute;
}
#core_header_panel {
width: 420px;
height: 530px;
left: 60px;
top: 40px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_icon_button1 {
left: 710px;
top: 40px;
position: absolute;
}
#section1 {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 20px;
top: 170px;
position: absolute;
}
#div1 {
box-sizing: border-box;
position: relative;
height: 240px;
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
background-color: rgb(255, 235, 59);
}
#section2 {
padding: 24px;
font-size: 16px;
background-color: rgb(238, 238, 238);
}
</style>
<yt-search-video id="yt_search_video"></yt-search-video>
<core-menu-button id="core_menu_button" icon="more-vert" selected="0" relative>
<core-item id="core_item" icon="content-cut" label="Cut" horizontal center layout></core-item>
<core-item id="core_item1" icon="content-copy" label="Copy" horizontal center layout></core-item>
<core-item id="core_item2" icon="content-paste" label="Paste" horizontal center layout></core-item>
</core-menu-button>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
<section id="section"></section>
</core-header-panel>
<core-icon-button icon="menu" id="core_icon_button1" theme="core-light-theme"></core-icon-button>
<section id="section1" layout vertical>
<div id="div1" hero>
<span id="span">Question</span>
</div>
<section id="section2" hero flex>
<span id="span1">Answer here</span>
</section>
</section>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment