Skip to content

Commit

Permalink
Core mods to fix Loading Indicator usage
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 5, 2021
1 parent 6ad117a commit 70f79c3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
26 changes: 21 additions & 5 deletions less/common/Checkbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@
float: left;
margin-left: -65px;
margin-top: -4px;

.LoadingIndicator {
display: inline-block;
margin-left: 20px;
}
}
}

.Checkbox--switch .Checkbox-display {
width: 50px;
height: 28px;
Expand All @@ -31,8 +27,28 @@
background: @control-bg;
.transition(background-color 0.2s);

.LoadingIndicator {
--size: 22px !important;

&-container {
height: 22px;
}
}

.on& {
background: #58a400;

.LoadingIndicator-container {
// Show loading indicator over the switch button
justify-content: flex-end;
}
}

.off& {
.LoadingIndicator-container {
// Show loading indicator over the switch button
justify-content: flex-start;
}
}

&:before {
Expand Down
2 changes: 1 addition & 1 deletion less/forum/ActivityPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
text-align: center;
margin-top: 10px;

.LoadingIndicator {
.LoadingIndicator-container {
height: 46px;
}
}
Expand Down
7 changes: 4 additions & 3 deletions less/forum/DiscussionList.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
.DiscussionList-loadMore {
text-align: center;
margin-top: 10px;
}
.DiscussionList-loadMore .LoadingIndicator {
height: 46px;

.LoadingIndicator-container {
height: 46px;
}
}

@media @phone {
Expand Down

0 comments on commit 70f79c3

Please sign in to comment.