From 9ff3cbb28c69533ef88a0c0add5a792905b4690c Mon Sep 17 00:00:00 2001 From: Madeline OLeary Date: Thu, 23 Nov 2017 17:19:52 +0100 Subject: [PATCH] just adding some styling to the sign up/log un forms so that they don't take up the whole page :) --- app/assets/stylesheets/pages/_devise.scss | 3 +++ app/assets/stylesheets/pages/_index.scss | 1 + app/views/devise/registrations/new.html.erb | 4 ++++ app/views/devise/sessions/new.html.erb | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/assets/stylesheets/pages/_devise.scss diff --git a/app/assets/stylesheets/pages/_devise.scss b/app/assets/stylesheets/pages/_devise.scss new file mode 100644 index 00000000..c974df4f --- /dev/null +++ b/app/assets/stylesheets/pages/_devise.scss @@ -0,0 +1,3 @@ +.mwd { + width: 400px; +} diff --git a/app/assets/stylesheets/pages/_index.scss b/app/assets/stylesheets/pages/_index.scss index bc4e2677..1fcc5813 100644 --- a/app/assets/stylesheets/pages/_index.scss +++ b/app/assets/stylesheets/pages/_index.scss @@ -3,6 +3,7 @@ @import "point"; @import "topic"; @import "about"; +@import "devise"; body { padding-top: 70px; diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index dd9bebf2..d93df0c5 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -1,3 +1,5 @@ +
+

Sign up

<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> @@ -16,3 +18,5 @@ <% end %> <%= render "devise/shared/links" %> + +
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 52428ebb..4c130c2e 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,4 +1,4 @@ -
+

Log in