A bare minimum responsive framework
df-
has been added to the grid. The sm-
classes have been moved inside a media query, so using sm-
as your default class will no longer kick in until the viewport has reached the value of the $small
breakpoint. (a2d2116b)js
folder (along with a new unminified version), but source JS has moved to a src
folder (c977f7d6)Allow child elements in off-canvas triggers.
.editorconfig
file. (26175e87)toggle-trigger-shown
) added when toggled.closeOnClick
) (56a12737)Previously, BareKit was using some very generic selectors to select all elements that start with sm
, md
and lg
and give them some box model properties (float
and padding
). This caused some trouble, so I decided to separate out those box model properties to their own new class: has-gutter
. This way, you can still use classes like sm-6
for widths, but aren't tied down to the padding and float if you don't want to be.
So if you want to still use the "grid" (not just the width classes), a line that previously looked like this:
<div class="sm-12 md-6 lg-1" style="background: #e1e1e1">1</div>
will now need to look like this:
<div class="sm-12 md-6 lg-1 has-gutter" style="background: #e1e1e1">1</div>
In order to support two off-canvas elements instead of one, the class names needed to set up off-canvas have changed.
This:
<div class="off-canvas-contain right-align">
<section class="off-canvas">
I am content off-canvas.
</section>
<section class="off-canvas-content">
<a href="#" class="off-canvas-trigger">Trigger</a>
<p>I am the main content of the page that gets pushed over when the off-canvas is open. I also contain the off-canvas trigger.</p>
</section>
</div>
Now needs to look like this:
<div class="off-canvas-contain">
<section class="off-canvas-left">
I am content off-canvas.
</section>
<section class="off-canvas-right">
I am content off-canvas.
</section>
<section class="off-canvas-content">
<a href="#" class="off-canvas-trigger-left">Left trigger</a>
<a href="#" class="off-canvas-trigger-right">Right trigger</a>
<p>I am the main content of the page that gets pushed over when the off-canvas is open. I also contain the off-canvas trigger.</p>
</section>
</div>
right-align
and left-align
classes have been removed from the .off-canvas-contain
element and -right
/-left
have been appended to the .off-canvas
and .off-canvas-trigger
elements.