dummy-team / dummy

Solid foundations for modern front-end development - Pug, Sass, javascript & automation
http://dummy-team.github.io/dummy/
GNU General Public License v3.0
7 stars 5 forks source link

Add `nostyles` objects #78

Closed Plou closed 8 years ago

Plou commented 8 years ago
.nostyle {
  margin: 0; padding: 0;
}

.nostyle-list  { margin: 0; padding: 0; list-style: none;
  > li { margin: 0; padding: 0;
    &::before { display: none; }
  }
}
Gregcop1 commented 8 years ago

If you have a helper noStyle you can use it in :

Why the before ?

Plou commented 8 years ago

The snippet comes from a project where the list bullets are added using the ::before

Gregcop1 commented 8 years ago

ok. So we have to ask ourself if this kind of habits is common in dummy project or not

Plou commented 8 years ago

I'm not sure it is a good idea anymore, cause it will move some style logic back into the html.

.function { margin:0; padding: 0 } is way better than <ul class="function nostyle-list">...</ul>

So we don't have to alter the html in order to update the design.

I label it invalid until anybody say otherwise.