Widget:AdventureStyle: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
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 mit lesbaren Linkfarben */
+
/* blindlink: hellere, lesbarere Linkfarben für "blind" */
body.adventure-style-blind-readable div#content {
 
    color: white;
 
    background-color: black;
 
}
 
  
  body.adventure-style-blind-readable div#content a {
+
  body.adventure-style-blindlink div#content a {
     color: #ddddff;
+
     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, 08: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>