Skip to content

Commit

Permalink
Update all CSS Pseudo-element rules - FA6.x compatibile
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcd75 committed Nov 14, 2023
1 parent a741234 commit b325706
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ form .nav-tabs > li > a {
}
.nav-tabs a:before {
display: inline-block;
font-family: "Font Awesome 5 Free";
font-weight: 700;
font: var(--fa-font-solid);
margin-bottom: 2px;
margin-right: .25rem;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-size: small;
opacity: .8;
padding-right: 4px;
Expand Down
9 changes: 5 additions & 4 deletions custom/themes/newspapers_lib_unb_ca/src/scss/_breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ ol.breadcrumb {
width: 1rem;

&:after {
font-family: "Font Awesome 5 Free";
content: "\f015";
font-size: 0.85rem;
font-weight: 900;
font: var(--fa-font-solid);
font-size: 80%;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
position: absolute;
right: -9999px;
top: 0;
top: .25rem;
}
}

Expand Down
7 changes: 5 additions & 2 deletions custom/themes/newspapers_lib_unb_ca/src/scss/_facets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@
}

ul.js-facets-checkbox-links + a::before {
font-family: "Font Awesome 5 Free";
content: "\f067";
display: inline-block;
font: var(--fa-font-solid);
margin-bottom: 2px;
margin-right: .5rem;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-size: 11px;
font-weight: 900;
margin: 0 .25rem;
vertical-align: baseline;
}
Expand Down
10 changes: 6 additions & 4 deletions custom/themes/newspapers_lib_unb_ca/src/scss/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
&::before {
content: "\f0dc";
display: inline-block;
font-family: 'Font Awesome 5 Free';
font-weight: 900;
margin-right: 0.3em;
white-space: nowrap;
font: var(--fa-font-solid);
font-size: 80%;
margin-bottom: 2px;
margin-right: .5rem;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
}
}
Expand Down
20 changes: 13 additions & 7 deletions custom/themes/newspapers_lib_unb_ca/src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,13 @@ a.btn-add:active {
&::before {
color: $checkmark;
content: "\f061";
float: left;
font-family: 'Font Awesome 5 Free';
display: inline-block;
font: var(--fa-font-solid);
font-size: 90%;
margin-left: -1.25rem;
margin-right: .5rem;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
margin-left: -1.25rem;
}
}
Expand Down Expand Up @@ -514,13 +519,14 @@ a.back-link {
}
a.back-results::before,
a.back-link::before {
font-family: "Font Awesome 5 Free";
content: "\f100";
display: inline-block;
font: var(--fa-font-solid);
font-size: 88%;
font-weight: 900;
margin-right: 0.2em;
opacity: 0.65;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}

/* Holdings */
Expand Down Expand Up @@ -593,11 +599,11 @@ a.back-link::before {
font-size: .85rem;

&:before {
font-family: "Font Awesome 5 Free";
font: var(--fa-font-solid);
font-size: smaller;
display: inline-block;
font-weight: 900;
margin: 0 .25rem;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
vertical-align: baseline;
}

Expand Down

0 comments on commit b325706

Please sign in to comment.