@import url(./style.css); /* ====== DARK MODE ====== */ body.dark-mode .card { background-color: var(--main-dark-other-color); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } body.dark-mode .card-content, body.dark-mode .likes, body.dark-mode .like-icon, body.dark-mode .share-icon, body.dark-mode .likeLien { color: var(--main-dark-text-color); } body.dark-mode .like-icon, body.dark-mode .share-icon { cursor: pointer; } body.dark-mode .commentaire { background-color: var(--main-dark-other-color); } /* ====== LIGHT MODE ====== */ body.light-mode .card { background-color: var(--main-light-other-color); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } body.light-mode .card-content, body.light-mode .likes, body.light-mode .like-icon, body.light-mode .share-icon, body.light-mode .likeLien { color: var(--main-light-text-color); } body.light-mode .like-icon, body.light-mode .share-icon { cursor: pointer; } body.light-mode .commentaire { background-color: var(--main-light-other-color); } body.light-mode .like-icon-none img { filter: invert(100%); } /* ====== DEFAULT ====== */ .central_container { display: flex; justify-content: space-around; padding: 2vh; } .card { margin-top: 5vh; border-radius: 15px; width: 70vw; height: 70vh; display: flex; flex-direction: column; overflow: hidden; } .commentaire { margin-top: 5vh; border-radius: 15px; width: 25vw; height: 68vh; display: flex; padding: 1vh; flex-direction: column; overflow: hidden; } .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: 21vw; height: 5vh; padding-left: 1vh; border: none; border-radius: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .btn { width: 5vh; height: 5vh; 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; cursor: pointer; } .formulaire { display: flex; flex-direction: row; align-items: center; } .comment_section { margin-top: 2vh; display: flex; flex-direction: column; overflow-y: auto; height: 95%; } .comment_section::-webkit-scrollbar { width: 8px; } .comment_section::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 8px; } .comment_section::-webkit-scrollbar-thumb { background-color: #888; border-radius: 8px; border: 2px solid #f1f1f1; } .comment_section::-webkit-scrollbar-thumb:hover { background-color: #555; } .com { background-color: #fff; color: black; display: flex; font-family: "Lemon", sans-serif; flex-direction: column; margin-bottom: 1vh; border-radius: 20px; padding: 2%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .date { margin-bottom: 0.5vh; font-size: small; color: #888; } .icons { margin: 2vh; display: flex; justify-content: space-around; } .like-icon, .like-icon-none { height: 5vh; margin-bottom: 2vh; } .like-icon img, .like-icon-none img { height: 5vh; width: 5vh; } .share-icon { font-size: 50px; } .part1, .part2 { display: flex; } .part2 { justify-content: space-between; } .likes { align-self: flex-end; padding: 2vh; } .infoQuote { margin-bottom: 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: 10px; object-fit: cover; border: #000 solid 1.5px; } .imgIcones { display: flex; align-items: center; } .comAdd:focus { outline: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); } .likeLien { text-decoration: none; } .card-content { margin-left: 20px; flex: 1; } @media (max-width: 834px), (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 { font-size: 20px; line-height: 30px; } .card-image { width: 20vw; height: 20vh; } .quote { font-size: 25px; } .btn { width: 5vh; height: 5vh; } .com { margin-top: 0.5vh; margin-bottom: 0.5vh; padding: 2vh; } .icons { margin: 2vh; } .like-icon, .like-icon-none { height: 3vh; } .like-icon img, .like-icon-none img { height: 3vh; width: 3vh; } .share-icon { font-size: 35px; } .likes { padding: 2vh; } .infoQuote { margin: 2vh; height: 21vh; } #content { width: 75vw; height: 5vw; } }