Skip to content

Instantly share code, notes, and snippets.

@evandavis
Last active May 17, 2018 18:36
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 evandavis/3821512 to your computer and use it in GitHub Desktop.
Save evandavis/3821512 to your computer and use it in GitHub Desktop.
Evan's Preferred CSS rule order
selector
{
list-style: …; /* if applicable */
/* Box model/layout */
box-*: …;
margin: …;
padding: …;
width: …;
min-width: …;
max-width: …;
height: …;
min-height: …;
max-height: …;
/* Theme properties */
background: …;
border: …;
color: …;
direction: …;
font: …;
outline: …;
text-align: …;
text-decoration: …;
text-indent: …;
text-transform: …;
letter-spacing: …;
vertical-align: …;
word-spacing: …;
word-break: …;
word-wrap: …;
quotes: …;
page-break-*: …;
white-space: …;
/* Display */
display: …;
visibility: …;
overflow: …;
clip: …;
resize: …;
opacity: …;
table-layout: …;
position: …;
top: …;
right: …;
bottom: …;
left: …;
z-index: …;
float: …;
clear: …;
/* Transforms and animations */
transform: …;
animation: …;
transition: …;
}
@2goodfor666
Copy link

How do I open these back up so I can read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment