Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: third_party/polymer/components-chromium/paper-tabs/paper-tabs.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
10 <!--
11 `paper-tabs` is a `core-selector` styled to look like tabs. Tabs make it easy to
12 explore and switch between different views or functional aspects of an app, or
13 to browse categorized data sets.
14
15 Use `selected` property to get or set the selected tab.
16
17 Example:
18
19 <paper-tabs selected="0">
20 <paper-tab>TAB 1</paper-tab>
21 <paper-tab>TAB 2</paper-tab>
22 <paper-tab>TAB 3</paper-tab>
23 </paper-tabs>
24
25 See <a href="#paper-tab">paper-tab</a> for more information about
26 `paper-tab`.
27
28 Styling tabs:
29
30 To change the sliding bar color:
31
32 paper-tabs.pink::shadow #selectionBar {
33 background-color: #ff4081;
34 }
35
36 @group Paper Elements
37 @element paper-tabs
38 @extends core-selector
39 @homepage github.io
40 -->
41
42 <link rel="import" href="../core-selector/core-selector.html">
43 <link rel="import" href="paper-tab.html">
44
45 <polymer-element name="paper-tabs" extends="core-selector" attributes="noink nob ar" role="tablist" assetpath="">
46 <template>
47
48 <link rel="stylesheet" href="paper-tabs.css">
49
50 <div id="tabsContainer" horizontal="" layout="">
51
52 <shadow></shadow>
53 <div id="selectionBar" hidden?="{{nobar}}" on-transitionend="{{barTransition End}}"></div>
54
55 </div>
56
57 </template>
58
59 </polymer-element>
60 <script src="paper-tabs-extracted.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698