# HG changeset patch # User veltr # Date 1381145452 -7200 # Node ID 823c898f538aa1e96721c77b1b9a5aec2a7fd743 # Parent d4c6a262c600b2a0c2028763479ce3208caa9d20 Changes related to 10/07 meeting diff -r d4c6a262c600 -r 823c898f538a src/jocondelab/static/jocondelab/css/front-common.css --- a/src/jocondelab/static/jocondelab/css/front-common.css Fri Oct 04 17:54:07 2013 +0200 +++ b/src/jocondelab/static/jocondelab/css/front-common.css Mon Oct 07 13:30:52 2013 +0200 @@ -138,7 +138,7 @@ } footer { - padding: 40px 0 20px; text-align: right; font-size: 16px; + padding: 60px 0 20px; text-align: right; font-size: 16px; } footer img { @@ -447,7 +447,11 @@ /* Wikipedia Box in search results */ .wiki-info { - float: left; width: 480px; height: 320px; background: #e8e8f8; + float: left; width: 480px; height: 320px; background: url("../img/background-pinstripe-blue.png"); +} + +.wiki-info p { + font-size: 13px; } .wiki-info-title { @@ -455,7 +459,7 @@ } .wiki-info-abstract { - font-size: 13px; margin: 0 10px 10px; + margin: 0 10px 10px; } .wiki-info-source { @@ -491,7 +495,7 @@ padding: 0; } - .wiki-info-abstract { + .wiki-info p { font-size: 12px; } } diff -r d4c6a262c600 -r 823c898f538a src/jocondelab/static/jocondelab/css/front-home.css --- a/src/jocondelab/static/jocondelab/css/front-home.css Fri Oct 04 17:54:07 2013 +0200 +++ b/src/jocondelab/static/jocondelab/css/front-home.css Mon Oct 07 13:30:52 2013 +0200 @@ -20,9 +20,9 @@ } .module-item h3 { - margin: 8px 5px; font-size: 16px; text-decoration: underline; text-align: center; + margin: 8px 5px; font-size: 15px; color: #0000c0; text-align: center; font-weight: bold; line-height: 15px; } .module-item p { - margin: 8px 5px; font-size: 13px; + margin: 8px 5px; font-size: 12px; text-align: center; } diff -r d4c6a262c600 -r 823c898f538a src/jocondelab/static/jocondelab/css/front-notice.css --- a/src/jocondelab/static/jocondelab/css/front-notice.css Fri Oct 04 17:54:07 2013 +0200 +++ b/src/jocondelab/static/jocondelab/css/front-notice.css Mon Oct 07 13:30:52 2013 +0200 @@ -120,6 +120,10 @@ font-size: 18px; } +.contribution-frame p { + font-size: 12px; margin: 4px 0; +} + .contribution-frame .notice-term-list { font-size: 14px; line-height: 16px; } diff -r d4c6a262c600 -r 823c898f538a src/jocondelab/static/jocondelab/css/front-termlist.css --- a/src/jocondelab/static/jocondelab/css/front-termlist.css Fri Oct 04 17:54:07 2013 +0200 +++ b/src/jocondelab/static/jocondelab/css/front-termlist.css Mon Oct 07 13:30:52 2013 +0200 @@ -9,19 +9,19 @@ } .term-tabs { - width: 100%; clear: both; height: 41px; + width: 100%; clear: both; height: 41px; margin-top: 20px; } .term-tab { - width: 25%; float: left; + width: 20%; float: left; } .term-tab h2 { - height: 20px; margin: 0 2px; border: 1px #cccccc; border-style: solid solid none; padding: 10px; - font-size: 15px; background: #f8f8f8; color: #666666; border-radius: 8px 8px 0 0; overflow: hidden; line-height: 1.1em; + height: 20px; margin: 0 2px; border: 1px #cccccc; border-style: solid solid none; padding: 10px; font-weight: bold; text-align: center; + font-size: 15px; background: #f8f8f8; color: #0000c0; border-radius: 8px 8px 0 0; overflow: hidden; line-height: 1.1em; } -@media screen and (max-width: 640px) { +@media screen and (max-width: 720px) { .term-tab h2 { font-size: 12px; } diff -r d4c6a262c600 -r 823c898f538a src/jocondelab/static/jocondelab/js/front-common.js --- a/src/jocondelab/static/jocondelab/js/front-common.js Fri Oct 04 17:54:07 2013 +0200 +++ b/src/jocondelab/static/jocondelab/js/front-common.js Mon Oct 07 13:30:52 2013 +0200 @@ -294,7 +294,7 @@ left: isleft ? "0" : "", right: isleft ? "" : "0", width: isfull ? nw : (nw + 260), - "margin-top": ((gridsize - nh) / 2 - 10) + "px", + "margin-top": ((gridsize - nh) / 3 - 10) + "px", "margin-left": isleft ? ((gridsize - nw) / 2 - 10) + "px" : 0, "margin-right": isleft ? 0 : ((gridsize - nw) / 2 - 10) + "px" }); @@ -418,14 +418,14 @@ var currentAbstract, currentUri, currentW, currentH; - function resizeWikiInfo() { + function resizeWikiInfo(force) { var $wikinfo = $(".wiki-info"); if (!$wikinfo.length) { return; } var uri = $wikinfo.attr("data-dbpedia-uri"), w = $wikinfo.width(), h = $wikinfo.height(), $wiabstract = $wikinfo.find(".wiki-info-abstract"); if (uri === currentUri) { - if (w === currentW && h === currentH) { + if (w === currentW && h === currentH && !force) { return; } } else { @@ -447,6 +447,8 @@ resizeWikiInfo(); + $(".wiki-info img").on("load", resizeWikiInfo); + $win.resize(function() { adaptGrid(); recentreDbpediaBox(); diff -r d4c6a262c600 -r 823c898f538a src/jocondelab/templates/jocondelab/front_base.html --- a/src/jocondelab/templates/jocondelab/front_base.html Fri Oct 04 17:54:07 2013 +0200 +++ b/src/jocondelab/templates/jocondelab/front_base.html Mon Oct 07 13:30:52 2013 +0200 @@ -89,23 +89,23 @@ {% url 'front_about' as url %} {% url 'front_geo' as url %} {% url 'front_timeline' as url %} {% url 'front_termlist' as url %} {% url 'random_describe' as url %}