diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index d78c294b..b0e9ec2b 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -54,6 +54,29 @@ input.toggle-control:checked ~ .toggle-content { 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 --- */ .book-cover { diff --git a/bookwyrm/static/js/shared.js b/bookwyrm/static/js/shared.js index a1344957..41d2e703 100644 --- a/bookwyrm/static/js/shared.js +++ b/bookwyrm/static/js/shared.js @@ -47,9 +47,9 @@ function tabChange(e) { var tabs = target.parentElement.children; for (i = 0; i < tabs.length; i++) { if (tabs[i].getAttribute('data-id') == identifier) { - tabs[i].className += ' active'; + tabs[i].className += ' is-active'; } else { - tabs[i].className = tabs[i].className.replace('active', ''); + tabs[i].className = tabs[i].className.replace('is-active', ''); } } diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index 87a2f027..5ea05e42 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -1,22 +1,26 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -
No reviews yet!
{{ book.description | description }}+
{{ book.description | description }}{% elif book.parent_work.description %}
{{ book.parent_work.description | description }}{% endif %} diff --git a/bookwyrm/templates/snippets/create_status.html b/bookwyrm/templates/snippets/create_status.html index 1bbad700..ca68a26a 100644 --- a/bookwyrm/templates/snippets/create_status.html +++ b/bookwyrm/templates/snippets/create_status.html @@ -1,43 +1,53 @@ {% load humanize %} {% load fr_display %} -