Fixed invalid HTML in workshop previews

This commit is contained in:
Godwin 2016-06-03 18:16:04 -07:00
parent dfdb44b5ae
commit f52f282c43
2 changed files with 27 additions and 16 deletions

View File

@ -1748,20 +1748,31 @@ html[data-lingua-franca-example="html"] {
overflow: hidden; overflow: hidden;
} }
> li { .workshop-link {
margin-bottom: 1em; position: static;
border: 0.2em solid;
@include _(border-radius, 0.25em);
> a { @include before {
content: '';
display: block; display: block;
color: inherit; position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0
}
@include after { @include after {
display: none; display: none;
} }
} }
> li {
position: relative;
margin-bottom: 1em;
border: 0.2em solid;
@include _(border-radius, 0.25em);
@include _(transition, box-shadow 250ms ease-in-out);
will-change: box-shadow;
ul { ul {
padding-left: 2.5em; padding-left: 2.5em;
margin-bottom: 1.5em; margin-bottom: 1.5em;

View File

@ -2,7 +2,7 @@
- workshops.sort_by{ |w| w.title.downcase }.each do |w| - workshops.sort_by{ |w| w.title.downcase }.each do |w|
- is_interested = w.interested?(current_user) - is_interested = w.interested?(current_user)
%li{class: [is_interested ? :interested : nil]} %li{class: [is_interested ? :interested : nil]}
= link_to view_workshop_path(w.conference.slug, w.id) do = link_to view_workshop_path(w.conference.slug, w.id), class: 'workshop-link' do
%h4.title=w.title %h4.title=w.title
.workshop-interest .workshop-interest
- if is_interested - if is_interested