Show spinning when uploading

This commit is contained in:
Yang Zhang
2018-10-29 22:03:40 +08:00
parent b8629729b9
commit daef5fe9d2
2 changed files with 2 additions and 16 deletions
@@ -47,7 +47,7 @@
height: textarea.height(),
'class': textarea.attr('class'),
'id': 'gollum-editor-body-ace'
}).insertBefore(textarea);
}).insertAfter(textarea);
textarea.css('display', 'none');
// NOTE: This requires the page to have only one 'gollum-editor-body'.
@@ -374,7 +374,7 @@ a#function-search { @include editor-button(16); }
/* @section uploads */
#gollum-editor-body {
#gollum-editor-body-ace {
& + div {
display: none;
font-size: 1.5em;
@@ -397,20 +397,6 @@ a#function-search { @include editor-button(16); }
}
}
#gollum-editor-body-ace {
&.dragging {
box-shadow: 0 0 10px #AAE000;
}
&.uploading {
opacity: 0.5;
& + div {
display: block;
}
}
}
/* @section help */
#gollum-editor-help {
clear: both;