Sha256: 2d2cb310dc05e6aecdf0f0ad5571cad4c189beb1d6220d6dee5687b9a31b787a

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-styles/color.html">
<link rel="import"href="../../iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="../../paper-button/paper-button.html">

<dom-module id="item-card">
  <style is="custom-style">
    .header {
      width: 200px;
      height: 150px;
      background-color: var(--google-blue-300);
    }
    .footer {
      width: 200px;
      height: 50px;
      background-color: var(--google-blue-100);
    }
    .price {
      font-size: 20px;
      color: var(--google-blue-700);
      padding-left: 10px;
    }
    paper-button {
      background-color: var(--google-blue-500);
      color: #fff;
      margin-right: 10px;
    }
  </style>

  <template>
    <div class="header"></div>
      <div class="footer horizontal layout center">
      <div class="price flex">$<span>[[price]]</span></div>
      <paper-button raised>buy now</paper-button>
    </div>
  </template>
</dom-module>

<script>
  Polymer({
    is: 'item-card',

    properties: {
      price: {
        type: Number
      }
    }
  });
</script>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
polymer-elements-rails-1.0.1 app/assets/components/gold-elements/demo/item-card.html
polymer-elements-rails-1.0.0 app/assets/components/gold-elements/demo/item-card.html
polymer-elements-rails-1.0.0.pre.rc.1 app/assets/components/gold-elements/demo/item-card.html
polymer-gold-rails-1.0.0.pre.rc.1 app/assets/components/gold-elements/demo/item-card.html