From 287b144bcfcef28873dfb4908f8655d5c5413599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Gonz=C3=A1lez?= Date: Wed, 18 Jan 2017 16:42:51 +0100 Subject: [PATCH] Make draft index fixed on scroll --- app/assets/stylesheets/legislation_process.scss | 6 ++++++ app/views/legislation/draft_versions/show.html.erb | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 48b18db8e..dc837a619 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -614,6 +614,12 @@ $epigraph-line-height: rem-calc(22); border-right: 1px solid $border; } } + + .border-left { + @include breakpoint(medium) { + border-left: 1px solid $border; + } + } .draft-panel { text-transform: uppercase; diff --git a/app/views/legislation/draft_versions/show.html.erb b/app/views/legislation/draft_versions/show.html.erb index fc3dadaaf..df3d49047 100644 --- a/app/views/legislation/draft_versions/show.html.erb +++ b/app/views/legislation/draft_versions/show.html.erb @@ -28,7 +28,7 @@
-
"> +
">
<%= t('.text_toc') %> @@ -38,16 +38,18 @@
<%= t('.text_toc') %>
- -
- <%= @draft_version.toc_html.html_safe %> + +
+
+ <%= @draft_version.toc_html.html_safe %> +
-
+
<%= t('.text_body') %>
-
+
<% if @draft_version.final_version? %>
<% else %>