Last active
June 30, 2016 05:00
-
-
Save oldergod/c2a063f4a57a474e9e94ecc16ce73d91 to your computer and use it in GitHub Desktop.
CSS Coding Tips: Maintainability versus brevity
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: Maintainability versus brevity | |
*/ | |
div { | |
position: absolute; | |
top: calc(50% - 25px); | |
left: calc(50% - 25px); | |
height: 50px; | |
width: 50px; | |
border-color: red; | |
border-style: solid; | |
/* interesting part */ | |
border-width: 20px; | |
border-left-width: 0; | |
} |
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
<div></div> |
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