Skip to content

Commit 7d4e683

Browse files
committed
fix(policy): Prevent overlay from blocking content on small screens
Signed-off-by: Shivam Kumar <sk744826744@gmail.com>
1 parent ee0d6ae commit 7d4e683

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const TOCWrapper = styled.div`
105105
color: ${(props) => props.theme.secondaryColor};
106106
}
107107
108-
@media only screen and (max-width: 750px){
108+
@media only screen and (max-width: 1300px){
109109
position: initial;
110110
margin-right: 3rem;
111111
width: auto;

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

Lines changed: 17 additions & 14 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: 1300px) {
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;

0 commit comments

Comments
 (0)