Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(yalb-mega-footer-2): remove two footer logos from mega footer, ch… #290

Merged
merged 9 commits into from
Sep 19, 2023
18 changes: 18 additions & 0 deletions components/02-molecules/link-group/_yds-link-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,22 @@ $break-link-group-max: $break-link-group - 0.05;
text-align: left;
line-height: 1.2;
font-weight: var(--font-weights-mallory-book);

// used in footer context, we need theme colors for hover
.site-footer__columns-inner & {
[data-footer-theme='one'] &,
[data-footer-theme='two'] &,
[data-footer-theme='three'] & {
--color-link-group-hover: var(--color-slot-two);
}

[data-footer-theme='four'] &,
[data-footer-theme='five'] & {
--color-link-group-hover: var(--color-slot-four);
}

&:hover {
color: var(--color-link-group-hover);
}
}
}
4 changes: 4 additions & 0 deletions components/02-molecules/social-links/_yds-social-links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
display: flex;
flex-wrap: wrap;
gap: var(--size-spacing-6);

@media (min-width: sass-tokens.$break-l) {
justify-content: end;
}
}

.social-links__link {
Expand Down
8 changes: 0 additions & 8 deletions components/03-organisms/site-footer/_site-footer-mega.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
placeholder: 'logo',
placeholder__type: 'element',
} %}
{% include "@page-layouts/placeholder/yds-placeholder.twig" with {
placeholder: 'logo',
placeholder__type: 'element',
} %}
{% include "@page-layouts/placeholder/yds-placeholder.twig" with {
placeholder: 'logo',
placeholder__type: 'element',
} %}
{% endblock %}
</div>

Expand Down
41 changes: 18 additions & 23 deletions components/03-organisms/site-footer/_yds-site-footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ $global-footer-themes: map.deep-get(tokens.$tokens, 'global-themes');
@media (min-width: tokens.$break-l) {
display: grid;
grid-template-areas: 'logos content columns';
grid-template-columns: 23.5rem 1fr 1fr;
grid-template-columns: 18rem 1fr 1fr;
}
}
}
Expand Down Expand Up @@ -175,7 +175,17 @@ $global-footer-themes: map.deep-get(tokens.$tokens, 'global-themes');
gap: var(--size-spacing-3);

[data-footer-variation='mega'] & {
flex: 1 1 30%;
@media (min-width: $break-site-footer) {
flex-direction: row;
justify-content: space-between;
gap: var(--size-spacing-5);
}

@media (min-width: tokens.$break-l) {
flex-direction: column;
justify-content: flex-start;
flex: 1 1 30%;
}
}
}

Expand Down Expand Up @@ -229,21 +239,14 @@ $global-footer-themes: map.deep-get(tokens.$tokens, 'global-themes');
*/
.site-footer__logo-group {
display: grid;
gap: var(--size-spacing-3);
grid-template-columns: 1fr 1fr;

@media (min-width: $break-site-footer) {
grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (min-width: tokens.$break-l) {
grid-template-columns: 1fr 1fr;
}
gap: var(--size-spacing-5);
}

// Yale school logo
.site-footer__yale-logo {
[data-footer-variation='mega'] & {
flex-basis: 50%;
gap: var(--size-spacing-6);
}
}
Expand All @@ -255,14 +258,14 @@ $global-footer-themes: map.deep-get(tokens.$tokens, 'global-themes');

flex: 1 1 30%;

> p {
margin-top: 0;
}

@media (min-width: tokens.$break-l) {
grid-area: content;
padding-inline-start: var(--size-spacing-8);
padding-inline-end: var(--size-spacing-8);

> p {
margin-top: 0;
}
}
}
}
Expand All @@ -289,14 +292,6 @@ $global-footer-themes: map.deep-get(tokens.$tokens, 'global-themes');
flex: 1 auto;
flex-direction: column;
gap: var(--size-spacing-3);

@media (min-width: tokens.$break-l) {
display: grid;
grid-template:
'top'
'bottom'
/ 1fr;
}
}
}

Expand Down
Loading