Commit 4b9bfb44c7c8aece535e041c424433ffdf1dfe29

Authored by Melissa Wen
1 parent 9fff8c16

Add subtitles by JS and styles of these

_conexions.sass
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 width: 305px !important 7 width: 305px !important
8 .block-title 8 .block-title
9 background: none 9 background: none
  10 + border: none
10 height: 22px 11 height: 22px
11 line-height: 22px 12 line-height: 22px
12 margin: 0 13 margin: 0
_container.sass
1 .container-block-plugin_container-block 1 .container-block-plugin_container-block
2 - .block-title 2 + .block-header
3 .action-home-index #content .block-outer:first-child &, #content #box-organizer .block-outer:first-child & 3 .action-home-index #content .block-outer:first-child &, #content #box-organizer .block-outer:first-child &
4 background: #308DC6 4 background: #308DC6
5 margin-bottom: 65px 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 .action-home-index #content .block-outer:nth-child(4) &, #content #box-organizer .block-outer:nth-child(4) & 9 .action-home-index #content .block-outer:nth-child(4) &, #content #box-organizer .block-outer:nth-child(4) &
9 background: #90B500 10 background: #90B500
10 margin-bottom: 40px 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 .action-home-index #content &, #content #box-organizer & 15 .action-home-index #content &, #content #box-organizer &
14 background: #404040 16 background: #404040
15 - border: none  
16 - height: 60px  
17 - line-height: 60px  
18 margin-bottom: 50px 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 margin: auto 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 .community-block, .people-block, .raw-html-block 39 .community-block, .people-block, .raw-html-block
31 #content & 40 #content &
32 span 41 span
@@ -57,6 +57,7 @@ @@ -57,6 +57,7 @@
57 width: 290px !important 57 width: 290px !important
58 .block-title 58 .block-title
59 background: none 59 background: none
  60 + border: none
60 height: 22px 61 height: 22px
61 line-height: 22px 62 line-height: 22px
62 margin: 2px 0 15px 0 63 margin: 2px 0 15px 0
@@ -13,6 +13,12 @@ @@ -13,6 +13,12 @@
13 src: url('fonts/Ubuntu-M.ttf') 13 src: url('fonts/Ubuntu-M.ttf')
14 14
15 @font-face 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 font-family: 'Open Sans' 22 font-family: 'Open Sans'
17 font-style: normal 23 font-style: normal
18 font-weight: 400 24 font-weight: 400
@@ -5,6 +5,14 @@ function shortAdminButtonLabels() { @@ -5,6 +5,14 @@ function shortAdminButtonLabels() {
5 $('#user .admin-link strong').text('Adm'); 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 $(document).ready(function(){ 15 $(document).ready(function(){
9 shortAdminButtonLabels(); 16 shortAdminButtonLabels();
  17 + addSubtitles();
10 })(jQuery); 18 })(jQuery);