Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-starfield
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Kalkoken
django-starfield
Commits
6bd3acfe
Verified
Commit
6bd3acfe
authored
6 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Add stylesheet.
parent
d59f31ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
django_starfield/static/django_starfield.css
+69
-0
69 additions, 0 deletions
django_starfield/static/django_starfield.css
django_starfield/templates/django_starfield/stars.html
+9
-6
9 additions, 6 deletions
django_starfield/templates/django_starfield/stars.html
with
78 additions
and
6 deletions
django_starfield/static/django_starfield.css
0 → 100644
+
69
−
0
View file @
6bd3acfe
/*
* 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
;
}
This diff is collapsed.
Click to expand it.
django_starfield/templates/django_starfield/stars.html
+
9
−
6
View file @
6bd3acfe
{% 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' %}"
/>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment