From f2259737802e876bc4bb35aeb32455432a5cf110 Mon Sep 17 00:00:00 2001 From: Lucas Caton Date: Sat, 3 Jun 2017 14:31:07 +1000 Subject: Make Rails welcome page responsive --- .../lib/rails/templates/rails/welcome/index.html.erb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails/templates/rails/welcome/index.html.erb b/railties/lib/rails/templates/rails/welcome/index.html.erb index 5cdb7e6a20..5a82bf913c 100644 --- a/railties/lib/rails/templates/rails/welcome/index.html.erb +++ b/railties/lib/rails/templates/rails/welcome/index.html.erb @@ -26,18 +26,28 @@ p { font-family: monospace; } .container { - width: 960px; + max-width: 960px; margin: 0 auto 40px; overflow: hidden; } - section { margin: 0 auto 2rem; padding: 1rem 0 0; - width: 700px; text-align: center; } + + @media only screen and (max-width: 500px) { + h1 { font-size: 2rem; } + + .version { font-size: 1.1rem; } + } + + .welcome { + width: 600px; + max-width: 100%; + height: auto; + } @@ -52,7 +62,7 @@

Yay! You’re on Rails!

- Welcome + Welcome

Rails version: <%= Rails.version %>
-- cgit v1.2.3