Widget:AdventureStyle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) |
J* (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
<style type="text/css"> | <style type="text/css"> | ||
| − | /* blind */ | + | /* blind: schwarzer Hintergrund */ |
body.adventure-style-blind div#content { | body.adventure-style-blind div#content { | ||
color: white; | color: white; | ||
| Zeile 7: | Zeile 7: | ||
} | } | ||
| − | /* blind | + | /* blindlink: hellere, lesbarere Linkfarben für "blind" */ |
| − | |||
| − | |||
| − | |||
| − | |||
| − | body.adventure-style- | + | body.adventure-style-blindlink div#content a { |
| − | color: # | + | color: #bbbbff; |
} | } | ||
| Zeile 21: | Zeile 17: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function makeAdventureStyle() { | function makeAdventureStyle() { | ||
| − | var styles = "<!--{$style|escape:'javascript'}-->".split(" | + | var styles = "<!--{$style|escape:'javascript'}-->".split(","); |
for (s in styles) | for (s in styles) | ||
{ | { | ||
Version vom 22. Juni 2012, 09:04 Uhr
<style type="text/css">
/* blind: schwarzer Hintergrund */
body.adventure-style-blind div#content {
color: white;
background-color: black;
}
/* blindlink: hellere, lesbarere Linkfarben für "blind" */
body.adventure-style-blindlink div#content a {
color: #bbbbff;
}
</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>