Commit 9c8b3e0352531bc55c2fd260d1396d0f01dba41b
1 parent
c8b0cab7
Exists in
master
and in
9 other branches
fixing tooltips position
Showing
2 changed files
with
8 additions
and
5 deletions
Show diff stats
theme.js
... | ... | @@ -184,8 +184,8 @@ $('#link-buscar').click(function(e) { |
184 | 184 | |
185 | 185 | $('[data-toggle="tooltip"]').tooltip({ |
186 | 186 | position: { |
187 | - my: "top-82", | |
188 | - at: "center" | |
187 | + my: "center bottom-10", | |
188 | + at: "center top" | |
189 | 189 | }, |
190 | 190 | tooltipClass: "ui-tooltip-top" |
191 | 191 | }); |
... | ... | @@ -196,8 +196,8 @@ $('#link-buscar').click(function(e) { |
196 | 196 | |
197 | 197 | $('[data-toggle="tooltip"]').tooltip({ |
198 | 198 | position: { |
199 | - my: "bottom+82", | |
200 | - at: "center" | |
199 | + my: "center top+10", | |
200 | + at: "center bottom" | |
201 | 201 | }, |
202 | 202 | tooltipClass: "ui-tooltip-bottom" |
203 | 203 | }); | ... | ... |
tooltip.css
... | ... | @@ -7,6 +7,10 @@ |
7 | 7 | color: white; |
8 | 8 | padding: 15px 10px 15px 20px; |
9 | 9 | border: 0px !important; |
10 | + width: -moz-fit-content; | |
11 | + width: -webkit-fit-content; | |
12 | + width: fit-content; | |
13 | + max-width:280px; | |
10 | 14 | } |
11 | 15 | |
12 | 16 | .ui-tooltip-bottom:after { |
... | ... | @@ -34,4 +38,3 @@ |
34 | 38 | border-width: 6px; |
35 | 39 | margin-left: -6px; |
36 | 40 | } |
37 | - | ... | ... |