« 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 42 : | Ligne 42 : | ||
#toc { | #toc { | ||
position: fixed; | position: fixed; | ||
top: | top: 10%; /* Situé à 10% du point le plus haut du wiki */ | ||
right: | right: 10px; /* Marge de droite */ | ||
transform: translateY(-50%); | transform: translateY(-50%); | ||
max-height: 80%; /* | max-height: 80%; /* Hauteur max du sommaire */ | ||
overflow-y: auto; | overflow-y: auto; | ||
} | |||
#mw-content-text { | |||
margin-right: 250px; /* Ajustez cette valeur selon la largeur de votre sommaire */ | |||
} | } |
Version du 29 avril 2024 à 19:30
/* 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 { position: fixed; top: 10%; /* 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 */ }