diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 38e330003..e6aeb1ed3 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1629,6 +1629,25 @@ } } +.image-container { + background: #fafafa; + overflow: hidden; + position: relative; +} + +.poll { + + &.with-image { + padding: 0 $line-height / 2 0 0; + + img { + height: 100%; + max-width: none; + position: absolute; + } + } +} + .poll, .poll-question { border: 1px solid $border; diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb index fe12c341b..f8c105d90 100644 --- a/app/views/polls/_poll_group.html.erb +++ b/app/views/polls/_poll_group.html.erb @@ -1,5 +1,5 @@ <% poll_group.each do |poll| %> -