-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from operun/feature/fix_gallery
Feature/fix gallery
- Loading branch information
Showing
12 changed files
with
105 additions
and
47 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,43 @@ | ||
/* import lightbox less */ | ||
@import "lightbox.less"; | ||
@import 'lightbox.less'; | ||
|
||
#gallery { | ||
/* Gallery variables */ | ||
|
||
#image-gallery { | ||
margin-bottom: 30px; | ||
padding: 0 15px 0 15px; | ||
} | ||
|
||
.gallery-image-wrapper { | ||
padding: 15px; | ||
} | ||
|
||
.gallery-image { | ||
position: relative; | ||
width: 100%; | ||
height: auto; | ||
opacity: 0; | ||
} | ||
|
||
.gallery-image img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.lightbox a:focus, | ||
.lightbox a:hover, | ||
.lightbox a:active { | ||
/* Gradient variables */ | ||
|
||
.gallery-image-title { | ||
width: 100%; | ||
position: absolute; | ||
bottom: 0; | ||
display: none; | ||
padding: 10px; | ||
color: #fff; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
/* Overrides */ | ||
|
||
.lightbox a:focus, .lightbox a:hover, .lightbox a:active { | ||
outline: none !important; | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,34 @@ | ||
<html i18n:domain="plone" | ||
lang="en" | ||
metal:use-macro="context/main_template/macros/master" | ||
xml:lang="en" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
xml:lang="en" xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<body> | ||
<metal:content-core fill-slot="content-core"> | ||
<metal:content-core define-macro="content-core" tal:define="toc context/table_of_contents|nothing;"> | ||
<body> | ||
<metal:content-core fill-slot="content-core"> | ||
<metal:content-core define-macro="content-core" tal:define="toc context/table_of_contents|nothing;"> | ||
|
||
<div id="parent-fieldname-text" | ||
tal:condition="exists:context/text" | ||
tal:content="structure python:context.text.output_relative_to(view.context)" | ||
tal:attributes="class python: toc and 'pat-autotoc' or ''"/> | ||
<div id="parent-fieldname-text" tal:condition="exists:context/text" | ||
tal:content="structure python:context.text.output_relative_to(view.context)" | ||
tal:attributes="class python: toc and 'pat-autotoc' or ''" /> | ||
|
||
<div class="row" id="gallery" tal:define="images view/images" tal:condition="images"> | ||
<div class="col-xs-4 col-sm-3" tal:repeat="image images"> | ||
<div class="gallery-image"> | ||
<div class="image-title"> | ||
<h2 tal:content="image/title">Teaser Title</h2> | ||
</div> | ||
<a href="" data-lightbox="" data-title="" tal:attributes="href image/url; | ||
data-lightbox context/id; | ||
data-title image/title"> | ||
<img tal:replace="structure image/image"/> | ||
</a> | ||
</div> | ||
<div class="row" id="image-gallery" tal:define="images view/images" tal:condition="images"> | ||
<div class="col-xs-4 col-sm-3 gallery-image-wrapper" tal:repeat="image images"> | ||
<div class="gallery-image"> | ||
<a href="" data-lightbox="" data-title="" tal:attributes="href image/url; | ||
data-lightbox context/id; | ||
data-title image/title"> | ||
<div class="gallery-image-title" tal:content="image/title"></div> | ||
<img tal:replace="structure image/image" /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</metal:content-core> | ||
</metal:content-core> | ||
</body> | ||
</metal:content-core> | ||
</body> | ||
|
||
</html> |
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,4 +1,4 @@ | ||
<?xml version="1.0"?> | ||
<object name="portal_types" meta_type="Plone Types Tool"> | ||
<object name="Gallery" meta_type="Dexterity FTI"/> | ||
<!-- <object name="Gallery" meta_type="Dexterity FTI"/> --> | ||
</object> |
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,7 @@ | ||
<?xml version="1.0"?> | ||
<object name="Folder" meta_type="Dexterity FTI" i18n:domain="plone" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n"> | ||
<property name="view_methods" purge="False"> | ||
<element value="gallery"/> | ||
</property> | ||
</object> |
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