# HG changeset patch # User Thierry Florac # Date 1546534484 -3600 # Node ID 143f661e27e2217a1ec8d3e85b7e2335d80638dd # Parent 56db1bcbdd8ce18a4152df25391ee90faf1b3dcc Version 0.1.24 diff -r 56db1bcbdd8c -r 143f661e27e2 .hgtags --- a/.hgtags Thu Jan 03 15:30:47 2019 +0100 +++ b/.hgtags Thu Jan 03 17:54:44 2019 +0100 @@ -22,3 +22,4 @@ b2f7d60562baa81f2841f6a658a5a4b00f0c8b6b 0.1.21 46c78cc30b7492b7e5f84dae45b46d0f2891bbf9 0.1.22 088a31dbed81223d13e66475c4394b9717da6319 0.1.23 +4d5930d8c4ba824686ed9f73cb566caaa750e4fa 0.1.23.1 diff -r 56db1bcbdd8c -r 143f661e27e2 buildout.cfg --- a/buildout.cfg Thu Jan 03 15:30:47 2019 +0100 +++ b/buildout.cfg Thu Jan 03 17:54:44 2019 +0100 @@ -79,4 +79,4 @@ eggs = pyams_default_theme [test] [versions] -pyams_default_theme = 0.1.23 +pyams_default_theme = 0.1.24 diff -r 56db1bcbdd8c -r 143f661e27e2 docs/HISTORY.txt --- a/docs/HISTORY.txt Thu Jan 03 15:30:47 2019 +0100 +++ b/docs/HISTORY.txt Thu Jan 03 17:54:44 2019 +0100 @@ -1,6 +1,16 @@ History ======= +0.1.24 +------ + - added dynamic loading of EkkoLightbox plug-in, if required + - updated canonical URL management for site and blog topics + - updated templates + +0.1.23.1 +-------- + - updated main layout template to add missing icons + 0.1.23 ------ - added site summary renderer diff -r 56db1bcbdd8c -r 143f661e27e2 setup.py --- a/setup.py Thu Jan 03 15:30:47 2019 +0100 +++ b/setup.py Thu Jan 03 17:54:44 2019 +0100 @@ -22,7 +22,7 @@ README = os.path.join(DOCS, 'README.txt') HISTORY = os.path.join(DOCS, 'HISTORY.txt') -version = '0.1.23' +version = '0.1.24' long_description = open(README).read() + '\n\n' + open(HISTORY).read() tests_require = [] diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme.egg-info/PKG-INFO --- a/src/pyams_default_theme.egg-info/PKG-INFO Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme.egg-info/PKG-INFO Thu Jan 03 17:54:44 2019 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pyams-default-theme -Version: 0.1.23 +Version: 0.1.24 Summary: PyAMS default theme Home-page: http://hg.ztfy.org/pyams/pyams_default_theme Author: Thierry Florac @@ -11,10 +11,21 @@ History ======= + 0.1.24 + ------ + - added dynamic loading of EkkoLightbox plug-in, if required + - updated canonical URL management for site and blog topics + - updated templates + + 0.1.23.1 + -------- + - updated main layout template to add missing icons + 0.1.23 ------ - added site summary renderer - updated resources specificities renderer attributes + - updates resources and renderers templates 0.1.22 ------ diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme.egg-info/SOURCES.txt --- a/src/pyams_default_theme.egg-info/SOURCES.txt Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme.egg-info/SOURCES.txt Thu Jan 03 17:54:44 2019 +0100 @@ -154,6 +154,7 @@ src/pyams_default_theme/resources/js/ext/ekko-lightbox.min.js.map src/pyams_default_theme/resources/less/pyams-default.less src/pyams_default_theme/shared/__init__.py +src/pyams_default_theme/shared/blog/__init__.py src/pyams_default_theme/shared/common/__init__.py src/pyams_default_theme/shared/common/head.py src/pyams_default_theme/shared/common/interfaces.py diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/features/search/portlet/__init__.py --- a/src/pyams_default_theme/features/search/portlet/__init__.py Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/features/search/portlet/__init__.py Thu Jan 03 17:54:44 2019 +0100 @@ -21,10 +21,10 @@ from pyams_content.features.search import ISearchFolder from pyams_content.features.search.portlet import ISearchResultsPortletSettings from pyams_content.shared.common import IWfSharedContent -from pyams_content.shared.common.portlet.interfaces import ISharedContentHeadViewletManager from pyams_default_theme.features.search.portlet.interfaces import ISearchResultRenderer, \ ISearchResultsPortletDefaultRendererSettings from pyams_default_theme.interfaces import ISearchResultsView +from pyams_default_theme.shared.common.interfaces import ISharedContentHeadViewletManager from pyams_portal.interfaces import IPortalContext, IPortletRenderer from pyams_portal.portlet import PortletRenderer from pyams_skin.interfaces.viewlet import IBreadcrumbs diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/resources/css/pyams-default.css --- a/src/pyams_default_theme/resources/css/pyams-default.css Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/resources/css/pyams-default.css Thu Jan 03 17:54:44 2019 +0100 @@ -141,6 +141,10 @@ padding-top: 3px; padding-left: 1em; } +.footer-simple ul:empty { + padding: 0; + margin: 0; +} .footer-simple li { list-style-type: square; list-style-position: outside; @@ -189,6 +193,9 @@ display: inline-block; margin-right: 1rem; } +.portlet > section.wrapper .carousel img { + max-height: 100vh; +} @media only screen and (min-width: 1340px) { .col-lg-12 .portlet > section.wrapper { margin-left: calc(-50vw + 50%); @@ -324,6 +331,20 @@ top: 0 !important; height: 100vh; } +.ekko-lightbox .ekko-lightbox-container .description { + position: absolute; + bottom: 0; + width: 100%; + font-size: 80%; + background-color: rgba(205, 205, 205, 0.75); + color: black; + padding: 0.5em 1em; + opacity: 0; + transition: all ease-in-out 0.5s; +} +.ekko-lightbox .ekko-lightbox-container:hover .description { + opacity: 1; +} .ekko-lightbox .modal-footer { padding-top: 0; text-align: right !important; diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/resources/css/pyams-default.css.map --- a/src/pyams_default_theme/resources/css/pyams-default.css.map Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/resources/css/pyams-default.css.map Thu Jan 03 17:54:44 2019 +0100 @@ -1,1 +1,1 @@ -{"version":3,"sources":["../less/pyams-default.less"],"names":[],"mappings":";;;AAIC,cAAC;EACA,mBAAA;;AAGD,cAAC;EACA,mBAAA;;;;;AASF;EACC,+CAAA;EACA,cAAA;EACA,kBAAA;;AAGD;AACA;AACA;AACA;AACA;AACA;EAC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C;EACzC,aAAa;IACZ,UAAA;IACA,gBAAA;;;AAIF,wBAA0C;EACzC,aAAa;IACZ,UAAA;IACA,gBAAA;;;AAIF,wBAA0C;EACzC,aAAa;IACZ,UAAA;IACA,gBAAA;;;AAIF,aAAc,YAAY;EACzB,iBAAA;;AAGD,aAAc,OAAM;EACnB,uBAAA;;AAGD,aAAc,QAAQ;EACrB,gBAAA;;AAGD,aAAc,QAAQ,OAAM;EAC3B,0BAAA;;AAGD;EACC,kBAAA;EACA,YAAA;;AAGD,aAAc;EACb,kBAAA;EACA,WAAA;EACA,aAAA;EACA,UAAA;;AAGD;EACC,iBAAA;;AAGD,YAAa;EACZ,kBAAA;;AAGD;EACC,kBAAA;;AAGD,eAAgB;EACf,gBAAA;;AAGD,eAAgB;EACf,kBAAA;EACA,WAAA;EACA,YAAA;;AAGD,wBAA0C;EACzC,eAAgB;IACf,uBAAA;;;AAIF,eAAgB,cAAa;EAC5B,YAAY,+FAAZ;;EAEA,YAAY,gDAAgD,yBAAyB,2CAA2C,wCAAhI;;EAEA,YAAY,kGAAZ;;EAEA,YAAY,6FAAZ;;EAEA,YAAY,8FAAZ;;EAEA,YAAY,gGAAZ;;;AAID,eAAgB,cAAa;EAC5B,YAAY,kGAAZ;;EAEA,YAAY,gDAAgD,yBAAyB,2CAA2C,wCAAhI;;EAEA,YAAY,qGAAZ;;EAEA,YAAY,gGAAZ;;EAEA,YAAY,iGAAZ;;EAEA,YAAY,6FAAZ;;;AAID;EACC,kBAAA;EACA,gBAAA;;AAGD,eAAgB,SAAS;EACxB,kBAAA;;;;;AAQD,YACC;EACC,aAAA;;AAFF,YAKC;EACC,YAAA;;AAGF,SACC;EACC,cAAA;EACA,kBAAA;EACA,sBAAA;EACA,SAAA;EACA,oCAAA;;AAGD,SAAC;AACD,SAAC;EACA,SAAA","file":"pyams-default.css"} \ No newline at end of file +{"version":3,"sources":["../less/pyams-default.less"],"names":[],"mappings":";;;AAIC,cAAC;EACA,mBAAA;;AAGD,cAAC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6FAAZ;;;AAID;EACC,kBAAA;EACA,gBAAA;;AAGD,eAAgB,SAAS;EACxB,kBAAA;;;;;AAQD,YACC;EACC,aAAA;;AAFF,YAKC;EACC,YAAA;;AAGF,SACC;EACC,cAAA;EACA,kBAAA;EACA,sBAAA;EACA,SAAA;EACA,oCAAA;;AAGD,SAAC;AACD,SAAC;EACA,SAAA","file":"pyams-default.css"} \ No newline at end of file diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/resources/css/pyams-default.min.css --- a/src/pyams_default_theme/resources/css/pyams-default.min.css Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/resources/css/pyams-default.min.css Thu Jan 03 17:54:44 2019 +0100 @@ -1,1 +1,1 @@ -.margin-bottom-10{margin-bottom:10px}.margin-bottom-20{margin-bottom:20px}body{font-family:Lato,Helvetica,Arial,sans-serif;margin:0 auto;overflow-x:hidden}h1,h2,h3,h4,h5,h6{font-family:Oswald,Helvetica,Arial,Sans-Serif}svg{width:100%;height:100%}dd ul{position:relative;list-style-position:outside;list-style-type:none;padding-left:1em}dd ul li::before{position:absolute;left:0;content:'-'}.no-padding{padding:0!important}.spacer{padding:1em 0}.spacer.double{padding:2em 0}.spacer hr{margin:0;padding:0}.header-simple .banner{position:relative}.header-simple .banner img.banner_img,.header-simple .banner picture.banner_img{width:100%}.header-simple .banner img.logo,.header-simple .banner picture.logo{position:absolute;top:10px;left:10px;max-height:calc(100% - 20px)}.affix{top:0;width:100%;z-index:9999!important;opacity:.95;transition:all .5s ease-in-out}.affix~.container-fluid{position:relative;top:50px}.navbar{margin-bottom:20px;background-color:#fff;border:1px solid #39413b;font-family:Oswald,Helvetica,Arial,Sans-Serif;transition:all .5s ease-in-out}.navbar a,.navbar a:active,.navbar a:visited{color:#39413b}.navbar .icon-bar,.navbar li.active{background-color:#a5bcaa}.navbar.affix{background-color:#39413b}.navbar.affix a{color:#fff}.navbar.affix .dropdown-menu a{color:#39413b}.navbar.affix:hover a:hover{color:#39413b}.navbar.affix .icon-bar{background-color:#fff}.breadcrumb{margin-bottom:1rem}.page-header{margin-top:2rem}.footer-simple{display:flex;margin-top:2em;border-top:1px solid #ddd;border-bottom:0;background-color:#39413b;color:#fff;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;align-items:flex-start;padding-top:1em;padding-bottom:1em}.footer-simple .title{font-weight:700;margin-bottom:.5em}.footer-simple ul{padding-top:3px;padding-left:1em}.footer-simple li{list-style-type:square;list-style-position:outside;padding-left:0}.footer-simple a,.footer-simple a:hover{color:#eee;cursor:default;text-decoration:none}.footer-simple a[href]:hover{cursor:pointer;text-decoration:underline}@media only screen and (min-width:1200px){.portal-page .slot.col-lg-0{display:none}}@media only screen and (min-width:992px) and (max-width:1199px){.portal-page .slot.col-md-0{display:none}}@media only screen and (min-width:768px) and (max-width:991px){.portal-page .slot.col-sm-0{display:none}}@media only screen and (max-width:767px){.portal-page .slot.col-xs-0{display:none}}.toolbox{display:flex;flex-direction:column}.toolbox button{text-align:left;display:flex!important;align-items:center}.toolbox button i.fa{display:inline-block;margin-right:1rem}@media only screen and (min-width:1340px){.col-lg-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}@media only screen and (min-width:1052px){.col-md-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}@media only screen and (max-width:1051px){.col-sm-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}@media only screen and (max-width:767px){.navbar.affix .dropdown-menu{background-color:#39413b}.navbar.affix .dropdown-menu a{color:#fff}.col-xs-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}.summary .thumbnail.pull-left{margin-right:15px}blockquote{margin-top:2rem;border:1px solid #ddd;border-left:5px solid #ddd}blockquote h3{margin-top:.5em}blockquote .pictogram{position:relative;margin-right:10px}blockquote .pictogram>.svg-container,blockquote .pictogram>img{position:relative;margin-top:calc(100% - 24px);margin-bottom:calc(100% - 24px)}blockquote .pictogram svg{display:block}blockquote.pull-right{padding:0 15px;text-align:left;border:1px solid #ddd;border-left:5px solid #ddd}.panel{margin-top:1rem}.panels{margin-top:2rem}.search-results header,.search-results header>div{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;white-space:nowrap}.search-results .breadcrumb:empty{margin:0;padding:0}.search-results .thumbnail.pull-left{margin-right:3rem}.search-results .tags span{margin:0 .2rem}.search-results li .current{font-weight:700}.search-results li .current:hover,.search-results li .disabled:hover{background-color:transparent}.illustration .author{padding-top:.2em;font-size:.9em;font-style:italic}.gallery{display:flex;flex-wrap:wrap}.gallery .legend{margin-bottom:.2em}.gallery img{box-shadow:0 2px 6px 2px rgba(0,0,0,.75);margin-bottom:5px;filter:grayscale();transition:all ease-in-out .5s}.gallery img:hover{filter:none}.gallery .author{margin-bottom:15px;text-align:right;font-style:italic;font-size:.8em}.ekko-lightbox{position:fixed;top:0!important;height:100vh}.ekko-lightbox .modal-footer{padding-top:0;text-align:right!important;font-style:italic;font-size:.8em}.video-wrapper iframe{width:100%}.milestones{display:flex;justify-content:space-around}.milestones .arrow{font-weight:700;font-size:1.5em}.contact-card .photo.pull-left{margin-right:1em}.contact-card .photo.pull-right{margin-left:1em}.contact-card .address{margin-top:.5em;margin-bottom:.5em}.verbatim .panel-body{position:relative;margin-left:50px}.verbatim .panel-body::before{content:'«';position:absolute;left:-30px;top:0;font-size:4em}.verbatim .panel-body .quote{font-style:italic}.verbatim .panel-body .author{margin-top:.5em}.source pre{font-family:'Source Code Pro',monospace}.thesaurus-term{color:#337ab7;text-decoration:none;font-weight:700;cursor:pointer}.modal{z-index:10050}.modal fieldset legend{padding-top:10px}.modal footer{margin:15px 40px;display:flex;flex-direction:row-reverse}.modal-backdrop,.modal-backdrop.fade.in{position:fixed;width:100%;height:100%;z-index:990}.modal-dialog.modal-max{width:98%;max-width:98%}@media only screen and (min-width:768px){.modal-dialog.modal-xlarge{width:95%;max-width:1000px}}@media only screen and (min-width:768px){.modal-dialog.modal-large{width:80%;max-width:900px}}@media only screen and (min-width:768px){.modal-dialog.modal-medium{width:60%;max-width:650px}}@media only screen and (min-width:768px){.modal-dialog.modal-small{width:40%;max-width:450px}}.modal-dialog .modal-body .modal-viewport{min-height:140px}.modal-dialog .close:hover{background-color:#fff}.modal-dialog .suffix .alert{margin-bottom:0}.modal-dialog .suffix .alert:last-child{border-radius:0 0 5px 5px}.modal-header{position:relative;cursor:move}.modal-header .toolbar{position:absolute;right:25px;bottom:-19px;z-index:1}.modal-title{min-height:1.1em}.modal-title img{margin:0 15px 0 0}.modal-overflow{position:relative}.modal-overflow .modal-body{overflow:hidden}.modal-overflow .scrollmarker{position:absolute;width:100%;height:20px}@media only screen and (max-width:991px){.modal-overflow .scrollmarker{display:none!important}}.modal-overflow .scrollmarker.top{background:-moz-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3276b1),color-stop(17%,rgba(50,118,177,.83)),color-stop(100%,rgba(50,118,177,0)));background:-webkit-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-o-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-ms-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:linear-gradient(to bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%)}.modal-overflow .scrollmarker.bottom{background:-moz-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#3276b1),color-stop(17%,rgba(50,118,177,.83)),color-stop(100%,rgba(50,118,177,0)));background:-webkit-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-o-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-ms-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:linear-gradient(to top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%)}.modal-viewport{overflow-x:hidden;overflow-y:auto}.modal-viewport fieldset .alert{margin:0 -5px 5px!important}.search-form .form-group{display:flex}.search-form input{flex-grow:5}.ams-form fieldset{display:block;position:relative;padding:10px 15px 5px;border:0;background:rgba(255,255,255,.9)}.ams-form:after,.ams-form:before{margin:0} +.margin-bottom-10{margin-bottom:10px}.margin-bottom-20{margin-bottom:20px}body{font-family:Lato,Helvetica,Arial,sans-serif;margin:0 auto;overflow-x:hidden}h1,h2,h3,h4,h5,h6{font-family:Oswald,Helvetica,Arial,Sans-Serif}svg{width:100%;height:100%}dd ul{position:relative;list-style-position:outside;list-style-type:none;padding-left:1em}dd ul li::before{position:absolute;left:0;content:'-'}.no-padding{padding:0!important}.spacer{padding:1em 0}.spacer.double{padding:2em 0}.spacer hr{margin:0;padding:0}.header-simple .banner{position:relative}.header-simple .banner img.banner_img,.header-simple .banner picture.banner_img{width:100%}.header-simple .banner img.logo,.header-simple .banner picture.logo{position:absolute;top:10px;left:10px;max-height:calc(100% - 20px)}.affix{top:0;width:100%;z-index:9999!important;opacity:.95;transition:all .5s ease-in-out}.affix~.container-fluid{position:relative;top:50px}.navbar{margin-bottom:20px;background-color:#fff;border:1px solid #39413b;font-family:Oswald,Helvetica,Arial,Sans-Serif;transition:all .5s ease-in-out}.navbar a,.navbar a:active,.navbar a:visited{color:#39413b}.navbar .icon-bar,.navbar li.active{background-color:#a5bcaa}.navbar.affix{background-color:#39413b}.navbar.affix a{color:#fff}.navbar.affix .dropdown-menu a{color:#39413b}.navbar.affix:hover a:hover{color:#39413b}.navbar.affix .icon-bar{background-color:#fff}.breadcrumb{margin-bottom:1rem}.page-header{margin-top:2rem}.footer-simple{display:flex;margin-top:2em;border-top:1px solid #ddd;border-bottom:0;background-color:#39413b;color:#fff;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;align-items:flex-start;padding-top:1em;padding-bottom:1em}.footer-simple .title{font-weight:700;margin-bottom:.5em}.footer-simple ul{padding-top:3px;padding-left:1em}.footer-simple ul:empty{padding:0;margin:0}.footer-simple li{list-style-type:square;list-style-position:outside;padding-left:0}.footer-simple a,.footer-simple a:hover{color:#eee;cursor:default;text-decoration:none}.footer-simple a[href]:hover{cursor:pointer;text-decoration:underline}@media only screen and (min-width:1200px){.portal-page .slot.col-lg-0{display:none}}@media only screen and (min-width:992px) and (max-width:1199px){.portal-page .slot.col-md-0{display:none}}@media only screen and (min-width:768px) and (max-width:991px){.portal-page .slot.col-sm-0{display:none}}@media only screen and (max-width:767px){.portal-page .slot.col-xs-0{display:none}}.toolbox{display:flex;flex-direction:column}.toolbox button{text-align:left;display:flex!important;align-items:center}.toolbox button i.fa{display:inline-block;margin-right:1rem}.portlet>section.wrapper .carousel img{max-height:100vh}@media only screen and (min-width:1340px){.col-lg-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}@media only screen and (min-width:1052px){.col-md-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}@media only screen and (max-width:1051px){.col-sm-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}@media only screen and (max-width:767px){.navbar.affix .dropdown-menu{background-color:#39413b}.navbar.affix .dropdown-menu a{color:#fff}.col-xs-12 .portlet>section.wrapper{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}.summary .thumbnail.pull-left{margin-right:15px}blockquote{margin-top:2rem;border:1px solid #ddd;border-left:5px solid #ddd}blockquote h3{margin-top:.5em}blockquote .pictogram{position:relative;margin-right:10px}blockquote .pictogram>.svg-container,blockquote .pictogram>img{position:relative;margin-top:calc(100% - 24px);margin-bottom:calc(100% - 24px)}blockquote .pictogram svg{display:block}blockquote.pull-right{padding:0 15px;text-align:left;border:1px solid #ddd;border-left:5px solid #ddd}.panel{margin-top:1rem}.panels{margin-top:2rem}.search-results header,.search-results header>div{display:flex;align-items:center;justify-content:space-between;flex-flow:row nowrap;white-space:nowrap}.search-results .breadcrumb:empty{margin:0;padding:0}.search-results .thumbnail.pull-left{margin-right:3rem}.search-results .tags span{margin:0 .2rem}.search-results li .current{font-weight:700}.search-results li .current:hover,.search-results li .disabled:hover{background-color:transparent}.illustration .author{padding-top:.2em;font-size:.9em;font-style:italic}.gallery{display:flex;flex-wrap:wrap}.gallery .legend{margin-bottom:.2em}.gallery img{box-shadow:0 2px 6px 2px rgba(0,0,0,.75);margin-bottom:5px;filter:grayscale();transition:all ease-in-out .5s}.gallery img:hover{filter:none}.gallery .author{margin-bottom:15px;text-align:right;font-style:italic;font-size:.8em}.ekko-lightbox{position:fixed;top:0!important;height:100vh}.ekko-lightbox .ekko-lightbox-container .description{position:absolute;bottom:0;width:100%;font-size:80%;background-color:rgba(205,205,205,.75);color:#000;padding:.5em 1em;opacity:0;transition:all ease-in-out .5s}.ekko-lightbox .ekko-lightbox-container:hover .description{opacity:1}.ekko-lightbox .modal-footer{padding-top:0;text-align:right!important;font-style:italic;font-size:.8em}.video-wrapper iframe{width:100%}.milestones{display:flex;justify-content:space-around}.milestones .arrow{font-weight:700;font-size:1.5em}.contact-card .photo.pull-left{margin-right:1em}.contact-card .photo.pull-right{margin-left:1em}.contact-card .address{margin-top:.5em;margin-bottom:.5em}.verbatim .panel-body{position:relative;margin-left:50px}.verbatim .panel-body::before{content:'«';position:absolute;left:-30px;top:0;font-size:4em}.verbatim .panel-body .quote{font-style:italic}.verbatim .panel-body .author{margin-top:.5em}.source pre{font-family:'Source Code Pro',monospace}.thesaurus-term{color:#337ab7;text-decoration:none;font-weight:700;cursor:pointer}.modal{z-index:10050}.modal fieldset legend{padding-top:10px}.modal footer{margin:15px 40px;display:flex;flex-direction:row-reverse}.modal-backdrop,.modal-backdrop.fade.in{position:fixed;width:100%;height:100%;z-index:990}.modal-dialog.modal-max{width:98%;max-width:98%}@media only screen and (min-width:768px){.modal-dialog.modal-xlarge{width:95%;max-width:1000px}}@media only screen and (min-width:768px){.modal-dialog.modal-large{width:80%;max-width:900px}}@media only screen and (min-width:768px){.modal-dialog.modal-medium{width:60%;max-width:650px}}@media only screen and (min-width:768px){.modal-dialog.modal-small{width:40%;max-width:450px}}.modal-dialog .modal-body .modal-viewport{min-height:140px}.modal-dialog .close:hover{background-color:#fff}.modal-dialog .suffix .alert{margin-bottom:0}.modal-dialog .suffix .alert:last-child{border-radius:0 0 5px 5px}.modal-header{position:relative;cursor:move}.modal-header .toolbar{position:absolute;right:25px;bottom:-19px;z-index:1}.modal-title{min-height:1.1em}.modal-title img{margin:0 15px 0 0}.modal-overflow{position:relative}.modal-overflow .modal-body{overflow:hidden}.modal-overflow .scrollmarker{position:absolute;width:100%;height:20px}@media only screen and (max-width:991px){.modal-overflow .scrollmarker{display:none!important}}.modal-overflow .scrollmarker.top{background:-moz-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3276b1),color-stop(17%,rgba(50,118,177,.83)),color-stop(100%,rgba(50,118,177,0)));background:-webkit-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-o-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-ms-linear-gradient(top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:linear-gradient(to bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%)}.modal-overflow .scrollmarker.bottom{background:-moz-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#3276b1),color-stop(17%,rgba(50,118,177,.83)),color-stop(100%,rgba(50,118,177,0)));background:-webkit-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-o-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:-ms-linear-gradient(bottom,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%);background:linear-gradient(to top,#3276b1 0,rgba(50,118,177,.83) 17%,rgba(50,118,177,0) 100%)}.modal-viewport{overflow-x:hidden;overflow-y:auto}.modal-viewport fieldset .alert{margin:0 -5px 5px!important}.search-form .form-group{display:flex}.search-form input{flex-grow:5}.ams-form fieldset{display:block;position:relative;padding:10px 15px 5px;border:0;background:rgba(255,255,255,.9)}.ams-form:after,.ams-form:before{margin:0} diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/resources/js/pyams-default.js --- a/src/pyams_default_theme/resources/js/pyams-default.js Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/resources/js/pyams-default.js Thu Jan 03 17:54:44 2019 +0100 @@ -63,10 +63,28 @@ */ $(document).on('click', '[data-toggle="lightbox"]', function (event) { event.preventDefault(); - $(this).ekkoLightbox({ - wrapping: false, - alwaysShowClose: true - }); + var source = $(this); + ams.ajax.check($.fn.ekkoLightbox, + '/--static--/pyams_default_theme/js/ext/ekko-lightbox' + ams.devext + '.js', + function() { + source.ekkoLightbox({ + wrapping: false, + alwaysShowClose: true, + onContentLoaded: function() { + var element = this.element(), + description = element.data('description'), + modal = this.modal(), + container = $('.ekko-lightbox-container', modal); + if (description) { + $('
').addClass('description') + .text(description) + .appendTo(container); + } else { + $('.description', container).remove(); + } + } + }); + }); }); /** diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/resources/js/pyams-default.min.js --- a/src/pyams_default_theme/resources/js/pyams-default.min.js Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/resources/js/pyams-default.min.js Thu Jan 03 17:54:44 2019 +0100 @@ -1,1 +1,1 @@ -!function(o,a){"use strict";var l=a.MyAMS;a.PyAMS_default={search:{updateSort:function(){var a=o('form[id="search-results"]');if(a.exists()){var t=o(this).val();o('input[name="order_by"]',a).val(t),a.submit()}},updatePageLength:function(){var a=o('form[id="search-results"]');if(a.exists()){var t=o(this).val();o('input[name="start"]',a).val(0),o('input[name="length"]',a).val(t),a.submit()}},previousPage:function(){var a=o('form[id="search-results"]');if(a.exists()){var t=o(this).parents("ol.pagination").data("ams-current-page"),e=o('input[name="length"]',a).val();o('input[name="start"]',a).val(e*(t-2)),a.submit()}},nextPage:function(){var a=o('form[id="search-results"]');if(a.exists()){var t=o(this).parents("ol.pagination").data("ams-current-page"),e=o('input[name="length"]',a).val();o('input[name="start"]',a).val(e*t),a.submit()}},gotoPage:function(){var a=o('form[id="search-results"]');if(a.exists()){var t=parseInt(o(this).text()),e=o('input[name="length"]',a).val();o('input[name="start"]',a).val(e*(t-1)),a.submit()}}}},o(document).on("click",'[data-toggle="lightbox"]',function(a){a.preventDefault(),o(this).ekkoLightbox({wrapping:!1,alwaysShowClose:!0})}),o(document).on("click","[data-ams-click-handler]",function(a){var t=o(this),e=t.data("ams-disabled-handlers");if(!0!==e&&"click"!==e&&"all"!==e){var n=t.data();if(n.amsClickHandler){!0!==n.amsStopPropagation&&!0!==n.amsClickStopPropagation||a.stopPropagation(),!0!==n.amsClickKeepDefault&&a.preventDefault();for(var i=n.amsClickHandler.split(/\s+/),s=0;sdiv");a.exists()&&l.dialog.close(a),l.dialog.open("/get-glossary-term.html?term="+o(this).text(),{},{shown:function(){o(".thesaurus-term").off("click").on("click",t)}})};l.require(["error","ajax","dialog"],function(){o(".thesaurus-term").off("click").on("click",t)})}(jQuery,this); +!function(a,t){"use strict";var e=t.MyAMS;t.PyAMS_default={search:{updateSort:function(){var t=a('form[id="search-results"]');if(t.exists()){var e=a(this).val();a('input[name="order_by"]',t).val(e),t.submit()}},updatePageLength:function(){var t=a('form[id="search-results"]');if(t.exists()){var e=a(this).val();a('input[name="start"]',t).val(0),a('input[name="length"]',t).val(e),t.submit()}},previousPage:function(){var t=a('form[id="search-results"]');if(t.exists()){var e=a(this).parents("ol.pagination").data("ams-current-page"),n=a('input[name="length"]',t).val();a('input[name="start"]',t).val(n*(e-2)),t.submit()}},nextPage:function(){var t=a('form[id="search-results"]');if(t.exists()){var e=a(this).parents("ol.pagination").data("ams-current-page"),n=a('input[name="length"]',t).val();a('input[name="start"]',t).val(n*e),t.submit()}},gotoPage:function(){var t=a('form[id="search-results"]');if(t.exists()){var e=parseInt(a(this).text()),n=a('input[name="length"]',t).val();a('input[name="start"]',t).val(n*(e-1)),t.submit()}}}},a(document).on("click",'[data-toggle="lightbox"]',function(t){t.preventDefault();var n=a(this);e.ajax.check(a.fn.ekkoLightbox,"/--static--/pyams_default_theme/js/ext/ekko-lightbox"+e.devext+".js",function(){n.ekkoLightbox({wrapping:!1,alwaysShowClose:!0,onContentLoaded:function(){var t=this.element().data("description"),e=this.modal(),n=a(".ekko-lightbox-container",e);t?a("
").addClass("description").text(t).appendTo(n):a(".description",n).remove()}})})}),a(document).on("click","[data-ams-click-handler]",function(t){var n=a(this),i=n.data("ams-disabled-handlers");if(!0!==i&&"click"!==i&&"all"!==i){var s=n.data();if(s.amsClickHandler){!0!==s.amsStopPropagation&&!0!==s.amsClickStopPropagation||t.stopPropagation(),!0!==s.amsClickKeepDefault&&t.preventDefault();for(var r=s.amsClickHandler.split(/\s+/),o=0;odiv");t.exists()&&e.dialog.close(t),e.dialog.open("/get-glossary-term.html?term="+a(this).text(),{},{shown:function(){a(".thesaurus-term").off("click").on("click",n)}})};e.require(["error","ajax","dialog"],function(){a(".thesaurus-term").off("click").on("click",n)})}(jQuery,this); diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/resources/less/pyams-default.less --- a/src/pyams_default_theme/resources/less/pyams-default.less Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/resources/less/pyams-default.less Thu Jan 03 17:54:44 2019 +0100 @@ -181,6 +181,11 @@ ul { padding-top: 3px; padding-left: 1em; + + &:empty { + padding: 0; + margin: 0; + } } li { list-style-type: square; @@ -241,6 +246,15 @@ } } +.portlet > section.wrapper { + .carousel { + img { + max-height: 100vh; + } + } +} + + @media only screen and (min-width: 1340px) { .col-lg-12 .portlet > section.wrapper { margin-left: ~"calc(-50vw + 50%)"; @@ -423,6 +437,25 @@ top: 0 !important; height: 100vh; + .ekko-lightbox-container { + + .description { + position: absolute; + bottom: 0; + width: 100%; + font-size: 80%; + background-color: rgba(205, 205, 205, 0.75); + color: black; + padding: 0.5em 1em; + opacity: 0; + transition: all ease-in-out 0.5s; + } + &:hover { + .description { + opacity: 1; + } + } + } .modal-footer { padding-top: 0; text-align: right !important; diff -r 56db1bcbdd8c -r 143f661e27e2 src/pyams_default_theme/shared/common/portlet/head.py --- a/src/pyams_default_theme/shared/common/portlet/head.py Thu Jan 03 15:30:47 2019 +0100 +++ b/src/pyams_default_theme/shared/common/portlet/head.py Thu Jan 03 17:54:44 2019 +0100 @@ -14,8 +14,8 @@ from zope.interface import Interface, implementer -from pyams_content.shared.common.portlet.interfaces import ISharedContentHeadViewletManager, \ - ISharedContentHeaderPortletSettings +from pyams_content.shared.common.portlet.interfaces import ISharedContentHeaderPortletSettings +from pyams_default_theme.shared.common.interfaces import ISharedContentHeadViewletManager from pyams_portal.interfaces import IPortalContext, IPortletRenderer from pyams_portal.portlet import PortletRenderer from pyams_skin.layer import IPyAMSLayer, IPyAMSUserLayer