Skip to content

Instantly share code, notes, and snippets.

@bjrmatos
Created May 13, 2014 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjrmatos/bbbfd398b9788614cf00 to your computer and use it in GitHub Desktop.
Save bjrmatos/bbbfd398b9788614cf00 to your computer and use it in GitHub Desktop.
CSS Order of properties
.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