bookwyrm/bookwyrm/static/css/format.css

133 lines
2.2 KiB
CSS
Raw Normal View History

2020-09-28 21:47:53 +00:00
/* --- ICONS --- */
.icon {
color: black;
font-size: 1.1rem;
2020-09-29 21:45:04 +00:00
vertical-align: super;
2020-09-28 21:47:53 +00:00
}
.hidden-text {
height: 0;
width: 0;
position: absolute;
overflow: hidden;
}
2020-09-29 21:45:04 +00:00
.icon ~ .bubble {
2020-09-28 21:47:53 +00:00
background-color: #FF1654;
color: white;
2020-09-29 21:45:04 +00:00
font-size: 0.7rem;
2020-09-28 21:47:53 +00:00
border-radius: 50%;
display: block;
position: absolute;
text-align: center;
2020-09-29 21:45:04 +00:00
top: 0.8rem;
right: 0.3rem;
2020-09-28 21:47:53 +00:00
height: 1rem;
width: 1rem;
}
/* --- TOGGLES --- */
input.toggle-control {
display: none;
}
2020-09-29 01:25:05 +00:00
.hidden {
2020-09-28 21:47:53 +00:00
display: none;
}
input.toggle-control:checked ~ .toggle-content {
display: block;
}
2020-09-28 22:57:31 +00:00
/* --- 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';
}
2020-09-29 04:08:42 +00:00
2020-09-29 18:00:54 +00:00
/* 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';
}
2020-09-29 04:08:42 +00:00
/* --- BOOK COVERS --- */
2020-09-29 20:11:52 +00:00
.cover-container {
height: 250px;
}
2020-09-29 21:11:55 +00:00
.cover-container.is-small {
height: 100px;
}
2020-09-29 04:08:42 +00:00
.book-cover {
2020-09-29 21:11:55 +00:00
height: 100%;
2020-09-29 20:11:52 +00:00
object-fit: scale-down;
2020-09-29 04:08:42 +00:00
}
.no-cover {
position: relative;
}
.no-cover div {
position: absolute;
padding: 1em;
color: white;
top: 0;
left: 0;
text-align: center;
}
2020-09-29 21:11:55 +00:00
.is-small .no-cover div {
font-size: 0.7em;
padding: 0.1em;
2020-09-29 04:08:42 +00:00
}
/* --- AVATAR --- */
.avatar {
vertical-align: middle;
display: inline;
}
2020-09-29 21:45:04 +00:00
/* --- 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;
}