@import url(./style.css); /* ====== DARK MODE ====== */ body.dark-mode .card { background-color: var(--main-dark-other-color); } body.dark-mode .card-content { color: var(--main-dark-text-color); } body.dark-mode .likes { font-size: 20px; color: var(--main-dark-text-color); } body.dark-mode .like-icon { color: var(--main-dark-text-color); cursor: pointer; } body.dark-mode .share-icon { color: var(--main-dark-text-color); cursor: pointer; } body.dark-mode .commentaire{ background-color: var(--main-dark-other-color); } body.dark-mode .likeLien{ color: var(--main-dark-text-color); } /* ====== LIGHT MODE ====== */ body.light-mode .card { background-color: var(--main-light-other-color); } body.light-mode .card-content { color: var(--main-light-text-color); } body.light-mode .likes { font-size: 20px; color: var(--main-light-text-color); } body.light-mode .like-icon { color: var(--main-light-text-color); cursor: pointer; } body.light-mode .share-icon { color: var(--main-light-text-color); cursor: pointer; } body.light-mode .commentaire{ background-color: var(--main-light-other-color); } body.light-mode .likeLien{ color: var(--main-light-text-color); } body.light-mode .like-icon-none img{ filter: invert(100%); } /* ====== DEFAULT ====== */ .central_container{ display: flex; justify-content: space-around; } .card { margin-top: 5vh; border-radius: 15px; width: 70vw; height: 70vh; display: flex; flex-direction: column; } .commentaire{ margin-top: 5vh; border-radius: 15px; width: 25vw; height: 68vh; display: flex; padding: 1vh; flex-direction: column; flex-wrap: nowrap; } .infoQuote { list-style: none; font-size: 25px; line-height: 40px; } .card-image { border-radius: 10px; width: 20vw; height: 35vh; object-fit: cover; } .quote { margin-top: 2vh; font-size: 35px; font-weight: bold; font-style: italic; } .comAdd{ width : 20vw; height : 4vh; padding-left: 1vh; border: none; border-radius: 20px; } .btn{ width : 2vw; height : 4vh; padding-left: 1vh; border: none; border-radius: 50px; text-align: center; background-image: url(../images/icons8-envoyer-24.png); background-repeat: no-repeat; background-position: center; } .formulaire{ display : flex; flex-direction: row; } .comment_section{ margin-top: 2vh; display: flex; flex-direction: column; overflow-y: auto; height: 55vh; } .comment_section::-webkit-scrollbar { width: 8px; /* Largeur de la scrollbar */ } .comment_section::-webkit-scrollbar-track { background: #f1f1f1; /* Couleur de fond */ border-radius: 8px; /* Arrondi pour modernité */ } .comment_section::-webkit-scrollbar-thumb { background-color: #888; /* Couleur du "curseur" */ border-radius: 8px; /* Arrondi du curseur */ border: 2px solid #f1f1f1; /* Petit espace autour pour l'effet moderne */ } .comment_section::-webkit-scrollbar-thumb:hover { background-color: #555; /* Couleur au survol */ } .com{ background-color: #fff; color: black; display: flex; font-family: "Lemon", sans-serif; flex-direction: column; margin-bottom: 1vh; border-radius: 20px; padding : 2%; } .date{ margin-bottom: 0.5vh; font-size: small; } .icons{ margin: 2vh; } .like-icon{ height: 5vh; margin-bottom: 2vh; } .like-icon img{ height: 5vh; width: 5vh; } .like-icon-none img{ height: 5vh; width: 5vh; } .like-icon-none{ height: 5vh; margin-bottom: 2vh; } .share-icon{ font-size: 50px; } .part1{ display: flex; } .part2{ display: flex; justify-content: space-between; } .likes{ align-self: self-end; padding: 2vh; } .infoQuote{ margin: 2vh; height: 31vh; } .userName{ font-size: large; display: inline-block; } .infCom{ display: flex; justify-content: space-between; margin-bottom: -5px; } .avatar{ width: 40px; height: 40px; border-radius: 50%; margin-right: 15px; } .imgIcones{ display: flex; align-items: center; } .comAdd :focus { outline: none; /* Supprime la bordure bleue */ box-shadow: none; /* Supprime également toute ombre ajoutée */ } .likeLien{ text-decoration: none; } .card-content{ margin-left: 20px; flex: 1; } .like-icon-none{ height: 5vh; margin-bottom: 2vh; } .like-icon-none img{ height: 5vh; } @media (max-width: 834px) or (max-aspect-ratio : 1/1){ .central_container{ flex-direction: column; } .card { margin : auto; margin-bottom: 1vh; width: 85vw; height: 50vh; } .commentaire{ margin-top: 1vh; margin: auto; width: 83vw; height: 30vh; } .infoQuote { list-style: none; font-size: 20px; line-height: 30px; } .card-image { width: 20vw; height: 20vh; } .quote { font-size: 25px; } .btn{ width : 5vw; height : 5vw; } .com{ display: flex; flex-direction: column; margin-top: 0.5vh; margin-bottom: 0.5vh; padding : 2vh; } .icons{ margin: 2vh; } .like-icon{ height: 3vh; } .like-icon img{ height: 3vh; width: 5vh; } .like-icon-none img{ height: 3vh; width: 3vh; } .like-icon-none{ height: 3vh; } .share-icon{ font-size: 35px; } .likes{ align-self: self-end; padding: 2vh; } .infoQuote{ margin: 2vh; height: 21vh; } #content{ width: 75vw; height: 5vw; } }