-
-
Save iamstarkov/3284416 to your computer and use it in GitHub Desktop.
Untitled
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
.btn_sign { | |
display: inline-block; | |
width: 97px; | |
text-align: center; | |
text-decoration: none; | |
font-size: 12px; | |
line-height: 1.5; | |
color: #fff; | |
border-radius: 3px; | |
border: 1px solid; | |
background: #bbb; | |
position: relative; | |
z-index: 1; | |
} | |
.btn_sign_red { background: #e25252; border-color: #ec4e4c; } | |
.btn_sign_green { background: #3fc351; border-color: #35ab45; } | |
.btn_sign_blue { background: #34c5f6; border-color: #00a6dd; } | |
.btn_sign_red:hover { box-shadow: 0 1px 1px 0 rgba(214, 4, 4, .7);} | |
.btn_sign_green:hover { box-shadow: 0 1px 1px 0 rgba(4, 214, 32, .7);} | |
.btn_sign_blue:hover { box-shadow: 0 1px 1px 0 rgba(4, 163, 215, .7);} | |
.btn_shadow { | |
display: block; | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
border-radius: 3px; | |
box-shadow: 0 18px 18px -18px rgba(255, 255, 255, .6) inset, | |
0 2px 1px -1px #fff inset; | |
z-index: 0; | |
} | |
.btn_text { | |
z-index: 1; | |
} | |
.btn_sign:active .btn-shadow { | |
display: none; | |
box-shadow: 0 18px 18px -18px rgba(255, 255, 255, .6) inset; | |
} | |
.btn_sign +.btn_sign { | |
margin-left: 10px; | |
} | |
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
<a href="#" class="btn_sign"> | |
<span class="btn_text"> | |
asd | |
</span> | |
<span class="btn_shadow"></span> | |
</a> | |
<br /> | |
<br /> | |
<a href="#" class="btn_sign btn_sign_blue"> | |
<span class="btn_text"> | |
Подписаться | |
</span> | |
<span class="btn_shadow"></span> | |
</a> | |
<br /> | |
<br /> | |
<a href="#" class="btn_sign btn_sign_red"> | |
<span class="btn_text"> | |
Подписаться | |
</span> | |
<span class="btn_shadow"></span> | |
</a> | |
<br /> | |
<br /> | |
<a href="#" class="btn_sign btn_sign_green"> | |
<span class="btn_text"> | |
Подписаться | |
</span> | |
<span class="btn_shadow"></span> | |
</a> |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment