Commit cd49024e1abf9ebe1db347df4ea041e85f692f33

Authored by Carlos Vieira
1 parent ba95457e
Exists in master

Versão para outubro rosa 2015

CHANGES.md
... ... @@ -3,6 +3,7 @@
3 3 # 2.1.5
4 4  
5 5 * Corrigindo exemplo para o órgão [caduvieira]
  6 +* Outubro rosa [caduvieira]
6 7  
7 8 # 2.1.4
8 9  
... ...
README.md
... ... @@ -67,9 +67,9 @@ cd /vagrant/
67 67  
68 68 Execute o comando:
69 69  
70   -> make run
  70 +> make run PROFILE=outubrorosa
71 71  
72   -O profile selecionado será o contido em _app/profile_
  72 +O profile selecionado é o outubrorosa nesse exemplo
73 73  
74 74 ## Testes da barra
75 75  
... ...
app/static/barra-brasil.js
1   -!function(){var a,r,i,t,e='<div id="wrapper-barra-brasil"><div class="brasil-flag"><a href="http://brasil.gov.br" class="link-barra">Brasil</a></div><span class="acesso-info"><a href="http://brasil.gov.br/barra#acesso-informacao" class="link-barra">Acesso &agrave; informa&ccedil;&atilde;o</a></span><nav><ul class="list"><li><a href="#" id="menu-icon"></a></li><li class="list-item first"><a href="http://brasil.gov.br/barra#participe" class="link-barra">Participe</a></li><li class="list-item"><a href="http://www.servicos.gov.br/?pk_campaign=barrabrasil" class="link-barra" id="barra-brasil-orgao">Servi&ccedil;os</a></li><li class="list-item"><a href="http://www.planalto.gov.br/legislacao" class="link-barra">Legisla&ccedil;&atilde;o</a></li><li class="list-item last last-item"><a href="http://brasil.gov.br/barra#orgaos-atuacao-canais" class="link-barra">Canais</a></li></ul></nav></div>';a=document.getElementById("barra-brasil"),a&&(a.removeAttribute("style"),a.innerHTML=e,i=document.getElementsByTagName("head")[0]),r=function(){var a,r;for(r=document.getElementsByTagName("meta"),a=0;a<r.length;){if("creator.productor"===r[a].getAttribute("property"))return"&orgao="+r[a].getAttribute("content");a++}return""},t=document.getElementById("barra-brasil-orgao"),t.setAttribute("href","http://www.servicos.gov.br/?pk_campaign=barrabrasil"+r()),window._barrabrasil={insere_css:function(a){var r;return r=document.createElement("style"),r.setAttribute("type","text/css"),r.setAttribute("media","all"),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),i.appendChild(r)}}}(),window._barrabrasil.insere_css('#barra-brasil div,#barra-brasil a,#barra-brasil ul,#barra-brasil li{margin:0;padding:0;font-size:100%;font-family:inherit;vertical-align:baseline}#barra-brasil ul{list-style:none}@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;src:local("Open Sans Bold"),local("OpenSans-Bold"),url("//barra.brasil.gov.br/static/opensans-bold.woff") format("woff")}#barra-brasil{height:32px;background:#f1f1f1;font-weight:bold;font-size:12px;line-height:32px;font-family:"Open Sans",Arial,Helvetica,sans-serif;border-bottom:1px solid #dfdfdf;box-sizing:content-box}#barra-brasil a{text-decoration:none}body.contraste #barra-brasil{background:#000 !important}div#wrapper-barra-brasil{position:relative;overflow:hidden;margin:0 auto;width:100%;max-width:960px;height:100%}#barra-brasil .brasil-flag{float:left;padding:7px 0 6px;width:115px;height:19px;border-right:2px solid #dfdfdf}#barra-brasil .brasil-flag .link-barra{display:block;padding-left:42px;width:43px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAATCAMAAAC5m+00AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACrUExURQCXSF27iQCWRQOWSQCWSRCdVACSSgCWRwCVSRKcVv/oAP/yAAIvh/bjBQKVTP/rAK3PF/3sARZBkg05ima2LCqiPg+ZRR9JoermBbGwLwEqkgCST1GwMRqdQZfIHdzgCSdSlTlYbEWrNyNKeouUPHOgtEJsn2WOrSClX2m/lF+6i3q8JsDVEBpCgWN2WefTD8i/IYSstzKmO3eIUaa2h3SOjfvlHjVfq6OmNShvDYIAAAFISURBVCjPbVHXksMgDNQBljC4l9iOndjp5VKv//+XnXByb7fDADO7rNAK9v4DngPv/h/24BHBuEhqB3pCeUxJIAWKtMZlIVCTciogH3yhWMpinM2t7ZctS5UgAR74kVICpMauNrfmaucTpMj5e+4VUNTOEvuzCoL8EvZLJCH1SIHAqKjtehowposwTmbIcqZIt+UpNV/3zWa3HYLp2sZ1gegoPXkNU5M238Ow3d132cIYEyel9MHDLo2NcX4519puPkPmbOIowrdTbGyTZXk2BEH1kZo4LPSjFgq2DFcVc3lWNZbt2rGWIIiwTOztzJZV9W77glCp8RsSNHdc1NfL6rxoxp5JCcmUC1cJjdx0GKZ1hxq0eqYBkuPlzLHrjXuiOAwaDUGQFJyWBpyU7EUaQI/xckGeA98jksqNQLmp8BnB4Xh8+ReHX640GNLt25uiAAAAAElFTkSuQmCC") 8px center no-repeat;text-transform:uppercase;line-height:19px}#barra-brasil .acesso-info{position:absolute;left:130px}#barra-brasil .list{position:absolute;top:0;right:0}#barra-brasil .list .first{border-left:2px solid #dfdfdf}#barra-brasil .list-item{display:inline-block;height:32px;border-right:2px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 15px 8px 13px}#barra-brasil .link-barra{color:#606060}body.contraste #barra-brasil .link-barra{color:#FF0 !important;text-decoration:underline}#menu-icon{position:absolute;top:3px;border-top:15px double #606060;border-bottom:5px solid #606060;display:none;width:20px;right:5px}@media only screen and (max-width: 959px){#barra-brasil #menu-icon{display:inline-block;padding:5px 3px 0px 3px}#barra-brasil .list .first{border-left:1px solid #dfdfdf}#barra-brasil nav:hover #menu-icon,#barra-brasil nav:active #menu-icon,#barra-brasil nav:focus #menu-icon{background-color:#DDD}body.contraste #barra-brasil nav:hover #menu-icon,body.contraste #barra-brasil nav:active #menu-icon,body.contraste #barra-brasil nav:focus #menu-icon{background-color:#606060 !important}#barra-brasil ul.list,#barra-brasil ul.list:active,#barra-brasil ul.list:focus{overflow:hidden;height:0px;transition:0.3s;padding-top:32px;width:auto;position:absolute;z-index:9}#barra-brasil .list-item{display:block;text-align:center;height:30px;background:#EEE;border:1px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 30px 8px 28px}body.contraste #barra-brasil .list-item{background:#000 !important}body.contraste #menu-icon{border-top:15px double #fff !important;border-bottom:5px solid #fff !important}#barra-brasil .list a:active li,#barra-brasil .list a:focus li,#barra-brasil .list a:hover li{background:#DDD}body.contraste #barra-brasil .list a:active li,body.contraste #barra-brasil .list a:focus li,body.contraste #barra-brasil .list a:hover li{background:#606060 !important}#barra-brasil nav:active ul.list,#barra-brasil nav:focus ul.list,#barra-brasil nav:hover ul.list{height:150px;transition:0.5s}div#wrapper-barra-brasil{overflow:visible}}@media screen and (min-width: 960px){#wrapper-barra-brasil{width:960px}}@media print{#barra-brasil .list{display:none}#barra-brasil .acesso-info .link-barra:after{content:" - Barra GovBr"}}'),!function(){var a,r='<div id="wrapper-footer-brasil"><a href="http://www.acessoainformacao.gov.br/"><span class="logo-acesso-footer"></span></a><a href="http://www.brasil.gov.br/"><span class="logo-brasil-footer"></span></a></div>';a=document.getElementById("footer-brasil"),a&&(a.innerHTML=r),window._footerbrasil={insere_css:function(a){var r,i;return i=document.createElement("style"),i.setAttribute("type","text/css"),i.setAttribute("media","all"),i.styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a)),r=document.getElementsByTagName("head")[0],r.appendChild(i)}}}(),window._footerbrasil.insere_css('div#wrapper-footer-brasil{position:relative;overflow:hidden;margin:0 auto;width:auto;padding:0 20px;max-width:960px}#wrapper-footer-brasil .logo-acesso-footer{float:left;width:107px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAxCAMAAADqdKevAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFZUExURQAAAP////7+/v////////39/f////////////////v7+/qnHv7+/v////qmGv////X19f////qnHPqmGuaqR/qmGvepKvqmGvqmGsvMzuTl5vn38+jdy/fx5tTU1u+gHt7c1827ns3Oz/jivvCdGP////yuGfunGv/LFvyyGf24F//WE/upGfCfF/21GP6+Fv/QFP/EFv67F//hif7Qb//HFv/BFgCZTP3FWv/Xd//ffgCEQgB6Pv/glP7ckwKKRQCgTv7iptiMEgCSSP/OY+OVFfy7Sf7gnf/aif7Ufv7sx0Ck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DUoB9EMGiJvr+zI9PZdfr9/ECUtnexlj3W5x6uNg6b/0Si9UU1PNs9husNNXEhk6V9Nij6tQw9C9YKPFYZQzW4j1c5NbIQPTdoYWDTaxUzBlvGarMUl+wSiJWoyysNT4OwTqdYHwcWieWYRg0bTDV1m0IaeBHi9o6taUUxdQGtdOUWrhhnJ1fXtDkF+BHRbQKrTXE1taEVSxGc/lYO7EITDAV3xz4sWADt5nMmK3AmwafZFuWmaHAPvPc0suvv9vZIg8GFq/Wmbns++/0ESvlMIkRjSm6TAgzJObo+IKJnYCFBI6v2wqjsgONPntR7vJLfePBAgTLFjornFppcerUui6NWDBluWVLDsHDMcJf1JFNCAkn1JTBgl2UnVs4AqQeoQVYZ0VUJ3tmOWwrn1tpZlrMHLUYsSGOahlEhb9TZUuVz1+WG2jNCaxT5VS1I6gHeRHrpfW5Be9MTY1asIPZBpw0Azc0mcnG+esy3FMEYAFWLHeqojqCErHCkxZ+Symq8ZX7DbTyAjuxihHFYxnfYSVUc/wNRxet2fwctHGh85uo1wunVNi99j1LUUrTx1uYq52bzWO0j0PrECSg8GSF/o4V0z3bpLsOlctxbO6NCNZBiafywvClGde9aNIDqpvJZHKzoOXfvMYOvoGtWdHAsH1Nj4m64raBcj3EhJb/Mx9JGb8etm+k43twaK93/fpuKDTgeOVQ8sJ6+PJGKrYnh6TbHey+erXbExpyOQ6BNKj772JrIFSI0GDq079Tvd26n4nK8+uDQXj8Xonz4evXXm9q7/rdGWnmzlR9d7dX5zXo9erh8T1Ti/WZUrt3I2GJPs3c+TQV1uu93qBev3X87n0iXulc3Zy5e3sP6/1txdKln/X/rP8A6HRZ8kCrrTMAAAAASUVORK5CYII=") center no-repeat;height:49px}#wrapper-footer-brasil .logo-brasil-footer{float:right;width:153px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAAAwCAMAAAA1kSiuAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFiUExURQAAAP/////////////////////////dAICUGYa2J////////////////////////////////////////////////////////////////////////////6PBH97PCY2fGMDCEFSIKV6EIv/dAP/dACd2OCuHPil+OyqBPCh6OSuKPyqEPSJkMCyTQyyNQS2gSCZwNS2bRiFfLiRtNCRqMy2dRydzNx9bLCNnMi2YRR1UKS2WRCyQQip8OcnIDyBYKiZyNvfZAiyRQvWGHcbADSBioqy7F/////uoFkaFMEiVNpimFztyLJ21HPaPG3GuLiBQjvyxE3GdJ+nUBvmYGTeRPY24JEekPmGJJd7NCFqXMoKbH9TQDtKTJlipN/mgGKKvF7fFF4GvJ0VymbKGRKmaJ/vHCKODJO2nGdrl8N6WKry8EYp0WGSOuoisza7D2nd7JEpYcrWacEN9stekWsTR4lEu4eYAAABIdFJOUwDzBb3oLXhAcHA7EJJUhJ6wRxpg0NrhI2jHbnOpX0hfUd2Nqf///////////////////////////////////////////////nia+rQAAAnqSURBVFjD7ZnXf9tIDoApkdTuSVTvtjZll8kmci+JHSeiQ5sRrWIpkSNbkuMap9dt//9hBphhkXd/93b3cPNiZkAAHzDAUJlREumIFlP4iBqaloryx3gpocQy/DGhaVoRX1C1UjrHn3JaXEkZOFtWI4WkEhgq6Oj8KQ1PKMxrmppFcRwm0bgCto0oadVUeihrbCpd1bNxnIgV9XiJKEt5pZhHCFfXyzhZiOnVFOq6Ws5I02ytXHHLAbLijK6jv4yh6wn+VCnoMxHEzWq6jhEqbjZO5EouQtEousuUI9lyOo261RmgI+6YGo9EiUxVZ4nBSBZmiaymElnOzaGqn6yaIexMSSWLlSq8htpZMEk4bj4ZocSk0iJWJCtWEjMuBqDC8qRriuAxxFMyS7EUipoaJbJEIYJ2Em5ciZaCy1k0KjSRSWezkixaylPOslmRs2qE/ES1YjGS8JHlI0aGJuKRWo3yDSZdXZAZBikX8nGSl92oTmRKSjMKhWiQTIJmVMPAnFS0dKGKr2UjhkFJdvVKCb3nC9lsNUZkaaMCPKmZnKi8WEzWi04FpyRisRitZl5XkkmajCoiGUo2lQ+CKXlpJgnaOhmcTUaln1ie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yb46B/mbbbinLzx+C46T+lEnNy5pZ47eef6SF0cHUjdCblM3/zWru3frxu3AwepeX+V8/44qFz4P/yiMXkAfJsUhwew6Dz31k6rE/S32iqHDIQlSfM8dgsHSrnZkCDzsaTqZkEzaboIe4dJoOYHnOxWD4hzqTZSbJbU7UEHa/TJU42HVHxRD1TSNPVj0pH3XnXCJEl3DSdyqeK6VKGzu9Bo8IfDc0oVOh43qWj9lQpXaSLhVrRKOEVRNw1VA0no0U3wQ7kE3Tyn0qXxDl6gc7EMynFyATICqlINExWoYSm0koCL0Q8MmY8Kq4iUhR6KgMvZvHkP8euj5BMESTJYgbcuYUS3h+AYkYNk0VKaEGQxd28lg+TidsfIFPwEondDFXzdNkiLwm0vJsVZHSrlY3wCyY0XYrQNZmaMSB7biWOMSW1TEZcbEkyY5aWmshqhYxaCJPFdUp6Rk/h61GtknXjuDDpcgVTWlUzBXSdUvVYJIcXgaky6cRdvYirrUcyGYhQk9c5QJOmNRP3VelZpYY1VONKiVIZfOlBMg0GNpNWUkXZF7QUtZMaKXAyvRhVciXOMwsvUkfp1UiV7lhKShzF7HpypvZvSR7U59ZU+3sAAAAASUVORK5CYII=") center no-repeat;height:48px}body.contraste #footer-brasil{background:#000 !important}@media screen and (min-width: 960px){#wrapper-footer-brasil{width:960px}}@media print{#wrapper-footer-brasil{border-top:2px solid #dfdfdf}#wrapper-footer-brasil:before{content:"Barra GovBr";color:#606060;font-size:12px;font-family:"Open Sans",Arial,Helvetica,sans-serif}}');
2 1 \ No newline at end of file
  2 +!function(){var a,r,i,t,e='<div id="wrapper-barra-brasil"><div class="brasil-flag"><a href="http://brasil.gov.br" class="link-barra">Brasil</a></div><span class="acesso-info"><a href="http://brasil.gov.br/barra#acesso-informacao" class="link-barra">Acesso &agrave; informa&ccedil;&atilde;o</a><a href="http://www2.inca.gov.br/wps/wcm/connect/agencianoticias/site/home/noticias/2015/cancer_mama_conhecimento_conscientizacao_para+_reduzir_mortalidade" class="link-barra hashtag-barra-brasil">#LaçosFortes</a></span><nav><ul class="list"><li><a href="#" id="menu-icon"></a></li><li class="list-item"><a href="http://www2.inca.gov.br/wps/wcm/connect/agencianoticias/site/home/noticias/2015/cancer_mama_conhecimento_conscientizacao_para+_reduzir_mortalidade" class="link-barra hashtag-barra-brasil">#LaçosFortes</a></li><li class="list-item"><a href="http://brasil.gov.br/barra#participe" class="link-barra">Participe</a></li><li class="list-item"><a href="http://www.servicos.gov.br/?pk_campaign=barrabrasil" class="link-barra" id="barra-brasil-orgao">Servi&ccedil;os</a></li><li class="list-item"><a href="http://www.planalto.gov.br/legislacao" class="link-barra">Legisla&ccedil;&atilde;o</a></li><li class="list-item last last-item"><a href="http://brasil.gov.br/barra#orgaos-atuacao-canais" class="link-barra">Canais</a></li></ul></nav></div>';a=document.getElementById("barra-brasil"),a&&(a.removeAttribute("style"),a.innerHTML=e,i=document.getElementsByTagName("head")[0]),r=function(){var a,r;for(r=document.getElementsByTagName("meta"),a=0;a<r.length;){if("creator.productor"===r[a].getAttribute("property"))return"&orgao="+r[a].getAttribute("content");a++}return""},t=document.getElementById("barra-brasil-orgao"),t.setAttribute("href","http://www.servicos.gov.br/?pk_campaign=barrabrasil"+r()),window._barrabrasil={insere_css:function(a){var r;return r=document.createElement("style"),r.setAttribute("type","text/css"),r.setAttribute("media","all"),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),i.appendChild(r)}}}(),window._barrabrasil.insere_css('#barra-brasil div,#barra-brasil a,#barra-brasil ul,#barra-brasil li{margin:0;padding:0;font-size:100%;font-family:inherit;vertical-align:baseline}#barra-brasil .hashtag-barra-brasil{margin-left:25px;color:#FFFBA2 !important}#barra-brasil ul{list-style:none}@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;src:local("Open Sans Bold"),local("OpenSans-Bold"),url("//barra.brasil.gov.br/static/opensans-bold.woff") format("woff")}#barra-brasil{height:32px;background:#ea2c6a;font-weight:bold;font-size:12px;line-height:32px;font-family:"Open Sans",Arial,Helvetica,sans-serif;border-bottom:1px solid #dfdfdf;box-sizing:content-box}#barra-brasil a{text-decoration:none}body.contraste #barra-brasil{background:#000 !important}div#wrapper-barra-brasil{position:relative;overflow:hidden;margin:0 auto;width:100%;max-width:960px;height:100%}#barra-brasil .brasil-flag{float:left;padding:7px 0 6px;width:115px;height:19px;border-right:2px solid #dfdfdf}#barra-brasil .brasil-flag .link-barra{display:block;padding-left:42px;width:43px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAATCAMAAAC5m+00AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACrUExURQCXSF27iQCWRQOWSQCWSRCdVACSSgCWRwCVSRKcVv/oAP/yAAIvh/bjBQKVTP/rAK3PF/3sARZBkg05ima2LCqiPg+ZRR9JoermBbGwLwEqkgCST1GwMRqdQZfIHdzgCSdSlTlYbEWrNyNKeouUPHOgtEJsn2WOrSClX2m/lF+6i3q8JsDVEBpCgWN2WefTD8i/IYSstzKmO3eIUaa2h3SOjfvlHjVfq6OmNShvDYIAAAFISURBVCjPbVHXksMgDNQBljC4l9iOndjp5VKv//+XnXByb7fDADO7rNAK9v4DngPv/h/24BHBuEhqB3pCeUxJIAWKtMZlIVCTciogH3yhWMpinM2t7ZctS5UgAR74kVICpMauNrfmaucTpMj5e+4VUNTOEvuzCoL8EvZLJCH1SIHAqKjtehowposwTmbIcqZIt+UpNV/3zWa3HYLp2sZ1gegoPXkNU5M238Ow3d132cIYEyel9MHDLo2NcX4519puPkPmbOIowrdTbGyTZXk2BEH1kZo4LPSjFgq2DFcVc3lWNZbt2rGWIIiwTOztzJZV9W77glCp8RsSNHdc1NfL6rxoxp5JCcmUC1cJjdx0GKZ1hxq0eqYBkuPlzLHrjXuiOAwaDUGQFJyWBpyU7EUaQI/xckGeA98jksqNQLmp8BnB4Xh8+ReHX640GNLt25uiAAAAAElFTkSuQmCC") 8px center no-repeat;text-transform:uppercase;line-height:19px}#barra-brasil .acesso-info{position:absolute;left:130px}#barra-brasil .list{position:absolute;top:0;right:0}#barra-brasil .list .first{border-left:2px solid #dfdfdf}#barra-brasil .list-item{display:inline-block;height:32px;border-right:2px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 15px 8px 13px}#barra-brasil .link-barra{color:#FFF}body.contraste #barra-brasil .link-barra{color:#FF0 !important;text-decoration:underline}#menu-icon{position:absolute;top:3px;border-top:15px double #FFF;border-bottom:5px solid #FFF;display:none;width:20px;right:5px}#barra-brasil li .hashtag-barra-brasil,#barra-brasil li .hashtag-barra-brasil a{visibility:hidden}@media only screen and (max-width: 959px){#barra-brasil #menu-icon{display:inline-block;padding:5px 3px 0px 3px}#barra-brasil .list .first{border-left:1px solid #dfdfdf}#barra-brasil nav:hover #menu-icon,#barra-brasil nav:active #menu-icon,#barra-brasil nav:focus #menu-icon{background-color:#DDD}body.contraste #barra-brasil nav:hover #menu-icon,body.contraste #barra-brasil nav:active #menu-icon,body.contraste #barra-brasil nav:focus #menu-icon{background-color:#FFF !important}#barra-brasil ul.list,#barra-brasil ul.list:active,#barra-brasil ul.list:focus{overflow:hidden;height:0px;transition:0.3s;padding-top:32px;width:auto;position:absolute;z-index:9}#barra-brasil .hashtag-barra-brasil,#barra-brasil .hashtag-barra-brasil a{visibility:hidden}#barra-brasil li .hashtag-barra-brasil,#barra-brasil li .hashtag-barra-brasil a{visibility:visible;margin-left:0}#barra-brasil .list-item{display:block;text-align:center;height:30px;background:#ea2c6a;border:1px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 30px 8px 28px}body.contraste #barra-brasil .list-item{background:#000 !important}body.contraste #menu-icon{border-top:15px double #fff !important;border-bottom:5px solid #fff !important}#barra-brasil .list a:active li,#barra-brasil .list a:focus li,#barra-brasil .list a:hover li{background:#DDD}body.contraste #barra-brasil .list a:active li,body.contraste #barra-brasil .list a:focus li,body.contraste #barra-brasil .list a:hover li{background:#FFF !important}#barra-brasil nav:active ul.list,#barra-brasil nav:focus ul.list,#barra-brasil nav:hover ul.list{height:160px;transition:0.5s}div#wrapper-barra-brasil{overflow:visible}}@media screen and (min-width: 960px){#wrapper-barra-brasil{width:960px}}@media print{#barra-brasil .list{display:none}#barra-brasil .acesso-info .link-barra:after{content:" - Barra GovBr"}}'),!function(){var a,r='<div id="wrapper-footer-brasil"><a href="http://www.acessoainformacao.gov.br/"><span class="logo-acesso-footer"></span></a><a href="http://www.brasil.gov.br/"><span class="logo-brasil-footer"></span></a></div>';a=document.getElementById("footer-brasil"),a&&(a.innerHTML=r),window._footerbrasil={insere_css:function(a){var r,i;return i=document.createElement("style"),i.setAttribute("type","text/css"),i.setAttribute("media","all"),i.styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a)),r=document.getElementsByTagName("head")[0],r.appendChild(i)}}}(),window._footerbrasil.insere_css('div#wrapper-footer-brasil{position:relative;overflow:hidden;margin:0 auto;width:auto;padding:0 20px;max-width:960px}#wrapper-footer-brasil .logo-acesso-footer{float:left;width:107px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAxCAMAAADqdKevAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFZUExURQAAAP////7+/v////////39/f////////////////v7+/qnHv7+/v////qmGv////X19f////qnHPqmGuaqR/qmGvepKvqmGvqmGsvMzuTl5vn38+jdy/fx5tTU1u+gHt7c1827ns3Oz/jivvCdGP////yuGfunGv/LFvyyGf24F//WE/upGfCfF/21GP6+Fv/QFP/EFv67F//hif7Qb//HFv/BFgCZTP3FWv/Xd//ffgCEQgB6Pv/glP7ckwKKRQCgTv7iptiMEgCSSP/OY+OVFfy7Sf7gnf/aif7Ufv7sx0CkO/qzOD2SNvuuKP/GP3G3lP/bbnq6mv7lsf7cmsV7DrJrCv3VieLQof7nuM+EEdfMGv/YSq7Hk5+2J4a1K2eyjfO4VPbEb41MA1SPMO63GZXAmPPNjSGTW+rj12iyM4iiKVOrgNi2fr6nIN/BG8bJfpi6dsGymid2QgoAAAAldFJOUwDvkd9AEGC/gLB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+BHRbQKrTXE1taEVSxGc/lYO7EITDAV3xz4sWADt5nMmK3AmwafZFuWmaHAPvPc0suvv9vZIg8GFq/Wmbns++/0ESvlMIkRjSm6TAgzJObo+IKJnYCFBI6v2wqjsgONPntR7vJLfePBAgTLFjornFppcerUui6NWDBluWVLDsHDMcJf1JFNCAkn1JTBgl2UnVs4AqQeoQVYZ0VUJ3tmOWwrn1tpZlrMHLUYsSGOahlEhb9TZUuVz1+WG2jNCaxT5VS1I6gHeRHrpfW5Be9MTY1asIPZBpw0Azc0mcnG+esy3FMEYAFWLHeqojqCErHCkxZ+Symq8ZX7DbTyAjuxihHFYxnfYSVUc/wNRxet2fwctHGh85uo1wunVNi99j1LUUrTx1uYq52bzWO0j0PrECSg8GSF/o4V0z3bpLsOlctxbO6NCNZBiafywvClGde9aNIDqpvJZHKzoOXfvMYOvoGtWdHAsH1Nj4m64raBcj3EhJb/Mx9JGb8etm+k43twaK93/fpuKDTgeOVQ8sJ6+PJGKrYnh6TbHey+erXbExpyOQ6BNKj772JrIFSI0GDq079Tvd26n4nK8+uDQXj8Xonz4evXXm9q7/rdGWnmzlR9d7dX5zXo9erh8T1Ti/WZUrt3I2GJPs3c+TQV1uu93qBev3X87n0iXulc3Zy5e3sP6/1txdKln/X/rP8A6HRZ8kCrrTMAAAAASUVORK5CYII=") center no-repeat;height:49px}#wrapper-footer-brasil .logo-brasil-footer{float:right;width:153px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAAAwCAMAAAA1kSiuAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFiUExURQAAAP/////////////////////////dAICUGYa2J////////////////////////////////////////////////////////////////////////////6PBH97PCY2fGMDCEFSIKV6EIv/dAP/dACd2OCuHPil+OyqBPCh6OSuKPyqEPSJkMCyTQyyNQS2gSCZwNS2bRiFfLiRtNCRqMy2dRydzNx9bLCNnMi2YRR1UKS2WRCyQQip8OcnIDyBYKiZyNvfZAiyRQvWGHcbADSBioqy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XCJEl3DSdyqeK6VKGzu9Bo8IfDc0oVOh43qWj9lQpXaSLhVrRKOEVRNw1VA0no0U3wQ7kE3Tyn0qXxDl6gc7EMynFyATICqlINExWoYSm0koCL0Q8MmY8Kq4iUhR6KgMvZvHkP8euj5BMESTJYgbcuYUS3h+AYkYNk0VKaEGQxd28lg+TidsfIFPwEondDFXzdNkiLwm0vJsVZHSrlY3wCyY0XYrQNZmaMSB7biWOMSW1TEZcbEkyY5aWmshqhYxaCJPFdUp6Rk/h61GtknXjuDDpcgVTWlUzBXSdUvVYJIcXgaky6cRdvYirrUcyGYhQk9c5QJOmNRP3VelZpYY1VONKiVIZfOlBMg0GNpNWUkXZF7QUtZMaKXAyvRhVciXOMwsvUkfp1UiV7lhKShzF7HpypvZvSR7U59ZU+3sAAAAASUVORK5CYII=") center no-repeat;height:48px}body.contraste #footer-brasil{background:#000 !important}@media screen and (min-width: 960px){#wrapper-footer-brasil{width:960px}}@media print{#wrapper-footer-brasil{border-top:2px solid #dfdfdf}#wrapper-footer-brasil:before{content:"Barra GovBr";color:#606060;font-size:12px;font-family:"Open Sans",Arial,Helvetica,sans-serif}}');
3 3 \ No newline at end of file
... ...
makefile
1 1 # Makefile
  2 +PROFILE = "default"
2 3 run: build
3 4 venv/bin/python app/barrabrasil.py
4 5  
5   -
6 6 profile: build
7 7 venv/bin/python app/profile.py
8 8  
9 9 build: venv
10   - sh ./build.sh
  10 + sh ./build.sh $(PROFILE)
11 11  
12 12 venv: venv/bin/activate
13 13 venv/bin/activate: requirements.txt package.json
... ... @@ -20,7 +20,7 @@ testReport:
20 20 npm run testReport
21 21  
22 22 teste:
23   - npm test
  23 + npm run test
24 24  
25 25  
26 26  
... ...
package.json
1 1 {
2 2 "name": "BarraBrasil",
3 3 "description": "Barra oficial do governo federal brasileiro",
4   -"engines": {
5   -"node": "~0.10"
6   -},
7 4 "devDependencies": {
8 5 "coffee-script": "1.9.3",
9 6 "uglifyjs": "2.4.10",
10   -"express": "5.0.0-alpha.2",
  7 +"express": "4.13.3",
11 8 "chai": "3.2.0",
12 9 "chai-jq": "0.0.8",
13 10 "mocha": "2.2.5",
14   -"zombie": "2.*",
  11 +"zombie": "4.1.0",
15 12 "ejs": "2.3.3"
16 13 },
17 14 "optionalDependencies": {},
... ...
recipes/outubrorosa/assets/barra-brasil.coffee
... ... @@ -3,22 +3,31 @@
3 3 divBarra.removeAttribute "style"
4 4 # conteudoBarra definido no barra-brasil-1.yaml e atribuido pelo assetgen
5 5 divBarra.innerHTML = conteudoBarra
  6 + head = document.getElementsByTagName("head")[0]
  7 +
  8 + getOrgaoContent = ->
  9 + metas = document.getElementsByTagName('meta')
  10 + i = 0
  11 + while i < metas.length
  12 + if metas[i].getAttribute('property') == 'creator.productor'
  13 + return '&orgao='+ metas[i].getAttribute('content')
  14 + i++
  15 + ''
  16 +
  17 + link = document.getElementById('barra-brasil-orgao')
  18 + link.setAttribute 'href', 'http://www.servicos.gov.br/?pk_campaign=barrabrasil'+getOrgaoContent()
  19 +
6 20  
7 21 window._barrabrasil =
8 22 insere_css: (css) ->
9 23 style = document.createElement("style")
10   - tipo = document.createAttribute("type")
11   - tipo.nodeValue = "text/css"
12   - media = document.createAttribute("media")
13   - media.nodeValue = "all"
14   - style.setAttributeNode tipo
15   - style.setAttributeNode media
  24 + style.setAttribute "type","text/css"
  25 + style.setAttribute "media","all"
16 26  
17 27 if style.styleSheet #Hack para IE8
18 28 style.styleSheet.cssText = css
19 29 else
20 30 style.appendChild document.createTextNode(css)
21   -
22   - head = document.getElementsByTagName("head")[0]
  31 +
23 32 head.appendChild style
24 33  
... ...
recipes/outubrorosa/assets/conteudo-barra.html
1   -<div id="wrapper-barra-brasil"><div class="brasil-flag"><a href="http://brasil.gov.br" class="link-barra">Brasil</a></div><span class="acesso-info"><a href="http://brasil.gov.br/barra#acesso-informacao" class="link-barra">Acesso &agrave; informa&ccedil;&atilde;o</a><span class="hashtag-barra-brasil"><span><a href="http://www1.inca.gov.br/wcm/outubro-rosa/2014/" class="link-barra">#CancerDeMama</a></span><span><a href="http://www1.inca.gov.br/wcm/outubro-rosa/2014/" class="link-barra">#OutubroRosa2014</a></span></span></span><ul class="list"><li class="list-item first"><a href="http://brasil.gov.br/barra#participe" class="link-barra">Participe</a></li><li class="list-item"><a href="http://www.servicos.gov.br/" class="link-barra">Servi&ccedil;os</a></li><li class="list-item"><a href="http://www.planalto.gov.br/legislacao" class="link-barra">Legisla&ccedil;&atilde;o</a></li><li class="list-item last last-item"><a href="http://brasil.gov.br/barra#orgaos-atuacao-canais" class="link-barra">Canais</a></li></ul></div>
  1 +<div id="wrapper-barra-brasil"><div class="brasil-flag"><a href="http://brasil.gov.br" class="link-barra">Brasil</a></div><span class="acesso-info"><a href="http://brasil.gov.br/barra#acesso-informacao" class="link-barra">Acesso &agrave; informa&ccedil;&atilde;o</a><a href="http://www2.inca.gov.br/wps/wcm/connect/agencianoticias/site/home/noticias/2015/cancer_mama_conhecimento_conscientizacao_para+_reduzir_mortalidade" class="link-barra hashtag-barra-brasil">#LaçosFortes</a></span><nav><ul class="list"><li><a href="#" id="menu-icon"></a></li><li class="list-item"><a href="http://www2.inca.gov.br/wps/wcm/connect/agencianoticias/site/home/noticias/2015/cancer_mama_conhecimento_conscientizacao_para+_reduzir_mortalidade" class="link-barra hashtag-barra-brasil">#LaçosFortes</a></li><li class="list-item"><a href="http://brasil.gov.br/barra#participe" class="link-barra">Participe</a></li><li class="list-item"><a href="http://www.servicos.gov.br/?pk_campaign=barrabrasil" class="link-barra" id="barra-brasil-orgao">Servi&ccedil;os</a></li><li class="list-item"><a href="http://www.planalto.gov.br/legislacao" class="link-barra">Legisla&ccedil;&atilde;o</a></li><li class="list-item last last-item"><a href="http://brasil.gov.br/barra#orgaos-atuacao-canais" class="link-barra">Canais</a></li></ul></nav></div>
... ...
recipes/outubrorosa/assets/conteudo-footer.html
1   -<div id="wrapper-footer-brasil"><a href="http://www.acessoainformacao.gov.br/"><span class="logo-acesso-footer"></span></a></div>
  1 +<div id="wrapper-footer-brasil"><a href="http://www.acessoainformacao.gov.br/"><span class="logo-acesso-footer"></span></a><a href="http://www.brasil.gov.br/"><span class="logo-brasil-footer"></span></a></div>
... ...
recipes/outubrorosa/assets/estatisticas.coffee
1   - head = document.getElementsByTagName("head")[0]
2   - novoScript = document.createElement("script")
3   - tipo = document.createAttribute("type")
4   - tipo.nodeValue = "text/javascript"
5   - src = document.createAttribute("src")
6   - src.nodeValue = "//coletajavascript.serpro.gov.br/estatistica.js"
7   - novoScript.setAttributeNode tipo
8   - novoScript.setAttributeNode src
9   - head.appendChild novoScript
  1 + u = ((if ("https:" is document.location.protocol) then "https" else "http")) + "://189.9.150.35/piwik/"
  2 + _paq.push [
  3 + "setTrackerUrl"
  4 + u + "piwik.php"
  5 + ]
  6 + _paq.push [
  7 + "setSiteId"
  8 + 1
  9 + ]
  10 + d = document
  11 + g = d.createElement("script")
  12 + s = d.getElementsByTagName("script")[0]
  13 + g.type = "text/javascript"
  14 + g.defer = true
  15 + g.async = true
  16 + g.src = u + "piwik.js"
  17 + s.parentNode.insertBefore g, s
  18 +
... ...
recipes/outubrorosa/assets/estilo-barra.scss
... ... @@ -8,19 +8,25 @@
8 8 div, a, ul, li {
9 9 margin: 0;
10 10 padding: 0;
11   - border: 0;
12 11 font-size: 100%;
13 12 font-family: inherit;
14 13 vertical-align: baseline;
15 14 }
16 15 }
17 16  
  17 +#barra-brasil .hashtag-barra-brasil {
  18 + margin-left: 25px;
  19 + color: #FFFBA2 !important;
  20 +}
  21 +
18 22 #barra-brasil ul {
19 23 list-style: none;
20 24 }
21 25  
22 26 /* Css específico */
23 27  
  28 +$cor-link: #FFF;
  29 +
24 30 /* web font */
25 31  
26 32 @font-face {
... ... @@ -34,7 +40,7 @@
34 40  
35 41 #barra-brasil {
36 42 height: 32px;
37   - background: #EC5C9A;
  43 + background: #ea2c6a;
38 44 font-weight: bold;
39 45 font-size: 12px;
40 46 line-height: 32px;
... ... @@ -43,6 +49,11 @@
43 49 text-decoration: none;
44 50 }
45 51 border-bottom: 1px solid #dfdfdf;
  52 + box-sizing: content-box;
  53 +}
  54 +
  55 +body.contraste #barra-brasil {
  56 + background: #000 !important;
46 57 }
47 58  
48 59 div#wrapper-barra-brasil {
... ... @@ -76,14 +87,6 @@ div#wrapper-barra-brasil {
76 87 left: 130px;
77 88 }
78 89  
79   -#barra-brasil .hashtag-barra-brasil span{
80   - padding-left: 42px;
81   -}
82   -
83   -#barra-brasil .hashtag-barra-brasil span a{
84   - color: #FFFBA2;
85   -}
86   -
87 90 #barra-brasil .list {
88 91 position: absolute;
89 92 top: 0;
... ... @@ -94,18 +97,133 @@ div#wrapper-barra-brasil {
94 97  
95 98 #barra-brasil .list-item {
96 99 display: inline-block;
97   - padding: 0 15px 0 13px;
98 100 height: 32px;
99 101 border-right: 2px solid #dfdfdf;
  102 + a {
  103 + padding: 8px 15px 8px 13px;
  104 + }
  105 +}
  106 +
  107 +#barra-brasil .link-barra { color: $cor-link; }
  108 +
  109 +body.contraste #barra-brasil .link-barra {
  110 + color: #FF0 !important;
  111 + text-decoration: underline;
  112 +}
  113 +
  114 +#menu-icon {
  115 + position: absolute;
  116 + top: 3px;
  117 + border-top: 15px double $cor-link;
  118 + border-bottom: 5px solid $cor-link;
  119 + display: none;
  120 + width: 20px;
  121 + right: 5px;
  122 +}
  123 +
  124 +#barra-brasil li .hashtag-barra-brasil,
  125 +#barra-brasil li .hashtag-barra-brasil a {
  126 + visibility: hidden;
100 127 }
101 128  
102   -#barra-brasil .link-barra { color: #FFF; }
103 129  
104   -@media screen and (max-width: 668px) {
105   - #barra-brasil .list { top: -100px; }
  130 +@media only screen and (max-width: 959px) {
  131 + #barra-brasil #menu-icon {
  132 + display:inline-block;
  133 + padding: 5px 3px 0px 3px;
  134 + }
  135 +
  136 + #barra-brasil .list .first { border-left: 1px solid #dfdfdf; }
  137 +
  138 + #barra-brasil nav:hover #menu-icon,
  139 + #barra-brasil nav:active #menu-icon,
  140 + #barra-brasil nav:focus #menu-icon {
  141 + background-color: #DDD;
  142 + }
  143 +
  144 + body.contraste #barra-brasil nav:hover #menu-icon,
  145 + body.contraste #barra-brasil nav:active #menu-icon,
  146 + body.contraste #barra-brasil nav:focus #menu-icon {
  147 + background-color: $cor-link !important;
  148 + }
  149 +
  150 + #barra-brasil ul.list,
  151 + #barra-brasil ul.list:active,
  152 + #barra-brasil ul.list:focus {
  153 + overflow: hidden;
  154 + height: 0px;
  155 + transition: 0.3s;
  156 + padding-top: 32px;
  157 + width: auto;
  158 + position: absolute;
  159 + z-index: 9;
  160 + }
  161 +
  162 + #barra-brasil .hashtag-barra-brasil,
  163 + #barra-brasil .hashtag-barra-brasil a {
  164 + visibility: hidden;
  165 + }
  166 +
  167 + #barra-brasil li .hashtag-barra-brasil,
  168 + #barra-brasil li .hashtag-barra-brasil a {
  169 + visibility: visible;
  170 + margin-left: 0;
  171 + }
  172 +
  173 +
  174 + #barra-brasil .list-item {
  175 + display: block;
  176 + text-align: center;
  177 + height: 30px;
  178 + background: #ea2c6a;
  179 + border: 1px solid #dfdfdf;
  180 + a {
  181 + padding: 8px 30px 8px 28px;
  182 + }
  183 + }
  184 +
  185 + body.contraste #barra-brasil .list-item {
  186 + background: #000 !important;
  187 + }
  188 +
  189 + body.contraste #menu-icon {
  190 + border-top: 15px double #fff !important;
  191 + border-bottom: 5px solid #fff !important;
  192 + }
  193 +
  194 + #barra-brasil .list a:active li,
  195 + #barra-brasil .list a:focus li,
  196 + #barra-brasil .list a:hover li {
  197 + background: #DDD;
  198 + }
  199 +
  200 + body.contraste #barra-brasil .list a:active li,
  201 + body.contraste #barra-brasil .list a:focus li,
  202 + body.contraste #barra-brasil .list a:hover li {
  203 + background: $cor-link !important;
  204 + }
  205 +
  206 + #barra-brasil nav:active ul.list,
  207 + #barra-brasil nav:focus ul.list,
  208 + #barra-brasil nav:hover ul.list {
  209 + height: 160px;
  210 + transition: 0.5s;
  211 + }
  212 +
  213 + div#wrapper-barra-brasil {
  214 + overflow: visible;
  215 + }
106 216 }
107 217  
108 218 @media screen and (min-width: 960px) {
109 219 #wrapper-barra-brasil { width: 960px; }
110 220 }
111   -
  221 +@media print {
  222 + #barra-brasil .list{
  223 + display: none;
  224 + }
  225 +
  226 + #barra-brasil .acesso-info .link-barra:after {
  227 + content: " - Barra GovBr";
  228 + }
  229 +}
... ...
recipes/outubrorosa/assets/estilo-footer.scss
1   -
2 1 div#wrapper-footer-brasil {
3 2 position: relative;
4 3 overflow: hidden;
5 4 margin: 0 auto;
6   - width: 100%;
  5 + width: auto;
  6 + padding: 0 20px;
7 7 max-width: 960px;
8 8 }
9   -
10 9 #wrapper-footer-brasil .logo-acesso-footer {
11 10 float: left;
12 11 width: 107px;
13 12 background: embed("imagens/acesso-a-informacao.png") center no-repeat;
14 13 height: 49px;
15 14 }
16   -
  15 +#wrapper-footer-brasil .logo-brasil-footer {
  16 + float: right;
  17 + width: 153px;
  18 + background: embed("imagens/brasil.png") center no-repeat;
  19 + height: 48px;
  20 +}
  21 +body.contraste #footer-brasil {
  22 + background: #000 !important;
  23 +}
17 24 @media screen and (min-width: 960px) {
18 25 #wrapper-footer-brasil { width: 960px; }
19 26 }
  27 +@media print {
  28 + #wrapper-footer-brasil{
  29 + border-top: 2px solid #dfdfdf;
  30 + }
20 31  
  32 + #wrapper-footer-brasil:before{
  33 + content: "Barra GovBr";
  34 + color: #606060;
  35 + font-size: 12px;
  36 + font-family: "Open Sans",Arial,Helvetica,sans-serif;
  37 + }
  38 +}
... ...
recipes/outubrorosa/assets/footer-brasil.coffee
... ... @@ -5,12 +5,8 @@
5 5 window._footerbrasil =
6 6 insere_css: (css) ->
7 7 style = document.createElement("style")
8   - tipo = document.createAttribute("type")
9   - tipo.nodeValue = "text/css"
10   - media = document.createAttribute("media")
11   - media.nodeValue = "all"
12   - style.setAttributeNode tipo
13   - style.setAttributeNode media
  8 + style.setAttribute "type","text/css"
  9 + style.setAttribute "media","all"
14 10  
15 11 if style.styleSheet #Hack para IE8
16 12 style.styleSheet.cssText = css
... ...
recipes/outubrorosa/assets/imagens/acesso-a-informacao.png

3.75 KB | W: | H:

1.75 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
recipes/outubrorosa/assets/imagens/bandeira-brasil.png

1.22 KB | W: | H:

597 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
recipes/outubrorosa/assets/imagens/brasil.png

5.6 KB | W: | H:

3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
recipes/outubrorosa/barra-brasil-1.yaml
... ... @@ -7,7 +7,7 @@ generate:
7 7 source:
8 8 - assets/conteudo-barra.html
9 9 - assets/barra-brasil.coffee
10   - # - assets/estatisticas.coffee #Parte da estatistica do Piwik
  10 + # - assets/estatisticas.coffee #Parte da estatistica do Piwik
11 11 - raw: "})();" # fechamento do escopo da funcao anonima (ver template abaixo)
12 12 template: |
13 13 (function(){
... ...
recipes/outubrorosa/barra-brasil-final.yaml
... ... @@ -6,7 +6,7 @@ generate:
6 6 - barra-brasil.js:
7 7 source:
8 8 - build/barra-brasil-original.js # parte de comportamento
9   -# - build/footer-brasil.js # parte de comportamento
  9 + - build/footer-brasil-original.js # parte de comportamento
10 10 uglify.bin: uglifyjs
11 11  
12 12 css.embed: true
... ...
recipes/outubrorosa/compile.sh
1 1 #!/bin/sh
2   -assetgen ./barra-brasil-1.yaml
3   -assetgen ./barra-brasil-2.yaml
4   -#assetgen ./footer-brasil-1.yaml
5   -#assetgen ./footer-brasil-2.yaml
6   -assetgen ./barra-brasil-final.yaml
  2 +export PATH=$PATH:../../node_modules/.bin/
  3 +../../venv/bin/assetgen ./barra-brasil-1.yaml
  4 +../../venv/bin/assetgen ./barra-brasil-2.yaml
  5 +#../../venv/bin/assetgen ./footer-brasil-1.yaml
  6 +#../../venv/bin/assetgen ./footer-brasil-2.yaml
  7 +../../venv/bin/assetgen ./barra-brasil-final.yaml
7 8  
... ...
recipes/outubrorosa/footer-brasil-1.yaml
... ... @@ -4,7 +4,7 @@
4 4  
5 5 generate:
6 6  
7   -- footer-brasil.js:
  7 +- footer-brasil-1.js:
8 8 source:
9 9 - assets/conteudo-footer.html
10 10 - assets/footer-brasil.coffee
... ... @@ -27,8 +27,6 @@ generate:
27 27 template: |
28 28 window._footerbrasil.insere_css('${source|trim}');
29 29  
30   -
31   -
32 30 css.embed: true
33 31 css.embed.only: true
34 32 css.compress: true
... ...
recipes/outubrorosa/footer-brasil-2.yaml
... ... @@ -3,9 +3,9 @@
3 3  
4 4 generate:
5 5  
6   -- footer-brasil.js:
  6 +- footer-brasil-original.js:
7 7 source:
8   - - build/footer-brasil.js # parte de comportamento
  8 + - build/footer-brasil-1.js # parte de comportamento
9 9 - build/footer-brasil-css.js # codigo de insercao do css
10 10 uglify.bin: uglifyjs
11 11  
... ...