-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ajax loader spinner #42
Changes from 3 commits
4dc7aa1
a62272d
cc7bc7e
834fb7f
7fb5cfc
0e72330
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,16 @@ | |
z-index: 10 !important; | ||
} | ||
|
||
.xblock--drag-and-drop .drag-container .option .spinner-wrapper { | ||
margin-right: 3px; | ||
float: left; | ||
display: none; | ||
} | ||
|
||
.xblock--drag-and-drop .drag-container .option .item-content { | ||
display: inline-block; | ||
} | ||
|
||
/* Placed option */ | ||
.xblock--drag-and-drop .drag-container .target .option { | ||
position: absolute; | ||
|
@@ -102,6 +112,19 @@ | |
top: calc(50% - 16px); | ||
} | ||
|
||
.xblock--drag-and-drop .drag-container .option .numerical-input .spinner-wrapper { | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
margin-right: 5px; | ||
padding-top: 6px; | ||
display: none; | ||
} | ||
|
||
.xblock--drag-and-drop .drag-container .option .numerical-input .spinner-wrapper { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @e-kolpakov I think you can merge this rule with the previous one; the selectors are identical. |
||
color: #333; | ||
} | ||
|
||
.xblock--drag-and-drop .drag-container .option .numerical-input .input { | ||
display: inline-block; | ||
width: 144px; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% load i18n %} | ||
<section class="xblock--drag-and-drop"> | ||
{% trans "Loading drag and drop exercise." %} | ||
<i class="fa fa-spin fa-spinner"></i>{% trans "Loading drag and drop exercise." %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @e-kolpakov There is no/very little horizontal space between the spinner and the message. Can you make the right-hand margin of the spinner shown in this context consistent with the right-hand margin of the spinner that is shown when dropping an item? |
||
</section> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@e-kolpakov Any specific advantage(s) of using
padding-top
instead ofmargin-top
here? (Just asking because I'm curious :))There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itsjeyd the spinner is shown as if it is inside the text input, so it's just for the symmetry: both spinner wrapper and text input have the same padding.