@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap'); :root { --nb_grid: 7; --longueur-anime: calc(15.6rem / (var(--nb_grid) / 6) + 0.3rem * var(--nb_grid) / 6); --border-radius: 10px 27px 27px; --font-size: calc(var(--longueur-anime)*0.05); } html { user-select: none; -webkit-user-drag: none; -webkit-user-select: none; -moz-user-select: none; -webkit-user-modify: none; } .chgmt { color: rgb(160, 33, 33); } body { margin: 0; padding: 0; background-color: var(--bg-body); font-family: 'Lato', sans-serif; } header { position: fixed; z-index: 1; width: 100%; background-color: var(--bg-h-f); color: var(--color-text); padding: 10px 0; top: 0; box-shadow: var(--box-shadow); } #loading { position: absolute; width: 100%; height: 100vh; background: var(--bg-h-f) var(--url_loading) no-repeat center center; z-index: 999999999999; user-select: none; } nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 15px; text-align: center; } nav ul li { display: inline; margin-right: 20px; } nav ul li a { color: var(--color-text); text-decoration: none; position: relative; text-transform: uppercase; font-size: calc(var(--font-size) + 4px); } nav ul li a::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; width: 0; height: 3px; background-color: var(--color-text); transition: width 0.3s ease; } nav ul li a:hover::after { width: 100%; border-radius: var(--border-radius); } section { padding: 10px 20px; margin-top: 70px; } section .texte h1 { font-size: var(--font-size); color: var(--color-text); } section h2 { color: var(--color-text); text-transform: uppercase; } footer { background-color: var(--bg-h-f); color: var(--color-text); text-align: center; padding: 65px 0; margin-top: 120px; } footer h2 { font-size: calc(var(--font-size)*2 + 7px); } footer a { color: var(--color-text); font-size: calc(var(--font-size) + 7px); font-weight: bold; } footer a:hover { text-underline-offset: 7px; text-decoration: underline; font-weight: bold; } a { text-decoration: none; -webkit-user-drag: none; } .articles { display: grid; grid-template-columns: repeat(var(--nb_grid), 1fr); grid-gap: 15px; } .article { position: relative; box-sizing: border-box; background-color: var(--couleur-font-anime); text-align: center; border: 2px solid var(--color-border); border-radius: var(--border-radius); height: var(--longueur-anime); width: auto; box-shadow: var(--box-shadow); } .article:hover { transition: 0.3s; box-shadow: var(--box-shadow-hover); } #manga .image, #manga-envie .image, #actu_scan .image { filter: grayscale(100%); } .image { max-width: 100%; height: auto; border-radius: var(--border-radius); -webkit-user-drag: none; } .name, .date { text-transform: uppercase; } button { color: var(--color-text); border-radius: var(--border-radius); } .buttons { position: absolute; bottom: 10px; width: 100%; display: flex; justify-content: space-evenly; } .button_anime { /**/ background-color: var(--couleur-btn-anime); border: 1px solid var(--couleur-btn-anime); font-size: var(--font-size); font-weight: bold; } .button_film { /**/ background-color: var(--couleur-btn-film); border: 1px solid var(--couleur-btn-film); font-weight: bold; } .button_serie { /**/ background-color: var(--couleur-btn-serie); border: 1px solid var(--couleur-btn-serie); font-weight: bold; } .button_scan { /**/ background-color: var(--couleur-btn-scan); border: 1px solid var(--couleur-btn-scan); font-weight: bold; } .button_sport { /**/ background-color: var(--couleur-btn-sport); border: 1px solid var(--couleur-btn-sport); font-weight: bold; } .night_to_light { position: fixed; width: 50px; height: 50px; bottom: 10px; right: 10px; background-color: var(--bg-h-f); box-shadow: var(--box-shadow-hover); border: none; cursor: pointer; } .fa-moon { color: var(--color-text); transform: scale(2); padding: 2px 0 0 1px; } .fa-sun { color: var(--color-text); transform: scale(2); padding: 2px 0 0 1px; } .time { font-style: italic; opacity: 0.4; font-size: 0.75rem; color: var(--color-text); } #popup { animation: myAnim 0.2s linear 0s 1 normal forwards; position: fixed; background-color: var(--bg-h-f); box-shadow: var(--box-shadow); border-radius: var(--border-radius); z-index: 999999; width: 50%; } @keyframes myAnim { 0% { transform: scale(0.5); } 100% { transform: scale(1); } } .menu { display: grid; grid-template-columns: repeat(var(--nombre-elements, 2), 1fr); /* Utilisation de la variable */ grid-gap: 15px; padding: 10px; } .menu .article { height: auto; } /* Preloader styles */ #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgb(33, 33, 33); display: flex; justify-content: center; align-items: center; z-index: 9999; } .loader { border: 8px solid #484848; border-top: 8px solid #808080; border-radius: 500%; width: 60px; height: 60px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .context-menu { display: none; position: absolute; z-index: 1000; } .context-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-evenly; padding-bottom: 10px; border: 2px solid var(--color-border); border-radius: var(--border-radius); backdrop-filter: blur(10px); } .context-menu li { padding: 5px 10px; flex: 0 0 calc(16.666% - 20px); box-sizing: border-box; } .context-menu .image { max-width: 200px; height: 113px; } @media only screen and (max-width: 1500px) { :root { --longueur-anime: 17rem; } .articles { grid-template-columns: repeat(5, 1fr); } .article { width: auto; } } @media only screen and (max-width: 1100px) { :root { --longueur-anime: 17rem; } .articles { grid-template-columns: repeat(4, 1fr); } } @media only screen and (max-width: 900px) { :root { --longueur-anime: 17rem; } .articles { grid-template-columns: repeat(3, 1fr); } } @media only screen and (max-width: 700px) { :root { --longueur-anime: 11.5rem; --font-size: 10px; } section { margin-top: 100px; } nav ul { grid-template-columns: repeat(6, 1fr); grid-gap: 15px; } .articles { grid-template-columns: repeat(3, 1fr); } } @media only screen and (max-width: 500px) { :root { --longueur-anime: 11.5rem; --font-size: 10px; } section { margin-top: 140px; } nav ul { grid-template-columns: repeat(3, 1fr); grid-gap: 15px; } .articles { grid-template-columns: repeat(2, 1fr); } }