Changes

1,544 bytes added ,  00:11, 8 October 2021
test of dark mode
Line 5: Line 5:  
/* Body */
 
/* Body */
   −
@media screen and (max-width: 1439px) {
+
@media (prefers-color-scheme: light) {
−
#mw-content-container:not(.ns-2) {
+
  @media screen and (max-width: 1439px) {
−
    background: #71bdf7;
+
  #mw-content-container:not(.ns-2) {
−
    background-image: url("/w/backgrounds/ForestWikiBackgroundsMedium.webp");
+
      background: #71bdf7;
−
    background-attachment: fixed;
+
      background-image: url("/w/backgrounds/ForestWikiBackgroundsMedium.webp");
−
    background-size: cover;
+
      background-attachment: fixed;
−
    background-position: bottom;
+
      background-size: cover;
−
}
+
      background-position: bottom;
 +
  }
 +
  }
 +
 
 +
  @media screen and (min-width: 1440px) {
 +
  #mw-content-container:not(.ns-2) {
 +
      background: #71bdf7;
 +
      background-image: url("/w/backgrounds/ForestWikiBackgroundsBig.webp");
 +
      background-attachment: fixed;
 +
      background-size: cover;
 +
      background-position: bottom;
 +
  }
 +
  }
 +
 
 +
 
 +
  @media screen and (max-width: 1439px) {
 +
  .ns-2 #mw-content-container,.ns-6 #mw-content-container,.ns-10 #mw-content-container,.ns-200 #mw-content-container,.ns-3200 #mw-content-container {
 +
      background: #71bdf7;
 +
      background-image: url("/w/backgrounds/ForestWikiBackgroundsMediumGrid.webp");
 +
      background-attachment: fixed;
 +
      background-size: cover;
 +
      background-position: bottom;
 +
  }
 +
  }
 +
 
 +
  @media screen and (min-width: 1440px) {
 +
  .ns-2 #mw-content-container,.ns-6 #mw-content-container,.ns-10 #mw-content-container,.ns-200 #mw-content-container,.ns-3200 #mw-content-container {
 +
      background: #71bdf7;
 +
      background-image: url("/w/backgrounds/ForestWikiBackgroundsBigGrid.webp");
 +
      background-attachment: fixed;
 +
      background-size: cover;
 +
      background-position: bottom;
 +
  }
 +
  }
 
}
 
}
   −
@media screen and (min-width: 1440px) {
+
/* Dark */
−
#mw-content-container:not(.ns-2) {
+
@media (prefers-color-scheme: dark) {
−
    background: #71bdf7;
+
  @media screen and (max-width: 1439px) {
−
    background-image: url("/w/backgrounds/ForestWikiBackgroundsBig.webp");
+
  #mw-content-container:not(.ns-2) {
−
    background-attachment: fixed;
+
      background: #71bdf7;
−
    background-size: cover;
+
      background-image: url("/w/images/0/0b/WikiBackgroundDark.png");
−
    background-position: bottom;
+
      background-attachment: fixed;
−
}
+
      background-size: cover;
−
}
+
      background-position: bottom;
 +
  }
 +
  }
 +
 
 +
  @media screen and (min-width: 1440px) {
 +
  #mw-content-container:not(.ns-2) {
 +
      background: #71bdf7;
 +
      background-image: url("/w/images/0/0b/WikiBackgroundDark.png");
 +
      background-attachment: fixed;
 +
      background-size: cover;
 +
      background-position: bottom;
 +
  }
 +
  }
 +
 
   −
@media screen and (max-width: 1439px) {
+
  @media screen and (max-width: 1439px) {
−
.ns-2 #mw-content-container,.ns-6 #mw-content-container,.ns-10 #mw-content-container,.ns-200 #mw-content-container,.ns-3200 #mw-content-container {
+
  .ns-2 #mw-content-container,.ns-6 #mw-content-container,.ns-10 #mw-content-container,.ns-200 #mw-content-container,.ns-3200 #mw-content-container {
−
    background: #71bdf7;
+
      background: #71bdf7;
−
    background-image: url("/w/backgrounds/ForestWikiBackgroundsMediumGrid.webp");
+
      background-image: url("/w/images/0/0b/WikiBackgroundDark.png");
−
    background-attachment: fixed;
+
      background-attachment: fixed;
−
    background-size: cover;
+
      background-size: cover;
−
    background-position: bottom;
+
      background-position: bottom;
−
}
+
  }
−
}
+
  }
   −
@media screen and (min-width: 1440px) {
+
  @media screen and (min-width: 1440px) {
−
.ns-2 #mw-content-container,.ns-6 #mw-content-container,.ns-10 #mw-content-container,.ns-200 #mw-content-container,.ns-3200 #mw-content-container {
+
  .ns-2 #mw-content-container,.ns-6 #mw-content-container,.ns-10 #mw-content-container,.ns-200 #mw-content-container,.ns-3200 #mw-content-container {
−
    background: #71bdf7;
+
      background: #71bdf7;
−
    background-image: url("/w/backgrounds/ForestWikiBackgroundsBigGrid.webp");
+
      background-image: url("/w/images/0/0b/WikiBackgroundDark.png");
−
    background-attachment: fixed;
+
      background-attachment: fixed;
−
    background-size: cover;
+
      background-size: cover;
−
    background-position: bottom;
+
      background-position: bottom;
−
}
+
  }
 +
  }
 
}
 
}