Skip to content

Commit 533e03b

Browse files
authored
Merge pull request #7003 from GitWizzz/fix/privacy-overlay
fix(policy): Prevent overlay from blocking content on small screens
2 parents d64bfed + 2a99071 commit 533e03b

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

src/components/legal-navigation/toc.style.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const TOCWrapper = styled.div`
77
left: 0rem;
88
margin-left: 3rem;
99
margin-top: 3rem;
10-
margin-bottom : 3rem;
10+
margin-bottom : 2rem;
1111
width:15rem;
1212
word-break: break-word;
1313
overflow-wrap: break-word;
@@ -108,6 +108,8 @@ const TOCWrapper = styled.div`
108108
@media only screen and (max-width: 750px){
109109
position: initial;
110110
margin-right: 3rem;
111+
margin-bottom : 0rem;
112+
padding-bottom: 1rem;
111113
width: auto;
112114
.toc-toggle-btn{
113115
display:inline-block;

src/sections/Company/Legal/terms.style.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@ const TermsWrapper = styled.section`
99
max-width: 900px;
1010
margin: 0 auto;
1111
padding-left: 2px;
12-
margin-top: -20rem;
12+
margin-top: -20rem;
13+
@media (max-width: 750px) {
14+
margin-top: 0;
15+
}
1316
}
1417
.page-header-section {
15-
display: flex;
16-
align-items: center;
17-
justify-content: center;
18-
text-align: center;
19-
background: rgb(71,126,150);
18+
display: flex;
19+
align-items: center;
20+
justify-content: center;
21+
text-align: center;
22+
background: rgb(71,126,150);
2023
background: linear-gradient(250deg, rgba(71,126,150,1) 0%, rgba(0,179,159,1) 35%, rgba(60,73,79,1) 100%);
21-
padding: 3rem 0;
24+
padding: 3rem 0;
25+
h1 {
26+
color: white;
27+
}
28+
@media (max-width: 680px) {
29+
padding: 2rem 0;
2230
h1 {
23-
color: white;
24-
}
25-
@media (max-width: 680px) {
26-
padding: 2rem 0;
27-
h1 {
28-
font-size: 1.75rem;
29-
}
31+
font-size: 1.75rem;
3032
}
3133
}
34+
}
3235
3336
.conduct_heading {
3437
text-align: left;
@@ -78,4 +81,4 @@ const TermsWrapper = styled.section`
7881
}
7982
`;
8083

81-
export default TermsWrapper;
84+
export default TermsWrapper;

0 commit comments

Comments
 (0)