From 7fa377ab760f8db34850420ceaf94a26b3697539 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 7 Dec 2018 11:41:11 +0000 Subject: [PATCH] Fix spacing on upload link when not inside sticky We adjust the spacing under the textbox when doing the send one off flow. This was based on the assumption that there would always be a sticky header in the send one off flow. This assumption is no longer true, so this commit implements the same spacing in an independent way. --- app/assets/stylesheets/main.scss | 1 + app/assets/stylesheets/views/send.scss | 7 +++++++ app/templates/views/send-test.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/assets/stylesheets/views/send.scss diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss index 74e3784d5..f4944ecac 100644 --- a/app/assets/stylesheets/main.scss +++ b/app/assets/stylesheets/main.scss @@ -70,6 +70,7 @@ $path: '/static/images/'; @import 'views/product-page'; @import 'views/template'; @import 'views/notification'; +@import 'views/send'; // TODO: break this up @import 'app'; diff --git a/app/assets/stylesheets/views/send.scss b/app/assets/stylesheets/views/send.scss new file mode 100644 index 000000000..2bed875f8 --- /dev/null +++ b/app/assets/stylesheets/views/send.scss @@ -0,0 +1,7 @@ +.send-one-off-form { + + .form-group { + margin-bottom: 20px; + } + +} diff --git a/app/templates/views/send-test.html b/app/templates/views/send-test.html index 0a39ebdb7..c84c5fbce 100644 --- a/app/templates/views/send-test.html +++ b/app/templates/views/send-test.html @@ -15,7 +15,7 @@ {% call form_wrapper( - class="js-stick-at-top-when-scrolling" if template.template_type != 'sms' else '', + class='js-stick-at-top-when-scrolling send-one-off-form' if template.template_type != 'sms' else 'send-one-off-form', module="autofocus" ) %}