Skip to content

Commit 7e78e9b

Browse files
committed
Overrode styles from mitlib-style for footer and institute footer
1 parent ce19e17 commit 7e78e9b

File tree

3 files changed

+79
-12
lines changed

3 files changed

+79
-12
lines changed

app/assets/stylesheets/partials/_layouts.scss

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// GLOBAL LAYOUT STYLING
12
.wrap-gridband, .wrap-notice, .wrap-header,
23
.wrap-header-local, .wrap-breadcrumb, .wrap-content,
34
.wrap-footer, .wrap-footer-institute, .wrap-footer.footer-slim, .wrapper {
@@ -22,14 +23,84 @@
2223

2324
}
2425

25-
.wrap-header .header-slim .logo-mit-lib img {height: 40px;} // Adjust Libraries logo to 40px height
26-
2726
.wrapper {
2827
margin: 0 auto;
2928
}
3029

30+
// HEADER STYLING
31+
.wrap-header .header-slim .logo-mit-lib img {height: 40px;} // Adjust Libraries logo to 40px height
32+
3133
.hidden-md {
3234
@media (max-width: $bp-screen-md) {
3335
display: none;
3436
}
3537
}
38+
39+
// FOOTER STYLES
40+
.wrap-footer.footer-slim {
41+
padding-top: 32px;
42+
padding-bottom: 32px;
43+
}
44+
45+
.wrap-footer .identity {
46+
margin-top: 0;
47+
align-items: center;
48+
}
49+
50+
.wrap-footer .wrap-logo-lib {
51+
margin-right: 48px;
52+
}
53+
54+
.wrap-footer.footer-slim .wrap-middle .wrap-policies {
55+
padding-top: 0;
56+
margin-left: 0;
57+
58+
nav {
59+
display: flex;
60+
gap: 32px;
61+
62+
a {
63+
font-size: 1.5rem;
64+
color: $color-gray-300;
65+
}
66+
}
67+
68+
}
69+
70+
// Adjust styles for navigation when on smaller screens
71+
@media (max-width: $bp-screen-md) {
72+
.wrap-footer.footer-slim .identity {
73+
margin-bottom: 0;
74+
}
75+
76+
.wrap-footer.footer-slim .wrap-middle .wrap-policies {
77+
border-top: none;
78+
79+
nav {
80+
gap: 24px;
81+
}
82+
}
83+
}
84+
85+
.wrap-footer-institute {
86+
padding-top: 16px;
87+
padding-bottom: 16px;
88+
89+
.footer-info-institute {
90+
align-items: center;
91+
color: $color-gray-300;
92+
}
93+
94+
a.link-logo-mit img {
95+
max-width: unset;
96+
}
97+
98+
.license {
99+
font-size: 1.3rem;
100+
101+
a {
102+
color: $color-gray-300;
103+
}
104+
}
105+
106+
}

app/views/layouts/_institute_footer.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<img
77
src="https://cdn.libraries.mit.edu/files/branding/local/mit_lockup_std-three-line_rgb_white.svg"
88
alt="MIT logo"
9-
width="150"
9+
width="105"
1010
/>
1111
</a>
1212

app/views/layouts/_libraries_footer.html.erb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@
88
<img
99
src="https://cdn.libraries.mit.edu/files/branding/local/mitlib-wordmark.svg"
1010
alt="MIT Libraries logo"
11-
width="150"
11+
width="80"
1212
/>
1313
</a>
1414
</div>
1515

1616
<div class="wrap-middle">
1717
<div class="wrap-policies">
1818
<nav aria-label="MIT Libraries policy menu">
19-
<span class="item"><a href="https://libraries.mit.edu/privacy" class="link-sub">Privacy</a></span>
20-
21-
<span class="item"><a href="https://libraries.mit.edu/permissions" class="link-sub">Permissions</a></span>
22-
23-
<span class="item"><a href="https://libraries.mit.edu/accessibility" class="link-sub">Accessibility</a></span>
24-
25-
<span class="item"><a href="https://libraries.mit.edu/contact" class="link-sub">Contact us</a></span>
26-
19+
<a href="https://libraries.mit.edu/privacy" class="link-sub">Privacy</a>
20+
<a href="https://libraries.mit.edu/permissions" class="link-sub">Permissions</a>
21+
<a href="https://libraries.mit.edu/accessibility" class="link-sub">Accessibility</a>
22+
<a href="https://libraries.mit.edu/contact" class="link-sub">Contact us</a>
2723
</nav>
2824
</div>
2925
</div>

0 commit comments

Comments
 (0)