Add some initial css.

This commit is contained in:
Victor Shnayder
2012-11-20 11:11:18 -05:00
parent d1b433dba5
commit d2cc8696ed
3 changed files with 32 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ class StaffGrading
setup_score_selection: =>
# first, get rid of all the old inputs, if any.
@score_selection_container.html('')
@score_selection_container.html('Choose score: ')
# Now create new labels and inputs for each possible score.
for score in [1..@max_score]
@@ -106,7 +106,7 @@ class StaffGrading
input = """
<input type="radio" name="score-selection" id="#{id}" value="#{score}"/>
""" # " fix broken parsing in emacs
@score_selection_container.append(label + input)
@score_selection_container.append(input + label)
# And now hook up an event handler again
$("input[name='score-selection']").change @graded_callback

View File

@@ -43,6 +43,7 @@
@import "course/profile";
@import "course/gradebook";
@import "course/tabs";
@import "course/staff_grading";
// instructor
@import "course/instructor/instructor";

View File

@@ -0,0 +1,29 @@
div.staff-grading {
textarea.feedback-area {
height: 100px;
margin: 20px;
}
div {
margin: 10px;
}
label {
margin: 10px;
padding: 5px;
display: inline-block;
min-width: 50px;
background-color: #CCC;
text-size: 1.5em;
}
/* Toggled State */
input[type=radio]:checked + label {
background: #666;
color: white;
}
input[name='score-selection'] {
display: none;
}
}