Index: third_party/polymer/v0_8/components-chromium/paper-tabs/paper-tabs.html |
diff --git a/third_party/polymer/v0_8/components-chromium/paper-tabs/paper-tabs.html b/third_party/polymer/v0_8/components-chromium/paper-tabs/paper-tabs.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b913b79b01558573518859cb190675569c7e711e |
--- /dev/null |
+++ b/third_party/polymer/v0_8/components-chromium/paper-tabs/paper-tabs.html |
@@ -0,0 +1,193 @@ |
+<!-- |
+@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><link rel="import" href="../polymer/polymer.html"> |
+<link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> |
+<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html"> |
+<link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html"> |
+<link rel="import" href="../iron-menu-behavior/iron-menubar-behavior.html"> |
+<link rel="import" href="../iron-icon/iron-icon.html"> |
+<link rel="import" href="../paper-icon-button/paper-icon-button.html"> |
+<link rel="import" href="../paper-styles/color.html"> |
+<link rel="import" href="paper-tabs-icons.html"> |
+<link rel="import" href="paper-tab.html"> |
+ |
+<!-- |
+`paper-tabs` makes it easy to explore and switch between different views or functional aspects of |
+an app, or to browse categorized data sets. |
+ |
+Use `selected` property to get or set the selected tab. |
+ |
+Example: |
+ |
+ <paper-tabs selected="0"> |
+ <paper-tab>TAB 1</paper-tab> |
+ <paper-tab>TAB 2</paper-tab> |
+ <paper-tab>TAB 3</paper-tab> |
+ </paper-tabs> |
+ |
+See <a href="#paper-tab">paper-tab</a> for more information about |
+`paper-tab`. |
+ |
+A common usage for `paper-tabs` is to use it along with `iron-pages` to switch |
+between different views. |
+ |
+ <paper-tabs selected="{{selected}}"> |
+ <paper-tab>Tab 1</paper-tab> |
+ <paper-tab>Tab 2</paper-tab> |
+ <paper-tab>Tab 3</paper-tab> |
+ </paper-tabs> |
+ |
+ <iron-pages selected="{{selected}}"> |
+ <div>Page 1</div> |
+ <div>Page 2</div> |
+ <div>Page 3</div> |
+ </iron-pages> |
+ |
+ |
+To use links in tabs, add `link` attribute to `paper-tab` and put an `<a>` |
+element in `paper-tab`. |
+ |
+Example: |
+ |
+ <paper-tabs selected="0"> |
+ <paper-tab link> |
+ <a href="#link1" class="horizontal center-center layout">TAB ONE</a> |
+ </paper-tab> |
+ <paper-tab link> |
+ <a href="#link2" class="horizontal center-center layout">TAB TWO</a> |
+ </paper-tab> |
+ <paper-tab link> |
+ <a href="#link3" class="horizontal center-center layout">TAB THREE</a> |
+ </paper-tab> |
+ </paper-tabs> |
+ |
+### Styling |
+ |
+The following custom properties and mixins are available for styling: |
+ |
+Custom property | Description | Default |
+----------------|-------------|---------- |
+`--paper-tabs-selection-bar-color` | Color for the selection bar | `--paper-yellow-a100` |
+`--paper-tabs` | Mixin applied to the tabs | `{}` |
+ |
+@hero hero.svg |
+@demo demo/index.html |
+--> |
+ |
+</head><body><dom-module id="paper-tabs"> |
+ |
+ <style> |
+ |
+ :host { |
+ @apply(--layout); |
+ @apply(--layout-center); |
+ |
+ height: 48px; |
+ font-size: 14px; |
+ font-weight: 500; |
+ overflow: hidden; |
+ -webkit-user-select: none; |
+ -moz-user-select: none; |
+ -ms-user-select: none; |
+ user-select: none; |
+ -webkit-tap-highlight-color: rgba(0,0,0,0); |
+ |
+ @apply(--paper-tabs); |
+ } |
+ |
+ #tabsContainer { |
+ position: relative; |
+ height: 100%; |
+ white-space: nowrap; |
+ overflow: hidden; |
+ } |
+ |
+ #tabsContent { |
+ height: 100%; |
+ } |
+ |
+ #tabsContent.scrollable { |
+ position: absolute; |
+ white-space: nowrap; |
+ } |
+ |
+ .hidden { |
+ display: none; |
+ } |
+ |
+ .not-visible { |
+ opacity: 0; |
+ } |
+ |
+ paper-icon-button { |
+ width: 24px; |
+ padding: 16px; |
+ } |
+ |
+ #selectionBar { |
+ position: absolute; |
+ height: 2px; |
+ bottom: 0; |
+ left: 0; |
+ right: 0; |
+ background-color: var(--paper-tabs-selection-bar-color, --paper-yellow-a100); |
+ -webkit-transform-origin: left center; |
+ transform-origin: left center; |
+ -webkit-transform: scale(0); |
+ transform: scale(0); |
+ transition: -webkit-transform; |
+ transition: transform; |
+ |
+ @apply(--paper-tabs-selection-bar); |
+ } |
+ |
+ #selectionBar.align-bottom { |
+ top: 0; |
+ bottom: auto; |
+ } |
+ |
+ #selectionBar.expand { |
+ transition-duration: 0.15s; |
+ transition-timing-function: cubic-bezier(0.4, 0.0, 1, 1); |
+ } |
+ |
+ #selectionBar.contract { |
+ transition-duration: 0.18s; |
+ transition-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1); |
+ } |
+ |
+ #tabsContent > ::content > *:not(#selectionBar) { |
+ height: 100%; |
+ } |
+ |
+ </style> |
+ |
+ <template> |
+ |
+ <paper-icon-button icon="paper-tabs:chevron-left" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown"></paper-icon-button> |
+ |
+ <div id="tabsContainer" class="flex" on-scroll="_scroll"> |
+ |
+ <div id="tabsContent" class$="[[_computeTabsContentClass(scrollable)]]"> |
+ |
+ <content select="*"></content> |
+ |
+ <div id="selectionBar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]]" on-transitionend="_onBarTransitionEnd"></div> |
+ |
+ </div> |
+ |
+ </div> |
+ |
+ <paper-icon-button icon="paper-tabs:chevron-right" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons)]]" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown"></paper-icon-button> |
+ |
+ </template> |
+ |
+</dom-module> |
+ |
+<script src="paper-tabs-extracted.js"></script></body></html> |