/* --- ICONS --- */ .icon { color: black; text-decoration: none; font-size: 1.1rem; vertical-align: sub; } .hidden-text { height: 0; width: 0; position: absolute; overflow: hidden; } .icon .bubble { background-color: #FF1654; color: white; font-size: 0.85rem; border-radius: 50%; display: block; position: absolute; text-align: center; top: -0.65rem; right: -0.5rem; height: 1rem; width: 1rem; } /* --- TOGGLES --- */ input.toggle-control { display: none; } .hidden { display: none; } input.toggle-control:checked ~ .toggle-content { display: block; } /* --- STARS --- */ .rate-stars button.icon { background: none; border: none; padding: 0; margin: 0; display: inline; } .rate-stars:hover .icon:before { content: '\e9d9'; } .rate-stars form:hover ~ form .icon:before{ content: '\e9d7'; } /* stars in a review form */ .form-rate-stars:hover .icon:before { content: '\e9d9'; } .form-rate-stars input + .icon:before { content: '\e9d9'; } .form-rate-stars input:checked + .icon:before { content: '\e9d9'; } .form-rate-stars input:checked + * ~ .icon:before { content: '\e9d7'; } .form-rate-stars:hover label.icon:before { content: '\e9d9'; } .form-rate-stars label.icon:hover:before { content: '\e9d9'; } .form-rate-stars label.icon:hover ~ label.icon:before{ content: '\e9d7'; } /* --- BOOK COVERS --- */ .cover-container { height: 250px; } .book-cover { height: 100% object-fit: scale-down; } .no-cover { position: relative; } .no-cover div { position: absolute; padding: 1em; color: white; top: 0; left: 0; text-align: center; } .no-cover .title { text-transform: uppercase; margin-bottom: 1em; } /* --- AVATAR --- */ .avatar { vertical-align: middle; display: inline; }