News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

NiceTooltips

Started by digger, September 14, 2009, 06:24:52 AM

Previous topic - Next topic

Steve

Well, I'll be dipped. Thanks Oldiesmann!
DO NOT pm me for support!

IP_Board_Rules

Hello, does anybody know what css / file to change to add padding to the tool tip window and a shadow? Thank you

digger

Quote from: atanua on April 03, 2023, 12:03:43 AMHello, does anybody know what css / file to change to add padding to the tool tip window and a shadow? Thank you
You can add own styles for tooltip to /Themes/default/css/index.css

IP_Board_Rules


IP_Board_Rules

#284
Hello @digger , I did check the index.css but can unfortunately not see any code relating to the mod.

Would I need to alter this code?




[i]  // Make a tooltip.
    $tooltip = ' onmouseover="return overlib(\'' . $body . '\',

   

FGCLASS,\'' . 'nice_tooltip_fgclass' . '\',

   

BGCLASS,\'' . 'nice_tooltip_bgclass' . '\',

   

TEXTCOLOR,\'' . $modSettings['NiceTooltips_TEXTCOLOR'] . '\',

   

TEXTSIZE,\'' . $modSettings['NiceTooltips_TEXTSIZE'] . '\',

   

CAPCOLOR,\'' . $modSettings['NiceTooltips_CAPCOLOR'] . '\',

   

DELAY,' . $modSettings['NiceTooltips_DELAY'] . ',

   

CAPTION,\'' . $caption . '\',

   

CELLPAD,4,ADAPTIVE_WIDTH,HAUTO,VAUTO)" onmouseout="return nd();" ';



Thank you


Please use the code tag when posting code ~ Steve

digger

Quote from: atanua on April 05, 2023, 12:08:17 AMHello @digger , I did check the index.css but can unfortunately not see any code relating to the mod.

Would I need to alter this code?




[i]  // Make a tooltip.
    $tooltip = ' onmouseover="return overlib(\'' . $body . '\',

   

FGCLASS,\'' . 'nice_tooltip_fgclass' . '\',

   

BGCLASS,\'' . 'nice_tooltip_bgclass' . '\',

   

TEXTCOLOR,\'' . $modSettings['NiceTooltips_TEXTCOLOR'] . '\',

   

TEXTSIZE,\'' . $modSettings['NiceTooltips_TEXTSIZE'] . '\',

   

CAPCOLOR,\'' . $modSettings['NiceTooltips_CAPCOLOR'] . '\',

   

DELAY,' . $modSettings['NiceTooltips_DELAY'] . ',

   

CAPTION,\'' . $caption . '\',

   

CELLPAD,4,ADAPTIVE_WIDTH,HAUTO,VAUTO)" onmouseout="return nd();" ';



Thank you


Please use the code tag when posting code ~ Steve

You can add this css classes to the index.css file and set styles you need.

.nice_tooltip_fgclass {
}

.nice_tooltip_bgclass {
}

IP_Board_Rules


IP_Board_Rules

 :-\ Okay, I gave it a try but it did not work out.

Advertisement: