bookwyrm/bookwyrm/static/css/format.css

85 lines
1.3 KiB
CSS
Raw Normal View History

2020-09-28 21:47:53 +00:00
/* --- 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;
}
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
/* --- BOOK COVERS --- */
.book-cover {
width: 10em;
height: auto;
}
.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;
}