File:  [mozdev] / aboutconfig / www / stuff.html
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Wed Nov 29 14:26:50 2006 UTC (10 years, 10 months ago) by gruber
Branches: MAIN
CVS tags: HEAD
Adding styled microsummaries to stuff.

<!-- ***************** INFO/NEWS *************** -->
<div id="infoTabs">
<div class="infoTab" id="other-stuff">
<h5 class="infoHeader">Other Stuff</h5>
<script type="text/javascript"><!--
google_ad_client = "pub-5604756703943711";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="9529252866";
<script type="text/javascript"

<h5 class="page-header"><a id="content" name="content">Stuff</a></h5>

<P>This page collects assorted mozilla related stuff that needs a place online.

<h6>Styling microsummaries</h6>
<P> <img src="tinderbox.png" alt="screenshot" align=left hspace=10> By styling <a href="">microsummaries</a>
according to their changing content it is possible to replace several status reporting extensions
and to save statusbar real estate. Creating those microsummaries yourself is much easier than developping extensions.
As an example, let's see how one creates a microsummary replacement for the <a href="">tinderstatus extension</a>.

First, if the web site in question (in our case <code></code>) does not provide any microsummary
we need to find or write a generator. <a href="">The one I found</a> had problems parsing some of the tinderbox pages
and did not quite follow the suggested format but it got me started. See the <a href="">microsummary wiki</a>
for information about generators. You can either <a href="mozilla-tinderbox-microsummary.xml">download</a> my microsummary generator for 
tinderbox status pages or <button onclick="window.sidebar.addMicrosummaryGenerator('')">install</button> it directly from here.

Next, create a <code>Tinderbox</code> folder in your personal bookmarks toolbar and add bookmarks for your favourite tinderboxens, using the microsummaries.

Finally, style the contents of the <code>Tinderbox</code> folder by putting something like the following CSS in <code>userChrome.css</code> in
your profile's <code>chrome</code> folder:

<br clear=left>

/* Color microsummaries for tinderbox */
toolbarbutton.bookmark-item[label="Tinderbox"] menuitem[label~="open"] > .menu-iconic-left {
  background: url(tree-open.png) no-repeat  3px 2px!important;

toolbarbutton.bookmark-item[label="Tinderbox"] menuitem[label~="closed"] > .menu-iconic-left {
  background: url(tree-closed.png) no-repeat  3px 2px!important;

toolbarbutton.bookmark-item[label="Tinderbox"] menuitem[label~="(OK)"] > .menu-iconic-left {
  background-color: #11DD11 !important;

toolbarbutton.bookmark-item[label="Tinderbox"] menuitem[label~="orange)"] > .menu-iconic-left {
  background-color: #FFAA00 !important;

toolbarbutton.bookmark-item[label="Tinderbox"] menuitem[label~="burning"] > .menu-iconic-left {
  background-color: #EE0000 !important;

toolbarbutton.bookmark-item[label="Tinderbox"] .menu-iconic-icon {
  visibility: hidden !important;


The two images for open <img src="tree-open.png" alt="tree open"> and closed  <img src="tree-closed.png" alt="tree closed"> tree state are taken from the <a href="">tinderstatus extension</a> and they need to go into your profile's <code>chrome</code> folder as well.

<P>A few things to note:
<li> All the CSS above applies only to entries within the <code>Tinderbox</code> folder in your personal bookmarks toolbar. It does not apply to the entries in the bookmarks menu (intentionally), but it's easy to change this.
<li> You see how the label of the microsummary bookmark menutitem is used to generate different markup depending on the state (content) of the bookmark.
<li> Also note how the favicon is made invisible by hidding the <code>.menu-iconic-icon</code> so that the background image for <code>.menu-iconic-left</code> is shown. I cannot ovverride the favicon directly because an XBL binding is involved (maybe someone else can...). 
<li> Similarly one could change the text or background colour of the bookmark text by styling the <code>label</code> child of <code>menuitem</code>.
<li> Disclaimer: In fact I like the very fine <a href="">tinderstatus extension</a>. 
Fortunately, its author is also &quot;the microsummary guy&quot; so replacing his extension by microsummaries should be OK :).

FreeBSD-CVSweb <>