« 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 412 : | Ligne 412 : | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/*==========*/ | |||
/* TEST */ | |||
/*==========*/ | |||
.parallax { | |||
height: 100vh; | |||
background-attachment: fixed; | |||
background-position: center; | |||
background-repeat: no-repeat; | |||
background-size: cover; | |||
} |
Version du 14 mai 2024 à 16:51
/*====================*/ /* 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 } hr { color: #EEEEEE; width: 80%; } /*====================*/ /* 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; } h1::before { /* content: '⛊ ';*/ content: '🜋 '; font-size: 90%; } h2 { font-size: 190%; font-weight: bold; font-variant-caps: small-caps; } h2::before { /* content: '☗ ';*/ content: '🜊 '; font-size: 90%; } 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;*/ color: #661810; } li { padding-left: 0.2em } /*====================*/ /* 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 { box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px; padding: 0.2em 1em; 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 { box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px; padding: 1em; 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; float: left; } .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%;} /*====================*/ /* ZOOM DE CARTE */ /*====================*/ .structure { position: relative; margin-left: auto; margin-right: auto; width: 1024px; height: 768px; display: grid; grid-template: repeat(4, 1fr)/repeat(4, 1fr); } .cell { /* border: 1px solid gray; */ background-color: transparent; z-index: 1; } .cell:nth-child(n):hover ~ .mapcontent { --zoom: 1.75; } .cell:nth-child(1):hover ~ .mapcontent { --posX: 0%; --posY: 0%; } .cell:nth-child(2):hover ~ .mapcontent { --posX: 35%; --posY: 0%; } .cell:nth-child(3):hover ~ .mapcontent { --posX: 65%; --posY: 0%; } .cell:nth-child(4):hover ~ .mapcontent { --posX: 100%; --posY: 0%; } .cell:nth-child(5):hover ~ .mapcontent { --posX: 0%; --posY: 35%; } .cell:nth-child(6):hover ~ .mapcontent { --posX: 35%; --posY: 35%; } .cell:nth-child(7):hover ~ .mapcontent { --posX: 65%; --posY: 35%; } .cell:nth-child(8):hover ~ .mapcontent { --posX: 100%; --posY: 35%; } .cell:nth-child(9):hover ~ .mapcontent { --posX: 0%; --posY: 65%; } .cell:nth-child(10):hover ~ .mapcontent { --posX: 35%; --posY: 65%; } .cell:nth-child(11):hover ~ .mapcontent { --posX: 65%; --posY: 65%; } .cell:nth-child(12):hover ~ .mapcontent { --posX: 100%; --posY: 65%; } .cell:nth-child(13):hover ~ .mapcontent { --posX: 0%; --posY: 100%; } .cell:nth-child(14):hover ~ .mapcontent { --posX: 35%; --posY: 100%; } .cell:nth-child(15):hover ~ .mapcontent { --posX: 65%; --posY: 100%; } .cell:nth-child(16):hover ~ .mapcontent { --posX: 100%; --posY: 100%; } .mapcontent { position: absolute; top: 0; right: 0; bottom: 0; left: 0; --zoom: 0; --posX: 0%; --posY: 0%; overflow: hidden; } .mapzoom img { transform: scale(calc(var(--zoom) * 1 + 1)); transform-origin: var(--posX) var(--posY); transition: all 1.5s; } .map { width: 50%; } /*====================*/ /* TIMELINE */ /*====================*/ .timeline { width: 100%; height: 50px; background-color: #EEEEEE; } .period { float: left; height: 50px; color: white; font-size: 90%; text-align: center; vertical-align:middle; line-height: 50px; background-color: #661810; border: solid; border-color: #EEEEEE; border-left-width: 2px; border-right-width: 0px; border-top-width: 2px; border-bottom-width: 2px; box-sizing: border-box; } /*==========*/ /* TEST */ /*==========*/ .parallax { height: 100vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }