text-align: center;
}
+ .error_notification {
+ color: #df405a;
+ font-weight: 500;
+ margin-bottom: 15px;
+ }
+
.input {
margin-bottom: 15px;
font-size: 14px;
font-family: 'Roboto', sans-serif;
- &:focus {
+ &:focus, &:active {
border-bottom: 2px solid #2b90d9;
padding-bottom: 5px;
}
margin-top: 5px;
color: lighten(#282c37, 25%);
}
+
+ &.field_with_errors {
+ input[type=text], input[type=email], input[type=password], textarea {
+ border-bottom: 2px solid #df405a;
+ padding-bottom: 5px;
+
+ &:focus, &:active {
+ border-bottom: 2px solid #2b90d9;
+ padding-bottom: 5px;
+ }
+ }
+
+ .error {
+ display: block;
+ margin-top: 5px;
+ color: #df405a;
+ }
+ }
}
}
--- /dev/null
+class AddMissingIndices < ActiveRecord::Migration
+ def change
+ add_index :users, :account_id
+ add_index :statuses, :account_id
+ add_index :statuses, :in_reply_to_id
+ add_index :statuses, :reblog_of_id
+ add_index :stream_entries, :account_id
+ add_index :stream_entries, [:activity_id, :activity_type]
+ end
+end
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20160314164231) do
+ActiveRecord::Schema.define(version: 20160316103650) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
t.string "url"
end
+ add_index "statuses", ["account_id"], name: "index_statuses_on_account_id", using: :btree
+ add_index "statuses", ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id", using: :btree
+ add_index "statuses", ["reblog_of_id"], name: "index_statuses_on_reblog_of_id", using: :btree
add_index "statuses", ["uri"], name: "index_statuses_on_uri", unique: true, using: :btree
create_table "stream_entries", force: :cascade do |t|
t.datetime "updated_at", null: false
end
+ add_index "stream_entries", ["account_id"], name: "index_stream_entries_on_account_id", using: :btree
+ add_index "stream_entries", ["activity_id", "activity_type"], name: "index_stream_entries_on_activity_id_and_activity_type", using: :btree
+
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.integer "account_id", null: false
t.inet "last_sign_in_ip"
end
+ add_index "users", ["account_id"], name: "index_users_on_account_id", using: :btree
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree