diff --git a/app/assets/javascripts/widgets/flash-messages.js b/app/assets/javascripts/widgets/flash-messages.js index 3abf71150..ed2c3e83b 100644 --- a/app/assets/javascripts/widgets/flash-messages.js +++ b/app/assets/javascripts/widgets/flash-messages.js @@ -8,13 +8,7 @@ this.animateMessages = function() { var flashMessages = $("#flash_notice, #flash_error, #flash_alert"); - flashMessages.animate({ - top: 0 - }, 400).delay(4000).animate({ - top: -100 - }, 400, function(){ - $(this).remove(); - }); + flashMessages.addClass("expose") }; this.render = function(result) { diff --git a/app/assets/stylesheets/_mixins.css.scss b/app/assets/stylesheets/_mixins.css.scss index db9f8ba46..d63940d74 100644 --- a/app/assets/stylesheets/_mixins.css.scss +++ b/app/assets/stylesheets/_mixins.css.scss @@ -78,10 +78,16 @@ $default-border-radius: 3px; } @mixin transition($type, $speed:$speed, $easing:$easing){ - -webkit-transition: $type $speed $easing; - -moz-transition: $type $speed $easing; - -o-transition: $type $speed $easing; - transition: $type $speed $easing; + -webkit-transition : $type $speed $easing; + -moz-transition : $type $speed $easing; + -o-transition : $type $speed $easing; + transition : $type $speed $easing; +} + +@mixin animate($name, $speed:$speed, $occurances:"") { + -webkit-animation : $name $speed $occurances; + -moz-animation : $name $speed $occurances; + -ms-animation : $name $speed $occurances; } @mixin animation($name, $speed:0.2s, $easing:ease-in-out) { diff --git a/app/assets/stylesheets/new-templates.css.scss b/app/assets/stylesheets/new-templates.css.scss index 85a0da6eb..385b4b021 100644 --- a/app/assets/stylesheets/new-templates.css.scss +++ b/app/assets/stylesheets/new-templates.css.scss @@ -2,6 +2,9 @@ @import 'new_styles/new_mixins'; @import 'new_styles/variables'; +/* core */ +@import 'new_styles/flash_messages'; + /* custom animations */ @import 'new_styles/animations'; diff --git a/app/assets/stylesheets/new_styles/_flash_messages.scss b/app/assets/stylesheets/new_styles/_flash_messages.scss new file mode 100644 index 000000000..2f7dcf49c --- /dev/null +++ b/app/assets/stylesheets/new_styles/_flash_messages.scss @@ -0,0 +1,48 @@ +/* animations */ +@-webkit-keyframes expose { + 0% { top : -100px; } + 15% { top : 0; } + 85% { top : 0; } + 100% { top : -100px; } +} +@-moz-keyframes expose { + 0% { top : -100px; } + 15% { top : 0; } + 85% { top : 0; } + 100% { top : -100px; } +} +@-ms-keyframes expose { + 0% { top : -100px; } + 15% { top : 0; } + 85% { top : 0; } + 100% { top : -100px; } +} + +/* styles */ +#flash_alert, +#flash_notice, +#flash_alert { + position : fixed; + top : -100px; + left : 0; + width : 100%; + + text-align : center; + + &.expose { + @include animation(expose, 4s) + } + + .message { + @include border-radius(6px); + @include box-shadow(0, 1px, 4px, rgba(0,0,0,0.8)); + + display : inline-block; + padding : 10px 20px 8px 20px; + margin-top : 10px; + background-color : rgba(0,0,0,0.8); + color : #fff; + + border : 1px solid rgba(255,255,255,0.7); + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/new_styles/_forms.scss b/app/assets/stylesheets/new_styles/_forms.scss index ec1d966d0..cdb280edf 100644 --- a/app/assets/stylesheets/new_styles/_forms.scss +++ b/app/assets/stylesheets/new_styles/_forms.scss @@ -1,3 +1,10 @@ +/* autocomplete colors */ +input:-webkit-autofill{ + background-color: #fff !important; + background-image: none !important; +} + + form.block-form { display : inline-block; diff --git a/app/assets/stylesheets/new_styles/_login.scss b/app/assets/stylesheets/new_styles/_login.scss index b38819d2c..afe9d543d 100644 --- a/app/assets/stylesheets/new_styles/_login.scss +++ b/app/assets/stylesheets/new_styles/_login.scss @@ -2,9 +2,7 @@ position : absolute; top : 0; left : 0; - margin-top : 200px; - //background-color : #afc652; - min-height : 100%; + padding-top : 200px; min-width : 100%; //color : #fff; @@ -21,4 +19,10 @@ color : #ddd; text-shadow : 0 1px 0 #fff; } + + #forgot_password_link { + margin : 40px; + color : #999; + clear : all; + } } diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 548036b10..8e4bfbade 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -3,4 +3,7 @@ # the COPYRIGHT file. class SessionsController < Devise::SessionsController + + layout "post", :only => [:new] + end \ No newline at end of file diff --git a/app/views/sessions/new_working_copy.html.erb b/app/views/sessions/new.html.erb similarity index 60% rename from app/views/sessions/new_working_copy.html.erb rename to app/views/sessions/new.html.erb index eaf703b7b..89a00cb67 100644 --- a/app/views/sessions/new_working_copy.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,10 +1,13 @@ -