-
-
Save jaemskyle/9765110 to your computer and use it in GitHub Desktop.
Google-style progress indicator (process)
This file contains hidden or 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
| /** | |
| * Google-style progress indicator (process) | |
| */ | |
| .progress { | |
| display: inline-block; | |
| font-size: 50px; /* Size of the progress indicator */ | |
| width: 1em; | |
| height: 1em; | |
| border: 0 solid grey; | |
| border-radius: 50%; | |
| box-sizing: border-box; | |
| background: silver; | |
| background-origin: border-box; | |
| } | |
| .progress:nth-of-type(2) { border-left-width: .1em; } | |
| .progress:nth-of-type(3) { border-left-width: .2em; } | |
| .progress:nth-of-type(4) { border-left-width: .3em; } | |
| .progress:nth-of-type(5) { border-left-width: .4em; } | |
| .progress:nth-of-type(6) { border-left-width: .5em } | |
| .progress:nth-of-type(7) { border-left-width: .6em } | |
| .progress:nth-of-type(8) { border-left-width: .7em } | |
| .progress:nth-of-type(9) { border-left-width: .8em } | |
| .progress:nth-of-type(10) { border-left-width: .9em } | |
| .progress:nth-of-type(11) { | |
| background: linear-gradient(grey 40%, silver 30%); | |
| transform: rotate(90deg); | |
| } | |
| h1 { | |
| font: bold 100% sans-serif; | |
| } |
This file contains hidden or 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
| <h1>Increasing border-left width</h1> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <div class="progress"></div> | |
| <h1>Split background colours</h1> | |
| <div class="progress"></div> |
This file contains hidden or 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
| // alert('Hello world!'); |
This file contains hidden or 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
| {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment