/* @import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap'); */ @import url(./styleScroll.css); :root { --main-dark-background-color: #120B1D; --main-dark-text-color : #ffffff; --main-dark-gradient : linear-gradient(45deg, #4a148c, #7b1fa2); --main-dark-other-color : #000000; --main-light-background-color: #ffffff; /*--main-light-background-color: #ffffff;*/ --main-light-text-color : #000000; --main-light-gradient : linear-gradient(90deg, #78b3eb, #64c1ff); /*--main-light-gradient : linear-gradient(-90deg, #f3e0f7, #dd9aff);*/ /*--main-light-gradient : linear-gradient(45deg, #73CFF6, #DE95CA);*/ --main-light-other-color : #f8eaff; /*--main-light-other-color : #f8eaff;*/ /*--main-light-other-color : #d2d2d8;*/ } /* Général */ body{ font-family: "Lemon", serif; margin : 0%; } /* Dark mode */ body.dark-mode{ background-color: var(--main-dark-background-color); color: var(--main-dark-text-color); } body.dark-mode .header{ background-color: var(--main-dark-other-color); } .dark-mode::-webkit-scrollbar-track { background: var(--main-dark-background-color); border-radius: 8px; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7); position: relative; } .dark-mode::-webkit-scrollbar-thumb { background: var(--main-dark-gradient); border-radius: 10px; border: 2px solid var(--main-dark-other-color); box-shadow: 0 0 10px rgba(106, 0, 255, 0.4); position: relative; } .dark-mode::-webkit-scrollbar-thumb:hover { background: linear-gradient(45deg, #7d00ff, #4b00aa); box-shadow: 0 0 15px rgba(125, 0, 255, 0.7), 0 0 30px rgba(125, 0, 255, 0.5); transform: scale(1.1); } .dark-mode .theme-icon:hover, .dark-mode .nav a:hover { filter: brightness(0) saturate(100%) invert(16%) sepia(27%) saturate(7439%) hue-rotate(259deg) brightness(83%) contrast(110%); } /* Light mode */ body.light-mode{ background-color: var(--main-light-background-color); color: var(--main-light-text-color); } body.light-mode .header{ background-color: var(--main-light-other-color); } body.light-mode .header img{ filter: invert(100%); } .light-mode::-webkit-scrollbar-track { background: var(--main-light-background-color); border-radius: 8px; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2); position: relative; } .light-mode::-webkit-scrollbar-thumb { background: var(--main-light-gradient); border-radius: 10px; border: 2px solid var(--main-light-other-color); box-shadow: 0 0 10px rgba(255, 182, 193, 0.4); position: relative; } .light-mode::-webkit-scrollbar-thumb:hover { background: linear-gradient(45deg, #a0e4ff, #f7cce6); box-shadow: 0 0 15px rgba(160, 228, 255, 0.7), 0 0 30px rgba(247, 204, 230, 0.5); transform: scale(1.1); } .light-mode .theme-icon:hover, .light-mode .nav a:hover { filter: brightness(0) saturate(100%) invert(84%) sepia(88%) saturate(6613%) hue-rotate(276deg) brightness(89%) contrast(95%); } /* écran par défaut */ body{ margin-top: 15vh; } .header { z-index: 100; display: flex; position: fixed; top: 0; width: 100vw; text-align: center; padding: 1%; height: 10vh; } ::-webkit-scrollbar { width: 14px; height: 14px; } #theme-icon{ height : 5vh } .header img{ height : 7vh; } .nav { display: flex; align-items: center; vertical-align: center; gap: 2vw; width: 39%; } .logo { display: flex; align-items: center; justify-content: center; width: 20%; } .logo:hover{ transform: scale(1.1); transition: transform 0.3s ease-in-out; } .logo img{ height : 10vh; } .iconUser{ margin-right: 5px; } .user { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; vertical-align: center; gap: 2vw; width: 39%; } .user img{ height : 7vh; } /* écran tablette*/ @media (max-width: 834px) or (max-aspect-ratio : 1/1){ .nav img{ height: 4vh; } #theme-icon{ height : 3vh } .user img{ height: 5vh; } .logo img{ height : 7vh; } } /* écran téléphone */ @media (max-width: 480px){ }