-
Notifications
You must be signed in to change notification settings - Fork 14
Grid System #113
Comments
Just posted proposal after reviewing 7 Grid Systems. Proposal and Notes located here: https://github.com/ucla/WebBlocks/wiki/Grid-Strategy |
@atsengucla took some time to read through all of this. My thought is to slate this as a major item for tomorrow's meeting. |
I have committed a version of the fluid grid. A few mechanics to consider... There are three control variables: $structure-panels: 12 !default;
$structure-panel-gutter: 2.5641% !default;
$structure-panel-width: (100% - ($structure-panels - 1) * $structure-panels-gutter) / $structure_panels; Generally, I would recommend only modifying Based on this, we then get the following:
My implementation uses the Bootstrap mixin Another point is that width controls that are a percentage of the screen are defined with the media query For continuity in Bootstrap, I also bind the width and gutter settings to its definitions of spans and the like: $gridColumns: $structure-panels;
$fluidGridColumnWidth: $structure-panel-width;
$fluidGridGutterWidth: $structure-panel-gutter; This means that Also for Bootstrap, I scoped this so that the While working on this, I also made a few changes to the
It is also worth note that I made the container configurable with two options: $structure-container-gutter: 2%; /* minimum spacing on either side of container */
$structure-container-width-max: 1024px !default; /* pixel-based to limit max size (or false) */ For |
My latest commit b109f52 adds grid supports to WebBlocks core, although both mixins are overwritten by the Bootstrap adapter in Bootstrap's case - and will probably be overridden in most other adapters as well. |
I've updated the documentation for the Grid system based on this. |
Web Blocks will need a grid system.
The discussion was started in #103
Wiki article here:
https://github.com/ucla/WebBlocks/wiki/Grid-Strategy
The text was updated successfully, but these errors were encountered: