Use css class instead of inline styles to set error borders + some reworking of editor handling

Signed-off-by: emanuele <emanuele45@gmail.com>
Moved around a bit of css related to "boxes" (error, warning, info, etc.)

Signed-off-by: emanuele <emanuele45@gmail.com>