summaryrefslogtreecommitdiff
path: root/chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-04 14:17:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-05 10:05:06 +0000
commit39d357e3248f80abea0159765ff39554affb40db (patch)
treeaba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css
parent87778abf5a1f89266f37d1321b92a21851d8244d (diff)
downloadqtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2 Change-Id: I20d43c737f82764d857ada9a55586901b18b9243 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css')
-rw-r--r--chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css104
1 files changed, 104 insertions, 0 deletions
diff --git a/chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css b/chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css
new file mode 100644
index 00000000000..aa24c39fcaa
--- /dev/null
+++ b/chromium/third_party/catapult/third_party/polymer/components/core-tooltip/core-tooltip.css
@@ -0,0 +1,104 @@
+/* Copyright (c) 2014 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 */
+
+:host {
+ box-sizing: border-box;
+ position: relative;
+ display: inline-block;
+ outline: none;
+}
+
+:host(:hover:not([disabled])) .core-tooltip {
+ visibility: visible !important;
+}
+
+:host([focused]) .core-tooltip {
+ visibility: visible !important;
+}
+
+.core-tooltip:not(.show) {
+ visibility: hidden;
+}
+
+.core-tooltip {
+ position: absolute;
+ font-size: 10px;
+ font-weight: 500;
+ padding: 8px;
+ color: white;
+ background-color: rgba(0, 0, 0, 0.9);
+ box-sizing: border-box;
+ border-radius: 3px; /* TODO: not in spec. */
+ white-space: nowrap;
+ line-height: 6px;
+ z-index: 1002; /* TODO: this is brittle. */
+ -webkit-user-select: none;
+ user-select: none;
+}
+
+:host([large]) .core-tooltip {
+ line-height: 14px;
+ font-size: 14px;
+ padding: 16px;
+}
+
+.core-tooltip.noarrow::after {
+ display: none;
+}
+
+.core-tooltip::after {
+ position: absolute;
+ border: solid transparent;
+ content: '';
+ height: 0;
+ width: 0;
+ border-width: 4px;
+}
+
+.top {
+ margin-bottom: 10px; /* TODO: not specified in spec */
+ bottom: 100%;
+}
+
+.right {
+ margin-left: 10px; /* TODO: not specified in spec */
+ left: 100%;
+}
+
+.bottom {
+ top: 100%;
+ margin-top: 10px; /* TODO: not specified in spec */
+}
+
+.left {
+ margin-right: 10px; /* TODO: not specified in spec */
+ right: 100%;
+}
+
+.core-tooltip.bottom::after {
+ bottom: 100%;
+ left: calc(50% - 4px);
+ border-bottom-color: rgba(0,0,0,0.8);
+}
+
+.core-tooltip.left::after {
+ left: 100%;
+ top: calc(50% - 4px);
+ border-left-color: rgba(0,0,0,0.8);
+}
+
+.core-tooltip.top::after {
+ top: 100%;
+ left: calc(50% - 4px);
+ border-top-color: rgba(0,0,0,0.8);
+}
+
+.core-tooltip.right::after {
+ right: 100%;
+ top: calc(50% - 4px);
+ border-right-color: rgba(0,0,0,0.8);
+}