Skip to content

Commit

Permalink
fix(site): re-enable Icons font face since it's still used in some of…
Browse files Browse the repository at this point in the history
… Volto's interface
  • Loading branch information
ichim-david committed Jan 19, 2024
1 parent 8d40b91 commit fe0c296
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 13 deletions.
24 changes: 12 additions & 12 deletions theme/themes/eea/definitions/elements/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
Icon
*******************************/

//@font-face {
// font-display: swap;
// font-family: 'Icons';
// src: @fallbackSRC;
// src: @src;
// font-style: normal;
// font-weight: @normal;
// font-variant: normal;
// text-decoration: inherit;
// text-transform: none;
//}
@font-face {
font-display: swap;
font-family: 'Icons';
src: @fallbackSRC;
src: @src;
font-style: normal;
font-weight: @normal;
font-variant: normal;
text-decoration: inherit;
text-transform: none;
}

i.icon {
display: inline-block;
Expand All @@ -42,7 +42,7 @@ i.icon {
width: @width;
height: @height;

//font-family: 'Icons';
font-family: 'Icons';
font-style: normal;
font-weight: @normal;
text-decoration: inherit;
Expand Down
38 changes: 37 additions & 1 deletion theme/themes/eea/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,43 @@ html,
body {
font-size: @baseFontSize;
}

/* Warn editor when there is an empty link */
.slate-editor-link.external
> span:first-child
> span
> span[data-slate-length='0']::before {
color: red;
content: 'Empty external link ';
}

.slate-editor-link.internal
> span
> span
> span[data-slate-length='0']::before {
color: red;
content: 'Empty internal link ';
}

// select img with empty alt attribute which are inside a link using has pseudo-selector
.image-block-container:has(img[alt=''])::before {
display: flex;
justify-content: center;
border: 3px solid red;
color: red;
content: 'Empty alt attribute';
}

// border: 3px solid red;

// span[data-slate-length="0"]:empty::before {
// color: red;
// content: "Empty tag";
// }

// span[data-slate-length="0"]::before {
// color: red;
// content: "Empty tag";
// }
// Accessibility outline on focus-visible for every component
*:focus-visible {
outline: @focusVisibleOutline;
Expand Down

0 comments on commit fe0c296

Please sign in to comment.