Actions

MediaWiki

Common.css : Différence entre versions

De erg

Ligne 1 : Ligne 1 :
/* Le CSS placé ici sera appliqué à tous les habillages. */
+
/* C O M M O N . c s s
 +
*
 +
* # dark mode
 +
* # templates
 +
*
  
 
/* une media query qui permet de prendre en compte la préférence de couleur du navigateur.  
 
/* une media query qui permet de prendre en compte la préférence de couleur du navigateur.  
 
Tout ce qui est en dehor de cette @media est pour le thème blanc et dans le @media (prefers-color-scheme: dark)  */
 
Tout ce qui est en dehor de cette @media est pour le thème blanc et dans le @media (prefers-color-scheme: dark)  */
  
/* Liste des éléments à inverser */
+
/* Liste des éléments à inverser
div.thumbcaption /* image "thumb" */
+
* div.thumbcaption /* image "thumb"  
button.button.search /* lien externes */
+
* button.button.search /* lien externes  
a.external.free /* lien externes */
+
* a.external.free /* lien externes  
table.wikitable /* Table wiki ex : En construction Pika */
+
* table.wikitable /* Table wiki ex : En construction Pika
 
*/
 
*/
  
 
@media (prefers-color-scheme: dark) {
 
@media (prefers-color-scheme: dark) {
  
html {
+
  html {
background-color: #21201E;
+
    background-color: #21201E;
background-color: #210201E;
+
    background-color: #210201E;
color: white;
+
    color: white;
}       
+
  }       
a {
+
  a {
color: pink;
+
    color: pink;
}
+
  }
body{.
+
  body{.
background-color:inherit;
+
    background-color:inherit;
color:inherit;
+
    color:inherit;
background: #21201E;
+
    background: #21201E;
}
+
  }
  
body.action-view #page-content a{
+
  body.action-view #page-content a{
color: none;
+
    color: none;
}
+
  }
  
#navwrapper {
+
  #navwrapper {
background: white;
+
    background: white;
background-color: white;
+
    background-color: white;
}
+
  }
.top-bar-section {
+
  .top-bar-section {
background: inherit;
+
    background: inherit;
#searchInput {
+
    #searchInput {
background-color: white;
+
      background-color: white;
color: black;
+
      color: black;
.title-area
+
      .title-area
  
}
+
    }
}
+
  }
pre{
+
  pre{
  
border-radius: 10px;
+
    border-radius: 10px;
}
+
  }
.rssicon {
+
  .rssicon {
display: inline-block;
+
    display: inline-block;
width: 32px;
+
    width: 32px;
height: 32px;
+
    height: 32px;
background-image: url(/mw/resources/assets/Feed-icon.png);
+
    background-image: url(/mw/resources/assets/Feed-icon.png);
}
+
  }
 
  
  
.hidden {
+
 
 +
  .hidden {
 
     display: none;
 
     display: none;
}
+
  }
  
table.infobox {
+
  table.infobox {
  width: 30em;
+
    width: 30em;
  font-size: 90%;
+
    font-size: 90%;
  border: 1px solid #aaaaaa;
+
    border: 1px solid #aaaaaa;
  background-color: #f9f9f9;
+
    background-color: #f9f9f9;
  color: black;
+
    color: black;
  margin-bottom: 0.5em;
+
    margin-bottom: 0.5em;
  margin-left: 1em;
+
    margin-left: 1em;
  padding: 0.2em;
+
    padding: 0.2em;
  float: right;
+
    float: right;
  clear: right;
+
    clear: right;
  text-align:left;
+
    text-align:left;
}
+
  }
  
table.infobox th.head {
+
  table.infobox th.head {
  text-align: center;
+
    text-align: center;
  background-color:#ccccff;
+
    background-color:#ccccff;
}
+
  }
  
/* Flexgal */
+
  /* Flexgal */
div.flexgal {
+
  div.flexgal {
  box-sizing: border-box;
+
    box-sizing: border-box;
  margin: 0;
+
    margin: 0;
  padding: 0;
+
    padding: 0;
}
+
  }
  
div.flexgal div.item {
+
  div.flexgal div.item {
  display: flexbox;
+
    display: flexbox;
}
+
  }
div.flexgal div.item p {
+
  div.flexgal div.item p {
  margin: 0;
+
    margin: 0;
  padding: 0; /* padding + margin seem to conflict with the grid layout */
+
    padding: 0; /* padding + margin seem to conflict with the grid layout */
}
+
  }
a img {
+
  a img {
  border: none;
+
    border: none;
  vertical-align: top; /* magically this cancels the containing anchor's bottom border */
+
    vertical-align: top; /* magically this cancels the containing anchor's bottom border */
}
+
  }
  
div.pubdate {
+
  div.pubdate {
  clear: both;
+
    clear: both;
}
+
  }
  
.Media {
+
  .Media {
  display: flex;
+
    display: flex;
  align-items: flex-start;
+
    align-items: flex-start;
  margin-bottom: 1em;
+
    margin-bottom: 1em;
}
+
  }
  
.Media-figure {
+
  .Media-figure {
  margin-right: 1em;
+
    margin-right: 1em;
}
+
  }
  
.Media-body {
+
  .Media-body {
  flex: 1;
+
    flex: 1;
}
+
  }
  
/* simplify the footer links */
+
  /* simplify the footer links */
ul#poweredby, li#footer-disclaimer { display: none; }
+
  ul#poweredby, li#footer-disclaimer { display: none; }
  
.snowflake {
+
  .snowflake {
position:absolute;
+
    position:absolute;
color:blue;
+
    color:blue;
transition: top 5s linear;
+
    transition: top 5s linear;
  -webkit-text-stroke-width: 1px;
+
    -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgba(0,0,0,0.01);
+
    -webkit-text-stroke-color: rgba(0,0,0,0.01);
}
+
  }
  
#content {
+
  #content {
max-width: 80ch;
+
    max-width: 80ch;
margin: auto;
+
    margin: auto;
}
+
  }
  
  
/* -- External Image Template -- */
+
  /* -- External Image Template -- */
.externalimage-holder {
+
  .externalimage-holder {
 
     display:inline-block;
 
     display:inline-block;
 
     position: relative;
 
     position: relative;
}
+
  }
.externalimage-holder img {
+
  .externalimage-holder img {
 
     width: 100%;
 
     width: 100%;
 
     height: auto;
 
     height: auto;
}
+
  }
 
 
/* -- Captcha Page Edition -- */
 
label[for=wpCaptchaWord] {
 
background-color:#FFCCCB;
 
color:white;
 
border:2px solid white;
 
}
 
 
 
  
/* ------- TEST -------- */
+
  /* -- Captcha Page Edition -- */
 +
  label[for=wpCaptchaWord] {
 +
    background-color:#FFCCCB;
 +
    color:white;
 +
    border:2px solid white;
 +
  }

Version du 23 janvier 2024 à 16:04

/* C O M M O N . c s s
 *
 * # dark mode
 * # templates
 *

/* une media query qui permet de prendre en compte la préférence de couleur du navigateur. 
Tout ce qui est en dehor de cette @media est pour le thème blanc et dans le @media (prefers-color-scheme: dark)  */

/* Liste des éléments à inverser
* div.thumbcaption /* image "thumb" 
* button.button.search /* lien externes 
* a.external.free /* lien externes 
* table.wikitable /* Table wiki ex : En construction Pika
*/

@media (prefers-color-scheme: dark) {

  html {
    background-color: #21201E;
    background-color: #210201E;
    color: white;
  }      
  a {
    color: pink;
  }
  body{.
    background-color:inherit;
    color:inherit;
    background: #21201E;
  }

  body.action-view #page-content a{
    color: none;
  }

  #navwrapper {
    background: white;
    background-color: white;
  }
  .top-bar-section {
    background: inherit;
    #searchInput {
      background-color: white;
      color: black;
      .title-area

    }
  }
  pre{

    border-radius: 10px;
  }
  .rssicon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(/mw/resources/assets/Feed-icon.png);
  }



  .hidden {
    display: none;
  }

  table.infobox {
    width: 30em;
    font-size: 90%;
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.5em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    text-align:left;
  }

  table.infobox th.head {
    text-align: center;
    background-color:#ccccff;
  }

  /* Flexgal */
  div.flexgal {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  div.flexgal div.item {
    display: flexbox;
  }
  div.flexgal div.item p {
    margin: 0;
    padding: 0; /* padding + margin seem to conflict with the grid layout */
  }
  a img {
    border: none;
    vertical-align: top; /* magically this cancels the containing anchor's bottom border */
  }

  div.pubdate {
    clear: both;
  }

  .Media {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
  }

  .Media-figure {
    margin-right: 1em;
  }

  .Media-body {
    flex: 1;
  }

  /* simplify the footer links */
  ul#poweredby, li#footer-disclaimer { display: none; }

  .snowflake {
    position:absolute;
    color:blue;
    transition: top 5s linear;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(0,0,0,0.01);
  }

  #content {
    max-width: 80ch;
    margin: auto;
  }


  /* -- External Image Template -- */
  .externalimage-holder {
    display:inline-block;
    position: relative;
  }
  .externalimage-holder img {
    width: 100%;
    height: auto;
  }

  /* -- Captcha Page Edition -- */
  label[for=wpCaptchaWord] {
    background-color:#FFCCCB;
    color:white;
    border:2px solid white;
  }