[geeklog-cvs] geeklog: Renamed tooltip style to gl-tooltip so there would be l...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Apr 10 13:29:08 EDT 2011


changeset 8221:64ac08250166
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/64ac08250166
user: Tom <websitemaster at cogeco.net>
date: Sun Apr 10 13:28:00 2011 -0400
description:
Renamed tooltip style to gl-tooltip so there would be less chance of conflicts.

diffstat:

 public_html/javascript/fix_tooltips.js                        |   2 +-
 public_html/layout/professional/style.css                     |  13 +++++-----
 public_html/layout/professional_css/css/tooltips/tooltips.css |  13 +++++-----
 public_html/lib-common.php                                    |   4 +-
 4 files changed, 17 insertions(+), 15 deletions(-)

diffs (116 lines):

diff -r 7d316bccf75e -r 64ac08250166 public_html/javascript/fix_tooltips.js
--- a/public_html/javascript/fix_tooltips.js	Sun Apr 10 13:22:37 2011 -0400
+++ b/public_html/javascript/fix_tooltips.js	Sun Apr 10 13:28:00 2011 -0400
@@ -2,7 +2,7 @@
 $(document).ready(function() {
     var fix_tooltips = function() {
         // fix each tooltip
-        $('.tooltip').each(function() {
+        $('.gl-tooltip').each(function() {
             // size of the viewport
             var $w = $(window);
             var viewport_height = parseInt($w.height());
diff -r 7d316bccf75e -r 64ac08250166 public_html/layout/professional/style.css
--- a/public_html/layout/professional/style.css	Sun Apr 10 13:22:37 2011 -0400
+++ b/public_html/layout/professional/style.css	Sun Apr 10 13:28:00 2011 -0400
@@ -1011,30 +1011,31 @@
 }
 
 /* Common CSS for on-hover tooltip feature */
-a.tooltip {
+a.gl-tooltip {
     border-bottom: 1px dotted #000000; color: #000000; outline: none;
     text-decoration: none;
     position: relative;
 }
-a.tooltip span {
+a.gl-tooltip span {
     margin-left: -999em;
     position: absolute;
+    text-align: left;
 }
-a.tooltip:hover span {
+a.gl-tooltip:hover span {
     border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; 
     box-shadow: 2px 2px 8px #666; -webkit-box-shadow: 2px 2px 8px #666; -moz-box-shadow: 2px 2px 8px #666;
     font-family: Calibri, Tahoma, Geneva, sans, sans-serif;
     position: absolute; left: 2.2em; top: 2.2em; z-index: 99;
     margin-left: 0; width: 250px;
 }
-a.tooltip:hover img.icon {
+a.gl-tooltip:hover img.icon {
     border: 0; margin: -15px 0 0 -51px;
     float: left; position: absolute;
 }
-a.tooltip img#tooltip-icon { 
+a.gl-tooltip img#gl-tooltip-icon { 
     border: 0;
 }
-a.tooltip:hover em {
+a.gl-tooltip:hover em {
     font-family: Candara, Tahoma, Geneva, sans, sans-serif; font-size: 1.2em; font-weight: bold;
     display: block; padding: 0.2em 0 0.6em 0.4em;
 }
diff -r 7d316bccf75e -r 64ac08250166 public_html/layout/professional_css/css/tooltips/tooltips.css
--- a/public_html/layout/professional_css/css/tooltips/tooltips.css	Sun Apr 10 13:22:37 2011 -0400
+++ b/public_html/layout/professional_css/css/tooltips/tooltips.css	Sun Apr 10 13:28:00 2011 -0400
@@ -15,16 +15,17 @@
   Tooltips 
 --------------------------------------*/
 
-a.tooltip {
+a.gl-tooltip {
     border-bottom: 1px dotted #000000; color: #000000; outline: none;
     text-decoration: none;
     position: relative;
 }
-a.tooltip span {
+a.gl-tooltip span {
     margin-left: -999em;
     position: absolute;
+    text-align: left;
 }
-a.tooltip:hover span {
+a.gl-tooltip:hover span {
     border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; 
     box-shadow: 2px 2px 8px #666; -webkit-box-shadow: 2px 2px 8px #666; -moz-box-shadow: 2px 2px 8px #666;
     font-size: 1em; text-align: left; white-space:normal;
@@ -32,14 +33,14 @@
     position: absolute; left: 2.2em; top: 2.2em; z-index: 99;
     margin-left: 0; width: 250px;
 }
-a.tooltip:hover img.icon {
+a.gl-tooltip:hover img.icon {
     border: 0; margin: -15px 0 0 -51px;
     float: left; position: absolute;
 }
-a.tooltip img#tooltip-icon { 
+a.gl-tooltip img#gl-tooltip-icon { 
     border: 0;
 }
-a.tooltip:hover em {
+a.gl-tooltip:hover em {
     font-family: Candara, Tahoma, Geneva, sans, sans-serif; font-size: 1.2em; font-weight: bold;
     display: block; padding: 0.2em 0 0.6em 0.4em;
 }
diff -r 7d316bccf75e -r 64ac08250166 public_html/lib-common.php
--- a/public_html/lib-common.php	Sun Apr 10 13:22:37 2011 -0400
+++ b/public_html/lib-common.php	Sun Apr 10 13:28:00 2011 -0400
@@ -6752,7 +6752,7 @@
 * @return   string              HTML tooltip
 *
 */
-function COM_Tooltip($hoverover = '', $text = '', $link = '', $title = '', $template = 'classic', $class = 'tooltip') 
+function COM_Tooltip($hoverover = '', $text = '', $link = '', $title = '', $template = 'classic', $class = 'gl-tooltip') 
 {
     global $_CONF, $_IMAGE_TYPE, $_SCRIPTS;
     
@@ -6763,7 +6763,7 @@
     }
 
     if ($hoverover == '') {
-        $hoverover = '<img alt="?" id="tooltip-icon" src="' . $_CONF['layout_url'] . '/tooltips/images/tooltip.' . $_IMAGE_TYPE . '"' . XHTML . '>';   
+        $hoverover = '<img alt="?" id="gl-tooltip-icon" src="' . $_CONF['layout_url'] . '/tooltips/images/tooltip.' . $_IMAGE_TYPE . '"' . XHTML . '>';   
     }
     
     $tooltip = COM_newTemplate($_CONF['path_layout'] .'tooltips/');



More information about the geeklog-cvs mailing list