Difference between revisions of "Help:Todo List/Improve Cat Films Plan B"
Jump to navigation
Jump to search
(Created page with "The second solution does the same thing with CSS basically: <nowiki>// Strip "Foo:" namespace from category pages fix div#mw-pages // declare the...") |
|||
| (One intermediate revision by the same user not shown) | |||
| 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>// Strip "Foo:" namespace from category pages fix | <pre><nowiki> | ||
// Strip "Foo:" namespace from category pages fix | |||
div#mw-pages // declare the category listing section | div#mw-pages // declare the category listing section | ||
a[title^='Foo:'] { | a[title^='Foo:'] { | ||
| Line 9: | Line 10: | ||
text-indent: -1em; // fudge this number until your Foo: prefix disappears | text-indent: -1em; // fudge this number until your Foo: prefix disappears | ||
} | } | ||
// strip "NS:" namespace from category pages fix end</nowiki> | // strip "NS:" namespace from category pages fix end | ||
</nowiki></pre> | |||
Latest revision as of 22: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