Jump to content

User:FlightTime/linkclassifier.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* CSS rules for use with [[User:FlightTime/linkclassifier.js]]. To include these rules,
 * insert the following into your [[Special:Mypage/monobook.js]] (yes, monobook.js not monobook.css):

importStylesheet('User:FlightTime/linkclassifier.css'); // Linkback: [[User:FlightTime/linkclassifier.css]]

// Linkback: [[User:FlightTime/linkclassifier.css]]
*/ Please keep the linkback comment so I can know who is using this.*/

A                  { color:#0033cc !important; }
A.stubcls          { color:#0033cc !important; }
A.new              { color:#cc0000 !important; }
A.redirect         { color:#00DD00 !important; }
A.self-redirect    { background-color:#88ff88 !important; }
A.disambiguation   { background-color:#FFFF00 !important; }
A.intentional-disambiguation   { background-color:#FFD700 !important; }
A.soft-redirect-cats { background-color:#FFFF00 !important; }
A.deletion         { outline:3px solid #cc0000 !important; }
A.broken-redirect  { color:#cc0000 !important; background-color:#00DD00 !important; }
#bodyContent a.external:visited, #bodyContent a.extiw:visited { color:#0033cc !important; }
A:visited          { color:#0033cc !important; }
A.stubcls:visited  { color:#0033cc !important; }
A.new:visited      { color:#cc0000 !important; }
A.redirect:visited { color:#00DD00 !important; }
A.deletion:visited { outline:2px solid #cc0000 !important; }
A.broken-redirect:visited { color:#cc0000 !important; background-color:#00DD00 !important; }
#bodyContent a.external, #bodyContent a.extiw { color:#0033cc !important; }
/* A.image.redirect         > IMG { outline:2px solid #00dd00 !important; } Doesn't work, because the generated link goes to the redirect target */
A.image.nonfree-media    > IMG { outline:3px double #cc0000 !important; }
A.image.deletion         > IMG { outline:2px solid #cc0000 !important; }
A.image.deletion:visited > IMG { outline-color:#cc0000 !important; }

/* Images can be inserted after links with the ":after" pseudo-element, although this doesn't work in IE <8. */
/*
a.featured-content:after {
    content:url(//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Featured_article_star.svg/12px-Featured_article_star.svg.png);
}
a.protection-edit-sysop-indef:after {
    content:url(//upload.wikimedia.org/wikipedia/commons/thumb/4/48/Padlock-red.svg/12px-Padlock-red.svg.png);
}
*/
a.nonimage.protection-create-sysop-indef:after {
    content:url(//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Padlock-skyblue.svg/12px-Padlock-skyblue.svg.png);
}

/* If you're wanting to put multiple images after, you'll need to give specific
 * rules for each combination, something like this:
a.featured-content.protection-edit-sysop-indef:after {
    content:url(//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Featured_article_star.svg/12px-Featured_article_star.svg.png) url(//upload.wikimedia.org/wikipedia/commons/thumb/4/48/Padlock-red.svg/12px-Padlock-red.svg.png);
}
*/