1 /* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
2 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
4 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
5 Code distributed by Google as part of the polymer project is also
6 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */
9 box-sizing: border-box
;
11 display: inline-block
;
14 :host
(:hover
) .polymer-tooltip
{
15 visibility: visible
!important
;
18 :host
(:focus
) .polymer-tooltip
{
19 visibility: visible
!important
;
22 .polymer-tooltip:not(.show) {
31 font-family: sans-serif
;
34 background-color: rgba
(0,0,0,0.8);
35 box-sizing: border-box
;
36 border-radius: 3px; /* TODO: not in spec. */
39 z-index: 1002; /* TODO: this is brittle. */
42 :host
([large
]) .polymer-tooltip
{
48 .polymer-tooltip.noarrow::after {
52 .polymer-tooltip::after {
54 border: solid transparent
;
62 margin-bottom: 10px; /* TODO: not specified in spec */
67 margin-left: 10px; /* TODO: not specified in spec */
73 margin-top: 10px; /* TODO: not specified in spec */
77 margin-right: 10px; /* TODO: not specified in spec */
81 .polymer-tooltip.bottom::after {
83 left: calc
(50% - 4px);
84 border-bottom-color: rgba
(0,0,0,0.8);
87 .polymer-tooltip.left::after {
90 border-left-color: rgba
(0,0,0,0.8);
93 .polymer-tooltip.top::after {
95 left: calc
(50% - 4px);
96 border-top-color: rgba
(0,0,0,0.8);
99 .polymer-tooltip.right::after {
101 top: calc
(50% - 4px);
102 border-right-color: rgba
(0,0,0,0.8);