Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose some masonry configuration. use less to write the css
- Loading branch information
Showing
10 changed files
with
207 additions
and
26 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,12 +1,20 @@ | ||
<registry> | ||
<record name="collective.masonry.vocabulary.mode"> | ||
<field type="plone.registry.field.Tuple"> | ||
<title>Masonry mode</title> | ||
<title>Masonry modes</title> | ||
<value_type type="plone.registry.field.TextLine" /> | ||
</field> | ||
<value> | ||
<element>Fixed width</element> | ||
<element>Fixed width and height</element> | ||
<element>Fixed width 220</element> | ||
<element>Min 220 Max 300</element> | ||
<element>Full width</element> | ||
<element>Width free</element> | ||
</value> | ||
</record> | ||
<record name="collective.masonry.defaultmode"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title>Masonry default mode</title> | ||
</field> | ||
<value>Fixed width 220</value> | ||
</record> | ||
</registry> |
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,10 +1,35 @@ | ||
#portletsAboveContent .portletWrapper{float:left;width:14em;} | ||
#portletsBelowContent .portletWrapper{float:left;width:14em;} | ||
#portletsAboveContent dl.portlet, | ||
#portletsBelowContent dl.portlet{ | ||
font-size:100%; | ||
} | ||
#portletsAboveContent dd, | ||
#portletsBelowContent dd{ | ||
margin-left: 0; | ||
} | ||
/*global behavior: all portlets are in float*/ | ||
#portlets-above .portlet, | ||
#portlets-above .portlet { | ||
float: left; | ||
font-size: 100%; | ||
} | ||
/*Fix for wysiwyg img*/ | ||
#portlets-above .portlet img, | ||
#portlets-above .portlet img { | ||
max-width: 100%; | ||
} | ||
/*THEME 1: fixed-width-220*/ | ||
#portlets-above .fixed-width-220 .portlet, | ||
#portlets-below .fixed-width-220 .portlet { | ||
width: 220px; | ||
margin: 10px; | ||
} | ||
/*THEME 2: min-220-max-300*/ | ||
#portlets-above .min-220-max-300 .portlet, | ||
#portlets-below .min-220-max-300 .portlet { | ||
min-width: 220px; | ||
max-width: 300px; | ||
margin: 10px; | ||
} | ||
/*THEME 3: full width*/ | ||
#portlets-above .full-width .portlet, | ||
#portlets-below .full-width .portlet { | ||
width: 100%!important; | ||
margin: 0; | ||
} | ||
/*THEME 4: Width free (means no constraint except margin)*/ | ||
#portlets-above .width-free .portlet, | ||
#portlets-below .width-free .portlet { | ||
margin: 0; | ||
} |
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,10 +1,10 @@ | ||
$(document).ready(function() { | ||
var $portletAboveContainer = $('#portletsAboveContent'); | ||
var $portletBelowContainer = $('#portletsBelowContent'); | ||
var $portletAboveContainer = $('#portlets-above'); | ||
var $portletBelowContainer = $('#portlets-below'); | ||
$portletAboveContainer.imagesLoaded( function() { | ||
$portletAboveContainer.masonry({itemSelector:'.portletWrapper'}); | ||
$portletAboveContainer.masonry(masonry_configuration); | ||
}); | ||
$portletBelowContainer.imagesLoaded( function() { | ||
$portletBelowContainer.masonry({itemSelector:'.portletWrapper'}); | ||
$portletBelowContainer.masonry(masonry_configuration); | ||
}); | ||
}); |
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,46 @@ | ||
/*global behavior: all portlets are in float*/ | ||
#portlets-above .portlet, | ||
#portlets-above .portlet{ | ||
float:left; | ||
font-size:100%; | ||
} | ||
/*Fix for wysiwyg img*/ | ||
#portlets-above .portlet img, | ||
#portlets-above .portlet img{ | ||
max-width: 100%; | ||
} | ||
|
||
/*THEME 1: fixed-width-220*/ | ||
#portlets-above .fixed-width-220, | ||
#portlets-below .fixed-width-220{ | ||
.portlet{ | ||
width: 220px; | ||
margin: 10px; | ||
} | ||
} | ||
|
||
/*THEME 2: min-220-max-300*/ | ||
#portlets-above .min-220-max-300, | ||
#portlets-below .min-220-max-300{ | ||
.portlet{ | ||
min-width: 220px; | ||
max-width: 300px; | ||
margin: 10px; | ||
} | ||
} | ||
|
||
/*THEME 3: full width*/ | ||
#portlets-above .full-width, | ||
#portlets-below .full-width{ | ||
.portlet{ | ||
width: 100%!important; | ||
margin: 0; | ||
} | ||
} | ||
/*THEME 4: Width free (means no constraint except margin)*/ | ||
#portlets-above .width-free, | ||
#portlets-below .width-free{ | ||
.portlet{ | ||
margin: 0; | ||
} | ||
} |
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