Difference between revisions of "Help:Todo List/Improve Cat Films Plan B"

From Ephemeral Film Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
The second solution does the same thing with CSS basically:
The second solution does the same thing with CSS basically:
<nowiki><pre>
<pre><nowiki>
// Strip "Foo:" namespace from category pages fix
// Strip "Foo:" namespace from category pages fix
div#mw-pages                              // declare the category listing section
div#mw-pages                              // declare the category listing section
Line 11: Line 11:
}
}
// strip "NS:" namespace from category pages fix end
// strip "NS:" namespace from category pages fix end
</pre></nowiki>
</nowiki></pre>

Latest revision as of 23:35, 27 November 2021

The second solution does the same thing with CSS basically:

// Strip "Foo:" namespace from category pages fix
div#mw-pages                               // declare the category listing section
a[title^='Foo:'] {
    font-family: 'Lucida Grande', Arial, monospace;  // your font(s) +", monspace"
    font-size: 12px;        // Set to whatever font-size those items currently use
    display: inline-block;
    overflow: hidden;
    text-indent: -1em;      // fudge this number until your Foo: prefix disappears
}
// strip "NS:" namespace from category pages fix end