Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are two tricks involved. The more important one is to wrap your status bar HTML in a pair of <code>&lt;div&gt;</code>s which are styled using the <code>-moz-appearance</code> CSS declaration:</p> <pre><code>&lt;div style="-moz-appearance:statusbar"&gt; &lt;div style="moz-appearance:statusbarpanel"&gt; Your content here &lt;/div&gt; &lt;/div&gt; </code></pre> <p>This gets us close, but there is a slight lightening on the left-hand side of the real status bar which is quite noticeable when applied to a status bar panel in the middle of the bar. You can fix this by adding a 50-pixel padding and negative margin to the left-hand side of the outer <code>&lt;div&gt;</code>:</p> <pre><code>&lt;div style="-moz-appearance:statusbar;margin-left:-50px;padding-left:50px"&gt; &lt;div style="moz-appearance:statusbarpanel"&gt; Your content here &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Et voilà! A status bar panel which is indistinguishable from normal ones. If your content is all HTML, you're done. If, however, you want your status bar panel's text to match as well, there are a few other styles to apply. Here's the full JavaScript source for how to do so, using an embedded stylesheet:</p> <pre><code>jetpack.statusBar.append({ html: (&lt;&gt;&lt;![CDATA[ &lt;style type="text/css"&gt; .statusbar { font-family: Tahoma; font-size: 11px; height: 22px; -moz-appearance: statusbar; } .statusbarpanel { height: 18px; line-height: 17px; -moz-appearance: statusbarpanel; padding-left: 4px; padding-right: 4px; } &lt;/style&gt; &lt;div class="statusbar"&gt; &lt;div class="statusbarpanel"&gt; Your content here. &lt;/div&gt; &lt;/div&gt; ]]&gt;&lt;/&gt;).toString() }); </code></pre> <p>(This example also uses <a href="http://userscripts.org/guides/4" rel="nofollow noreferrer">E4X to simulate multi-line strings in JavaScript</a>.)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload