Skip to content

Instantly share code, notes, and snippets.

@pengyuwei
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save pengyuwei/2bb9d82f4853c39feb35 to your computer and use it in GitHub Desktop.

Select an option

Save pengyuwei/2bb9d82f4853c39feb35 to your computer and use it in GitHub Desktop.

Revisions

  1. pengyuwei revised this gist Sep 26, 2014. 1 changed file with 25 additions and 17 deletions.
    42 changes: 25 additions & 17 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -1,44 +1,50 @@
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../core-icons/av-icons.html">
    <link rel="import" href="../paper-fab/paper-fab.html">
    <link rel="import" href="../topeka-elements/category-images.html">
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../paper-button/paper-button.html">
    <link rel="import" href="../paper-checkbox/paper-checkbox.html">
    <link rel="import" href="../topeka-elements/category-images.html">
    <link rel="import" href="../core-icon/core-icon.html">

    <polymer-element name="my-element">

    <template>
    <style>
    :host {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    }
    #section {
    box-sizing: border-box;
    width: 420px;
    height: 582px;
    left: 330px;
    top: 50px;
    left: 0px;
    top: 80px;
    position: absolute;
    }
    #section1 {
    left: 0px;
    top: 80px;
    position: absolute;
    background-color: rgb(255, 255, 141);
    }
    #core_icon {
    height: 256px;
    width: 256px;
    z-index: 100;
    left: 40px;
    top: 100px;
    position: absolute;
    }
    #div {
    box-sizing: border-box;
    position: relative;
    position: absolute;
    height: 80px;
    padding: 24px;
    color: rgb(255, 255, 255);
    font-size: 32px;
    left: 0px;
    top: 0px;
    background-color: rgb(255, 235, 59);
    }
    #div2 {
    @@ -51,8 +57,8 @@
    background-color: rgb(255, 64, 129);
    }
    #paper_button {
    left: 350px;
    top: 640px;
    left: 290px;
    top: 710px;
    position: absolute;
    }
    #paper_calculator {
    @@ -62,25 +68,27 @@
    top: 580px;
    }
    #paper_checkbox {
    left: 600px;
    top: 620px;
    left: 560px;
    top: 680px;
    position: absolute;
    width: 0px;
    height: 10px;
    }
    </style>
    <div id="div" class="bottom" hero hero-id="bottom">
    <span id="span">General Knowledge</span>
    </div>
    <section id="section1" class="top" flex layout horizontal center center-justified hero hero-id="top">
    </section>
    <section id="section" layout vertical>
    <div id="div" class="bottom" hero hero-id="bottom">
    <span id="span">General Knowledge</span>
    </div>
    <div id="div1" hero class="dummy"></div>
    <div id="div2" class="fab fab-0">
    <paper-fab icon="av:play-arrow" id="paper_fab" cross-fade-delayed></paper-fab>
    </div>
    <section id="section1" class="top" flex layout horizontal center center-justified hero hero-id="top">
    <core-icon icon="category-images:knowledge" id="core_icon" cross-fade-delayed designmeta="topeka-image"></core-icon>
    </section>
    </section>
    <paper-button label="Paper Button" id="paper_button"></paper-button>
    <paper-checkbox label="click me" id="paper_checkbox"></paper-checkbox>
    <core-icon icon="category-images:knowledge" id="core_icon" cross-fade-delayed designmeta="topeka-image"></core-icon>
    </template>

    <script>
  2. pengyuwei created this gist Sep 26, 2014.
    94 changes: 94 additions & 0 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,94 @@
    <link rel="import" href="../core-icons/core-icons.html">
    <link rel="import" href="../core-icons/av-icons.html">
    <link rel="import" href="../paper-fab/paper-fab.html">
    <link rel="import" href="../topeka-elements/category-images.html">
    <link rel="import" href="../core-icon/core-icon.html">
    <link rel="import" href="../paper-button/paper-button.html">
    <link rel="import" href="../paper-checkbox/paper-checkbox.html">

    <polymer-element name="my-element">

    <template>
    <style>
    :host {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    }
    #section {
    box-sizing: border-box;
    width: 420px;
    height: 582px;
    left: 330px;
    top: 50px;
    position: absolute;
    }
    #section1 {
    background-color: rgb(255, 255, 141);
    }
    #core_icon {
    height: 256px;
    width: 256px;
    z-index: 100;
    }
    #div {
    box-sizing: border-box;
    position: relative;
    height: 80px;
    padding: 24px;
    color: rgb(255, 255, 255);
    font-size: 32px;
    background-color: rgb(255, 235, 59);
    }
    #div2 {
    position: absolute;
    color: rgb(255, 255, 255);
    bottom: 50px;
    right: 24px;
    }
    #paper_fab {
    background-color: rgb(255, 64, 129);
    }
    #paper_button {
    left: 350px;
    top: 640px;
    position: absolute;
    }
    #paper_calculator {
    width: 400px;
    height: 560px;
    left: 1660px;
    top: 580px;
    }
    #paper_checkbox {
    left: 600px;
    top: 620px;
    position: absolute;
    }
    </style>
    <section id="section" layout vertical>
    <div id="div" class="bottom" hero hero-id="bottom">
    <span id="span">General Knowledge</span>
    </div>
    <div id="div1" hero class="dummy"></div>
    <div id="div2" class="fab fab-0">
    <paper-fab icon="av:play-arrow" id="paper_fab" cross-fade-delayed></paper-fab>
    </div>
    <section id="section1" class="top" flex layout horizontal center center-justified hero hero-id="top">
    <core-icon icon="category-images:knowledge" id="core_icon" cross-fade-delayed designmeta="topeka-image"></core-icon>
    </section>
    </section>
    <paper-button label="Paper Button" id="paper_button"></paper-button>
    <paper-checkbox label="click me" id="paper_checkbox"></paper-checkbox>
    </template>

    <script>

    Polymer({

    });

    </script>

    </polymer-element>