Created
May 13, 2014 17:19
-
-
Save bjrmatos/bbbfd398b9788614cf00 to your computer and use it in GitHub Desktop.
CSS Order of properties
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
.declaration-order { | |
content: ''; | |
/* Positioning */ | |
position: relative; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
z-index: 1; | |
/* Box Model */ | |
display: block; | |
float: left; | |
width: 100px; | |
height: 100px; | |
/* Typography */ | |
font: 13px "Arial"; | |
color: #000; | |
/* Visual */ | |
background: #fff; | |
border: 1px solid; | |
/* Functional */ | |
transition: 1s ease; | |
/* Misc. LESS or Sass */ | |
&:hover { opacity: 0.5; } | |
&:nth-of-type(2) { color: #555; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment