Skip to content

Instantly share code, notes, and snippets.

@ryedin
Created October 13, 2014 16:50
Show Gist options
  • Save ryedin/d6144639dc4a5ac325f2 to your computer and use it in GitHub Desktop.
Save ryedin/d6144639dc4a5ac325f2 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#ace_element {
width: 330px;
height: 280px;
}
#core_card {
position: absolute;
width: 550px;
height: 560px;
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;
left: 810px;
top: 50px;
background-color: rgb(255, 255, 255);
}
#paper_calculator {
width: 540px;
height: 590px;
left: 160px;
top: 110px;
position: absolute;
}
</style>
<core-card id="core_card" layout vertical>
<ace-element value="function test() {
var x = true;
}" editorvalue="function test() {
var x = true;
}" id="ace_element">function test() {
var x = true;
}</ace-element>
</core-card>
<paper-calculator responsivewidth="2000px" id="paper_calculator"></paper-calculator>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment