Last active
October 22, 2015 12:41
-
-
Save x-raizor/fa5ca08d1bba8ddfe735 to your computer and use it in GitHub Desktop.
Button hover appearance test
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
/** | |
* Button hover appearance test | |
*/ | |
html { | |
text-align: center; | |
font-family: Proxima Nova, san-serif; | |
background: #f06; | |
background: url('http://d.pr/i/10AsQ+'); | |
min-height: 100%; | |
} | |
button.button { | |
top: 50%; | |
/* Rectangle 65 Copy: */background: #EB3131;border-radius: 6px; | |
border: none; | |
height: 50px; | |
width: 302px; | |
margin: 5em auto 0; | |
border-radius: 6px; | |
color: #fff; | |
font-size: 23px; | |
-webkit-transition: all 0.3s; /* Safari 3.1 to 6.0 */ | |
transition: all 0.3s; | |
} | |
button.button:hover { | |
/* Rectangle 65 Copy: */background-image: linear-gradient(-180deg, #EB3131 0%, #C21111 100%);border-radius: 6px;border-radius: 6px; | |
-webkit-transition: all 0.3s; /* Safari 3.1 to 6.0 */ | |
transition: all 0.3s; | |
} | |
button.button:active{ | |
/* Rectangle 65 Copy: */background-image: linear-gradient(-180deg, #911212 0%, #D91818 10%, #EC3333 100%);border-radius: 6px; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<button class="button">Кнопарик</button> |
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
// alert('Hello world!'); |
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","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