moviewyrm/bookwyrm/static/css/format.css
2020-09-29 14:45:04 -07:00

132 lines
2.2 KiB
CSS

/* --- ICONS --- */
.icon {
color: black;
font-size: 1.1rem;
vertical-align: super;
}
.hidden-text {
height: 0;
width: 0;
position: absolute;
overflow: hidden;
}
.icon ~ .bubble {
background-color: #FF1654;
color: white;
font-size: 0.7rem;
border-radius: 50%;
display: block;
position: absolute;
text-align: center;
top: 0.8rem;
right: 0.3rem;
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;
}
.cover-container.is-small {
height: 100px;
}
.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;
}
.is-small .no-cover div {
font-size: 0.7em;
padding: 0.1em;
}
/* --- AVATAR --- */
.avatar {
vertical-align: middle;
display: inline;
}
/* --- QUOTES --- */
.quote blockquote {
position: relative;
padding-left: 2em;
}
.quote blockquote:before, .quote blockquote:after {
font-family: 'icomoon';
position: absolute;
}
.quote blockquote:before {
content: "\e904";
top: 0;
left: 0;
}
.quote blockquote:after {
content: "\e903";
right: 0;
}