Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add three vertical layouts, of width 1/3, 1/2 and 2/3 of page width.
- Loading branch information
Showing
7 changed files
with
77 additions
and
19 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,24 +1,23 @@ | |||
<div class="panels" i18n:domain="collective.panels"> | <div class="panels" i18n:domain="collective.panels"> | ||
<tal:panels repeat="panel view/panels"> | <tal:panels repeat="panel view/panels"> | ||
<tal:display define="html panel/@@display"> | <tal:render define="html panel/@@display"> | ||
<div class="panel-content" |
|
||
tal:attributes="class string:panel panel-${repeat/panel/index}" | <div tal:attributes="class string:panel panel-${repeat/panel/index}" | ||
tal:condition="html" | tal:condition="html" | ||
tal:content="structure html" | tal:content="structure html" | ||
/> | /> | ||
|
|
||
<dl class="portalMessage info" | <tal:manage condition="view/can_manage"> | ||
tal:condition="python: not html.strip() and view.can_manage"> | <dl class="portalMessage info" | ||
<dt i18n:translate="">Info</dt> | tal:condition="python: not html.strip() and view.can_manage"> | ||
<dd i18n:translate="">This panel is empty.</dd> | <dt i18n:translate="">Info</dt> | ||
</dl> | <dd i18n:translate="">This panel is empty.</dd> | ||
</tal:display> | </dl> | ||
|
|||
<div class="visualClear"></div> | |||
|
|
||
<tal:manage condition="view/can_manage" | <div class="visualClear"></div> | ||
content="structure panel/@@manage" | <div tal:content="structure panel/@@manage" /> | ||
/> | </tal:manage> | ||
</tal:render> | |||
|
|
||
</tal:panels> | </tal:panels> | ||
</div> | </div> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
<div class="row" | |||
tal:attributes="style string:width: ${width}%;; float: left;; margin-left: 1.125%;; margin-right: ${spacing}%" | |||
tal:define="portlets portlets | python: ('↓', ); | |||
spacing spacing | python: 1.125; | |||
width python: 50 - spacing - 1.125" | |||
tal:condition="portlets"> | |||
<div class="cell" style="float: none; left: 0" tal:repeat="portlet portlets"> | |||
<div tal:content="structure portlet" /> | |||
</div> | |||
</div> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
<div class="row" | |||
tal:attributes="style string:width: ${width}%;; float: left;; margin-left: 1.125%;; margin-right: ${spacing}%" | |||
tal:define="portlets portlets | python: ('↓', ); | |||
spacing spacing | python: 1.125; | |||
width python: 33.332 - spacing - 1.125" | |||
tal:condition="portlets"> | |||
<div class="cell" style="float: none; left: 0" tal:repeat="portlet portlets"> | |||
<div tal:content="structure portlet" /> | |||
</div> | |||
</div> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
<div class="row" | |||
tal:attributes="style string:width: ${width}%;; float: left;; margin-left: 1.125%;; margin-right: ${spacing}%" | |||
tal:define="portlets portlets | python: ('↓', ); | |||
spacing spacing | python: 1.125; | |||
width python: 66.667 - spacing - 1.125" | |||
tal:condition="portlets"> | |||
<div class="cell" style="float: none; left: 0" tal:repeat="portlet portlets"> | |||
<div tal:content="structure portlet" /> | |||
</div> | |||
</div> |