-
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.
fixed lightbox, added missing min file, fixed some styling
- Loading branch information
1 parent
ed24377
commit 5def9c8
Showing
5 changed files
with
49 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
/* import lightbox less */ | ||
@import "lightbox.less"; | ||
|
||
#gallery { | ||
overflow: auto; | ||
width: 100%; | ||
height: auto; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.gallery-image img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.lightbox a:focus, | ||
.lightbox a:hover, | ||
.lightbox a:active { | ||
outline: none !important; | ||
} |
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
File renamed without changes.
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,47 +1,38 @@ | ||
<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" | ||
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;"> | ||
|
||
<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 ''"/> | ||
|
||
<section 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="" tal:attributes="href image/url;data-title image/title" data-lightbox="image" data-title=""></a> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
</metal:content-core> | ||
</metal:content-core> | ||
|
||
<script type="text/javascript"> | ||
|
||
require([ | ||
'jquery', | ||
'lightbox', | ||
], function ($) { | ||
'use strict'; | ||
|
||
}) | ||
</script> | ||
|
||
</body> | ||
lang="en" | ||
metal:use-macro="context/main_template/macros/master" | ||
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;"> | ||
|
||
<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> | ||
</div> | ||
|
||
</metal:content-core> | ||
</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