Skip to content

Instantly share code, notes, and snippets.

@primiano
Last active August 29, 2015 14:13
Show Gist options
  • Save primiano/8d68a1b5da926bddb2b5 to your computer and use it in GitHub Desktop.
Save primiano/8d68a1b5da926bddb2b5 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="home-automation">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
font-size: 1.5em;
}
#core_toolbar {
right: 0px;
left: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: 0px;
background-color: rgb(79, 125, 201);
}
.dimmer {
width: 100%;
height: 4em;
}
#dimmer0::shadow #sliderKnobInner, #dimmer0::shadow #sliderBar::shadow #activeProgress {
background-color: rgb(255, 215, 0);
}
#dimmer1::shadow #sliderKnobInner, #dimmer1::shadow #sliderBar::shadow #activeProgress {
background-color: green;
}
#dimmer2::shadow #sliderKnobInner, #dimmer2::shadow #sliderBar::shadow #activeProgress {
background-color: red;
}
#dimmer3::shadow #sliderKnobInner, #dimmer3::shadow #sliderBar::shadow #activeProgress {
background-color: navy;
}
.card {
width: auto;
overflow: visible;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
margin: 1em;
padding: 1em;
text-align: center;
background-color: rgb(255, 255, 255);
}
.gpio {
width: 32%;
display: inline-block;
background-color: rgb(255, 255, 255);
}
</style>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Home Automation</div>
</core-toolbar>
<core-card id="dimmers" class="card" layout vertical>
<paper-slider value="9" id="dimmer0" class="dimmer"></paper-slider>
<paper-slider value="30" id="dimmer1" class="dimmer"></paper-slider>
<paper-slider value="38" id="dimmer2" class="dimmer"></paper-slider>
<paper-slider value="33" id="dimmer3" class="dimmer"></paper-slider>
</core-card>
<core-card id="gpios" class="card" layout horizontal>
<paper-button raised toggle class="gpio">Ampli</paper-button>
<paper-button raised toggle class="gpio">I/O 1</paper-button>
<paper-button raised toggle class="gpio">I/O 2</paper-button>
</core-card>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment