« 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 1 : | Ligne 1 : | ||
figure.zoom { | |||
background-position: 50% 50%; | |||
position: relative; | |||
width: 500px; | |||
overflow: hidden; | |||
cursor: zoom-in; | |||
} | } | ||
figure.zoom img:hover { | |||
.img | opacity: 0; | ||
} | |||
figure.zoom img { | |||
transition: opacity .5s; | |||
display: block; | |||
width: 100%; | |||
width: | |||
} | } | ||
Version du 6 mai 2024 à 21:12
figure.zoom {
background-position: 50% 50%;
position: relative;
width: 500px;
overflow: hidden;
cursor: zoom-in;
}
figure.zoom img:hover {
opacity: 0;
}
figure.zoom img {
transition: opacity .5s;
display: block;
width: 100%;
}
/*====================*/
/* BODY et BASE */
/*====================*/
body {
font-family: Calibri, Verdana, sans-serif;
/*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";*/
font-size: 75%;
background-image: none;
background-color: #DEDEDE; /*Fond du wiki
}
/*====================*/
/* HEADER */
/*====================*/
/*h1, h2, h3, h4, h5, h6 {*/
/* font-family: 'Linux Libertine', 'Georgia', 'Times', serif;*/
/*}*/
h1, h2, h3 {
color: #661810;
}
h1 {
font-size: 230%;
font-weight: bold;
font-variant-caps: small-caps;
}
h2 {
font-size: 190%;
font-weight: bold;
font-variant-caps: small-caps;
}
h3 {
font-size: 160%;
font-weight: bold;
font-variant-caps: small-caps;
}
h4 {
font-size: 140%;
font-weight: bold;
font-variant-caps: small-caps;
}
h5 {
font-size: 125%;
font-weight: bold;
}
h6 {
font-size: 110%;
font-weight: bold;
}
/*====================*/
/* SOMMAIRE (TOC) */
/*====================*/
#toc {
font-size: 90%;
border: none; /* Supprime le bord */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Ajoute une ombre */
position: fixed;
top: 10%; /* Position à 10% de la hauteur de la fenêtre */
right: -1px;
max-height: calc(90vh - 150px); /* Ajustez cette valeur selon vos besoins */
overflow-y: auto;
background-color: #E5E5E5;
width: 250px; /* Largeur fixe du TOC */
}
/*====================*/
/* Main du site ? */
/*====================*/
#mw-content-text { /* Fond du bloc général de texte */
margin-right: 280px;
}
.mw-content-padding {
padding: 20px;
}
/*====================*/
/* INFOBOX */
/*====================*/
.infobox {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Ajoute une ombre */
float: right;
background-color :#EEEEEE;
margin-left: 10px;
font-size: 80%;
float: right;
line-height: 1.7;
}
.infoboxtitle {
text-align: center;
font-weight: bold;
background-color: #661810;
color: white;
font-size: 115%;
}
/*====================*/
/* LIEN HYPERTEXTE */
/*====================*/
a:visited {
color: #0645AD !important; /* Couleur bleue classique des liens */
}
/*====================*/
/* QUOTE */
/*====================*/
q {
font-style: italic;
}
p {
margin: 0;
line-height: 1.4;
}
/*====================*/
/* PUCES */
/*====================*/
ul {
list-style-type: none;
list-style-image: none;
list-style-type: "\002B27";
list-style-position: outside;
}
ul ul {
list-style-type: none;
list-style-image: none;
list-style-type: "\002B28";
}
ul ul ul {
list-style-type: none;
list-style-image: none;
list-style-type: "\002B2A";
}
li::marker {
color: #5F5F5F;
}
li {
padding-left: 0.2em
}
dd {
font-size: 85%;
line-height: 1.4;
}
dt {
font-weight: normal;
}
/*====================*/
/* mw-collapsible */
/*====================*/
.mw-collapsible span.mw-collapsible-toggle {
float:left;
margin-left:0;
margin-right:1em;
background-color: #FAFAFA;
}
/*.mw-collapsible-content img {*/
/* display: none;*/
/*}*/
.mw-collapsible-content {
padding-left: 10px;
padding-top: 1.5em;
}
/*====================*/
/* BLOCS */
/*====================*/
.section-title {
padding: 5px;
font-size: 150%;
font-weight: bold;
font-variant-caps: small-caps;
color: #FFFFFF;
background-color: #661810;
border-style: solid;
border-width: 1px;
border-color: #D9D9D9;
}
.section-content {
padding: 5px;
background-color: #F5F5F5;
border-style: solid;
border-width: 0 1px 1px 1px;
border-color: #D9D9D9;
}
.section-100 {
/* background-color: red; */
width: 99%;
padding: 10px 0.5%;
}
.section-50 {
float: left;
/* background-color: red; */
width: 49%;
padding: 10px 0.5%;
}
pre,.mw-code {
font-size: 11px !important;
}
/*====================*/
/* IMG DYNAMIC SIZE */
/*====================*/
.image-10w, .image-20w, .image-30w, .image-40w, .image-50w, .image-60w, .image-70w, .image-80w, .image-90w, .image-100w {
height: auto;
overflow: hidden;
transition: transform 0.4s ease;
}
.image-10w {width: 10%;}
.image-20w {width: 20%;}
.image-30w {width: 30%;}
.image-40w {width: 40%;}
.image-50w {width: 50%;}
.image-60w {width: 60%;}
.image-70w {width: 70%;}
.image-80w {width: 80%;}
.image-90w {width: 90%;}
.image-100w {width: 100%;}
.image-80w:hover {
transform: scale(1.5) translate(30px);
}