Skip to content

Commit

Permalink
Revert "fix(site): re-enable Icons font face since it's still used in…
Browse files Browse the repository at this point in the history
… some of Volto's interface"

This reverts commit fe0c296.
  • Loading branch information
ichim-david committed Jan 19, 2024
1 parent e650df1 commit cefa221
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 49 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: 1 addition & 37 deletions theme/themes/eea/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,7 @@ 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 cefa221

Please sign in to comment.