Skip to content

Commit

Permalink
More info.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Sep 26, 2011
1 parent 01473b2 commit 0cbe8a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions css.md
Expand Up @@ -14,10 +14,10 @@ An haml template like:
must be converted in css:

```css
#content { background:url(/images/middle.png) no-repeat top center #fff;padding:5px }
#content { background:url(/images/middle.png) no-repeat top center #fff;padding:5px }
```

## NEVER USE ID UNLESS IT IS NEEDED BY JS
## NEVER USE "ID" UNLESS IT IS NEEDED BY JS

```haml
#content
Expand All @@ -33,12 +33,16 @@ must be:

## NAMESPACE WITH CSS CLASSES

Each `haml`/`erb` template must **start with** a css class that scope content.

This is bad:

```haml
.login-fields=login_here
.login-warnings=warnings_here
```

must be:
a bit better:

```haml
.login
Expand Down

0 comments on commit 0cbe8a1

Please sign in to comment.