Commit 5e769955 by Calen Pennington

Merge pull request #803 from MITx/feature/tomg/cms-editing

code mirror styling and a few small tweaks
parents 0f3140bb 59c30ecd
...@@ -157,7 +157,8 @@ ...@@ -157,7 +157,8 @@
} }
.draft-item, .draft-item,
.hidden-item { .hidden-item,
.private-item {
color: #a4aab7; color: #a4aab7;
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
.class-name { .class-name {
display: block; display: block;
font-size: 22px; font-size: 19px;
font-weight: 300; font-weight: 300;
} }
......
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
.draft-tag, .draft-tag,
.hidden-tag, .hidden-tag,
.private-tag,
.has-new-draft-tag { .has-new-draft-tag {
margin-left: 3px; margin-left: 3px;
font-size: 9px; font-size: 9px;
......
...@@ -226,9 +226,20 @@ ...@@ -226,9 +226,20 @@
padding: 20px; padding: 20px;
border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px;
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1)) $blue; background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1)) $blue;
color: #fff;
.module-editor { .metadata_edit {
background: white; margin-bottom: 20px;
font-size: 13px;
}
.CodeMirror {
border: 1px solid #3c3c3c;
}
h3 {
font-size: 18px;
font-weight: 700;
} }
h5 { h5 {
...@@ -238,7 +249,8 @@ ...@@ -238,7 +249,8 @@
} }
.save-button { .save-button {
margin-right: 8px; margin-top: 10px;
margin: 15px 8px 0 0;
} }
} }
} }
...@@ -266,19 +278,8 @@ ...@@ -266,19 +278,8 @@
} }
} }
.visibility-options .option { input[type="radio"] {
margin-right: 10px;
padding: 3px 13px 6px;
border-radius: 3px;
background: #edf1f5;
&.checked {
background: #d1dae3;
}
input[type="radio"] {
margin-right: 7px; margin-right: 7px;
}
} }
.status { .status {
......
...@@ -49,12 +49,11 @@ ...@@ -49,12 +49,11 @@
% for unit in subsection.get_children(): % for unit in subsection.get_children():
<li class="leaf"> <li class="leaf">
<div class="section-item"> <div class="section-item">
<a href="${reverse('edit_unit', args=[unit.location])}" class="hidden-item"> <a href="${reverse('edit_unit', args=[unit.location])}" class="private-item">
<span class="${unit.category}-icon"></span>${unit.display_name} <span class="hidden-tag">– hidden</span> <span class="${unit.category}-icon"></span>${unit.display_name} <span class="private-tag">– private</span>
</a> </a>
<div class="item-actions"> <div class="item-actions">
<a href="${reverse('delete_unit', args=[unit.location])}" class="edit-button wip"><span class="delete-icon"></span></a> <a href="${reverse('delete_unit', args=[unit.location])}" class="edit-button wip"><span class="delete-icon"></span></a>
<a href="#" class="visibility-toggle hidden wip"><span class="toggle-icon"></span></a>
<a href="#" class="drag-handle wip"></a> <a href="#" class="drag-handle wip"></a>
</div> </div>
</div> </div>
......
.CodeMirror {
background: #fff;
font-size: 13px;
color: #3c3c3c;
}
\ No newline at end of file
...@@ -30,6 +30,8 @@ class XMLEditingDescriptor(EditingDescriptor): ...@@ -30,6 +30,8 @@ class XMLEditingDescriptor(EditingDescriptor):
any validation of its definition any validation of its definition
""" """
css = {'scss': [resource_string(__name__, 'css/codemirror/codemirror.scss')]}
js = {'coffee': [resource_string(__name__, 'js/src/raw/edit/xml.coffee')]} js = {'coffee': [resource_string(__name__, 'js/src/raw/edit/xml.coffee')]}
js_module_name = "XMLEditingDescriptor" js_module_name = "XMLEditingDescriptor"
...@@ -40,5 +42,7 @@ class JSONEditingDescriptor(EditingDescriptor): ...@@ -40,5 +42,7 @@ class JSONEditingDescriptor(EditingDescriptor):
any validation of its definition any validation of its definition
""" """
css = {'scss': [resource_string(__name__, 'css/codemirror/codemirror.scss')]}
js = {'coffee': [resource_string(__name__, 'js/src/raw/edit/json.coffee')]} js = {'coffee': [resource_string(__name__, 'js/src/raw/edit/json.coffee')]}
js_module_name = "JSONEditingDescriptor" js_module_name = "JSONEditingDescriptor"
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