From 457d5a6c830dae25714be6b3ff56839efd9fda0a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 8 Jun 2023 11:43:59 +0200 Subject: [PATCH] Override some css classes, to have a beautiful trix editor toolbar buttons - buttons background are transparent (instead of blue) - buttons background on hovering are transparent (instead of green) - disabled buttons cursor is default (instead of pointer) --- app/webpacker/css/admin/trix.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/webpacker/css/admin/trix.scss b/app/webpacker/css/admin/trix.scss index cca7624854..1eb96d4328 100644 --- a/app/webpacker/css/admin/trix.scss +++ b/app/webpacker/css/admin/trix.scss @@ -1,3 +1,15 @@ trix-toolbar [data-trix-button-group="file-tools"] { display: none; } + +trix-toolbar .trix-button { + background-color: transparent; + + &:hover { + background-color: transparent; + } + + &:disabled { + cursor: default; + } +}