-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,448 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,65 @@ | ||
.mosaic-enabled, .mosaic-grid { | ||
@import (reference) "@{barcelonetaPath}/less/mixin.grid.plone.less"; | ||
|
||
@columns: @plone-grid-columns; | ||
// We're using the mixin classes from mixin.grid.plone.less to create the default column styles | ||
|
||
.mosaic-enabled, .mosaic-grid, .template-layout { | ||
/* Grid classes, these can also be nested */ | ||
.mosaic-grid-row { | ||
float: left; | ||
width: 100%; | ||
display: block; | ||
position: relative; | ||
} | ||
.mosaic-grid-cell { | ||
position: relative; | ||
float: left; | ||
left: 100%; | ||
.make-row(@gutter: @plone-grid-gutter-width) | ||
} | ||
} | ||
|
||
// grid definition vor editing | ||
// we don't want responsive styles here | ||
.mosaic-enabled, .mosaic-grid { | ||
/* Widths, these are abstracted out so that pixel-based layouts or other | ||
similar approaches can be retrofitted without changing the markup, | ||
or if you want to apply rules like the Golden Ratio to your layouts */ | ||
.mosaic-width-full { | ||
width: 100%; | ||
.make-xs-column((@columns); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-width-half { | ||
width: 50%; | ||
.make-xs-column((@columns / 2); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-width-quarter { | ||
width: 25%; | ||
.make-xs-column((@columns / 4); @gutter: @plone-grid-gutter-width); | ||
} | ||
.mosaic-width-three-quarters { | ||
width: 75%; | ||
.make-xs-column((@columns / 4 * 3); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-width-third { | ||
width: 33.33%; | ||
.make-xs-column((@columns / 3); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-width-two-thirds { | ||
width: 66.67%; | ||
.make-xs-column((@columns / 3 * 2); @gutter: @plone-grid-gutter-width) | ||
} | ||
} | ||
|
||
/* Positioning classes, these are subtracting from a rightmost position */ | ||
.mosaic-position-leftmost { | ||
margin-left: -100%; | ||
// grid definition vor viewing | ||
.template-layout { | ||
/* Widths, these are abstracted out so that pixel-based layouts or other | ||
similar approaches can be retrofitted without changing the markup, | ||
or if you want to apply rules like the Golden Ratio to your layouts */ | ||
.mosaic-width-full { | ||
.make-xs-column((@columns); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-position-third { | ||
margin-left: -66.67%; | ||
.mosaic-width-half { | ||
.make-sm-column((@columns / 2); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-position-two-thirds { | ||
margin-left: -33.33%; | ||
.mosaic-width-quarter { | ||
.make-sm-column((@columns / 2); @gutter: @plone-grid-gutter-width); | ||
.make-md-column((@columns / 4); @gutter: @plone-grid-gutter-width); | ||
} | ||
.mosaic-position-quarter { | ||
margin-left: -75%; | ||
.mosaic-width-three-quarters { | ||
.make-md-column((@columns / 4 * 3); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-position-half { | ||
margin-left: -50%; | ||
.mosaic-width-third { | ||
.make-md-column((@columns / 3); @gutter: @plone-grid-gutter-width) | ||
} | ||
.mosaic-position-three-quarters { | ||
margin-left: -25%; | ||
.mosaic-width-two-thirds { | ||
.make-md-column((@columns / 3 * 2); @gutter: @plone-grid-gutter-width) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
.mosaic-enabled, | ||
.mosaic-grid, | ||
.template-layout { | ||
/* Grid classes, these can also be nested */ | ||
} | ||
.mosaic-enabled .mosaic-grid-row, | ||
.mosaic-grid .mosaic-grid-row, | ||
.template-layout .mosaic-grid-row { | ||
position: relative; | ||
margin-left: -15px; | ||
margin-right: -15px; | ||
} | ||
.mosaic-enabled, | ||
.mosaic-grid { | ||
/* Widths, these are abstracted out so that pixel-based layouts or other | ||
similar approaches can be retrofitted without changing the markup, | ||
or if you want to apply rules like the Golden Ratio to your layouts */ | ||
} | ||
.mosaic-enabled .mosaic-width-full, | ||
.mosaic-grid .mosaic-width-full { | ||
position: relative; | ||
float: left; | ||
width: 100%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.mosaic-enabled .mosaic-width-half, | ||
.mosaic-grid .mosaic-width-half { | ||
position: relative; | ||
float: left; | ||
width: 50%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.mosaic-enabled .mosaic-width-quarter, | ||
.mosaic-grid .mosaic-width-quarter { | ||
position: relative; | ||
float: left; | ||
width: 25%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.mosaic-enabled .mosaic-width-three-quarters, | ||
.mosaic-grid .mosaic-width-three-quarters { | ||
position: relative; | ||
float: left; | ||
width: 75%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.mosaic-enabled .mosaic-width-third, | ||
.mosaic-grid .mosaic-width-third { | ||
position: relative; | ||
float: left; | ||
width: 33.33333333%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.mosaic-enabled .mosaic-width-two-thirds, | ||
.mosaic-grid .mosaic-width-two-thirds { | ||
position: relative; | ||
float: left; | ||
width: 66.66666667%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.template-layout { | ||
/* Widths, these are abstracted out so that pixel-based layouts or other | ||
similar approaches can be retrofitted without changing the markup, | ||
or if you want to apply rules like the Golden Ratio to your layouts */ | ||
} | ||
.template-layout .mosaic-width-full { | ||
position: relative; | ||
float: left; | ||
width: 100%; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.template-layout .mosaic-width-half { | ||
position: relative; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
@media (min-width: 768px) { | ||
.template-layout .mosaic-width-half { | ||
float: left; | ||
width: 50%; | ||
} | ||
} | ||
.template-layout .mosaic-width-quarter { | ||
position: relative; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
@media (min-width: 768px) { | ||
.template-layout .mosaic-width-quarter { | ||
float: left; | ||
width: 50%; | ||
} | ||
} | ||
@media (min-width: 992px) { | ||
.template-layout .mosaic-width-quarter { | ||
float: left; | ||
width: 25%; | ||
} | ||
} | ||
.template-layout .mosaic-width-three-quarters { | ||
position: relative; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
@media (min-width: 992px) { | ||
.template-layout .mosaic-width-three-quarters { | ||
float: left; | ||
width: 75%; | ||
} | ||
} | ||
.template-layout .mosaic-width-third { | ||
position: relative; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
@media (min-width: 992px) { | ||
.template-layout .mosaic-width-third { | ||
float: left; | ||
width: 33.33333333%; | ||
} | ||
} | ||
.template-layout .mosaic-width-two-thirds { | ||
position: relative; | ||
min-height: 1px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
@media (min-width: 992px) { | ||
.template-layout .mosaic-width-two-thirds { | ||
float: left; | ||
width: 66.66666667%; | ||
} | ||
} |
1,140 changes: 1,139 additions & 1 deletion
1,140
src/plone/app/mosaic/browser/static/plone-mosaic.css
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.