Skip to content

Commit

Permalink
added document on how to apply to your own gridsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
agitator committed Sep 7, 2016
1 parent 387694e commit b4e708d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/custom-grid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Using a Custom Grid
===================

Mosaic uses specific classnames which define the basic structure using rows and columns.
The default grid system is based on Bootstrap, the default grid system from Plone 5.

Integration of styles on to those classes is done by mixins in less, as you can see defined in mosaic.grid.less.
Mixins that we use are the ones that come from mixin.grid.plone.less within the Barceloneta theme.

Mosaic for now only supports full, half, thirds and quarters for the definiton, that you find in mixin.grid.plone.less.
If you want to use your own grid system, just override the mixin classes with mixins of your choice.

Pro Tip
-------
You problably won't want responsive styles for your edit view, because then you don't see to which position you're moving your tiles otherwise when editing on a smaller device.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The Mosaic editor lets you insert blocks (a.k.a. tiles) into the content of the
getting-started
content-layouts
registry
custom-grid
.. site-layouts
.. typeviews
Expand Down

0 comments on commit b4e708d

Please sign in to comment.