Commit 5fd912ba by Tom Giannattasio

moved component editor to top; polished editor styles

parent 6d7fff1f
...@@ -75,15 +75,9 @@ ...@@ -75,15 +75,9 @@
&.editing { &.editing {
border-color: #6696d7; border-color: #6696d7;
&:hover { .drag-handle,
.drag-handle, .component-actions {
.component-actions a { display: none;
background-color: $blue;
}
.drag-handle {
border-color: $blue;
}
} }
} }
...@@ -230,14 +224,24 @@ ...@@ -230,14 +224,24 @@
@include edit-box; @include edit-box;
display: none; display: none;
padding: 20px; padding: 20px;
border-radius: 0 0 3px 3px; border-radius: 2px 2px 0 0;
@include linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1)); @include linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1));
background-color: $blue; background-color: $blue;
color: #fff; color: #fff;
@include box-shadow(none);
.metadata_edit { .metadata_edit {
margin-bottom: 20px; margin-bottom: 20px;
font-size: 13px; font-size: 13px;
li {
margin-bottom: 10px;
}
label {
display: inline-block;
margin-right: 10px;
}
} }
.CodeMirror { .CodeMirror {
...@@ -245,6 +249,7 @@ ...@@ -245,6 +249,7 @@
} }
h3 { h3 {
margin-bottom: 10px;
font-size: 18px; font-size: 18px;
font-weight: 700; font-weight: 700;
} }
......
${preview}
<div class="component-actions">
<a href="#" class="edit-button"><span class="edit-icon white"></span>Edit</a>
<a href="#" class="delete-button"><span class="delete-icon white"></span>Delete</a>
</div>
<a href="#" class="drag-handle"></a>
<div class="component-editor"> <div class="component-editor">
<div class="module-editor"> <div class="module-editor">
${editor} ${editor}
...@@ -11,4 +5,9 @@ ${preview} ...@@ -11,4 +5,9 @@ ${preview}
<a href="#" class="save-button">Save</a> <a href="#" class="save-button">Save</a>
<a href="#" class="cancel-button">Cancel</a> <a href="#" class="cancel-button">Cancel</a>
</div> </div>
<div class="component-actions">
<a href="#" class="edit-button"><span class="edit-icon white"></span>Edit</a>
<a href="#" class="delete-button"><span class="delete-icon white"></span>Delete</a>
</div>
<a href="#" class="drag-handle"></a>
${preview}
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h3>Metadata</h3> <h3>Metadata</h3>
<ul> <ul>
% for keyname in editable_metadata_fields: % for keyname in editable_metadata_fields:
<li>${keyname}: <input type='text' data-metadata-name='${keyname}' value='${metadata[keyname]}' size='60' /></li> <li><label>${keyname}:</label> <input type='text' data-metadata-name='${keyname}' value='${metadata[keyname]}' size='60' /></li>
% endfor % endfor
</ul> </ul>
</section> </section>
......
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