diff --git a/Changelog.md b/Changelog.md index 330948c79..7e7047f4f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ * Consistent header spacing on Bootstrap pages [#5108](https://github.com/diaspora/diaspora/pull/5108) * Port settings pages (account, profile, privacy, services) to Bootstrap [#5039](https://github.com/diaspora/diaspora/pull/5039) * Port contacts and community spotlight pages to Bootstrap [#5118](https://github.com/diaspora/diaspora/pull/5118) +* Redesign login page [#5112](https://github.com/diaspora/diaspora/pull/5112) ## Bug fixes * Fix hiding of poll publisher on close [#5029](https://github.com/diaspora/diaspora/issues/5029) diff --git a/app/assets/stylesheets/new_styles/_base.scss b/app/assets/stylesheets/new_styles/_base.scss index 9d83d9afb..43aefe2e3 100644 --- a/app/assets/stylesheets/new_styles/_base.scss +++ b/app/assets/stylesheets/new_styles/_base.scss @@ -33,7 +33,6 @@ a { color : $link-blue } } } -#login, #forgot_password, #reset_password { background-image : image_url("texture/light-bg.png"); diff --git a/app/assets/stylesheets/new_styles/_forms.scss b/app/assets/stylesheets/new_styles/_forms.scss index c1aa97c4b..c85da9ec0 100644 --- a/app/assets/stylesheets/new_styles/_forms.scss +++ b/app/assets/stylesheets/new_styles/_forms.scss @@ -86,14 +86,14 @@ form.block-form { } } -textarea, input[type=text] { - &:focus { +textarea, input[type=text], input[type=password] { + &:focus, &:invalid:focus { border: 1px solid $border-dark-grey; outline: none; -webkit-box-shadow: none; box-shadow: none; - } } +} /* buttons to be extracted? */ .new-btn { diff --git a/app/assets/stylesheets/new_styles/_login.scss b/app/assets/stylesheets/new_styles/_login.scss index 77c6d0741..0f9d03c36 100644 --- a/app/assets/stylesheets/new_styles/_login.scss +++ b/app/assets/stylesheets/new_styles/_login.scss @@ -1,4 +1,3 @@ -#login, #forgot_password, #reset_password { position : absolute; @@ -32,3 +31,51 @@ clear : all; } } + +#login { + padding-top: 20px; + .branding-asterisk { + margin: auto; + width: 154px; + height: 154px; + } + .form-signin { + margin-bottom: 30px; + + .form-control { + font-size: 16px; + height: auto; + padding: 10px; + padding-left: 40px; + } + fieldset { + margin-bottom: 20px; + } + .entypo { + position: relative; + display: inline-block; + width: 20px; + text-align: center; + top: -6px; + left: 12px; + color: $text-grey; + font-size: 20px; + } + input[type=text], input[type=password] { + &:focus { + border: 1px solid #ccc; + } + } + input[type=text] { + margin-bottom: -24px; + @include border-radius(5px, 5px, 0, 0); + } + input[type=password] { + margin-bottom: -23px; + @include border-radius(0, 0, 5px, 5px); + } + #forgot_password_link { + margin-top: 20px; + } + } +} diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 375796001..f3f2b5864 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -4,7 +4,7 @@ class SessionsController < Devise::SessionsController - layout "application", :only => [:new] - before_filter -> { @css_framework = :bootstrap }, only: [:new] + layout "with_header_with_footer", :only => [:new] + use_bootstrap_for :new end diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb deleted file mode 100644 index e505c0438..000000000 --- a/app/views/sessions/new.html.erb +++ /dev/null @@ -1,48 +0,0 @@ -<% content_for :page_title do %> - <%= "#{AppConfig.settings.pod_name} / #{t('devise.sessions.new.sign_in')}" %> -<% end %> - -