Skip to content
Snippets Groups Projects
Verified Commit 6bd3acfe authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add stylesheet.

parent d59f31ca
No related branches found
No related tags found
No related merge requests found
/*
* Selectable CSS3 Rating Stars by Martin Ivanov (@wemakesitesnet)
* @version 1.0
* @author Martin Ivanov
* @url portfolio http://wemakesites.net/
* @url twitter https://twitter.com/wemakesitesnet
* @url blog http://acidmartin.wordpress.com/
**/
/* Work was allegedly released into the public domain,
* as laid out by e-mail.
*/
.django-starfield,
.django-starfield label::before
{
display: inline-block;
}
.django-starfield label:hover,
.django-starfield label:hover ~ label
{
color: #189800;
}
.django-starfield *
{
margin: 0;
padding: 0;
}
.django-starfield input
{
display: none;
}
.django-starfield
{
unicode-bidi: bidi-override;
direction: rtl;
}
.django-starfield label
{
color: #ccc;
}
.django-starfield label::before
{
width: 18px;
line-height: 18px;
text-align: center;
font-size: 18px;
cursor: pointer;
}
.django-starfield input:checked ~ label
{
color: #f5b301;
}
.acidjs-rating-disabled
{
opacity: .50;
-webkit-pointer-events: none;
-moz-pointer-events: none;
pointer-events: none;
}
{% for i in stars %}<!--
--><input type="radio" name="{{ name }}" id="{{ name }}-{{ forloop.counter0 }}"
value="{{ i }}" {% if value == i %}checked="checked"{% endif %} /><!--
--><label for="{{ name }}-{{ forloop.counter0 }}"
style="content: '\{{ codepoint }}'">{{ i }}</label><!--
-->{% endfor %}
<div class="django-starfield">
{% for i in stars %}<!--
--><input type="radio" name="{{ name }}" id="{{ name }}-{{ forloop.counter0 }}"
value="{{ i }}" {% if value == i %}checked="checked"{% endif %} /><!--
--><label for="{{ name }}-{{ forloop.counter0 }}"
style="content: '\{{ codepoint }}'">{{ i }}</label><!--
-->{% endfor %}
</div>
<link rel="stylesheet" url="{% static 'django_starfield/django_starfield.css' %}" />
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment