Cleans and improves styles for header and homepage
This commit is contained in:
BIN
app/assets/images/icon_home.png
Normal file
BIN
app/assets/images/icon_home.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
@@ -147,6 +147,10 @@ h6 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
clear: both;
|
||||||
|
font-family: $font-sans;
|
||||||
|
line-height: $heading-line-height;
|
||||||
|
margin: rem-calc(12) 0 rem-calc(6);
|
||||||
|
|
||||||
&.lead {
|
&.lead {
|
||||||
border-bottom: rem-calc(6) solid $brand;
|
border-bottom: rem-calc(6) solid $brand;
|
||||||
@@ -176,11 +180,6 @@ body {
|
|||||||
font-size: $base-font-size;
|
font-size: $base-font-size;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
|
|
||||||
&::selection, ::-moz-selection {
|
|
||||||
background: $brand !important;
|
|
||||||
color: white !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p, ul, table {
|
p, ul, table {
|
||||||
@@ -197,13 +196,6 @@ ol, ul, li, p {
|
|||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
clear: both;
|
|
||||||
font-family: $font-sans;
|
|
||||||
line-height: $heading-line-height;
|
|
||||||
margin: rem-calc(12) 0 rem-calc(6);
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $link;
|
color: $link;
|
||||||
|
|
||||||
@@ -373,72 +365,11 @@ a {
|
|||||||
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
header {
|
header {
|
||||||
background: #E7F2FC;
|
background: $highlight;
|
||||||
border-bottom: rem-calc(1) solid $border;
|
border-bottom: rem-calc(1) solid $border;
|
||||||
|
|
||||||
a {
|
|
||||||
font-family: $font-sans;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin: rem-calc(24) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: rem-calc(16);
|
|
||||||
font-weight: normal;
|
|
||||||
line-height: rem-calc(30);
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
|
||||||
background: white;
|
|
||||||
color: $brand;
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: rem-calc(16);
|
|
||||||
margin-top: 0;
|
|
||||||
|
|
||||||
&.see-more {
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.home-page {
|
.home-page {
|
||||||
text-align: center;
|
padding-top: rem-calc(24);
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.more-info {
|
|
||||||
display: block;
|
|
||||||
margin-bottom: rem-calc(24);
|
|
||||||
text-decoration: underline;
|
|
||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
|
||||||
display: inline-block;
|
|
||||||
margin-bottom: 0;
|
|
||||||
margin-left: rem-calc(12);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-home-big {
|
|
||||||
color: $brand;
|
|
||||||
font-size: rem-calc(300);
|
|
||||||
line-height: rem-calc(300);
|
|
||||||
opacity: .75;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-home-small {
|
|
||||||
color: $brand;
|
|
||||||
font-size: rem-calc(100);
|
|
||||||
opacity: .75;
|
|
||||||
position: absolute;
|
|
||||||
right: rem-calc(24);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-external {
|
.icon-external {
|
||||||
@@ -690,6 +621,7 @@ header {
|
|||||||
a {
|
a {
|
||||||
color: $text;
|
color: $text;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-family: $font-sans;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: $line-height*2;
|
line-height: $line-height*2;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ $check: #46DB91;
|
|||||||
$proposals: #FFA42D;
|
$proposals: #FFA42D;
|
||||||
$proposals-border: #CC8425;
|
$proposals-border: #CC8425;
|
||||||
|
|
||||||
|
$highlight: #E7F2FC;
|
||||||
|
|
||||||
// 03. Forms
|
// 03. Forms
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
|||||||
@@ -73,14 +73,17 @@
|
|||||||
<div class="row home-page">
|
<div class="row home-page">
|
||||||
<div class="small-12 medium-7 column">
|
<div class="small-12 medium-7 column">
|
||||||
<h1><%= t("layouts.header.open_city_title") %></h1>
|
<h1><%= t("layouts.header.open_city_title") %></h1>
|
||||||
<h2><%= t("layouts.header.open_city_slogan_html") %></h2>
|
<p>
|
||||||
<%= link_to t("layouts.header.see_all"), proposals_path, class: "button radius see-more warning" %>
|
<%= t("layouts.header.open_city_slogan_html") %>
|
||||||
<%= link_to t("layouts.header.more_information"), "/more_information", class: "more-info" %>
|
<%= link_to t("layouts.header.more_information"), page_path('more_information') %>
|
||||||
|
</p>
|
||||||
|
<div class="small-12 medium-6">
|
||||||
|
<%= link_to t("layouts.header.see_all"), proposals_path, class: "button radius see-more warning expand" %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="show-for-medium-up small-12 medium-5 column text-center">
|
<div class="show-for-medium-up small-12 medium-5 column text-center">
|
||||||
<i class="icon-debates icon-home-big"></i>
|
<%= image_tag("icon_home.png", size: "330x240", alt:"", role:"presentation") %>
|
||||||
<i class="icon-debates icon-home-small"></i>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -93,8 +96,7 @@
|
|||||||
<%= link_to t("pages.opendata.go_old"), t("layouts.header.external_link_opendata_url"), target: "_blank", class: "button radius" %>
|
<%= link_to t("pages.opendata.go_old"), t("layouts.header.external_link_opendata_url"), target: "_blank", class: "button radius" %>
|
||||||
</div>
|
</div>
|
||||||
<div class="show-for-medium-up small-12 medium-5 column text-center">
|
<div class="show-for-medium-up small-12 medium-5 column text-center">
|
||||||
<i class="icon-debates icon-home-big"></i>
|
<%= image_tag("icon_home.png", size: "330x240", alt:"", role:"presentation") %>
|
||||||
<i class="icon-debates icon-home-small"></i>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -2,25 +2,25 @@
|
|||||||
<section role="main">
|
<section role="main">
|
||||||
<div class="row text-center">
|
<div class="row text-center">
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= image_tag("icon_home_debate.png", size: "168x168", alt: t("welcome.debates.title")) %>
|
<%= image_tag("icon_home_debate.png", size: "168x168", alt: t("welcome.debates.alt"), title: t("welcome.debates.title")) %>
|
||||||
<h3><%= t("welcome.debates.title") %></h3>
|
<h2><%= t("welcome.debates.title") %></h2>
|
||||||
<p><%= t("welcome.debates.description") %></p>
|
<p><%= t("welcome.debates.description") %></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= image_tag("icon_home_proposal.png", size: "168x168", alt: t("welcome.proposal.title")) %>
|
<%= image_tag("icon_home_proposal.png", size: "168x168", alt: t("welcome.proposal.alt"), title: t("welcome.proposal.title")) %>
|
||||||
<h3><%= t("welcome.proposal.title") %></h3>
|
<h2><%= t("welcome.proposal.title") %></h2>
|
||||||
<p><%= t("welcome.proposal.description") %></p>
|
<p><%= t("welcome.proposal.description") %></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= image_tag("icon_home_decide.png", size: "168x168", alt: t("welcome.decide.title")) %>
|
<%= image_tag("icon_home_decide.png", size: "168x168", alt: t("welcome.decide.alt"), title: t("welcome.decide.title")) %>
|
||||||
<h3><%= t("welcome.decide.title") %></h3>
|
<h2><%= t("welcome.decide.title") %></h2>
|
||||||
<p><%= t("welcome.decide.description") %></p>
|
<p><%= t("welcome.decide.description") %></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= image_tag("icon_home_do.png", size: "168x168", alt: t("welcome.do.title")) %>
|
<%= image_tag("icon_home_do.png", size: "168x168", alt: t("welcome.do.alt"), title: t("welcome.do.title")) %>
|
||||||
<h3><%= t("welcome.do.title") %></h3>
|
<h2><%= t("welcome.do.title") %></h2>
|
||||||
<p><%= t("welcome.do.description") %></p>
|
<p><%= t("welcome.do.description") %></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -357,15 +357,19 @@ en:
|
|||||||
debates:
|
debates:
|
||||||
title: "Debates"
|
title: "Debates"
|
||||||
description: "For meeting, discussing and sharing the things that matter to us in our city."
|
description: "For meeting, discussing and sharing the things that matter to us in our city."
|
||||||
|
alt: "Icon debates"
|
||||||
proposal:
|
proposal:
|
||||||
title: "You propose"
|
title: "You propose"
|
||||||
description: "Open space for citizen proposals about the kind of city we want to live in."
|
description: "Open space for citizen proposals about the kind of city we want to live in."
|
||||||
|
alt: "Icon propose"
|
||||||
decide:
|
decide:
|
||||||
title: "You decide"
|
title: "You decide"
|
||||||
description: "The public decides if it accepts or rejects the most supported proposals."
|
description: "The public decides if it accepts or rejects the most supported proposals."
|
||||||
|
alt: "Icon decide"
|
||||||
do:
|
do:
|
||||||
title: "It gets done"
|
title: "It gets done"
|
||||||
description: "If the proposal is accepted by the majority, the City Council accepts it as its own and it gets done."
|
description: "If the proposal is accepted by the majority, the City Council accepts it as its own and it gets done."
|
||||||
|
alt: "Icon it gets done"
|
||||||
welcome:
|
welcome:
|
||||||
title: "Participate"
|
title: "Participate"
|
||||||
go_to_index: "See proposals and debates"
|
go_to_index: "See proposals and debates"
|
||||||
|
|||||||
@@ -357,15 +357,19 @@ es:
|
|||||||
debates:
|
debates:
|
||||||
title: "Debates"
|
title: "Debates"
|
||||||
description: "Encontrarnos, debatir y compartir lo que nos parece importante en nuestra ciudad."
|
description: "Encontrarnos, debatir y compartir lo que nos parece importante en nuestra ciudad."
|
||||||
|
alt: "Icono debates"
|
||||||
proposal:
|
proposal:
|
||||||
title: "Propones"
|
title: "Propones"
|
||||||
description: "Espacio abierto para propuestas ciudadanas sobre el tipo de ciudad en el que queremos vivir."
|
description: "Espacio abierto para propuestas ciudadanas sobre el tipo de ciudad en el que queremos vivir."
|
||||||
|
alt: "Icono propones"
|
||||||
decide:
|
decide:
|
||||||
title: "Decides"
|
title: "Decides"
|
||||||
description: "La ciudadanía decide si acepta o rechaza las propuestas más apoyadas."
|
description: "La ciudadanía decide si acepta o rechaza las propuestas más apoyadas."
|
||||||
|
alt: "Icono decides"
|
||||||
do:
|
do:
|
||||||
title: "Se hace"
|
title: "Se hace"
|
||||||
description: "Si la propuesta es aceptada mayoritariamente, el Ayuntamiento la asume como propia y se hace."
|
description: "Si la propuesta es aceptada mayoritariamente, el Ayuntamiento la asume como propia y se hace."
|
||||||
|
alt: "Icono se hace"
|
||||||
welcome:
|
welcome:
|
||||||
title: "Empieza a participar"
|
title: "Empieza a participar"
|
||||||
go_to_index: "Ver propuestas"
|
go_to_index: "Ver propuestas"
|
||||||
|
|||||||
Reference in New Issue
Block a user