From a4cea4be9cf324880f35b1f301962ac54285ae8c Mon Sep 17 00:00:00 2001 From: Amir Qayyum khan Date: Wed, 11 Mar 2015 12:04:22 +0500 Subject: [PATCH] Changed enter grade link style to make it look like button and added some spaces in css attributes --- edx_sga/static/css/edx_sga.css | 25 +++++++++++++++++++ .../staff_graded_assignment/show.html | 16 ++++++------ 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/edx_sga/static/css/edx_sga.css b/edx_sga/static/css/edx_sga.css index de645591..9a0a6bd4 100644 --- a/edx_sga/static/css/edx_sga.css +++ b/edx_sga/static/css/edx_sga.css @@ -60,3 +60,28 @@ .sga-block .error { color: red; } + +.sga-block a.button { + background-color: #E5E4E3; + border: 1px solid #cec5c5; + border-radius: 2px; + text-decoration: none; + -moz-user-select: none; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + line-height: normal; + text-align: center; + vertical-align: middle; + white-space: nowrap; + top: 0px; + left: 0px; + z-index: 1; + padding: 2px; + width: 200px; + color: #333346; + font-weight: bold; + font-size: 0.8125em; + margin-top: 1px; +} + diff --git a/edx_sga/templates/staff_graded_assignment/show.html b/edx_sga/templates/staff_graded_assignment/show.html index ff45d89e..eda094bc 100644 --- a/edx_sga/templates/staff_graded_assignment/show.html +++ b/edx_sga/templates/staff_graded_assignment/show.html @@ -87,13 +87,15 @@ <% if (assignment.may_grade) { %> - - <% if (assignment.needs_approval) { %> - {% trans "Approve grade" %} - <% } else { %> - {% trans "Enter grade" %} - <% } %> - +
+ + <% if (assignment.needs_approval) { %> + {% trans "Approve grade" %} + <% } else { %> + {% trans "Enter grade" %} + <% } %> + +
<% } %>