Skip to content

Commit

Permalink
fix(shs-5996-shs-5997): move external links to _wysiwyg-editor file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Jan 2, 2025
1 parent aa78801 commit 21e0b5f
Showing 1 changed file with 7 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 21e0b5f

Please sign in to comment.