/* Import UTF-8 */ @charset "UTF-8"; /* Smooth scroll */ @media (prefers-reduced-motion: no-preference) { * { scroll-behavior: smooth; } } /* Import Luciole fonts */ @font-face { font-family: 'luciole'; src: url('/theme/fonts/Luciole-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'luciole-bold'; src: url('/theme/fonts/Luciole-Bold.ttf') format('truetype'); font-weight: bold; font-style: bold; } /* Main font */ * { font-family: "luciole", "helvetica", "consolas", "sans-serif"; font-size: 17px; } /* Variables */ :root { --body-color: rgba(185, 175, 175, 0.493); --header-color: #2a2a44; --headerbackground-color: #ceced1 ; --headerborder-color: rgba(87, 87, 95, 0); --headerbordershadow-color: rgba(87, 87, 95, 0.678); --headerhover-color: #d6d6db; --logo-color: #66666d; --logoborder-color: black; --websitetitle-color: rgb(73, 72, 100); --h1-color: #1c2ba8; --h2-color: rgb(179, 59, 59); --h2borderbottom-color: grey; --footerbackground-color: grey; --maina-color: rgb(173, 165, 168); --articlehover-color: black; --articlehover-background: #959f9752 } /* || Body || */ * { margin: 0; padding: 0; box-sizing: border-box; } body { position: relative; background-color: var(--body-color); } a { text-decoration: none; color: blue; text-decoration: underline dotted; } /* || HEADER NAV || */ header { width: 100%; height: 115px; background-color: var(--headerbackground-color); display: flex; justify-content: space-between; align-items: center; top: 0; border-bottom: solid 2px var(--headerborder-color); box-shadow: 0 3px 10px var(--headerbordershadow-color); } header > a { text-decoration: none; } #logo { height: 100px; background-color: var(--logo-color); border: thick double black; margin: 5px 5px 0 10px; } .website_title { width: 10%; font-size: 3em; color: var(--websitetitle-color); margin-left: 5%; } header > nav { width: 60%; max-width: 900px; height: 100%; margin: 2%; } nav > ul { height: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap; align-items: center; padding-inline-start: 0; margin-block: 0; } nav > ul > li { margin: 0 0.2rem; padding: 0.2rem; display: block; } nav > ul > li > a:hover, a.mail:hover, a.precedent:hover, a.suivant:hover, a.archives_link:hover { background-color: var(--headerhover-color); color: var(--header-color); cursor: pointer; padding: 3px; font-size: 1.2em; } li > a { color: inherit; } /* || Main || */ main { margin: 2% 18%; padding: auto; /* border: solid 3px rgb(92, 78, 78); */ text-align: justify; /* max-width: 1500px;*/ } hr { margin-top: 15px; margin-bottom: 15px; } p, ul { padding: 12px 0; line-height: 1.6; } h1 { color: var(--h2-color); font-family: "luciole-bold"; font-size: 2.5em; text-align: center; color: var(--h1-color); } h2 { color: var(--h2-color); font-family: "luciole-bold"; font-size: 2.2em; text-align: left; padding-top: 15px; } h3, h4 { font-size: 1.6em; font-family: luciole-bold; text-align: left; padding-top: 15px; } main > a:hover { background-color: var(--maina-color); font-size: 2.2em; cursor: pointer; padding: 3px; } /* || Footer nav || */ footer { width: 100%; height: 70px; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; background-color: var(--footerbackground-color); border-top: solid 5px; } #footer-nav { line-height: 1; padding: 5px 0; } /* Pelican */ /* Index page */ .titre_article_liste { font-size: 1.2em; padding-top: 15px; padding-bottom: 1%; } .post-link { font-size: 1.5em; padding-top: 1%; } .infos { font-size: 0.8em; padding: 0; } a.post-link:hover { background-color: var(--articlehover-background); color: var(--articlehover-color); cursor: pointer; padding: 3px; font-size: 1.8em; } /* Article page */ .infos_article { font-size: 0.8em; text-align: center; } /* Archives page */ .archives_date { padding-top: 10px; } .archives_articles_title { padding-top: 2px; text-indent: 5%; text-decoration: underline; } /* Comments part */ .comments { padding-top: 1%; } .mail, .precedent, .suivant { text-decoration: underline; } /* Pagination */ .pagination { text-align: center; padding-top: 30px; } /* Web responsive */ /* Extra small devices (phones, 300px and down) */ @media (max-width: 300px) { header { height: 400px; flex-direction: column; } #logo { margin-bottom: 5px; } header > nav { margin: 0; } .website_title { font-size: 1.5em; margin-left: 0; } header > nav > ul { flex-direction: column; justify-content: left; } /* Besoin de verifier cette partie*/ footer { height: 200px; flex-direction: column; align-items: left; } .footer-text, .footer-link { font-size: 0.9em !important; } main { margin: 4% 10%; } } /* small devices (phones, 600px and down) */ @media (max-width: 700px) and (min-width: 299px) { header { height: 425px; flex-direction: column; } .website_title { font-size: 1.5em; } #logo { margin-bottom: 5px; } header > nav { margin: 0; } header > nav > ul { flex-direction: column; /* justify-content: left; */ } footer { height: 120px; font-size: 0.8em; } main { margin: 4% 10%; } } /* Medium devices (landscape tablets, 920px and down) */ @media (max-width: 1200px) and (min-width: 701px) { header { height: 300px; flex-direction: column; } header > nav { width: 100%; } header > nav > ul { flex-wrap: nowrap; } header > nav > ul > li > a { font-size: 1.2em; } main { margin: 3% 11%; } footer { height: 100px; } } /* Extra large devices (large laptops and desktops, 1200px and up) @media only screen and (min-width: 1200px) {...} */