Blame view

bower_components/paper-button/demo/index.html 5.23 KB
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <!doctype html>
  <!--
  @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
  -->
  
  <html>
  <head>
  
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
  
    <title>paper-button demo</title>
  
    <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
a1a3bc73   Luigi Serra   graphs updates
22
    <link rel="import" href="../../paper-styles/color.html">
c5169e0e   Renato De Donato   a new hope
23
24
    <link rel="import" href="../../paper-styles/demo-pages.html">
    <link rel="import" href="../../iron-icons/iron-icons.html">
73bcce88   luigser   COMPONENTS
25
26
    <link rel="import" href="../paper-button.html">
  
c5169e0e   Renato De Donato   a new hope
27
28
29
    <style is="custom-style">
      .horizontal-section {
        min-width: 130px;
73bcce88   luigser   COMPONENTS
30
      }
c5169e0e   Renato De Donato   a new hope
31
  
73bcce88   luigser   COMPONENTS
32
      paper-button {
c5169e0e   Renato De Donato   a new hope
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
        display: block;
        margin-bottom: 24px;
      }
  
      paper-button.colorful {
        color: #4285f4;
      }
  
      paper-button[raised].colorful {
        background: #4285f4;
        color: #fff;
      }
  
      paper-button[toggles] {
        transition: all 0.3s;
      }
  
      paper-button[toggles][active] {
        background-color: rgba(0, 0, 0, 0.25);
      }
  
      paper-button[toggles][active].colorful {
        background-color: rgba(66, 133, 244, 0.25);
      }
  
      paper-button[toggles][active][raised].colorful {
        background-color: rgba(66, 133, 244, 0.75);
      }
  
      paper-button.blue {
        color: var(--paper-light-blue-500);
        --paper-button-flat-focus-color: var(--paper-light-blue-50);
73bcce88   luigser   COMPONENTS
65
      }
c5169e0e   Renato De Donato   a new hope
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
      paper-button.blue:hover {
        background: var(--paper-light-blue-50);
      }
      paper-button.red {
        color: var(--paper-red-500);
        --paper-button-flat-focus-color: var(--paper-red-50);
      }
      paper-button.red:hover {
        background: var(--paper-red-50);
      }
      paper-button.green {
        color: var(--paper-green-500);
        --paper-button-flat-focus-color: var(--paper-green-50);
      }
      paper-button.green:hover {
        background: var(--paper-green-50);
      }
      paper-button.orange {
        color: var(--paper-orange-500);
        --paper-button-flat-focus-color: var(--paper-orange-50);
      }
      paper-button.orange:hover {
        background: var(--paper-orange-50);
      }
  
      paper-button.hover:hover {
        background: #eee;
      }
  
      paper-button.ripple {
        --paper-button-ink-color: var(--paper-pink-a200);
      }
  
73bcce88   luigser   COMPONENTS
99
    </style>
c5169e0e   Renato De Donato   a new hope
100
  
73bcce88   luigser   COMPONENTS
101
102
  </head>
  <body unresolved>
c5169e0e   Renato De Donato   a new hope
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
    <div class="horizontal-section-container">
      <div>
        <h4>Flat</h4>
        <div class="horizontal-section">
          <paper-button tabindex="0">button</paper-button>
          <paper-button tabindex="0" class="colorful">colorful</paper-button>
          <paper-button tabindex="0" disabled>disabled</paper-button>
          <paper-button tabindex="0" noink>noink</paper-button>
          <paper-button tabindex="0" class="colorful custom"><iron-icon icon="check"></iron-icon>ok</paper-button>
          <paper-button tabindex="0" class="custom"><iron-icon icon="clear"></iron-icon>cancel</paper-button>
  
        </div>
      </div>
  
      <div>
        <h4>Raised</h4>
        <div class="horizontal-section">
          <paper-button tabindex="0" raised>button</paper-button>
          <paper-button tabindex="0" raised class="colorful">colorful</paper-button>
          <paper-button tabindex="0" raised disabled>disabled</paper-button>
          <paper-button tabindex="0" raised noink>noink</paper-button>
          <paper-button tabindex="0" raised class="colorful custom"><iron-icon icon="check"></iron-icon>ok</paper-button>
          <paper-button tabindex="0" raised class="custom"><iron-icon icon="clear"></iron-icon>cancel</paper-button>
        </div>
      </div>
  
      <div>
        <h4>Toggleable</h4>
        <div class="horizontal-section">
          <paper-button tabindex="0" toggles>button</paper-button>
          <paper-button tabindex="0" toggles raised noink>noink</paper-button>
          <paper-button tabindex="0" toggles active class="colorful">colorful</paper-button>
          <paper-button tabindex="0" toggles raised active class="colorful">colorful</paper-button>
          <paper-button tabindex="0" toggles class="colorful custom"><iron-icon icon="check"></iron-icon>ok</paper-button>
          <paper-button tabindex="0" toggles class="custom"><iron-icon icon="clear"></iron-icon>cancel</paper-button>
        </div>
      </div>
  
      <div>
        <h4>Color</h4>
        <div class="horizontal-section">
          <paper-button tabindex="0" class="blue ripple">button</paper-button>
          <paper-button tabindex="0" class="red ripple">noink</paper-button>
          <paper-button tabindex="0" class="orange ripple">colorful</paper-button>
          <paper-button tabindex="0" class="green ripple">colorful</paper-button>
          <paper-button tabindex="0" class="red ripple"><iron-icon icon="check"></iron-icon>ok</paper-button>
          <paper-button tabindex="0" class="blue ripple"><iron-icon icon="clear"></iron-icon>cancel</paper-button>
        </div>
      </div>
73bcce88   luigser   COMPONENTS
152
153
154
    </div>
  </body>
  </html>