Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions cms/static/sass/elements/_xblocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,29 @@
}
}
}
.location-footer {
.location-container {
position: relative;
background: #f9f9f9;
border-top: 1px solid #ddd;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
.location-label {
position: absolute;
left: 0;
padding: 8px 10px;
border-right: 1px solid #ddd;
z-index: 11;
}
.location-value {
box-sizing: border-box;
width: 100%;
padding: 5px 10px 5px 90px;
z-index: 10;
font-size: .75em;
}
}
}
}

// +Editing - Xblocks
Expand Down
6 changes: 6 additions & 0 deletions cms/templates/studio_xblock_wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
% endif
${content | n, decode.utf8}
</article>
<footer class="location-footer">
<div class="location-container">
<label class="location-label">${_('Location:')}</label>
<p class="location-value">${ xblock.location }</p>
</div>
</footer>
% else:
<div class="xblock-message-area">
${content | n, decode.utf8}
Expand Down