From 21e0b5f060b60b606ae3e0b4a81292bd7af5d992 Mon Sep 17 00:00:00 2001 From: Mari Nez Date: Thu, 2 Jan 2025 17:16:30 -0600 Subject: [PATCH] fix(shs-5996-shs-5997): move external links to _wysiwyg-editor file --- .../src/scss/admin/_wysiwyg-editor.scss | 44 +++---------------- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/docroot/themes/humsci/humsci_basic/src/scss/admin/_wysiwyg-editor.scss b/docroot/themes/humsci/humsci_basic/src/scss/admin/_wysiwyg-editor.scss index 6d81e6e74..55a7b2db0 100644 --- a/docroot/themes/humsci/humsci_basic/src/scss/admin/_wysiwyg-editor.scss +++ b/docroot/themes/humsci/humsci_basic/src/scss/admin/_wysiwyg-editor.scss @@ -100,46 +100,16 @@ drupal-media { } /* Match styles of external link in the WYSIWYG style's dropdown preview with the original design */ -.ck-content a.hs-external-link { +.ck-style-grid__button__preview a.hs-external-link { @include hb-link--inline; @include hb-external-link-icon; - & - - .hb-dark-pattern.hb-local-footer & { - @include hb-colorful { - color: var(--palette--white); - - &::after { - @include hb-icon-background('ext-link', 'white'); - } - - &:hover::after { - @include hb-icon-background('ext-link', 'gray-medium'); - } - } - - @include hb-traditional { - color: var(--palette--tertiary-highlight); - - &::after { - @include hb-icon-background('ext-link', 'tertiary-highlight'); - } - - &:hover::after { - @include hb-icon-background('ext-link', 'tertiary-highlight-darken-10'); - } - } - } - /* Resize the icon, using px instead of rem, because when using rem the icon looks way bigger */ - .ck-style-grid__button & { - &::after { - width: 18px; - height: 11px; - margin-bottom: 0; - background-size: 11px; - padding-left: 0; - } + &::after { + width: 18px; + height: 11px; + margin-bottom: 0; + background-size: 11px; + padding-left: 0; } }