Last active
June 29, 2016 09:46
-
-
Save oldergod/e12a58253d02c918bb37c8fad1305b87 to your computer and use it in GitHub Desktop.
CSS Coding Tips : Minimize code duplication
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
/** | |
* CSS Coding Tips : Minimize code duplication | |
*/ | |
button { | |
padding: 6px 16px; | |
border: 1px solid #446d88; | |
background: #58a linear-gradient(#77a0bb, #58a); | |
border-radius: 4px; | |
box-shadow: 8 1px 5px gray; | |
color: white; | |
text-shadow: 0 -1px 1px #335166; | |
font-size: 20px; | |
line-height: 30px; | |
} |
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>Yes ! |
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-vertical","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment