Commit 4b9bfb44c7c8aece535e041c424433ffdf1dfe29
1 parent
9fff8c16
Exists in
master
and in
4 other branches
Add subtitles by JS and styles of these
Showing
5 changed files
with
43 additions
and
18 deletions
Show diff stats
_conexions.sass
_container.sass
| 1 | 1 | .container-block-plugin_container-block |
| 2 | - .block-title | |
| 2 | + .block-header | |
| 3 | 3 | .action-home-index #content .block-outer:first-child &, #content #box-organizer .block-outer:first-child & |
| 4 | 4 | background: #308DC6 |
| 5 | 5 | margin-bottom: 65px |
| 6 | - span | |
| 7 | - background: url('images/home/01.png') no-repeat left center | |
| 6 | + .block-title | |
| 7 | + span | |
| 8 | + background: url('images/home/01.png') no-repeat left center | |
| 8 | 9 | .action-home-index #content .block-outer:nth-child(4) &, #content #box-organizer .block-outer:nth-child(4) & |
| 9 | 10 | background: #90B500 |
| 10 | 11 | margin-bottom: 40px |
| 11 | - span | |
| 12 | - background: url('images/home/03.png') no-repeat left center | |
| 12 | + .block-title | |
| 13 | + span | |
| 14 | + background: url('images/home/03.png') no-repeat left center | |
| 13 | 15 | .action-home-index #content &, #content #box-organizer & |
| 14 | 16 | background: #404040 |
| 15 | - border: none | |
| 16 | - height: 60px | |
| 17 | - line-height: 60px | |
| 18 | 17 | margin-bottom: 50px |
| 19 | - span | |
| 20 | - background: url('images/home/02.png') no-repeat left center | |
| 21 | - color: #FFF | |
| 22 | - display: block | |
| 23 | - font-family: 'Ubuntu Mediun' | |
| 24 | - font-size: 18px | |
| 25 | - font-variant: normal | |
| 26 | - font-weight: normal | |
| 18 | + .block-title | |
| 19 | + border: none | |
| 27 | 20 | margin: auto |
| 28 | - padding-left: 60px | |
| 29 | - width: 900px | |
| 21 | + width: 960px | |
| 22 | + span | |
| 23 | + background: url('images/home/02.png') no-repeat left center | |
| 24 | + color: #FFF | |
| 25 | + display: inline-block | |
| 26 | + font-family: 'Ubuntu Mediun' | |
| 27 | + font-size: 18px | |
| 28 | + font-variant: normal | |
| 29 | + font-weight: normal | |
| 30 | + height: 60px | |
| 31 | + line-height: 60px | |
| 32 | + padding-left: 60px | |
| 33 | + .subtitle | |
| 34 | + background: none !important | |
| 35 | + font-family: 'Ubuntu' | |
| 36 | + font-size: 13px | |
| 37 | + font-style: italic | |
| 38 | + padding: 0 0 0 15px | |
| 30 | 39 | .community-block, .people-block, .raw-html-block |
| 31 | 40 | #content & |
| 32 | 41 | span | ... | ... |
_news.sass
style.sass
| ... | ... | @@ -13,6 +13,12 @@ |
| 13 | 13 | src: url('fonts/Ubuntu-M.ttf') |
| 14 | 14 | |
| 15 | 15 | @font-face |
| 16 | + font-family: 'Ubuntu' | |
| 17 | + font-weight: 300 | |
| 18 | + font-style: italic | |
| 19 | + src: url('fonts/Ubuntu-RI.ttf') | |
| 20 | + | |
| 21 | +@font-face | |
| 16 | 22 | font-family: 'Open Sans' |
| 17 | 23 | font-style: normal |
| 18 | 24 | font-weight: 400 | ... | ... |
theme.js
| ... | ... | @@ -5,6 +5,14 @@ function shortAdminButtonLabels() { |
| 5 | 5 | $('#user .admin-link strong').text('Adm'); |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | +function addSubtitles(){ | |
| 9 | + $('div.container-block-plugin_container-block > .block-inner-1').children('.block-inner-2').children('.block-title').wrap('<div class="block-header"></div>'); | |
| 10 | + $($('div.block-header')[0]).children('.block-title').append('<span class="subtitle">Colabore no passo a passo das consultas públicas e discussões de políticas públicas</span>'); | |
| 11 | + $($('div.block-header')[1]).children('.block-title').append('<span class="subtitle">Confira as últimas novidades do Participa.br</span>'); | |
| 12 | + $($('div.block-header')[2]).children('.block-title').append('<span class="subtitle">Faça parte</span>') | |
| 13 | +} | |
| 14 | + | |
| 8 | 15 | $(document).ready(function(){ |
| 9 | 16 | shortAdminButtonLabels(); |
| 17 | + addSubtitles(); | |
| 10 | 18 | })(jQuery); | ... | ... |