From 4b9bfb44c7c8aece535e041c424433ffdf1dfe29 Mon Sep 17 00:00:00 2001 From: Melissa Wen Date: Thu, 18 Feb 2016 12:12:24 -0200 Subject: [PATCH] Add subtitles by JS and styles of these --- _conexions.sass | 1 + _container.sass | 45 +++++++++++++++++++++++++++------------------ _news.sass | 1 + style.sass | 6 ++++++ theme.js | 8 ++++++++ 5 files changed, 43 insertions(+), 18 deletions(-) diff --git a/_conexions.sass b/_conexions.sass index 0991863..73bb391 100644 --- a/_conexions.sass +++ b/_conexions.sass @@ -7,6 +7,7 @@ width: 305px !important .block-title background: none + border: none height: 22px line-height: 22px margin: 0 diff --git a/_container.sass b/_container.sass index b5b192f..c4281c0 100644 --- a/_container.sass +++ b/_container.sass @@ -1,32 +1,41 @@ .container-block-plugin_container-block - .block-title + .block-header .action-home-index #content .block-outer:first-child &, #content #box-organizer .block-outer:first-child & background: #308DC6 margin-bottom: 65px - span - background: url('images/home/01.png') no-repeat left center + .block-title + span + background: url('images/home/01.png') no-repeat left center .action-home-index #content .block-outer:nth-child(4) &, #content #box-organizer .block-outer:nth-child(4) & background: #90B500 margin-bottom: 40px - span - background: url('images/home/03.png') no-repeat left center + .block-title + span + background: url('images/home/03.png') no-repeat left center .action-home-index #content &, #content #box-organizer & background: #404040 - border: none - height: 60px - line-height: 60px margin-bottom: 50px - span - background: url('images/home/02.png') no-repeat left center - color: #FFF - display: block - font-family: 'Ubuntu Mediun' - font-size: 18px - font-variant: normal - font-weight: normal + .block-title + border: none margin: auto - padding-left: 60px - width: 900px + width: 960px + span + background: url('images/home/02.png') no-repeat left center + color: #FFF + display: inline-block + font-family: 'Ubuntu Mediun' + font-size: 18px + font-variant: normal + font-weight: normal + height: 60px + line-height: 60px + padding-left: 60px + .subtitle + background: none !important + font-family: 'Ubuntu' + font-size: 13px + font-style: italic + padding: 0 0 0 15px .community-block, .people-block, .raw-html-block #content & span diff --git a/_news.sass b/_news.sass index 1411825..723b9e2 100644 --- a/_news.sass +++ b/_news.sass @@ -57,6 +57,7 @@ width: 290px !important .block-title background: none + border: none height: 22px line-height: 22px margin: 2px 0 15px 0 diff --git a/style.sass b/style.sass index 25734fa..98396c8 100644 --- a/style.sass +++ b/style.sass @@ -13,6 +13,12 @@ src: url('fonts/Ubuntu-M.ttf') @font-face + font-family: 'Ubuntu' + font-weight: 300 + font-style: italic + src: url('fonts/Ubuntu-RI.ttf') + +@font-face font-family: 'Open Sans' font-style: normal font-weight: 400 diff --git a/theme.js b/theme.js index 42d47eb..181c2dd 100644 --- a/theme.js +++ b/theme.js @@ -5,6 +5,14 @@ function shortAdminButtonLabels() { $('#user .admin-link strong').text('Adm'); } +function addSubtitles(){ + $('div.container-block-plugin_container-block > .block-inner-1').children('.block-inner-2').children('.block-title').wrap('
'); + $($('div.block-header')[0]).children('.block-title').append('Colabore no passo a passo das consultas públicas e discussões de políticas públicas'); + $($('div.block-header')[1]).children('.block-title').append('Confira as últimas novidades do Participa.br'); + $($('div.block-header')[2]).children('.block-title').append('Faça parte') +} + $(document).ready(function(){ shortAdminButtonLabels(); + addSubtitles(); })(jQuery); -- libgit2 0.21.2