A Pen by Matijs Brinkhuis on CodePen.
Created
June 8, 2015 12:46
-
-
Save matijs/585d6d3e3f5d24b9ae35 to your computer and use it in GitHub Desktop.
mJmxOG
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
<p> | |
<a href="#" class="button">Foo Bar</a> | |
<button type="button" class="button">Baz Quux</button> | |
</p> |
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
* { | |
box-sizing: border-box; | |
} | |
html { | |
background-color: hsl(300, 100%, 15%); | |
font-family: sans-serif; | |
font-size: 18px; | |
} | |
body { | |
padding: 5em 1em; | |
text-align: center; | |
} | |
.button { | |
background-color: hsl(328, 100%, 54%); | |
border: 0; | |
border-radius: .25em; | |
box-shadow: 0 0 .5em 0 hsla(0, 0%, 0%, .25); | |
color: white; | |
cursor: pointer; | |
display: inline-block; | |
font-size: inherit; | |
font-weight: bold; | |
height: 40px; | |
line-height: 40px; | |
padding: 0 1em; | |
text-decoration: none; | |
transition: all 25ms ease-in-out; | |
vertical-align: middle; | |
-moz-osx-font-smoothing: grayscale; | |
-webkit-font-smoothing: antialias; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
} | |
.button:focus { | |
box-shadow: 0 0 .5em 0 hsla(0, 0%, 0%, .25), 0 0 0 .15em hsla(0, 100%, 100%, .25); | |
outline: 0; | |
} | |
.button:hover { | |
background-color: hsl(328, 100%, 48%); | |
} | |
.button:active { | |
-webkit-transform: scale(.985); | |
-moz-transform: scale(.985); | |
transform: scale(.985); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment