From 582667dc597d33b8def12700c202ab2a10fda729 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Thu, 3 Sep 2020 12:59:33 +0200 Subject: [PATCH] Reduce the importance of the reset rules This allows to let Quill features to override the reset styles. Closes #8 --- .../activeadmin/_quill_editor_input.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/activeadmin/_quill_editor_input.scss b/app/assets/stylesheets/activeadmin/_quill_editor_input.scss index 494c47d..73701f6 100644 --- a/app/assets/stylesheets/activeadmin/_quill_editor_input.scss +++ b/app/assets/stylesheets/activeadmin/_quill_editor_input.scss @@ -1,3 +1,10 @@ +// reset internal elements +.ql-editor * { + margin: initial; + padding: initial; + text-align: initial; +} + body.active_admin .quill-editor { display: inline-block; width: calc(80% - 2px); @@ -23,13 +30,6 @@ body.active_admin .quill-editor { min-height: 150px; padding: 10px; - // reset internal elements - * { - margin: initial; - padding: initial; - text-align: initial; - } - ol { list-style-type: decimal; }