Created
July 13, 2013 17:07
-
-
Save rmariuzzo/5991361 to your computer and use it in GitHub Desktop.
Google Chrome button styles when "webpage is not available".
This file contains hidden or 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 { | |
border: 1px solid rgba(0, 0, 0, 0.25); | |
border-radius: 2px; | |
color: #444; | |
margin: 0px 5px; | |
min-height: 29px; | |
min-width: 65px; | |
-webkit-user-select: none; | |
padding: 8px 13px; | |
/* iOS does not support linear-gradient without a prefix. */ | |
background-image: -webkit-linear-gradient(#ededed, #ededed 38%, #dedede); | |
text-shadow: 0 1px 0 rgb(240, 240, 240); | |
/* Not done on mobile for performance reasons. */ | |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.75); | |
} | |
button:hover { | |
border: 1px solid rgba(0, 0, 0, 0.3); | |
color: #000; | |
background-image: -webkit-linear-gradient(#f0f0f0, #f0f0f0 38%, #e0e0e0); | |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95); | |
} | |
button:active { | |
border: 1px solid rgba(0, 0, 0, 0.3); | |
color: #444; | |
background-image: -webkit-linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7); | |
box-shadow: none; | |
} | |
#reload-button { | |
color: #fff; | |
background-image: -webkit-linear-gradient(#5d9aff, #5d9aff 38%, #5891f0); | |
border: 1px solid rgba(45, 102, 195, 1); | |
text-shadow: 0 1px 0 rgba(0,0,0,0.5); | |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.2); | |
} | |
#reload-button:hover { | |
background-image: -webkit-linear-gradient(#659efd, #659efd 38%, #6097f1); | |
border: 1px solid rgba(45, 102, 195, 1); | |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2); | |
} | |
#reload-button:active { | |
background-image: -webkit-linear-gradient(#6095ed, #6095ed 38%, #6095ed); | |
border: 1px solid rgb(38, 84, 160); | |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment