Skip to content

Commit

Permalink
Design changes in sga settings page, added a settings tab and style i…
Browse files Browse the repository at this point in the history
…n css file, added some classes
  • Loading branch information
Amir Qayyum khan committed Mar 18, 2015
1 parent 004807e commit 0536ea0
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
63 changes: 63 additions & 0 deletions edx_sga/static/css/edx_sga.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,66 @@
.sga-block .error {
color: red;
}

.modal-type-edx_sga .wrapper-comp-settings .list-input.settings-list .field.comp-setting-entry {
padding: 10px;
}

.modal-type-edx_sga .comp-setting-entry {
padding: 10px;
margin-right: 10px;
overflow: auto;
margin: 0;
font-size: 11px;
float: right;
width: 100%;
height: auto;
resize: none;
box-sizing: border-box;
border-bottom: 1px #e5e5e5;
box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.1);
font-family:'Open Sans', sans-serif;
color: #4c4c4c;
outline: 0;
}

.modal-type-edx_sga .setting-label{
font-weight: bold;
margin-left: 5px;
}

.modal-type-edx_sga .setting-input{
margin-left: 15px;
width: 30%;
}

.modal-type-edx_sga .setting-help{
margin-top: 10px;
margin-left: 5px;
}

.modal-type-edx_sga ul.editor-modes.action-list.action-modes {
top: 4px;
position: relative;
}

.modal-type-edx_sga ul.editor-modes.action-list.action-modes li {
background-color: #646464;
display: block;
padding: 5px 10px;
border-radius: 4px;
color: #FFF;
text-transform: uppercase;
font-size: 15px;
text-shadow: 0px 0px 2px #333;
width: 90px;
text-align: center;
margin-left: auto;
height: auto;
}

.modal-type-edx_sga ul.editor-modes.action-list.action-modes li a:hover {
background: #777;
color: #FFF;
}

4 changes: 4 additions & 0 deletions edx_sga/templates/staff_graded_assignment/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
{% endfor %}
</ul>
</div>

<script type="application/javascript">
$("ul.action-modes").html(' <li class="view-button sga_editor_tab">{% trans "Settings" %}</li>')
</script>

0 comments on commit 0536ea0

Please sign in to comment.