# HG changeset patch # User Thierry Florac # Date 1547831259 -3600 # Node ID e0f8d5d0e31e6f9c9e56db1dc69db7a1d576eef6 # Parent f34545ec2436566c310684947f23af6a675d3a8c Version 0.1.33 diff -r f34545ec2436 -r e0f8d5d0e31e buildout.cfg --- a/buildout.cfg Fri Jan 18 15:43:57 2019 +0100 +++ b/buildout.cfg Fri Jan 18 18:07:39 2019 +0100 @@ -79,4 +79,4 @@ eggs = pyams_default_theme [test] [versions] -pyams_default_theme = 0.1.32 +pyams_default_theme = 0.1.33 diff -r f34545ec2436 -r e0f8d5d0e31e docs/HISTORY.txt --- a/docs/HISTORY.txt Fri Jan 18 15:43:57 2019 +0100 +++ b/docs/HISTORY.txt Fri Jan 18 18:07:39 2019 +0100 @@ -1,6 +1,11 @@ History ======= +0.1.33 +------ + - updated Opengraph and Tweeter metas + - updated styles + 0.1.32 ------ - added Twitter cards metas on shared contents diff -r f34545ec2436 -r e0f8d5d0e31e setup.py --- a/setup.py Fri Jan 18 15:43:57 2019 +0100 +++ b/setup.py Fri Jan 18 18:07:39 2019 +0100 @@ -22,7 +22,7 @@ README = os.path.join(DOCS, 'README.txt') HISTORY = os.path.join(DOCS, 'HISTORY.txt') -version = '0.1.32' +version = '0.1.33' long_description = open(README).read() + '\n\n' + open(HISTORY).read() tests_require = [] diff -r f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme.egg-info/PKG-INFO --- a/src/pyams_default_theme.egg-info/PKG-INFO Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme.egg-info/PKG-INFO Fri Jan 18 18:07:39 2019 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pyams-default-theme -Version: 0.1.32 +Version: 0.1.33 Summary: PyAMS default theme Home-page: http://hg.ztfy.org/pyams/pyams_default_theme Author: Thierry Florac @@ -11,6 +11,11 @@ History ======= + 0.1.33 + ------ + - updated Opengraph and Tweeter metas + - updated styles + 0.1.32 ------ - added Twitter cards metas on shared contents diff -r f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/resources/css/pyams-default.css --- a/src/pyams_default_theme/resources/css/pyams-default.css Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/resources/css/pyams-default.css Fri Jan 18 18:07:39 2019 +0100 @@ -306,6 +306,15 @@ background-color: transparent; } /** + * Associations + */ +ul.associations > li { + margin-bottom: 10px; +} +ul.associations > li > p { + margin-bottom: 0; +} +/** * Images gallery */ .illustration .author { diff -r f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/resources/css/pyams-default.css.map --- a/src/pyams_default_theme/resources/css/pyams-default.css.map Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/resources/css/pyams-default.css.map Fri Jan 18 18:07:39 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;EACC,iDAAA;;AAGD;EACC,WAAA;EACA,YAAA;;AAGD,EACC;EACC,kBAAA;EACA,4BAAA;EACA,qBAAA;EACA,iBAAA;;AALF,EACC,GAMC,GAAE;EACD,kBAAA;EACA,OAAA;EACA,SAAS,GAAT;;AAKH;EACC,oBAAA;;;;;AAOD;EACC,cAAA;;AAEA,OAAC;EACA,cAAA;;AAJF,OAOC;EACC,SAAA;EACA,UAAA;;;;;AAQF,cACC;EACC,kBAAA;;AAIC,cALF,QAGC,QAEE;AAAD,cALF,QAIC,IACE;EACA,WAAA;;AAGD,cATF,QAGC,QAME;AAAD,cATF,QAIC,IAKE;EACA,kBAAA;EACA,SAAA;EACA,UAAA;EACA,6BAAA;;AAMJ;EACC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,aAAA;EACA,gCAAA;;AAGD,MAAO;EACN,kBAAA;EACA,SAAA;;AAGD;EACC,mBAAA;EACA,uBAAA;EACA,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,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;EACA,mBAAA;;;;;AASF;EACC,+CAAA;EACA,cAAA;EACA,kBAAA;;AAGD;AACA;AACA;AACA;AACA;AACA;EACC,iDAAA;;AAGD;EACC,WAAA;EACA,YAAA;;AAGD,EACC;EACC,kBAAA;EACA,4BAAA;EACA,qBAAA;EACA,iBAAA;;AALF,EACC,G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Z;;;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 f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/resources/css/pyams-default.min.css --- a/src/pyams_default_theme/resources/css/pyams-default.min.css Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/resources/css/pyams-default.min.css Fri Jan 18 18:07:39 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:hover a:hover{color:#5d6a60}.navbar.affix-top{margin-bottom:calc(20px - 1rem)}.navbar.affix a{color:#fff}.navbar.affix .dropdown-menu a{color:#39413b}.navbar.affix .icon-bar{background-color:#fff}.breadcrumb{margin-top:1rem;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>div{padding-left:1em;padding-right: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}.panels{display:flex;flex-wrap:wrap}.panel .thumbnail{margin-bottom:.5em}.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:90%;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-wrapper{padding-right:0}.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:hover a:hover{color:#5d6a60}.navbar.affix-top{margin-bottom:calc(20px - 1rem)}.navbar.affix a{color:#fff}.navbar.affix .dropdown-menu a{color:#39413b}.navbar.affix .icon-bar{background-color:#fff}.breadcrumb{margin-top:1rem;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>div{padding-left:1em;padding-right: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}.panels{display:flex;flex-wrap:wrap}.panel .thumbnail{margin-bottom:.5em}.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}ul.associations>li{margin-bottom:10px}ul.associations>li>p{margin-bottom:0}.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:90%;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-wrapper{padding-right:0}.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 f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/resources/less/pyams-default.less --- a/src/pyams_default_theme/resources/less/pyams-default.less Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/resources/less/pyams-default.less Fri Jan 18 18:07:39 2019 +0100 @@ -405,6 +405,19 @@ /** + * Associations + */ +ul.associations { + >li { + margin-bottom: 10px; + + >p { + margin-bottom: 0; + } + } +} + +/** * Images gallery */ diff -r f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/root/opengraph.py --- a/src/pyams_default_theme/root/opengraph.py Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/root/opengraph.py Fri Jan 18 18:07:39 2019 +0100 @@ -59,6 +59,7 @@ # illustration properties registry = request.registry thumbnail = None + alt = None illustration = registry.queryAdapter(context, IIllustration, name='link') if (illustration is None) or (not illustration.has_data()): illustration = registry.queryAdapter(context, IIllustration) @@ -89,14 +90,17 @@ if (share_info is not None) and share_info.twitter_account: yield ContentMeta('twitter:site', share_info.twitter_account) yield ContentMeta('twitter:creator', share_info.twitter_creator_account or share_info.twitter_account) - if illustration is not None: - yield ContentMeta('twitter:card', 'summary_large_image') - else: - yield ContentMeta('twitter:card', 'summary') if title: yield ContentMeta('twitter:title', title) if description: yield ContentMeta('twitter:description', description) + if thumbnail is not None: + yield ContentMeta('twitter:card', 'summary_large_image') + yield ContentMeta('twitter:image', absolute_url(thumbnail, request)) + if alt: + yield ContentMeta('twitter:image:alt', alt) + else: + yield ContentMeta('twitter:card', 'summary') # Schema.org properties if title: diff -r f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/shared/common/opengraph.py --- a/src/pyams_default_theme/shared/common/opengraph.py Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/shared/common/opengraph.py Fri Jan 18 18:07:39 2019 +0100 @@ -80,6 +80,7 @@ registry = request.registry illustration = None thumbnail = None + alt = None target = context while target is not None: illustration = registry.queryAdapter(target, IIllustration, name='link') @@ -115,13 +116,16 @@ if (share_info is not None) and share_info.twitter_account: yield ContentMeta('twitter:site', share_info.twitter_account) yield ContentMeta('twitter:creator', share_info.twitter_creator_account or share_info.twitter_account) - if illustration is not None: - yield ContentMeta('twitter:card', 'summary_large_image') - else: - yield ContentMeta('twitter:card', 'summary') yield ContentMeta('twitter:title', i18n.query_attribute('title', lang=lang, request=request)) if description: yield ContentMeta('twitter:description', description) + if thumbnail is not None: + yield ContentMeta('twitter:card', 'summary_large_image') + yield ContentMeta('twitter:image', absolute_url(thumbnail, request)) + if alt: + yield ContentMeta('twitter:image:alt', alt) + else: + yield ContentMeta('twitter:card', 'summary') # Schema.org properties yield SchemaMeta('name', i18n.query_attribute('title', lang=lang, request=request)) diff -r f34545ec2436 -r e0f8d5d0e31e src/pyams_default_theme/shared/site/__init__.py --- a/src/pyams_default_theme/shared/site/__init__.py Fri Jan 18 15:43:57 2019 +0100 +++ b/src/pyams_default_theme/shared/site/__init__.py Fri Jan 18 18:07:39 2019 +0100 @@ -110,6 +110,7 @@ # illustration properties registry = request.registry thumbnail = None + alt = None illustration = registry.queryAdapter(context, IIllustration, name='link') if (illustration is None) or (not illustration.has_data()): illustration = registry.queryAdapter(context, IIllustration) @@ -140,13 +141,16 @@ if (share_info is not None) and share_info.twitter_account: yield ContentMeta('twitter:site', share_info.twitter_account) yield ContentMeta('twitter:creator', share_info.twitter_creator_account or share_info.twitter_account) - if illustration is not None: - yield ContentMeta('twitter:card', 'summary_large_image') - else: - yield ContentMeta('twitter:card', 'summary') yield ContentMeta('twitter:title', i18n.query_attribute('title', lang=lang, request=request)) if description: yield ContentMeta('twitter:description', description) + if thumbnail is not None: + yield ContentMeta('twitter:card', 'summary_large_image') + yield ContentMeta('twitter:image', absolute_url(thumbnail, request)) + if alt: + yield ContentMeta('twitter:image:alt', alt) + else: + yield ContentMeta('twitter:card', 'summary') # Schema.org properties yield SchemaMeta('name', i18n.query_attribute('title', lang=lang, request=request))