Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Semantic grid system

We've started to use twitter's bootstrap, specifically just all the .less files.

One thing that's bothering me, is all the extra classes in my html, for instance.. I don't want my page to look like this:

<header class="row">
</head>
<section class="row">
</secton>
<footer class="row">
</footer>

So normally with less I could just fix this, by doing:

header {

  .row;

}

or

header {

  #gridSystem > .row;

}

But this doesn't seem to work..

What would be the correct way to go about this?

like image 350
Evert Avatar asked Feb 21 '26 22:02

Evert


1 Answers

Try use the new version of Bootstrap 2 with new grid system:

header {
    #gridSystem > .generate(@gridColumns, @gridColumnWidth, @gridGutterWidth);
}

References:

http://twitter.github.com/bootstrap/upgrading.html

https://github.com/twitter/bootstrap/blob/master/less/grid.less

http://lesscss.org/#-namespaces

like image 106
Shankar Cabus Avatar answered Feb 24 '26 16:02

Shankar Cabus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!