Commit 2e0f9008 by Diana Huang

Make rubric cleaner and visually simpler

parent 683976d7
.rubric { .rubric {
padding: 40px 0px; margin: 40px 0px;
tr { tr {
margin:10px 0px; margin:10px 0px;
height: 100%; height: 100%;
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
padding: 20px 0px 25px 0px; padding: 20px 0px 25px 0px;
height: 100%; height: 100%;
border: 1px black solid; border: 1px black solid;
text-align: center;
} }
th { th {
padding: 5px; padding: 5px;
...@@ -17,13 +18,11 @@ ...@@ -17,13 +18,11 @@
.points-header th { .points-header th {
padding: 0px; padding: 0px;
} }
label, .rubric-label
.view-only { {
margin:2px;
position: relative; position: relative;
padding: 15px 15px 25px 15px; padding: 15px 15px 25px;
width: 130px; width: 130px;
height:100%;
min-height: 50px; min-height: 50px;
min-width: 50px; min-width: 50px;
font-size: .9em; font-size: .9em;
...@@ -40,9 +39,9 @@ ...@@ -40,9 +39,9 @@
background: #666; background: #666;
color: white; color: white;
} }
input[type=radio]:checked + label { input[type=radio]:checked + .rubric-label {
background: #666; background: white;
color: white; } color: $base-font-color; }
input[class='score-selection'] { input[class='score-selection'] {
position: relative; position: relative;
margin-left: 10px; margin-left: 10px;
......
...@@ -26,15 +26,15 @@ ...@@ -26,15 +26,15 @@
% if view_only: % if view_only:
## if this is the selected rubric block, show it highlighted ## if this is the selected rubric block, show it highlighted
% if option['selected']: % if option['selected']:
<div class="view-only selected-grade"> <div class="rubric-label selected-grade">
% else: % else:
<div class="view-only"> <div class="rubric-label">
% endif % endif
${option['text']} ${option['text']}
</div> </div>
% else: % else:
<input type="radio" class="score-selection" name="score-selection-${i}" id="score-${i}-${j}" value="${option['points']}"/> <input type="radio" class="score-selection" name="score-selection-${i}" id="score-${i}-${j}" value="${option['points']}"/>
<label for="score-${i}-${j}">${option['text']}</label> <label class="rubric-label" for="score-${i}-${j}">${option['text']}</label>
% endif % endif
</td> </td>
% endfor % endfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment