Skip to content

Commit 20fd868

Browse files
committed
Fixing style issues
1 parent cb3826b commit 20fd868

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

app/screens/BLM/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import React from 'react';
1+
import React, { useEffect } from 'react';
22

33
export default () => {
4+
useEffect(() => {
5+
const container = document.getElementById('container');
6+
7+
container.classList.add('fullscreen');
8+
9+
return () => container.classList.remove('fullscreen');
10+
}, [])
11+
412
return (
513
<div className="BlackLivesMatter">
614
<section>

assets/css/responsive-800.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ input[type='email'] {
141141

142142
.Header__Nav__Menu {
143143
position: absolute;
144-
top: 91px;
144+
top: 91px + $banner-offset;
145145
left: 0;
146146
right: 0;
147147
height: 394px;
@@ -176,7 +176,7 @@ input[type='email'] {
176176
margin: 0;
177177
text-align: center;
178178
position: absolute;
179-
top: -369px;
179+
top: -369px + $banner-offset;
180180
left: 25px;
181181
}
182182
}

assets/css/styles.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ $size-font-default: 20px;
2525
$size-font-medium: 18px;
2626
$size-font-small: 14px;
2727
$size-font-xsmall: 12px;
28+
$banner-offset: 42px;
2829

2930
/* typography */
3031
body {
@@ -129,6 +130,12 @@ input[type='email'] {
129130
box-sizing: border-box;
130131
}
131132

133+
#container.fullscreen {
134+
.Header, .Footer {
135+
display: none;
136+
}
137+
}
138+
132139
.col {
133140
display: inline-block;
134141
vertical-align: top;
@@ -517,7 +524,7 @@ input[type='email'] {
517524
color: $color-red;
518525
position: absolute;
519526
height: 57px;
520-
top: 17px;
527+
top: 17px + $banner-offset;
521528
right: 25px;
522529
}
523530
.Header__Nav section:last-of-type {
@@ -697,10 +704,12 @@ section.Footer__Tickets h2 {
697704
border: 0 none;
698705
color: #ccc;
699706
padding: 0;
707+
margin: 0;
700708
}
701709
.BlackLivesMatter section {
702710
max-width: 800px;
703711
margin: 0 auto;
712+
padding: 25px !important;
704713
}
705714

706715
/* -- Icon -- */

0 commit comments

Comments
 (0)