« MediaWiki:Common.css » : différence entre les versions

De gahan
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 2 : Ligne 2 :


body {
body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
    font-family: Verdana, Arial, Helvetica, sans-serif;
  background-color: #D5C58A
    background-color: #D5C58A
}
}


h1 {
h1 {
  font-size: 200%;
    font-size: 200%;
  font-weight: bold;
    font-weight: bold;
  font-variant-caps: small-caps;
    font-variant-caps: small-caps;
}
}


h2 {
h2 {
  font-size: 160%;
    font-size: 160%;
  font-weight: bold;
    font-weight: bold;
  font-variant-caps: small-caps;
    font-variant-caps: small-caps;
}
}


h3 {
h3 {
  font-size: 140%;
    font-size: 140%;
  font-weight: bold;
    font-weight: bold;
  font-variant-caps: small-caps;
    font-variant-caps: small-caps;
}
}


h4 {
h4 {
  font-size: 120%;
    font-size: 120%;
  font-weight: bold;
    font-weight: bold;
}
}


h5 {
h5 {
  font-size: 110%;
    font-size: 110%;
  font-weight: bold;
    font-weight: bold;
}
}


h6 {
h6 {
  font-size: 105%;
    font-size: 105%;
  font-weight: bold;
    font-weight: bold;
}
}


/* Positionnement fixe du sommaire */
/* Positionnement fixe du sommaire */
#toc {
#toc {
    font-size: 80%;
     position: fixed;
     position: fixed;
     top: 10 px; /* Situé à 10% du point le plus haut du wiki */
     top: 15px;                   /* Situé à 10% du point le plus haut du wiki */
     right: 10px; /* Marge de droite */
     right: 10px;                 /* Marge de droite */
     transform: translateY(-50%);
     transform: translateY(-50%);
     max-height: 80%; /* Hauteur max du sommaire */
     max-height: 80%;             /* Hauteur max du sommaire */
     overflow-y: auto;
     overflow-y: auto;
}
}


#mw-content-text {
#mw-content-text {
     margin-right: 250px; /* Ajustez cette valeur selon la largeur de votre sommaire */
     margin-right: 250px;         /* Ajustez cette valeur selon la largeur de votre sommaire */
}
}

Version du 29 avril 2024 à 19:34

/* Le CSS placé ici sera appliqué à tous les habillages. */

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #D5C58A
}

h1 {
    font-size: 200%;
    font-weight: bold;
    font-variant-caps: small-caps;
}

h2 {
    font-size: 160%;
    font-weight: bold;
    font-variant-caps: small-caps;
}

h3 {
    font-size: 140%;
    font-weight: bold;
    font-variant-caps: small-caps;
}

h4 {
    font-size: 120%;
    font-weight: bold;
}

h5 {
    font-size: 110%;
    font-weight: bold;
}

h6 {
    font-size: 105%;
    font-weight: bold;
}

/* Positionnement fixe du sommaire */
#toc {
    font-size: 80%;
    position: fixed;
    top: 15px;                    /* Situé à 10% du point le plus haut du wiki */
    right: 10px;                  /* Marge de droite */
    transform: translateY(-50%);
    max-height: 80%;              /* Hauteur max du sommaire */
    overflow-y: auto;
}

#mw-content-text {
    margin-right: 250px;          /* Ajustez cette valeur selon la largeur de votre sommaire */
}