Widget:AdventureStyle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) |
K (Textersetzung - „http://kamelopedia.mormo.org/“ durch „http://kamelopedia.net/“) |
||
| (6 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | <script type="text/javascript"> | + | <style type="text/css"> |
| − | function makeAdventureStyle() { | + | |
| − | var styles = "<!--{$style|escape:'javascript'}-->".split(" | + | /* blind: schwarzer Hintergrund */ |
| + | |||
| + | body.adventure-style-blind div#content { | ||
| + | color: white; | ||
| + | background-color: black; | ||
| + | } | ||
| + | |||
| + | body.adventure-style-blind ul { | ||
| + | list-style-image: url("http://kamelopedia.net/images/c/c4/K_ulinvers.gif") !important; | ||
| + | } | ||
| + | |||
| + | /* blindlink: hellere, lesbarere Linkfarben für "blind" */ | ||
| + | |||
| + | body.adventure-style-blindlink div#content a { | ||
| + | color: #9999ff; | ||
| + | } | ||
| + | |||
| + | </style> | ||
| + | |||
| + | <script type="text/javascript"> | ||
| + | function makeAdventureStyle() { | ||
| + | var styles = "<!--{$style|escape:'javascript'}-->".split(","); | ||
for (s in styles) | for (s in styles) | ||
{ | { | ||
| Zeile 8: | Zeile 29: | ||
$(document.body).addClass("adventure-style-"+style); | $(document.body).addClass("adventure-style-"+style); | ||
} | } | ||
| − | } | + | } |
| − | + | ||
| − | makeAdventureStyle(); | + | makeAdventureStyle(); |
| − | </script> | + | </script> |
Aktuelle Version vom 3. Januar 2014, 02:33 Uhr
<style type="text/css"> /* blind: schwarzer Hintergrund */
body.adventure-style-blind div#content {
color: white;
background-color: black;
}
body.adventure-style-blind ul {
list-style-image: url("http://kamelopedia.net/images/c/c4/K_ulinvers.gif") !important;
}
/* blindlink: hellere, lesbarere Linkfarben für "blind" */
body.adventure-style-blindlink div#content a {
color: #9999ff;
}
</style>
<script type="text/javascript">
function makeAdventureStyle() {
var styles = "".split(",");
for (s in styles)
{
var style = styles[s];
if (/[A-Za-z]/.test(style))
$(document.body).addClass("adventure-style-"+style);
}
}
makeAdventureStyle();
</script>