Skip to content

Commit 1becaff

Browse files
authored
End the banner campaign (#3275)
1 parent fdd694f commit 1becaff

File tree

6 files changed

+10
-46
lines changed

6 files changed

+10
-46
lines changed

src/components/LayoutHeader/Header.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,6 @@ const Header = ({location}: {location: Location}) => (
3333
display: 'none',
3434
},
3535
}}>
36-
<Container>
37-
<div
38-
css={{
39-
height: 60,
40-
fontSize: 20,
41-
padding: 20,
42-
textAlign: 'center',
43-
[media.between('small', 'large')]: {
44-
fontSize: 22,
45-
height: 60,
46-
},
47-
[media.lessThan('small')]: {
48-
height: 80,
49-
},
50-
[media.greaterThan('medium')]: {
51-
fontSize: 25,
52-
},
53-
}}>
54-
Black Lives Matter.{' '}
55-
<a
56-
style={{color: colors.brand}}
57-
target="_blank"
58-
rel="noopener"
59-
href="https://support.eji.org/give/153413/#!/donation/checkout">
60-
Support&nbsp;the&nbsp;Equal&nbsp;Justice&nbsp;Initiative.
61-
</a>
62-
</div>
63-
</Container>
6436
<Container>
6537
<div
6638
css={{

src/components/MarkdownHeader/MarkdownHeader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ const MarkdownHeader = ({title}: {title: string}) => (
1515
css={{
1616
color: colors.dark,
1717
marginBottom: 0,
18-
marginTop: 100, // BLM
18+
marginTop: 40,
1919
...fonts.header,
2020

2121
[media.size('medium')]: {
22-
marginTop: 100, // BLM
22+
marginTop: 60,
2323
},
2424

2525
[media.greaterThan('large')]: {
26-
marginTop: 100, // BLM
26+
marginTop: 80,
2727
},
2828
}}>
2929
{title}

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ const MarkdownPage = ({
8787
<MarkdownHeader title={titlePrefix} />
8888

8989
{(date || hasAuthors) && (
90-
<div
91-
css={{
92-
marginTop: 15,
93-
}}>
90+
<div css={{marginTop: 15}}>
9491
{date}{' '}
9592
{hasAuthors && (
9693
<span>

src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class StickyResponsiveSidebar extends Component<Props, State> {
4343
render() {
4444
const {open} = this.state;
4545
const smallScreenSidebarStyles = {
46-
top: 60,
46+
top: 0,
4747
left: 0,
4848
bottom: 0,
4949
right: 0,
@@ -117,18 +117,18 @@ class StickyResponsiveSidebar extends Component<Props, State> {
117117
transition: 'transform 0.5s ease',
118118
}}
119119
css={{
120-
marginTop: 80,
120+
marginTop: 60,
121121

122122
[media.size('xsmall')]: {
123-
marginTop: 60,
123+
marginTop: 40,
124124
},
125125

126126
[media.between('small', 'medium')]: {
127-
marginTop: 70,
127+
marginTop: 0,
128128
},
129129

130130
[media.between('medium', 'large')]: {
131-
marginTop: 70,
131+
marginTop: 50,
132132
},
133133

134134
[media.greaterThan('small')]: {

src/pages/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ class Home extends Component {
5353
title="React &ndash; A JavaScript library for building user interfaces"
5454
canonicalUrl={createCanonicalUrl('/')}
5555
/>
56-
<div
57-
css={{
58-
width: '100%',
59-
marginTop: 60, // BLM
60-
}}>
56+
<div css={{width: '100%'}}>
6157
<header
6258
css={{
6359
backgroundColor: colors.dark,

src/theme.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ const sharedStyles = {
318318
},
319319

320320
lineHeight: 1.2,
321-
scrollMarginTop: 120,
322321

323322
':first-child': {
324323
'::before': {

0 commit comments

Comments
 (0)