diff --git a/app/assets/stylesheets/lib/codemirror/theme/midnight.css b/app/assets/stylesheets/lib/codemirror/theme/midnight.css index e567625c6..ee2b385ac 100644 --- a/app/assets/stylesheets/lib/codemirror/theme/midnight.css +++ b/app/assets/stylesheets/lib/codemirror/theme/midnight.css @@ -6,7 +6,7 @@ /**/ span.CodeMirror-matchhighlight { background: #494949 } -.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67; !important } +.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; } /**/ .activeline {background: #253540 !important;} diff --git a/lib/tasks/new_ui.rake b/lib/tasks/new_ui.rake index 852e99a15..f212182fc 100644 --- a/lib/tasks/new_ui.rake +++ b/lib/tasks/new_ui.rake @@ -91,8 +91,10 @@ namespace :new_ui do end end - task :save_users => :environment do - User.not_guest_user.where(position: nil).each(&:save) + task :reset_user_position => :environment do + User.not_guest_user.each_with_index do |user, i| + user.update_attribute(:position, i) + end end end