r23867 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23866‎ | r23867 | r23868 >
Date:15:03, 8 July 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Improved tooltip layout; improved style for non-JavaScript browsers
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/SMW_tooltip.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css
@@ -245,7 +245,9 @@
246246 }
247247
248248 span.smwttpersist span.smwttcontent{ /* show persistent tooltips for non-JavaScript clients */
249 - color: #000000;
 249+ color: #888888;
 250+ font-style: italic;
 251+ font-size: 90%;
250252 }
251253
252254 span.smwttinline span.smwttcontent{ /* hide inline tooltips for non-JavaScript clients */
@@ -263,4 +265,9 @@
264266 span.smwttinline { /* colored anchors */
265267 color: #BB7700;
266268 text-decoration: none;
 269+}
 270+
 271+img.smwttimg { /* images for tooltip icons */
 272+ padding-right: 5px;
 273+ padding-left: 5px;
267274 }
\ No newline at end of file
Index: trunk/extensions/SemanticMediaWiki/skins/SMW_tooltip.js
@@ -40,7 +40,7 @@
4141 if(spans[i].className=="smwtticon"){
4242 img=document.createElement("img");
4343 img.setAttribute("src",imagePath+spans[i].innerHTML);
44 - img.setAttribute("style","padding-right: 5px; padding-left: 5px;"); // setting a CSS class here fails
 44+ img.className="smwttimg";
4545 a.replaceChild(img, a.firstChild);
4646 }
4747 //make content invisible

Status & tagging log