Skip to content

Commit

Permalink
Improves accesibility
Browse files Browse the repository at this point in the history
  • Loading branch information
decabeza committed Oct 13, 2015
1 parent 2069376 commit 2ca4557
Show file tree
Hide file tree
Showing 28 changed files with 88 additions and 100 deletions.
Binary file added app/assets/images/icon_home_debate.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions app/assets/images/icon_home_debate.svg

This file was deleted.

Binary file added app/assets/images/icon_home_decide.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions app/assets/images/icon_home_decide.svg

This file was deleted.

Binary file added app/assets/images/icon_home_do.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions app/assets/images/icon_home_done.svg

This file was deleted.

Binary file added app/assets/images/icon_home_proposal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions app/assets/images/icon_home_proposal.svg

This file was deleted.

22 changes: 19 additions & 3 deletions app/assets/stylesheets/layout.scss
Expand Up @@ -19,6 +19,7 @@
// 17. Verification
// 18. Comments
// 19. Flags
// 20. Accesibility
//

// 01. Variables
Expand Down Expand Up @@ -310,10 +311,11 @@ header {
padding: 0;
}

p {
h2 {
color: white;
font-size: rem-calc(16);
line-height: rem-calc(30);
font-weight: normal;
line-height: rem-calc(30);
}

.button {
Expand Down Expand Up @@ -1642,7 +1644,7 @@ table {
font-family: "icons" !important;
position: absolute;
right: 0;
top: rem-calc(6);
top: rem-calc(12);

@media (min-width: $small-breakpoint) {
content: 'c';
Expand Down Expand Up @@ -1932,3 +1934,17 @@ table {
.flag-active {
color: $delete;
}

// 20. Accesibility
// - - - - - - - - - - - - - - - - - - - - - - - - -

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
2 changes: 1 addition & 1 deletion app/views/devise/confirmations/new.html.erb
@@ -1,5 +1,5 @@
<% provide :title do %><%= t("devise_views.confirmations.title") %><% end %>
<h1 class="text-center"><%= t("devise_views.confirmations.title") %></h1>
<h2 class="text-center"><%= t("devise_views.confirmations.title") %></h2>

<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<%= render 'shared/errors', resource: resource %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/passwords/new.html.erb
@@ -1,5 +1,5 @@
<% provide :title do %><%= t("devise_views.passwords.new.title") %><% end %>
<h1 class="text-center"><%= t("devise_views.passwords.new.title") %></h1>
<h2 class="text-center"><%= t("devise_views.passwords.new.title") %></h2>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
<%= render 'shared/errors', resource: resource %>

Expand Down
2 changes: 1 addition & 1 deletion app/views/kaminari/_paginator.html.erb
@@ -1,6 +1,6 @@
<%= paginator.render do -%>
<div class="pagination-centered">
<nav role="navigation">
<nav>
<ul class="pagination">
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/_admin_header.html.erb
Expand Up @@ -6,11 +6,11 @@
</section>

<div class="contain-to-grid clear">
<nav class="top-bar" data-topbar role="navigation">
<nav class="top-bar" data-topbar>
<ul class="title-area">
<li class="name">
<%= link_to root_path do %>
<%= image_tag('header_logo_madrid.png', class: 'left', size: '96x96') %>
<%= image_tag('header_logo_madrid.png', class: 'left', size: '96x96', alt: t("layouts.header.logo")) %>
<%= t("layouts.header.open_gov", open: "<strong>#{t('layouts.header.open')}</strong>").html_safe %> <span>|</span> <span class="logo-site"><%= t("admin.dashboard.index.title") %></span>
<% end %>
</li>
Expand Down
8 changes: 6 additions & 2 deletions app/views/layouts/_footer.html.erb
Expand Up @@ -3,9 +3,9 @@
<div class="row">

<div class="small-12 large-4 column">
<div class="logo">
<h3 class="logo">
<%= link_to t("layouts.header.open_gov", open: "#{t('layouts.header.open')}").html_safe %>
</div>
</h3>

<p>
<%= t("layouts.footer.description",
Expand Down Expand Up @@ -52,15 +52,19 @@

<div class="small-12 medium-2 column social">
<%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("social.twitter") do %>
<span class="sr-only"><%= t("social.twitter") %></span>
<i class="icon-twitter"></i>
<% end %>
<%= link_to "https://www.facebook.com/Abriendo-Madrid-1475577616080350/", target: "_blank", title: t("social.facebook") do %>
<span class="sr-only"><%= t("social.facebook") %></span>
<i class="icon-facebook"></i>
<% end %>
<%= link_to "/blog", target: "_blank", title: t("social.blog") do %>
<span class="sr-only"><%= t("social.blog") %></span>
<i class="icon-blog"></i>
<% end %>
<%= link_to "https://www.youtube.com/channel/UCFmaChI9quIY7lwHplnacfg", target: "_blank", title: t("social.youtube") do %>
<span class="sr-only"><%= t("social.youtube") %></span>
<i class="icon-youtube"></i>
<% end %>
</div>
Expand Down

0 comments on commit 2ca4557

Please sign in to comment.