Closed lucasdinonolte closed 10 years ago
Readme angepasst. Sind leider zwei Commits, weil ich das erst mit --amend gemacht habe und github das dann nicht annehmen wollte...
@ChristianPeters kannst du hier bei Gelegenheit mal rüber schauen? Gerade bei fluiden Rastern braucht man das border-box
box-sizing eigentlich dringend.
Wollte das langfristig bei Sentres so einsetzen dann...
Okay, habe mir am Ende der Woche dafür ne Deadline gesetzt. ;)
_Christian
Okay, I tested it in an existing project.
I considered whether @mixin grid-container
should set +box-sizing(border-box)
if $grid-box-sizing
is set accordingly.
However, I can't get it working in Chrome. Regardless of which element has a border-box setting, none of the children inherits this property. They default to content-box (browser default). I have to use an asterix:
*
+box-sizing(border-box)
Do you share my experience, @lnolte?
A few documentation to dos are left:
$padding
option to refelect the new $grid-box-sizing
option@ChristianPeters yep, using an *
is the way Paul Irish recommends it http://www.paulirish.com/2012/box-sizing-border-box-ftw/
I'll include the recommendation to the docs
@ChristianPeters guckst du noch mal drüber? Hab schon den nächsten PR im Anschlag :yum:
To not break existing layouts when changing their
box-sizing
toborder-box
a variable of$grid-box-sizing
was added to the _grid.sass.Setting
$grid-box-sizing
toborder-box
will tell crispy that the project is using theborder-box
box-model. Crispy will then skip the recalculation of the column width if there are any old padding and border-width properties set in the mixin.When starting fresh projects you should simply set your box-model to
border-box
and simply don't worry about setting any border or padding-widths to your column mixins.