Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f25ca18
Rework search form as tabs and move to the imagebar
abbydrury Aug 6, 2025
5622fbd
Clean up interior pages too
abbydrury Aug 6, 2025
0a0a74c
Reverse homepage page order so that featured resources are before news
abbydrury Aug 6, 2025
b35ac90
Add welcome image block to homepage
abbydrury Aug 6, 2025
c283a66
Apparently I messed up the config for the front page block, trying again
abbydrury Aug 6, 2025
3088dd4
Fine tune the styles for the homepage intro iimage
abbydrury Aug 6, 2025
fdfcedc
Do better about decomposing the intro image banner thingy on the home…
abbydrury Aug 6, 2025
be1e689
Move the featured resource styles so they're all together
abbydrury Aug 7, 2025
c168510
Enable groupings of resources on the homepage
abbydrury Aug 7, 2025
659a03d
Rework featured resources to support an arbitrary number of paragraph…
abbydrury Aug 8, 2025
f8bcbbc
Add an image block to the footer
abbydrury Aug 8, 2025
4b66d4e
Make it so that you can add (short) lists of news items
abbydrury Aug 8, 2025
8d0aafd
Fix a11y issue with search form, then do better with styling the imag…
abbydrury Aug 11, 2025
7b5f00a
Be more careful about outputting when there isn't content to output
abbydrury Aug 11, 2025
b2a25d8
Restore old news and fetured resource blocks for easier transition
abbydrury Aug 11, 2025
4ca1f66
Update display of new resource tiles while retaining old styling on o…
abbydrury Aug 11, 2025
452e152
Break words in the news items (because email address 'words' in the p…
abbydrury Aug 11, 2025
d51799d
Do some basic styling of search tabs on mobile
abbydrury Aug 11, 2025
ba133ba
Center the news and events header and more posts button, go back to a…
abbydrury Aug 15, 2025
271850f
Manage the we are LITS block at various sizes
abbydrury Aug 15, 2025
2585cd6
Be more careful about the we're LITS block at larger viewports
abbydrury Aug 18, 2025
4cc8711
Clean up smaller viewports continued (more care around widths of sect…
abbydrury Aug 18, 2025
db6acdc
More cleanup tweaks to make the parts of the homepage align even better
abbydrury Aug 19, 2025
76fb775
Oops forgot the footer image again
abbydrury Aug 19, 2025
4ab1060
Use monogram logo always
abbydrury Aug 19, 2025
cfc611f
Simplify search management, don't use two blocks
abbydrury Aug 19, 2025
e38934c
Hide search on interior pages, add a search toggle to interior pages …
abbydrury Aug 19, 2025
7e25147
Degrade search toggle more better, also imagebar
abbydrury Aug 19, 2025
5535940
Rework featured resources display to behave more like Andrew would like
abbydrury Aug 20, 2025
0e5b34d
Remove padding that made sense when the blue news section was full wi…
abbydrury Aug 20, 2025
8fee7a5
Give the icon container a min-height so that the icons coming in does…
abbydrury Aug 20, 2025
86ceef2
Add basic implementation for a scam alert button in the page header, …
abbydrury Aug 22, 2025
822cb44
Convert breakpoints/media queries to rem-based not pixel-based
abbydrury Aug 26, 2025
9173f64
Redo the font for LITS in the header
abbydrury Aug 26, 2025
85118f3
Move top main menu items into the mobile menu when the breakpoint is …
abbydrury Aug 26, 2025
8a0f389
Add back my library accounts (for now) t to the main menu, set the im…
abbydrury Aug 26, 2025
d4e7e67
Hide imagebar on interior pages, unless the search is expanded
abbydrury Aug 26, 2025
d649102
Change library accounts label
abbydrury Aug 26, 2025
fd14090
Set sizes for header: logo/LITS lockup, search icon, gap sizes for to…
abbydrury Aug 28, 2025
7c54f87
Search form: update spacing and font sizes, clean up tab styles, make…
abbydrury Aug 28, 2025
db81e05
search box: clean up search tab and button behavior
abbydrury Aug 28, 2025
6e4eb55
Rework search container mobile view to use same accordion style as th…
abbydrury Sep 3, 2025
509d14e
Keep search box in between logobar and menubar _except_ on homepage w…
abbydrury Sep 3, 2025
8733d0c
Make the search container close toggle the same size as the open toggle
abbydrury Sep 3, 2025
55d4ee2
Create normalized option for fontawesome icon sizing; fix HTML struct…
abbydrury Sep 4, 2025
9cb6c96
Tweaks to homepage intro feature box
abbydrury Sep 8, 2025
a2fbfaa
Tweaks to search boxes
abbydrury Sep 8, 2025
1deaf8c
Don't repeat the featured block background image (which really only a…
abbydrury Sep 8, 2025
13e7f26
Fix the scaling image stuff so it works in the footer again too
abbydrury Sep 8, 2025
c0988fb
Load in search icon more quickly than FontAwesome can manage
abbydrury Sep 10, 2025
eac09c4
Tweak background image for imagebar
abbydrury Sep 10, 2025
0b70b00
Do better with the aria for the site search tabs and add disclosure c…
abbydrury Sep 10, 2025
b06c66d
Really all of the unified search styles should live inside the conati…
abbydrury Sep 11, 2025
a0b18ef
Move LITS to the center of the header, brighten the header background…
abbydrury Mar 13, 2026
2439fd0
Make LITS in the header bigger and set section h2s on the homepage bo…
abbydrury Mar 13, 2026
b21d1be
Add additional search parameters to the search form
abbydrury Apr 16, 2026
c372798
Rework homepage feature image/hero per latest mockups
abbydrury Jul 23, 2026
8d40f61
Rework homepage featured resources per latest mockups
abbydrury Jul 23, 2026
455b098
Rework logobar per latest mockups
abbydrury Jul 24, 2026
9ab355d
Add keyboard navigability to the featured resources accordions
abbydrury Jul 24, 2026
fff3488
Remove accidental double anchor
abbydrury Jul 24, 2026
5f4a852
Find and eliminate some CSS that messed with the homepage feature css
abbydrury Jul 24, 2026
9f33485
Make new featured resource accordions full page width
abbydrury Jul 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion components/00-particles/_00-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
@mixin full-viewport {
display: flex;
flex-direction: column;
min-width: $min-width;
// min-width: $min-width;
min-height: 100vh;

& #main-content {
Expand Down Expand Up @@ -252,3 +252,30 @@
}
}
}

@mixin accordion-button {
width: 100%;
text-align: left;
// Because iOS Safari has issues with long (wrapping) button text, we end up having to explicitly style heeeeverything
height: -webkit-fit-content;
background-color: #ebebeb; // Some browsers weren't assigning a bg color. This is roughly the default color for Chrome, and I liked it.
border: 1px solid $gray;
border-radius: 1px;
padding: 1rem;

div {
display: inline;
}
}

@mixin fontawesome-icon {
font-size: 2 * $default-margin;
height: 2 * $default-margin;
width: 2 * $default-margin;
vertical-align: middle;
}

@mixin contain {
padding: 0 var(--side-spacing);
container-type: inline-size;
}
58 changes: 41 additions & 17 deletions components/00-particles/_01-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,45 @@ $space-one-seventh: math.div($space, 7);
$space-one-eighth: math.div($space, 8);

/**
* Used to set the font size for "LITS" in logobar and to add whitespace to the MHC logos
* Default margin
*/
// $logo-font-size: 17px;
$logo-container-max-height: 60px;

// wordmark values
$o-ratio: math.div(19.893, 40.849); // height of 'o' in wordmark svg vs height of svg as measured in Illustrator
$word-logo-image-max-height: $logo-container-max-height * $o-ratio;
$word-default-margin: math.div($word-logo-image-max-height, 2);
// $word-logo-font-size: $word-default-margin; // The size of the 'o' should be the font-size also TODO: this sort of looks small...
$word-logo-font-size: 19px;

// monogram values
$c-ratio: math.div(64.9, 108); // height of 'c' in wordmark svg vs height of svg as measured in Illustrator
$mono-logo-image-max-height: $logo-container-max-height * (1 - $c-ratio);
$mono-default-margin: math.div($mono-logo-image-max-height, 2);
// $mono-logo-font-size: $mono-default-margin; // The size of the 'c' should be the font-size also TODO: this sort of looks small...
$mono-logo-font-size: 19px;
$default-margin: 0.75rem;

/**
* Used to set the font size for "LITS" in logobar and to add whitespace to the MHC logos and other header parts
*/
$logo-container-height: 4.5rem;
$logo-height: 4rem;
$logo-font-size: $default-margin * 6.5; // 4.875rem
$header-gap: $default-margin * 2; // 1.5rem

/**
search variables
*/
$search-gap: $default-margin * 4; // 3rem
$search-font-size: $default-margin * 2; // 1.5rem
$search-rounding: 5px;
$search-inner-padding: $default-margin * 2; // 1.5rem

/* Per Andrew's design for homepage intro feature */
:root {
--side-spacing: 0rem;
}

@media (min-width:20rem) {

:root {
--side-spacing: 1.5rem;
}
}

@media (min-width:34rem) {

:root {
--side-spacing: 3rem;
}
}

* {
box-sizing: border-box;
}
29 changes: 7 additions & 22 deletions components/00-particles/_02-responsiveness.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

/* Breakpoints */
$min-width: 300px;
$small-width: 600px;
$medium-width: 900px;
$large-width: 1200px;
$max-width: 1920px;
$min-width: 18.75rem; //300px
$small-width: 37.5rem; //600px
$medium-width: 56.25rem; //900px
$large-width: 75rem; //1200px
$max-width: 120rem; // 1920px
$content-max-width: $max-width;

/**
Expand Down Expand Up @@ -43,21 +43,6 @@ $content-max-width: $max-width;
@return '((100vw - #{$width}) / #{squish-factor()})';
}

/**
* Convert rem to px for Sass calculation.
*
* @param number(rem) $rem
* Value in rem to convert.
* @return number(px)
* Number of pixels corresponding to input.
*
* TODO: Is there a better place for helper functions?
* TODO: Is 1rem => 16px explicitly specified anywhere?
*/
@function rem-to-px($rem) {
@return math.div($rem, 1rem) * 16px;
}

/**
* Assigns breakpoint-dependent values to flex-basis, and width 100% within.
*
Expand Down Expand Up @@ -159,7 +144,7 @@ $content-max-width: $max-width;
}

// Stop increasing when we reach $scale times $max-padding.
$delta: rem-to-px($max-padding - $min-padding);
$delta: $max-padding - $min-padding;

@include breakpoint($medium-width + (squish-factor() * $delta)) {
padding-#{$side}: calc(#{$scale} * #{$max-padding});
Expand Down Expand Up @@ -196,7 +181,7 @@ $content-max-width: $max-width;
}

// Stop increasing when we reach $scale times $max-margin.
$delta: rem-to-px($max-margin - $min-margin);
$delta: $max-margin - $min-margin;

@include breakpoint($medium-width + (squish-factor() * $delta)) {
margin-#{$side}: calc(#{$scale} * #{$max-margin});
Expand Down
87 changes: 87 additions & 0 deletions components/00-particles/_font-chronicle.scss

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion components/00-particles/global/01-colors/_color-vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $med-blue: #07c;

/* Background colors */
$white: white;
$palest-gray: #eee;
$pale-gray: #e2dfdd; // $gray + 80% tint.
$dark-red: #6f263d;
$charcoal: #1a1a1a;
Expand All @@ -22,12 +23,16 @@ $pale-blue: #ccdae3;
$light-blue: #00a9e0;
$raspberry: #a20067;
$red: #ef3340;
$yellow: #f1c400;
$yellow: #ffd100;
$dark-green: #2c5234;
$green: #5c7f1a;
$light-orange: #ff9e1b;
$light-green: #84bd00;

/* New colors */
$gray-border: #aaa;
$yellow-feature: #ffd100;

// // // // // // // // //
// TODO: colors below this line are from previous work, and should be
// moved above it when we figure out that we need them.
Expand Down
8 changes: 0 additions & 8 deletions components/01-elements/01-links/link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,6 @@ a.bluebg {
}

@include focus($dark-blue, link);

.lits_homepage #block-lits-theme-litsunifiedsearchblock & {
@include focus($light-orange, link);

& svg {
@include focus($light-orange, link);
}
}
}

@mixin link-on-raspberry {
Expand Down
136 changes: 136 additions & 0 deletions components/01-elements/04-images/00-image/_scaling-image.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
/* container queries so don't have to factor in spacing around container for ideal transition points
which opens opportunity for that to spacing be calculated based on viewport constantly, etc. */
#block-lits-theme-homepageintro .scaling-image {
.feature-container {
margin: 0;
font-family: "ars-maquette-web", sans-serif;
/* container queries so don't have to factor in spacing around container for ideal transition points
which opens opportunity for that spacing to be cacluclated based on viewport constantly, etc. */
container-type: inline-size;
container-name: contain;

/* should switch all this to mobile-first instead of desktop-first */
.feature {
max-width: 76rem;
padding: 0 4.5rem 3rem;
position: relative;
text-align: center;
margin: 0 auto;

.why {
font-weight: bold;
font-size: 1.375rem;
margin: 0 auto 1.5rem auto;
display: none;
}

.cta {
font-size: 1.5rem;
font-size: clamp(1.25rem, 4vw, 1.5rem);
width: 8em;
display: block;
padding: .375rem .75rem;
margin: 1.5rem auto 0;
background: #{$med-blue};
color: white;
font-weight: 400;
border-radius: 2px;
text-decoration: none;
}
}

.feature-image {
/* placeholder image */
/* some of this sizing is image specific, based on background size, aspect ratio, etc. */
height: 35rem;
width: 100%;
background-size: 110%;
background-position-x: 61%;
background-position-y: 32%;
margin: 0;
position: relative;
}

.feature-text {
text-align: center;
padding: 1.875rem 1.5rem;
/* a little extra on top and bottom, with auto height */
display: inline-block;
width: 29rem;
background: #{$yellow-feature};
max-width: 100%;
align-items: center;
left: 0rem;
bottom: 0rem;
position: absolute;

h1 {
margin: 0 auto 1.5rem auto;
align-content: space-around;
font-family: 'Chronicle Text G2 A', 'Chronicle Text G2 B', serif;
font-size: 3rem;
font-size: clamp(2rem, 8vw, 3rem);
font-weight: 600;
line-height: 1;
margin: 0 auto;
}

sub {
font-family: 'Chronicle Text G2 A', 'Chronicle Text G2 B', serif;
font-size: 2.25rem;
font-size: clamp(1.5rem, 6vw, 2.25rem);
display: inline-block;
line-height: 1.3;
padding: .375rem .375rem;
/*ideally this would reduce for mobile */
margin: -.75rem auto 1.5rem auto;
/* reducing margin because of height from padding */
margin: 0;
position: unset; // Drupal has a normalize rule that messes with this
}
}

@container contain (max-width: 57rem) {

.feature {
padding: 0;
}

.feature-image {
height: calc(2/3 * (100cqw - var(--side-spacing) - var(--side-spacing)));
/* for full size height, not sure what was doing before but was wrong */
}

.feature-text {
width: calc(100% - 6rem);
min-width: 28rem;
left: 0;
right: 0;
bottom: 0;
position: relative;
margin: -3rem auto 0rem;
max-width: 34rem;
}
}

@container contain (max-width: 34rem) {

.feature-text {
left: 0;
right: 0;
min-width: auto;
width: 100%;
top: 0;
bottom: 0;
height: auto;
margin: 0 auto;
}
}
}

@media (min-width:34rem) {
.feature-container {
margin: var(--side-spacing);
}
}
}
Loading