Service workers: Allow HTTPS pages arrived at via HTTP redirect to use SW
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-tooltip / paper-tooltip.html
blob32eacd4b0268df49e2106504e799bcf4a9d9daa8
1 <!--
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.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/CONTRIBUTORS.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/PATENTS.txt
8 --><html><head><link rel="import" href="../polymer/polymer.html">
9 <link rel="import" href="../neon-animation/neon-animation-runner-behavior.html">
10 <link rel="import" href="../neon-animation/animations/fade-in-animation.html">
11 <link rel="import" href="../neon-animation/animations/fade-out-animation.html">
12 <!--
14 `<paper-tooltip>` is a label that appears on hover and focus when the user
15 hovers over an element with the cursor or with the keyboard. It will be centered
16 to an anchor element specified in the `for` attribute, or, if that doesn't exist,
17 centered to the parent node containing it.
19 Example:
21 <div style="display:inline-block">
22 <button>Click me!</button>
23 <paper-tooltip>Tooltip text</paper-tooltip>
24 </div>
26 <div>
27 <button id="btn">Click me!</button>
28 <paper-tooltip for="btn">Tooltip text</paper-tooltip>
29 </div>
31 ### Styling
33 The following custom properties and mixins are available for styling:
35 Custom property | Description | Default
36 ----------------|-------------|----------
37 `--paper-tooltip-background` | The background color of the tooltip | `#616161`
38 `--paper-tooltip-opacity` | The opacity of the tooltip | `0.9`
39 `--paper-tooltip-text-color` | The text color of the tooltip | `white`
40 `--paper-tooltip` | Mixin applied to the tooltip | `{}`
42 @group Paper Elements
43 @element paper-tooltip
44 @demo demo/index.html
45 -->
47 </head><body><dom-module id="paper-tooltip">
48 <style>
49 :host {
50 display: block;
51 position: absolute;
52 outline: none;
53 z-index: 1002;
56 #tooltip {
57 display: block;
58 outline: none;
59 @apply(--paper-font-common-base);
60 font-size: 10px;
62 background-color: var(--paper-tooltip-background, #616161);
63 opacity: var(--paper-tooltip-opacity, 0.9);
64 color: var(--paper-tooltip-text-color, white);
66 padding: 8px;
67 border-radius: 2px;
69 @apply(--paper-tooltip);
72 /* Thanks IE 10. */
73 .hidden {
74 display: none !important;
76 </style>
77 <template>
78 <div id="tooltip" class="hidden">
79 <content></content>
80 </div>
81 </template>
82 </dom-module>
83 <script src="paper-tooltip-extracted.js"></script></body></html>