Merge pull request #697 from sgmap/better_procedure_links

Procedure Index: increase link size to the whole line and apply same …
This commit is contained in:
LeSim 2017-09-06 10:36:45 +02:00 committed by Mathieu Magnin
commit 566977989c
2 changed files with 58 additions and 51 deletions

View file

@ -1,14 +1,28 @@
@import "colors"; @import "colors";
@import "constants";
@import "mixins"; @import "mixins";
.procedure-list { .procedure-list {
.procedure-item { .procedure-item {
@include vertical-padding(24px);
border-bottom: 1px solid $border-grey; border-bottom: 1px solid $border-grey;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
} }
a {
@include vertical-padding(24px);
color: $black;
width: 100%;
&:hover {
background-color: $light-grey;
.procedure-title {
text-decoration: underline;
}
}
}
} }
.procedure-logo { .procedure-logo {
@ -21,14 +35,7 @@
min-height: 40px; min-height: 40px;
font-size: 20px; font-size: 20px;
margin-bottom: 16px; margin-bottom: 16px;
padding-left: $default-spacer;
a {
color: $black;
&:hover {
color: $blue;
}
}
} }
.procedure-status { .procedure-status {

View file

@ -4,12 +4,12 @@
%ul.procedure-list %ul.procedure-list
- @procedures.each do |p| - @procedures.each do |p|
%li.procedure-item.flex.align-start %li.procedure-item.flex.align-start
= link_to(procedure_path(p)) do
.procedure-details .procedure-details
%p.procedure-title %p.procedure-title
- if p.logo.present? - if p.logo.present?
= image_tag p.logo, class: "procedure-logo" = image_tag p.logo, class: "procedure-logo"
= link_to(p.libelle, procedure_path(p)) #{p.libelle}
%ul.procedure-stats.flex %ul.procedure-stats.flex
%li %li