diff --git a/index.html b/index.html index 43e7812..3e731e0 100644 --- a/index.html +++ b/index.html @@ -34,11 +34,19 @@
  • {{#link name id}}{{/link}}
  • - + {{/each}} + {{#each article.categories}} +
    +
    +
    {{name}}
    +
    +
    + +
    {{/each}} diff --git a/sass/_proposal_categories.scss b/sass/_proposal_categories.scss index e9bd15b..8568249 100644 --- a/sass/_proposal_categories.scss +++ b/sass/_proposal_categories.scss @@ -11,30 +11,93 @@ list-style: none; display: inline-block; } - a { + .proposal-category { + a { + text-decoration: none; + color: #fff; + margin: 10px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background-position: center 30px; + background-repeat: no-repeat; + width: 140px; + height: 40px; + display: inline-block; + font-size: 14px; + font-family: asap_bold, sans; + font-weight: bolder; + text-align: center; + padding-top: 100px; + overflow: hidden; + border-width: 2px; + border-style: solid; + hover: { + border-color: #fff !important; + } + } + } + + .category > li { + color: #FFFFFF; + text-align: left; + font-family: asap_bold; + font-size: 16px; + padding: 10px 10px 5px 30px; + margin-bottom: 10px; + } + + ul.category { + text-align: left; + padding: 0; + } + + .proposal-item p { + font-size: 14px; + color: #172938; + margin: 0; + padding-top: 5px; + background: #fff; + margin-bottom: 10px; + text-align: left; + } + + .proposal-item > a { + border-top: 1px dotted #03316f; + padding-top: 10px; + display: block; + margin: 0; + color: #335277; + text-align: left; + font-family: asap_bold; + font-size: 16px; text-decoration: none; - color: #fff; + background: #fff; + } + + .proposal-category-items .proposal-item { + width: 290px; + min-height: 134px; margin: 10px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; - background-position: center 30px; - background-repeat: no-repeat; - width: 140px; - height: 40px; - display: inline-block; - font-size: 14px; - font-family: asap_bold, sans; - font-weight: bolder; - text-align: center; - padding-top: 100px; - overflow: hidden; - border-width: 2px; - border-style: solid; - hover: { - border-color: #fff !important; + background: #fff; + border-radius: 5px; + padding: 15px; + vertical-align: top; + } + + #proposal-categories-container { + display: inline; + width: auto; + } + + .header { + color: white; + .name { + font-weight: bold; + border: 2px solid white; } } + } @each $category, $color in $categories { @@ -46,67 +109,17 @@ background-color: $color; border-color: $color; } + .proposal-category-items-#{$category} ul.category li { + background-color: $color; + background-image: url(./images/icons/#{$category}.png); + background-repeat: no-repeat; + background-size: 22px; + background-position-y: center; + background-position-x: 3px; + } } - -#proposal-categories-container { - display: inline; - width: auto; -} - -.proposal-category-items { - margin: 0 auto; - padding: 0; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; -} - -ul.category { - display: block; - text-align: left; - padding: 0; -} - -.category > li { - color: #FFFFFF; - text-align: left; - font-family: asap_bold; - font-size: 16px; - padding: 10px 10px 5px 10px; - margin-bottom: 10px; - background-color: gray; -} - -.proposal-item p { - font-size: 14px; - color: #172938; - margin: 0; - padding-top: 5px; - background: #fff; - margin-bottom: 10px; - text-align: left; -} - -.proposal-item > a { - border-top: 1px dotted #03316f; - padding-top: 10px; - display: block; - margin: 0; - color: #03316f; - text-align: left; - font-family: asap_bold; - font-size: 16px; - text-decoration: none; - background: #fff; -} - -.proposal-category-items .proposal-item { - width: 290px; - min-height: 134px; - margin: 10px; - background: #fff; - border-radius: 7px; - padding: 15px; - vertical-align: top; +@each $category, $description in $categories-descriptions { + .proposal-category-items-#{$category} .header .description:before { + content: "#{$description}"; + } } - diff --git a/sass/utilities/_variables.scss b/sass/utilities/_variables.scss index ccaae8e..da27500 100644 --- a/sass/utilities/_variables.scss +++ b/sass/utilities/_variables.scss @@ -1 +1,2 @@ -$categories: (saude: #00cbd7, seguranca: #e34748, educacao: #ffb400, desenvolvimento-social: #51d0b3); +$categories: (saude: #00a9bd, seguranca: #e34748, educacao: #ffb400, desenvolvimento-social: #51d0b3); +$categories-descriptions: (saude: "Saúde é direito de todos e dever do Estado. O Sistema Único de Saúde (SUS) é um dos maiores do mundo: atende 202 milhões de brasileiras e brasileiros.", seguranca: '') -- libgit2 0.21.2