Skip to content

Commit

Permalink
fix(frontera): do not rely on Font Awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Sep 23, 2024
1 parent 41ba14a commit f8cedf4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions frontera_assets/css/_imports/trumps/s-article-list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* Overwrite Core-Styles which relies on Font Awesome */
/* TODO: Update Core-Styles to rely explicitly or not at all */
/* https://github.com/TACC/Core-Styles/blob/v2.33.1/src/lib/_imports/trumps/s-article-list.css#L138-L149 */
[class*=s-article-list--] > p:last-child a::before {
content: "➔";
background-color: var(--global-color-primary--xx-light);
width: 1em;
height: 1em;
box-sizing: content-box;
border: 0.25em solid var(--global-color-primary--xx-light);
border-radius: 0.75em;
padding-left: .0625em;
color: var(--global-color-primary--xx-dark);
display: inline-flex;
align-items: center;
font-size: 0.75em;
font-family: var(--global-font-family--serif);
}
1 change: 1 addition & 0 deletions frontera_assets/css/template.home.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/* To let homepage use other patterns */
@import url("https://unpkg.com/@tacc/core-styles@0.13.0/dist/trumps/s-article-list.css");
@import url("./imports/trumps/s-article-list.css");
@import url("https://unpkg.com/@tacc/core-styles@0.13.0/dist/trumps/s-article-preview.css");

/* To undo "from v1 to v2" migration styles */
Expand Down

0 comments on commit f8cedf4

Please sign in to comment.