From d2f0eeeca8b42cff886a20767abad3e1354a2da4 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Wed, 24 Sep 2025 11:53:24 -0400 Subject: [PATCH 1/8] Add new spotlight flavor of alert. Updated colors and implmemented in child theme --- .../themes/mitlib-child/inc/content-front.php | 11 ++++--- .../css/scss/modules/_colors.scss | 5 ++- .../css/scss/partials/_alerts.scss | 31 +++++++++++++++---- 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/web/app/themes/mitlib-child/inc/content-front.php b/web/app/themes/mitlib-child/inc/content-front.php index 3dd969a0..7f012852 100644 --- a/web/app/themes/mitlib-child/inc/content-front.php +++ b/web/app/themes/mitlib-child/inc/content-front.php @@ -36,15 +36,16 @@ $the_query->the_post(); ?> -
+
+ i { margin-right: 12px; &:before{ @@ -124,14 +124,13 @@ } div > h3 { - font-weight: 700; + font-weight: 600; margin-top: 2px; + font-size: 1.25rem; } p { - margin-bottom: 16px; - - &:last-of-type {margin-bottom: 0 !important;} + margin-bottom: 16px; } .btn { @@ -174,4 +173,24 @@ content: "\f00c"; } } +} + +.mitlib-alert { + p:last-of-type {margin-bottom: 0 !important;} +} + +.mitlib-spotlight { + border-color: $spotlight-border-color; + column-gap: 24px; + + img { + width: 100%; + max-width: 240px; + min-width: 100px; + height: 100%; + } + + p { + padding-bottom: 4px; + } } \ No newline at end of file From 9a4f4a2de446a9ced76984566733cfd1a617e3d4 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Wed, 24 Sep 2025 13:38:38 -0400 Subject: [PATCH 2/8] Updated max width for images in spotlights --- web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss b/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss index afb184cc..a400ce70 100644 --- a/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss +++ b/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss @@ -185,7 +185,7 @@ img { width: 100%; - max-width: 240px; + max-width: 180px; min-width: 100px; height: 100%; } From 4bb0200dd891a8aa43ccb1e08339c9ddee80a9f0 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Wed, 24 Sep 2025 14:48:22 -0400 Subject: [PATCH 3/8] Add ARIA label to button and tweak image size --- web/app/themes/mitlib-child/inc/content-front.php | 2 +- web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/themes/mitlib-child/inc/content-front.php b/web/app/themes/mitlib-child/inc/content-front.php index 7f012852..1b236767 100644 --- a/web/app/themes/mitlib-child/inc/content-front.php +++ b/web/app/themes/mitlib-child/inc/content-front.php @@ -43,7 +43,7 @@

- Read more + Read more
diff --git a/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss b/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss index a400ce70..d7421fb4 100644 --- a/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss +++ b/web/app/themes/mitlib-parent/css/scss/partials/_alerts.scss @@ -185,7 +185,7 @@ img { width: 100%; - max-width: 180px; + max-width: 170px; min-width: 100px; height: 100%; } From dd82f536acc2213bc8ede9b7cd20055e979f6261 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Wed, 24 Sep 2025 14:55:43 -0400 Subject: [PATCH 4/8] Remove link around spotlight post titles --- web/app/themes/mitlib-child/inc/content-front.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/themes/mitlib-child/inc/content-front.php b/web/app/themes/mitlib-child/inc/content-front.php index 1b236767..bcd272a7 100644 --- a/web/app/themes/mitlib-child/inc/content-front.php +++ b/web/app/themes/mitlib-child/inc/content-front.php @@ -41,7 +41,7 @@
-

+

Read more
From 89159611e71c5922952d729c962456dbec5ae29e Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Wed, 24 Sep 2025 15:07:54 -0400 Subject: [PATCH 5/8] Update from aria-label to title attribute for button --- web/app/themes/mitlib-child/inc/content-front.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/themes/mitlib-child/inc/content-front.php b/web/app/themes/mitlib-child/inc/content-front.php index bcd272a7..9ab8ea2e 100644 --- a/web/app/themes/mitlib-child/inc/content-front.php +++ b/web/app/themes/mitlib-child/inc/content-front.php @@ -43,7 +43,7 @@ From 8804ef54f81860c3ad5da83c87cc2514b5e75000 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Thu, 25 Sep 2025 09:24:00 -0400 Subject: [PATCH 6/8] Incremented the version for the parent theme styling --- web/app/themes/mitlib-parent/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/themes/mitlib-parent/style.css b/web/app/themes/mitlib-parent/style.css index 69a61225..574acf3a 100644 --- a/web/app/themes/mitlib-parent/style.css +++ b/web/app/themes/mitlib-parent/style.css @@ -1,7 +1,7 @@ /* Theme Name: MITlib Parent Author: MIT Libraries -Version: 0.7 +Version: 0.8 Description: The parent theme for the MIT Libraries' Pentagram-designed identity. */ From eecdb547f6b9e4294d8d49c88a6efe2f86df2455 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Thu, 25 Sep 2025 10:03:09 -0400 Subject: [PATCH 7/8] Add underline to news links --- web/app/themes/mitlib-news/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/themes/mitlib-news/style.css b/web/app/themes/mitlib-news/style.css index f9deb5d7..1108165e 100644 --- a/web/app/themes/mitlib-news/style.css +++ b/web/app/themes/mitlib-news/style.css @@ -11,7 +11,7 @@ Template: mitlib-parent .content-area a:link, .content-area a:visited { color: #000; - text-decoration: none; + text-decoration: underline; } .content-area a:hover, .content-area a:active { From c1310688a1f6f97eea17bd396e59c6a10eb839c7 Mon Sep 17 00:00:00 2001 From: djanelle-mit Date: Thu, 25 Sep 2025 10:07:00 -0400 Subject: [PATCH 8/8] Increment news style sheet version --- web/app/themes/mitlib-news/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/themes/mitlib-news/style.css b/web/app/themes/mitlib-news/style.css index 1108165e..0a288037 100644 --- a/web/app/themes/mitlib-news/style.css +++ b/web/app/themes/mitlib-news/style.css @@ -1,7 +1,7 @@ /* Theme Name: MITlib News Author: MIT Libraries -Version: 0.5 +Version: 0.6 Description: A child theme of the MIT Libraries' parent, focused on News features and content. Template: mitlib-parent