Commit 828f88392f39d19f81cce4cff8efafc095a566ed
Exists in
master
and in
2 other branches
Merge branch 'ajustes'
Showing
2 changed files
with
25 additions
and
1 deletions
Show diff stats
js/main.js
... | ... | @@ -382,6 +382,14 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers |
382 | 382 | // var proposalToShow = $(proposalsByTheme[randomizedIndex]).parents().filter('.proposal-item'); |
383 | 383 | // $(proposalToShow).show(); |
384 | 384 | $(proposalsByTheme[randomizedIndex]).show(); |
385 | + | |
386 | + // Hack to align proposals at home | |
387 | + if(themeClass == "cultura"){ | |
388 | + var l = proposalsByTheme.length; | |
389 | + var next = randomizedIndex + 1; | |
390 | + next = next >= l ? 0 : next; | |
391 | + $(proposalsByTheme[next]).show(); | |
392 | + } | |
385 | 393 | }); |
386 | 394 | }, |
387 | 395 | display_category_tab: function(){ | ... | ... |
sass/style.sass
... | ... | @@ -1375,7 +1375,7 @@ h3.titulo-destaque |
1375 | 1375 | color: $color |
1376 | 1376 | .bloco-destaque |
1377 | 1377 | background-color: $color |
1378 | - background-image: url(http://www.participa.br/articles/public/0009/6039/mais-medicos-foto4.png) | |
1378 | + // background-image: url(http://www.participa.br/articles/public/0009/6039/mais-medicos-foto4.png) | |
1379 | 1379 | background-repeat: no-repeat |
1380 | 1380 | background-position: 100% 100% |
1381 | 1381 | color: #fff |
... | ... | @@ -1395,6 +1395,22 @@ h3.titulo-destaque |
1395 | 1395 | background-color: $color |
1396 | 1396 | background-image: url(images/icons/#{$category}.png) |
1397 | 1397 | |
1398 | +// hack | |
1399 | +.saude | |
1400 | + .bloco-destaque | |
1401 | + background-image: url(http://www.participa.br/articles/public/0009/6039/mais-medicos-foto4.png) | |
1402 | + | |
1403 | +.cultura | |
1404 | + .bloco-destaque-cultura | |
1405 | + background-color: map-get($categories, "cultura") | |
1406 | + p | |
1407 | + color: #fff | |
1408 | + .col-md-4 | |
1409 | + padding-right: 0 | |
1410 | + text-align: right | |
1411 | + .col-cultura | |
1412 | + padding: 35px | |
1413 | + | |
1398 | 1414 | .category-title |
1399 | 1415 | background-position: 5px 50% |
1400 | 1416 | background-repeat: no-repeat | ... | ... |