From 9c8b3e0352531bc55c2fd260d1396d0f01dba41b Mon Sep 17 00:00:00 2001 From: ArthurJahn Date: Mon, 27 Jul 2015 17:00:34 -0300 Subject: [PATCH] fixing tooltips position --- theme.js | 8 ++++---- tooltip.css | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/theme.js b/theme.js index 07f090e..ea128eb 100644 --- a/theme.js +++ b/theme.js @@ -184,8 +184,8 @@ $('#link-buscar').click(function(e) { $('[data-toggle="tooltip"]').tooltip({ position: { - my: "top-82", - at: "center" + my: "center bottom-10", + at: "center top" }, tooltipClass: "ui-tooltip-top" }); @@ -196,8 +196,8 @@ $('#link-buscar').click(function(e) { $('[data-toggle="tooltip"]').tooltip({ position: { - my: "bottom+82", - at: "center" + my: "center top+10", + at: "center bottom" }, tooltipClass: "ui-tooltip-bottom" }); diff --git a/tooltip.css b/tooltip.css index 9f89e2e..c48a1e4 100644 --- a/tooltip.css +++ b/tooltip.css @@ -7,6 +7,10 @@ color: white; padding: 15px 10px 15px 20px; border: 0px !important; + width: -moz-fit-content; + width: -webkit-fit-content; + width: fit-content; + max-width:280px; } .ui-tooltip-bottom:after { @@ -34,4 +38,3 @@ border-width: 6px; margin-left: -6px; } - -- libgit2 0.21.2