Skip to content

Commit

Permalink
Merge pull request #4238 from tulibraries/BL-1843-several-fonts-are-l…
Browse files Browse the repository at this point in the history
…oaded-with-settings-that-hide-text-while-they-are-loading

Bl-1843 several fonts are loaded with settings that hide text while they are loading
  • Loading branch information
ebtoner committed Feb 21, 2024
2 parents 8fdcbbc + 93fa680 commit f121ba6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@
@import "partials/*";
@import "tucob";
@import "icons";

@import url("https://fonts.googleapis.com/css?family=PT+Sans");
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@700&display=swap');
3 changes: 3 additions & 0 deletions app/assets/stylesheets/icons.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ button.collapse-button .avail-label:after, button#filter-mobile:after {
font-family: "Font Awesome 5 Free";
font-weight: 900;
padding-left: 0.625rem;
font-display: swap;
}

button.collapse-button.collapsed .avail-label:after, button#filter-mobile.collapsed:after {
content:"\f054";
font-family: "Font Awesome 5 Free";
font-weight: 900;
padding-left: 0.625rem;
font-display: swap;
}

.lib-guides-recommender-bento [data-toggle="collapse"] i:before{
Expand All @@ -30,6 +32,7 @@ a.asrs-request:after {
font-weight: 900;
float: right;
padding-right: 0.625rem;
font-display: swap;
}

a.booking-request[aria-expanded="true"]::after,
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/partials/_facets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ span.constraint-value {
float: right;
padding-top: 0.625rem;
transform: rotate(90deg);
font-display: swap;
}

&.collapsed {
Expand Down
6 changes: 6 additions & 0 deletions app/assets/stylesheets/partials/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
@font-face {
font-family: Faustina-Bold;
src: font-url('Faustina-SemiBold.ttf') format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Roboto';
src: font-url('Roboto-Regular.ttf') format('truetype');
font-display: swap;
}

@font-face {
Expand All @@ -25,17 +27,21 @@
@font-face {
font-family: 'Roboto Light';
src: font-url('Roboto-Light.ttf') format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Roboto Bold';
src: font-url('Roboto-Bold.ttf') format('truetype');
font-display: swap;
}

.roboto {
font-family: Roboto Condensed;
font-display: swap;
}

.faustina {
font-family: Faustina;
font-display: swap;
}

0 comments on commit f121ba6

Please sign in to comment.