Last active
August 29, 2015 14:08
-
-
Save gvn/ba728a606925a8499e07 to your computer and use it in GitHub Desktop.
Pure CSS Bubble Steps
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
<ol class="steps"> | |
<li> | |
<a class="current" href="#"><span class="number">1</span> Choose</a> | |
</li> | |
<li> | |
<a href="#"><span class="number">2</span> Details</a> | |
</li> | |
<li> | |
<a href="#"><span class="number">3</span> Share</a> | |
</li> | |
</ol> |
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
body { | |
padding: 100px; | |
} | |
.steps { | |
list-style: none; | |
display: flex; | |
justify-content: center; | |
li { | |
text-align: center; | |
padding-right: 3.7rem; | |
background: linear-gradient(to bottom, #ffffff 0%, #ffffff 28px, #9fb2bc 28px, #9fb2bc 30px, #9fb2bc 32px, #ffffff 32px, #ffffff 100%); | |
&:last-child { | |
padding-right: 0; | |
} | |
} | |
a { | |
&:hover, | |
&:active { | |
text-decoration: none; | |
} | |
color: #9fb2bc; | |
&.current { | |
color: #5d7e8e; | |
font-weight: 900; | |
.number { | |
border: 4px solid #27aae1; | |
color: #27aae1; | |
font-weight: 400; | |
} | |
} | |
} | |
.number { | |
background: #fff; | |
margin-bottom: 1rem; | |
border: 4px solid #9fb2bc; | |
border-radius: 50%; | |
width: 6rem; | |
height: 6rem; | |
text-align: center; | |
line-height: 5.2rem; | |
display: block; | |
font-size: 1.8rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment