From 61655c253db46df4c9b32277ffd6d7fddda813ac Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Thu, 2 Jan 2025 10:55:40 -0500 Subject: [PATCH 01/37] Adding Neue Haas Grotesk in place of Open Sans Set NHG as the typeface in our _typography.scss file. Removed all other references to Open Sans to avoid having to debug overrides down the road. --- web/app/themes/mitlib-child/style.css | 7 ------- web/app/themes/mitlib-news/style.css | 10 ---------- .../mitlib-parent/css/scss/modules/_typography.scss | 2 +- .../mitlib-parent/css/scss/modules/_utility.scss | 2 +- .../mitlib-parent/css/scss/partials/_search.scss | 1 - .../mitlib-parent/css/scss/partials/pages/_hours.scss | 2 +- web/app/themes/mitlib-parent/header.php | 1 + .../themes/mitlib-parent/libs/lightbox/css/screen.css | 1 - web/app/themes/mitlib-parent/style.css | 4 ---- 9 files changed, 4 insertions(+), 26 deletions(-) diff --git a/web/app/themes/mitlib-child/style.css b/web/app/themes/mitlib-child/style.css index f99fdfeb..d7a71b27 100644 --- a/web/app/themes/mitlib-child/style.css +++ b/web/app/themes/mitlib-child/style.css @@ -19,13 +19,6 @@ Template: mitlib-parent background: #333; color: #fff; }*/ -body { - font-family:'Open Sans',Helvetica,sans-serif; -} - -h1,h2,h3,h4,h5,h6 { - font-family:'Open Sans',Helvetica,sans-serif; -} b, strong { font-weight: bold; diff --git a/web/app/themes/mitlib-news/style.css b/web/app/themes/mitlib-news/style.css index 9693b0ca..47a5d156 100644 --- a/web/app/themes/mitlib-news/style.css +++ b/web/app/themes/mitlib-news/style.css @@ -203,7 +203,6 @@ table.hrList tr:nth-child(even) { font-size: 14px !important; line-height: 1.5; color: #5B5B5B; - font-family: 'Open Sans', sans-serif; font-weight: 400; margin-bottom: 10px; } @@ -222,7 +221,6 @@ h1.single { font-size: 27pt !important; line-height: 27pt; color: rgb(89,89,89); - font-family: 'Open Sans', sans-serif; font-weight: 400; padding: 15px 0 10px; } @@ -519,7 +517,6 @@ h2.search { text-decoration: none; margin: 0px; letter-spacing: 0px; - font-family: 'Open Sans', sans-serif; font-weight: bold; color: #111; padding: 8px 10px !important; @@ -530,7 +527,6 @@ h2.search { text-decoration: none; margin: 0; letter-spacing: 0px; - font-family: 'Open Sans', sans-serif; font-weight: 400; color: #111; padding: 10px 0 !important; @@ -542,7 +538,6 @@ h2.search { text-decoration: none; margin: 0; letter-spacing: 0px; - font-family: 'Open Sans', sans-serif; font-weight: 400; color: #111; padding: 10px 0 !important; @@ -550,7 +545,6 @@ h2.search { .mitDate { float: right; - font-family: 'Open Sans', sans-serif; color: #6d6d6d; font-size: 10px; } @@ -607,7 +601,6 @@ h2.search { color: #ABABAB; } .category-post a { - font-family: 'Open Sans', sans-serif; font-size: 10px; font-weight: 600; } @@ -678,7 +671,6 @@ li#menu-item-14139 { left: 48px; color: #f58733; font-size: 10pt; - font-family: 'Open Sans', sans-serif; } #searchform label { font-size: 11px; @@ -744,7 +736,6 @@ select#cat, select#mitArchive, select#dynamic_select, select#bilbioMenu, select# color: #595959; width: 284px; max-width: 300px; - font-family: "open sans", sans-serif; font-weight: 600; line-height: 28pt; border-bottom: 1px solid rgb(225, 225, 225); @@ -831,7 +822,6 @@ h2.grid { } .eventsBox .excerpt-post p, .excerpt-post p { padding: 0 10px 8px; - font-family: 'Open Sans', sans-serif; font-size: 12px; color: #80808D; line-height: 1.5; diff --git a/web/app/themes/mitlib-parent/css/scss/modules/_typography.scss b/web/app/themes/mitlib-parent/css/scss/modules/_typography.scss index 17510009..495da473 100644 --- a/web/app/themes/mitlib-parent/css/scss/modules/_typography.scss +++ b/web/app/themes/mitlib-parent/css/scss/modules/_typography.scss @@ -1,2 +1,2 @@ $line-height-primary: 1.4; -$font-family-primary: 'Open Sans', Helvetica, sans-serif; \ No newline at end of file +$font-family-primary: neue-haas-grotesk-text, Helvetica, sans-serif; \ No newline at end of file diff --git a/web/app/themes/mitlib-parent/css/scss/modules/_utility.scss b/web/app/themes/mitlib-parent/css/scss/modules/_utility.scss index 8b260613..66a52118 100644 --- a/web/app/themes/mitlib-parent/css/scss/modules/_utility.scss +++ b/web/app/themes/mitlib-parent/css/scss/modules/_utility.scss @@ -94,7 +94,7 @@ max-width: 36.625rem; } -$font-body: 'Open Sans', sans-serif; +$font-body: neue-haas-grotesk-text, Helvetica, sans-serif; @mixin body-text { @include font-size(18px); diff --git a/web/app/themes/mitlib-parent/css/scss/partials/_search.scss b/web/app/themes/mitlib-parent/css/scss/partials/_search.scss index 5efd438f..7435625b 100644 --- a/web/app/themes/mitlib-parent/css/scss/partials/_search.scss +++ b/web/app/themes/mitlib-parent/css/scss/partials/_search.scss @@ -91,7 +91,6 @@ border: none; cursor: pointer; display: inline-block; - font-family: 'Open Sans', sans-serif; @include rem-first(font-size, 0.875); margin-top: 0; // Overrides some browser defaults margin-bottom: 0; // Overrides some browser defaults diff --git a/web/app/themes/mitlib-parent/css/scss/partials/pages/_hours.scss b/web/app/themes/mitlib-parent/css/scss/partials/pages/_hours.scss index 73c44592..96ac119b 100644 --- a/web/app/themes/mitlib-parent/css/scss/partials/pages/_hours.scss +++ b/web/app/themes/mitlib-parent/css/scss/partials/pages/_hours.scss @@ -248,7 +248,7 @@ div.libraryAlert { @include bp-mobile--only { display: none; } - font-family: 'Open Sans', sans-serif; + font-family: neue-haas-grotesk-text, Helvetica, sans-serif; position: absolute; .core { background: transparent; diff --git a/web/app/themes/mitlib-parent/header.php b/web/app/themes/mitlib-parent/header.php index 230281ff..0fe466b8 100644 --- a/web/app/themes/mitlib-parent/header.php +++ b/web/app/themes/mitlib-parent/header.php @@ -33,6 +33,7 @@ +