Removed some old CSS code
Wishlist badge now always shown if selected
This commit is contained in:
parent
fd448e3586
commit
c9dd5842b3
|
@ -16,14 +16,14 @@
|
|||
|
||||
.volume-item {
|
||||
&:not(.user-have-it) {
|
||||
.badges { display: none; }
|
||||
|
||||
&:hover .badges {
|
||||
&:hover .badges .badge {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&
|
||||
&.user-wishlisted-it .badge-wishlist-it {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.badges {
|
||||
position: absolute;
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
border: #FFF 3px solid;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
display: none;
|
||||
font-size: @size/1.5;
|
||||
height: @size;
|
||||
line-height: (@size)-3px;
|
||||
|
@ -43,14 +43,6 @@
|
|||
text-align: center;
|
||||
width: @size;
|
||||
}
|
||||
|
||||
.badge-haveit, .badge-wishlist {
|
||||
&:hover {
|
||||
& > span {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% load i18n thumbnail %}
|
||||
<div class="well text-center volume-item {% if volume.pk in user_have_volumes %}user-have-it{% endif %}">
|
||||
<div class="well text-center volume-item {% if volume.pk in user_have_volumes %}user-have-it{% endif %} {% if volume.pk in user_wishlisted_volumes %}user-wishlisted-it{% endif %}">
|
||||
<div class="badges">
|
||||
{% if volume.pk in user_have_volumes %}
|
||||
<a href="{% url "volume.have_it" volume.pk %}" data-pjax="v{{ volume.pk }}" pjax-nopush pjax-messages>
|
||||
|
@ -9,12 +9,12 @@
|
|||
</a>
|
||||
{% else %}
|
||||
<a href="{% url "volume.have_it" volume.pk %}" data-pjax="v{{ volume.pk }}" pjax-nopush pjax-messages>
|
||||
<span class="badge">
|
||||
<span class="badge badge-have-it">
|
||||
<i class="glyphicon glyphicon-ok"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="{% url "volume.wishlist" volume.pk %}" data-pjax="v{{ volume.pk }}" pjax-messages pjax-nopush>
|
||||
<span class="badge {% if volume.pk in user_wishlisted_volumes %}badge-warning{% endif %}">
|
||||
<span class="badge badge-wishlist-it {% if volume.pk in user_wishlisted_volumes %}badge-warning{% endif %}">
|
||||
<i class="glyphicon glyphicon-star"></i>
|
||||
</span>
|
||||
</a>
|
||||
|
|
Reference in New Issue