Skip to content

Instantly share code, notes, and snippets.

@osamingo
Created March 5, 2014 06:04
Show Gist options
  • Save osamingo/9362023 to your computer and use it in GitHub Desktop.
Save osamingo/9362023 to your computer and use it in GitHub Desktop.
A Pen by osamingo.
<a class="button button--primary">ボタン</a>
<a class="button button--alert mt10">ボタン</a>
.button {
display : block;
padding-top : 5px;
padding-bottom: 5px;
border-radius : 5px;
text-align : center;
}
.button--primary {
background : -webkit-linear-gradient(top, #009C50, #008E42);
color : #fff;
text-shadow: 0px -1px 1px #000000;
}
.button--primary:hover {
background: -webkit-linear-gradient(top, #008E42, #009C50);
}
.button--alert {
background : #A7182E;
color : #fff;
text-shadow: 0px -1px 1px #000000;
box-shadow : 1px 2px 1px 0px #B74653 inset;
-moz-box-shadow : 1px 2px 1px 0px #B74653 inset;
-webkit-box-shadow: 1px 2px 1px 0px #B74653 inset;
-o-box-shadow : 1px 2px 1px 0px #B74653 inset;
-ms-box-shadow : 1px 2px 1px 0px #B74653 inset;
}
.mt10 {
margin-top: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment