« 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 16 : | Ligne 16 : | ||
body { | body { | ||
font-family: Calibri, Verdana, sans-serif; | font-family: Calibri, Verdana, sans-serif; | ||
font-size: 78%; | font-size: 78%; | ||
background-image: none; | background-image: none; | ||
Ligne 46 : | Ligne 45 : | ||
/* SEARCHBAR */ | /* SEARCHBAR */ | ||
/*====================*/ | /*====================*/ | ||
#p-search input[type="submit"] { /* Style du bouton de recherche */ | #p-search input[type="submit"] { /* Style du bouton de recherche */ |
Version du 15 mai 2024 à 20:49
/*====================*/ /* VARIABLES GLOBALES */ /* ET */ /* BASES */ /*====================*/ * { --color_main: #661810; /* Couleur général des titres, bullet, box, etc. */ --color_main_dark: #47100B; /* Variation dark du color-main */ --color_main_light: #84463F; /* Variation light du color-main */ } /*====================*/ /* BODY et BASE */ /*====================*/ body { font-family: Calibri, Verdana, sans-serif; font-size: 78%; background-image: none; background-color: #DEDEDE; /*Fond du wiki } /*====================*/ /* HEADER */ /*====================*/ h1, h2, h3, h4, h5, h6 {font-weight: bold;} h1, h2, h3 {color: var(--color_main);} h1, h2, h3, h4 {font-variant-caps: small-caps;} h1 {font-size: 230%;} h2 {font-size: 190%;} h3 {font-size: 160%;} h4 {font-size: 140%;} h5 {font-size: 125%;} h6 {font-size: 110%;} h1::before {content: '🜋 '; font-size: 90%;} h2::before {content: '🜊 '; font-size: 90%;} /*====================*/ /* SEARCHBAR */ /*====================*/ #p-search input[type="submit"] { /* Style du bouton de recherche */ background-color: var(--color_main); color: #fff; border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer; } #p-search input[type="submit"]:hover { /* Style au survol du bouton */ background-color: var(--color_main_dark); } /*====================*/ /* 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; bottom: 10%; /* Position à 10% du bas de la fenêtre */ left: 0px; max-height: calc(90vh - 150px); /* Ajustez cette valeur selon vos besoins */ overflow-y: auto; background-color: #E5E5E5; width: 180px; /* Largeur fixe du TOC */ } /*====================*/ /* Main du site ? */ /*====================*/ #mw-content-text {margin-right: 280px;} /* Fond du bloc général de texte */ .mw-content-padding {padding: 20px;} /*====================*/ /* HORIZONTAL LIST */ /*====================*/ /* Display list items inline */ .hlist dd, .hlist dt, .hlist li { margin: 0; display: inline; } /* Display nested lists inline */ .hlist.inline, .hlist.inline dl, .hlist.inline ol, .hlist.inline ul, .hlist dl dl, .hlist dl ol, .hlist dl ul, .hlist ol dl, .hlist ol ol, .hlist ol ul, .hlist ul dl, .hlist ul ol, .hlist ul ul { display: inline; } .hlist dd:after, .hlist li:after { content: " • "; color: bold; } /*====================*/ /* 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: var(--color_main); 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; margin: 0.5em; } 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: var(--color_main);} 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 { padding-left: 10px; padding-top: 1.5em; } /*====================*/ /* BLOCS */ /*====================*/ .section-title { box-shadow: rgba(0, 0, 0, 0.25) 0px 12px 14px, 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: var(--color_main); border-style: solid; border-width: 1px; border-color: #D9D9D9; border-radius: 20px 20px 0px 0px; } .section-content { box-shadow: rgba(0, 0, 0, 0.25) 0px 12px 14px, 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 {width: 99%; padding: 10px 0.5%;} .section-90 {float: left; width: 89%; padding: 10px 0.5%;} .section-80 {float: left; width: 79%; padding: 10px 0.5%;} .section-70 {float: left; width: 69%; padding: 10px 0.5%;} .section-60 {float: left; width: 59%; padding: 10px 0.5%;} .section-50 {float: left; width: 49%; padding: 10px 0.5%;} .section-40 {float: left; width: 39%; padding: 10px 0.5%;} .section-30 {float: left; width: 29%; padding: 10px 0.5%;} .section-20 {float: left; width: 19%; padding: 10px 0.5%;} .section-10 {float: left; width: 9%; padding: 10px 0.5%;} pre,.mw-code { font-size: 11px !important; } .Bl-Shad0 { box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 6px; hyphens: auto; text-align: justify; } .Justify { hyphens: auto; text-align: justify; } /*====================*/ /* 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 */ /*====================*/ .titrecarte { text-align: center; color: var(--color_main); font-size: 120%; font-weight: bold; } .titrecarte::after { content: " ⤙";} .titrecarte::before { content: "⤚ ";} .zoominfo { font-size: 80%; width: 1024px; text-align: right; margin-left: auto; margin-right: auto; } .structure { position: relative; margin-left: auto; margin-right: auto; width: 1024px; height: 768px; display: grid; grid-template: repeat(11, 1fr)/repeat(11, 1fr); } .cell { /* border: 1px solid gray; */ background-color: transparent; z-index: 1; } .cell:nth-child(n):hover ~ .mapcontent {--zoom: 1.8;} /* Le zoom réel est de la valeur de --zoom + 1 */ .cell:nth-child(1):hover ~ .mapcontent {--posX: 0%; --posY: 0%;} .cell:nth-child(2):hover ~ .mapcontent {--posX: 10%; --posY: 0%;} .cell:nth-child(3):hover ~ .mapcontent {--posX: 20%; --posY: 0%;} .cell:nth-child(4):hover ~ .mapcontent {--posX: 30%; --posY: 0%;} .cell:nth-child(5):hover ~ .mapcontent {--posX: 40%; --posY: 0%;} .cell:nth-child(6):hover ~ .mapcontent {--posX: 50%; --posY: 0%;} .cell:nth-child(7):hover ~ .mapcontent {--posX: 60%; --posY: 0%;} .cell:nth-child(8):hover ~ .mapcontent {--posX: 70%; --posY: 0%;} .cell:nth-child(9):hover ~ .mapcontent {--posX: 80%; --posY: 0%;} .cell:nth-child(10):hover ~ .mapcontent {--posX: 90%; --posY: 0%;} .cell:nth-child(11):hover ~ .mapcontent {--posX: 100%; --posY: 0%;} .cell:nth-child(12):hover ~ .mapcontent {--posX: 0%; --posY: 10%;} .cell:nth-child(13):hover ~ .mapcontent {--posX: 10%; --posY: 10%;} .cell:nth-child(14):hover ~ .mapcontent {--posX: 20%; --posY: 10%;} .cell:nth-child(15):hover ~ .mapcontent {--posX: 30%; --posY: 10%;} .cell:nth-child(16):hover ~ .mapcontent {--posX: 40%; --posY: 10%;} .cell:nth-child(17):hover ~ .mapcontent {--posX: 50%; --posY: 10%;} .cell:nth-child(18):hover ~ .mapcontent {--posX: 60%; --posY: 10%;} .cell:nth-child(19):hover ~ .mapcontent {--posX: 70%; --posY: 10%;} .cell:nth-child(20):hover ~ .mapcontent {--posX: 80%; --posY: 10%;} .cell:nth-child(21):hover ~ .mapcontent {--posX: 90%; --posY: 10%;} .cell:nth-child(22):hover ~ .mapcontent {--posX: 100%; --posY: 10%;} .cell:nth-child(23):hover ~ .mapcontent {--posX: 0%; --posY: 20%;} .cell:nth-child(24):hover ~ .mapcontent {--posX: 10%; --posY: 20%;} .cell:nth-child(25):hover ~ .mapcontent {--posX: 20%; --posY: 20%;} .cell:nth-child(26):hover ~ .mapcontent {--posX: 30%; --posY: 20%;} .cell:nth-child(27):hover ~ .mapcontent {--posX: 40%; --posY: 20%;} .cell:nth-child(28):hover ~ .mapcontent {--posX: 50%; --posY: 20%;} .cell:nth-child(29):hover ~ .mapcontent {--posX: 60%; --posY: 20%;} .cell:nth-child(30):hover ~ .mapcontent {--posX: 70%; --posY: 20%;} .cell:nth-child(31):hover ~ .mapcontent {--posX: 80%; --posY: 20%;} .cell:nth-child(32):hover ~ .mapcontent {--posX: 90%; --posY: 20%;} .cell:nth-child(33):hover ~ .mapcontent {--posX: 100%; --posY: 20%;} .cell:nth-child(34):hover ~ .mapcontent {--posX: 0%; --posY: 30%;} .cell:nth-child(35):hover ~ .mapcontent {--posX: 10%; --posY: 30%;} .cell:nth-child(36):hover ~ .mapcontent {--posX: 20%; --posY: 30%;} .cell:nth-child(37):hover ~ .mapcontent {--posX: 30%; --posY: 30%;} .cell:nth-child(38):hover ~ .mapcontent {--posX: 40%; --posY: 30%;} .cell:nth-child(39):hover ~ .mapcontent {--posX: 50%; --posY: 30%;} .cell:nth-child(40):hover ~ .mapcontent {--posX: 60%; --posY: 30%;} .cell:nth-child(41):hover ~ .mapcontent {--posX: 70%; --posY: 30%;} .cell:nth-child(42):hover ~ .mapcontent {--posX: 80%; --posY: 30%;} .cell:nth-child(43):hover ~ .mapcontent {--posX: 90%; --posY: 30%;} .cell:nth-child(44):hover ~ .mapcontent {--posX: 100%; --posY: 30%;} .cell:nth-child(45):hover ~ .mapcontent {--posX: 0%; --posY: 40%;} .cell:nth-child(46):hover ~ .mapcontent {--posX: 10%; --posY: 40%;} .cell:nth-child(47):hover ~ .mapcontent {--posX: 20%; --posY: 40%;} .cell:nth-child(48):hover ~ .mapcontent {--posX: 30%; --posY: 40%;} .cell:nth-child(49):hover ~ .mapcontent {--posX: 40%; --posY: 40%;} .cell:nth-child(50):hover ~ .mapcontent {--posX: 50%; --posY: 40%;} .cell:nth-child(51):hover ~ .mapcontent {--posX: 60%; --posY: 40%;} .cell:nth-child(52):hover ~ .mapcontent {--posX: 70%; --posY: 40%;} .cell:nth-child(53):hover ~ .mapcontent {--posX: 80%; --posY: 40%;} .cell:nth-child(54):hover ~ .mapcontent {--posX: 90%; --posY: 40%;} .cell:nth-child(55):hover ~ .mapcontent {--posX: 100%; --posY: 40%;} .cell:nth-child(56):hover ~ .mapcontent {--posX: 0%; --posY: 50%;} .cell:nth-child(57):hover ~ .mapcontent {--posX: 10%; --posY: 50%;} .cell:nth-child(58):hover ~ .mapcontent {--posX: 20%; --posY: 50%;} .cell:nth-child(59):hover ~ .mapcontent {--posX: 30%; --posY: 50%;} .cell:nth-child(60):hover ~ .mapcontent {--posX: 40%; --posY: 50%;} .cell:nth-child(61):hover ~ .mapcontent {--posX: 50%; --posY: 50%;} .cell:nth-child(62):hover ~ .mapcontent {--posX: 60%; --posY: 50%;} .cell:nth-child(63):hover ~ .mapcontent {--posX: 70%; --posY: 50%;} .cell:nth-child(64):hover ~ .mapcontent {--posX: 80%; --posY: 50%;} .cell:nth-child(65):hover ~ .mapcontent {--posX: 90%; --posY: 50%;} .cell:nth-child(66):hover ~ .mapcontent {--posX: 100%; --posY: 50%;} .cell:nth-child(67):hover ~ .mapcontent {--posX: 0%; --posY: 60%;} .cell:nth-child(68):hover ~ .mapcontent {--posX: 10%; --posY: 60%;} .cell:nth-child(69):hover ~ .mapcontent {--posX: 20%; --posY: 60%;} .cell:nth-child(70):hover ~ .mapcontent {--posX: 30%; --posY: 60%;} .cell:nth-child(71):hover ~ .mapcontent {--posX: 40%; --posY: 60%;} .cell:nth-child(72):hover ~ .mapcontent {--posX: 50%; --posY: 60%;} .cell:nth-child(73):hover ~ .mapcontent {--posX: 60%; --posY: 60%;} .cell:nth-child(74):hover ~ .mapcontent {--posX: 70%; --posY: 60%;} .cell:nth-child(75):hover ~ .mapcontent {--posX: 80%; --posY: 60%;} .cell:nth-child(76):hover ~ .mapcontent {--posX: 90%; --posY: 60%;} .cell:nth-child(77):hover ~ .mapcontent {--posX: 100%; --posY: 60%;} .cell:nth-child(78):hover ~ .mapcontent {--posX: 0%; --posY: 70%;} .cell:nth-child(79):hover ~ .mapcontent {--posX: 10%; --posY: 70%;} .cell:nth-child(80):hover ~ .mapcontent {--posX: 20%; --posY: 70%;} .cell:nth-child(81):hover ~ .mapcontent {--posX: 30%; --posY: 70%;} .cell:nth-child(82):hover ~ .mapcontent {--posX: 40%; --posY: 70%;} .cell:nth-child(83):hover ~ .mapcontent {--posX: 50%; --posY: 70%;} .cell:nth-child(84):hover ~ .mapcontent {--posX: 60%; --posY: 70%;} .cell:nth-child(85):hover ~ .mapcontent {--posX: 70%; --posY: 70%;} .cell:nth-child(86):hover ~ .mapcontent {--posX: 80%; --posY: 70%;} .cell:nth-child(87):hover ~ .mapcontent {--posX: 90%; --posY: 70%;} .cell:nth-child(88):hover ~ .mapcontent {--posX: 100%; --posY: 70%;} .cell:nth-child(89):hover ~ .mapcontent {--posX: 0%; --posY: 80%;} .cell:nth-child(90):hover ~ .mapcontent {--posX: 10%; --posY: 80%;} .cell:nth-child(91):hover ~ .mapcontent {--posX: 20%; --posY: 80%;} .cell:nth-child(92):hover ~ .mapcontent {--posX: 30%; --posY: 80%;} .cell:nth-child(93):hover ~ .mapcontent {--posX: 40%; --posY: 80%;} .cell:nth-child(94):hover ~ .mapcontent {--posX: 50%; --posY: 80%;} .cell:nth-child(95):hover ~ .mapcontent {--posX: 60%; --posY: 80%;} .cell:nth-child(96):hover ~ .mapcontent {--posX: 70%; --posY: 80%;} .cell:nth-child(97):hover ~ .mapcontent {--posX: 80%; --posY: 80%;} .cell:nth-child(98):hover ~ .mapcontent {--posX: 90%; --posY: 80%;} .cell:nth-child(99):hover ~ .mapcontent {--posX: 100%; --posY: 80%;} .cell:nth-child(100):hover ~ .mapcontent {--posX: 0%; --posY: 90%;} .cell:nth-child(101):hover ~ .mapcontent {--posX: 10%; --posY: 90%;} .cell:nth-child(102):hover ~ .mapcontent {--posX: 20%; --posY: 90%;} .cell:nth-child(103):hover ~ .mapcontent {--posX: 30%; --posY: 90%;} .cell:nth-child(104):hover ~ .mapcontent {--posX: 40%; --posY: 90%;} .cell:nth-child(105):hover ~ .mapcontent {--posX: 50%; --posY: 90%;} .cell:nth-child(106):hover ~ .mapcontent {--posX: 60%; --posY: 90%;} .cell:nth-child(107):hover ~ .mapcontent {--posX: 70%; --posY: 90%;} .cell:nth-child(108):hover ~ .mapcontent {--posX: 80%; --posY: 90%;} .cell:nth-child(109):hover ~ .mapcontent {--posX: 90%; --posY: 90%;} .cell:nth-child(110):hover ~ .mapcontent {--posX: 100%; --posY: 90%;} .cell:nth-child(111):hover ~ .mapcontent {--posX: 0%; --posY: 100%;} .cell:nth-child(112):hover ~ .mapcontent {--posX: 10%; --posY: 100%;} .cell:nth-child(113):hover ~ .mapcontent {--posX: 20%; --posY: 100%;} .cell:nth-child(114):hover ~ .mapcontent {--posX: 30%; --posY: 100%;} .cell:nth-child(115):hover ~ .mapcontent {--posX: 40%; --posY: 100%;} .cell:nth-child(116):hover ~ .mapcontent {--posX: 50%; --posY: 100%;} .cell:nth-child(117):hover ~ .mapcontent {--posX: 60%; --posY: 100%;} .cell:nth-child(118):hover ~ .mapcontent {--posX: 70%; --posY: 100%;} .cell:nth-child(119):hover ~ .mapcontent {--posX: 80%; --posY: 100%;} .cell:nth-child(120):hover ~ .mapcontent {--posX: 90%; --posY: 100%;} .cell:nth-child(121):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.5 + 1)); transform-origin: var(--posX) var(--posY); transition: all 1s ease-out; } .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: var(--color_main); 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: 1000px; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: contain; } .parallax1 { background-image: url("http://www.jammerjun.net/gahan/images/b/b4/Lande_1.jpg"); } /*background-image: url("http://www.jammerjun.net/gahan/Lande_1.jpg");*/