Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qTips with jQuery UI CSS and ThemeRoller
30th April, 15:52
Post: #1
qTips with jQuery UI CSS and ThemeRoller
I spent some time last evening coming up with a style that is compatible with the jQuery UI CSS framework. I think what I came up with is a good starting point. I hope someone finds this useful.

JS Code
$.fn.qtip.styles.themeroller = {
        background: null,
        color: null,
           tip: {
               corner: true,
               background: null
 
           },
           border: {
               width: 5,
               radius: 3
           },
           title: {
               'background': null,
               'fontWeight': null
           },
           classes: {
               tooltip: 'ui-widget',
               tip: 'ui-widget',
               title: 'ui-widget-header',
               content: 'ui-widget-content'
           }
       };



Thanks,
David
Find all posts by this user
Quote this message in a reply
2nd May, 13:00
Post: #2
qTips with jQuery UI CSS and ThemeRoller
dfeeney Wrote:I spent some time last evening coming up with a style that is compatible with the jQuery UI CSS framework. I think what I came up with is a good starting point. I hope someone finds this useful.

JS Code
$.fn.qtip.styles.themeroller = {
        background: null,
        color: null,
           tip: {
               corner: true,
               background: null
 
           },
           border: {
               width: 5,
               radius: 3
           },
           title: {
               'background': null,
               'fontWeight': null
           },
           classes: {
               tooltip: 'ui-widget',
               tip: 'ui-widget',
               title: 'ui-widget-header',
               content: 'ui-widget-content'
           }
       };



Thanks,
David


No works in ie7.

thanks, Giuseppe
Find all posts by this user
Quote this message in a reply
4th May, 00:57
Post: #3
qTips with jQuery UI CSS and ThemeRoller
tipolosco Wrote:
dfeeney Wrote:...


No works in ie7.

thanks, Giuseppe

Thanks for catching that, Giuseppe. I had used 'null' values to force $.extend to unset certain values, but of course this performs differently in IE. I've been able to work around it by doing the following instead:

JS Code
$.fn.qtip.styles['defaults'].background=undefined;
$.fn.qtip.styles['defaults'].color=undefined;
$.fn.qtip.styles['defaults'].tip.background=undefined;
$.fn.qtip.styles['defaults'].title.background=undefined;
$.fn.qtip.styles['defaults'].title.fontWeight = undefined;
 
$.fn.qtip.styles.themeroller = {
   border: {
       width: 5,
       radius: 3
   },
   classes: {
       tooltip: 'ui-widget',
       tip: 'ui-widget',
       title: 'ui-widget-header',
       content: 'ui-widget-content'
   },
   width: {
       min:"300",
       max:"1000"
   }
};


This is a bit unsavory, but it works in IE 6&7. I found that I had to set a minimum width or the tooltip would be abruptly truncated with no border, but I think this may be a more general issue.


David
Find all posts by this user
Quote this message in a reply
5th May, 12:24
Post: #4
qTips with jQuery UI CSS and ThemeRoller
works!! Good jobs!

Thanks so much!!


I added qtip in my jsf component library! qTip is the best tooltip based on open source jQuery plugin!
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] qTip and jQuery Validation QandnotU 2 3,188 17th November 10:55
Last Post: Paté
  qtip-content background in CSS interpotential 4 2,684 25th August 18:48
Last Post: interpotential
  qTip 1.0.0-rc3 & jQuery 1.4 Yeti 5 8,277 25th August 10:54
Last Post: interpotential
  [Solved] thickbox with qtips abdigadiga 1 790 30th April 17:47
Last Post: abdigadiga
  [Solved] Applying different content to multiple qTips in one call Craig 5 4,038 19th February 01:53
Last Post: teeks
  qTip pointer does not works in the latest jQuery plugin 1.4.1 babupca 1 2,276 11th February 14:17
Last Post: Craig
  How to qtip over img that is on a JQuery popup? arthur71 1 2,022 29th January 22:20
Last Post: Craig
  Custom graphics/css for the tooltip looks SuneR 1 1,713 21st December 10:44
Last Post: Craig
  how can i use qtip corner as seperate pure css? jimmy 6 2,832 24th November 12:38
Last Post: jimmy
  CSS used for Transparency/Opacity BrendonKoz 7 4,350 18th November 19:53
Last Post: smlong426



User(s) browsing this thread: 1 Guest(s)