-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add styles for Spinner component (#8801)
* Add styles for Spinner component * Add styles for Spinner component * Improvements to the Spinner component. - Rotation animation can be reused - Background color set from variable - Fix tests * Fixing stylelint issue * Fixing stylelint issue * Trigger Travis * Trigger Travis
- Loading branch information
1 parent
eeda623
commit 6ce1a6b
Showing
10 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
const spinner = <span className="spinner is-active" />; | ||
|
||
export default () => spinner; | ||
export default () => <span className="components-spinner" />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.components-spinner { | ||
display: inline-block; | ||
background-color: $dark-gray-200; | ||
width: 18px; | ||
height: 18px; | ||
opacity: 0.7; | ||
float: right; | ||
margin: 5px 11px 0; | ||
border-radius: 100%; | ||
position: relative; | ||
|
||
&::before { | ||
content: ""; | ||
position: absolute; | ||
background-color: $white; | ||
top: 3px; | ||
left: 3px; | ||
width: 4px; | ||
height: 4px; | ||
border-radius: 100%; | ||
transform-origin: 6px 6px; | ||
@include animate_rotation; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.editor-post-featured-image { | ||
padding: 0; | ||
|
||
.spinner { | ||
.components-spinner { | ||
margin: 0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters