OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
6 Code distributed by Google as part of the polymer project is also | |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
8 --><!-- | |
9 `paper-tab` is styled to look like a tab. It should be used in conjunction with | |
10 `paper-tabs`. | |
11 | |
12 Example: | |
13 | |
14 <paper-tabs selected="0"> | |
15 <paper-tab>TAB 1</paper-tab> | |
16 <paper-tab>TAB 2</paper-tab> | |
17 <paper-tab>TAB 3</paper-tab> | |
18 </paper-tabs> | |
19 | |
20 Styling tab: | |
21 | |
22 To change the ink color: | |
23 | |
24 .pink paper-tab::shadow #ink { | |
25 color: #ff4081; | |
26 } | |
27 | |
28 @group Paper Elements | |
29 @element paper-tab | |
30 @homepage github.io | |
31 --><html><head><link rel="import" href="../paper-ripple/paper-ripple.html"> | |
32 | |
33 </head><body><polymer-element name="paper-tab" attributes="noink" role="tab" inl
ine="" flex="" center-center="" horizontal="" layout="" assetpath=""> | |
34 <template> | |
35 | |
36 <link rel="stylesheet" href="paper-tab.css"> | |
37 | |
38 <div class="tab-content" flex="" auto="" center-center="" horizontal="" layout
=""><content></content></div> | |
39 <paper-ripple id="ink" initialopacity="0.95" opacitydecayvelocity="0.98"></pap
er-ripple> | |
40 | |
41 </template> | |
42 | |
43 </polymer-element> | |
44 <script charset="utf-8" src="paper-tab-extracted.js"></script></body></html> | |
OLD | NEW |