-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
140 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<section id="spinners" class="section section-spinner"> | ||
<h1 class="h1">Spinners</h1> | ||
|
||
<h2 class="h2">Usage</h2> | ||
|
||
<p class="p">Hover over a spinner to see it in animation.</p> | ||
|
||
<pre class="pre pre-code"> | ||
<svg class="spinner" viewbox='0 0 16 16'> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg></pre> | ||
|
||
<h2 class="h2">Colors</h2> | ||
|
||
<p class="p">If no color is set, spinners will inherit their color from the text color. | ||
|
||
<pre class="pre pre-code"> | ||
<svg class="spinner spinner-blue" viewbox='0 0 16 16'>...</svg> | ||
<svg class="spinner spinner-gray" viewbox='0 0 16 16'>...</svg> | ||
<svg class="spinner spinner-green" viewbox='0 0 16 16'>...</svg> | ||
<svg class="spinner spinner-purple" viewbox='0 0 16 16'>...</svg> | ||
<svg class="spinner spinner-white" viewbox='0 0 16 16'>...</svg></pre> | ||
|
||
<div class="spinners-demo"> | ||
<div class="spinner-wrapper spinner-md spinner-blue"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
|
||
<div class="spinner-wrapper spinner-md spinner-gray"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
|
||
<div class="spinner-wrapper spinner-md spinner-green"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
|
||
<div class="spinner-wrapper spinner-md spinner-purple"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
|
||
<div class="spinner-wrapper spinner-md spinner-white"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
</div> | ||
|
||
<h2 class="h2">Sizes</h2> | ||
|
||
<pre class="pre pre-code"> | ||
<svg class="spinner spinner-lg" viewbox='0 0 16 16'>...</svg> | ||
<svg class="spinner spinner-md" viewbox='0 0 16 16'>...</svg> | ||
<svg class="spinner spinner-sm" viewbox='0 0 16 16'>...</svg></pre> | ||
|
||
<div class="spinners-demo"> | ||
<div class="spinner-wrapper spinner-lg"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
|
||
<div class="spinner-wrapper spinner-md"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
|
||
<div class="spinner-wrapper spinner-sm"> | ||
<svg class="spinner" viewbox="0 0 16 16"> | ||
<circle class="path" cx="8" cy="8" r="7" stroke-linecap="round"></circle> | ||
</svg> | ||
</div> | ||
</div> | ||
</section> |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.section-spinner { | ||
|
||
.spinners-demo { | ||
display: flex; | ||
margin-left: 30px; | ||
} | ||
|
||
.spinner-wrapper { | ||
align-items: center; | ||
background: $gray-lighterest; | ||
border: 1px solid $gray-lighter; | ||
border-radius: $input-border-radius; | ||
cursor: pointer; | ||
display: flex; | ||
float: left; | ||
height: 90px; | ||
margin: 6px; | ||
width: 90px; | ||
|
||
&:hover .spinner { | ||
animation-play-state: running; | ||
} | ||
|
||
.spinner { | ||
animation-play-state: paused; | ||
} | ||
} | ||
|
||
.spinner-white { | ||
background: $gray; | ||
border-color: $gray-dark; | ||
} | ||
} |
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