Skip to content

Commit 0934896

Browse files
committed
mobile and tablet layout of main done
1 parent 367e69a commit 0934896

File tree

4 files changed

+110
-38
lines changed

4 files changed

+110
-38
lines changed

src/css/footer.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ footer.footer {
3030
line-height: var(--footer-line-height);
3131
padding: 1.5rem;
3232
position: relative;
33-
width: 100%;
33+
width: auto;
3434
}
3535

3636
.sections-footer-container {
@@ -49,10 +49,6 @@ footer.footer {
4949
color: var(--footer-link-font-color);
5050
}
5151

52-
/* .sections-footer-container-left {
53-
margin-left: 1rem;
54-
} */
55-
5652
.sections-footer-container-right {
5753
margin: 0.25rem 1.25rem;
5854
}
@@ -63,20 +59,21 @@ footer.footer {
6359
font-size: 1rem;
6460
}
6561

62+
@media screen and (max-width: 1024px) {
63+
.sections-footer-container {
64+
max-width: 52rem;
65+
}
66+
}
67+
6668
@media screen and (max-width: 768px) {
6769
.sections-footer {
6870
line-height: unset;
6971
padding: 1rem;
70-
/* max-width: 80%; */
7172
}
7273

7374
.sections-footer-container {
7475
flex-direction: column-reverse;
7576
gap: 0.25rem;
7677
align-items: center;
7778
}
78-
79-
/* .sections-footer-container-left {
80-
max-width: 80%;
81-
} */
8279
}

src/css/header.css

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ body {
294294
}
295295

296296
.sections-navbar {
297-
/* background: white;
298-
color: var(--navbar-font-color); */
299297
font-size: calc(16 / var(--rem-base) * 1rem);
300298
height: var(--navbar-height);
301299
top: 0;
@@ -317,7 +315,6 @@ body {
317315
.sections-navbar-brand .sections-navbar-item:first-child a {
318316
align-self: center;
319317
padding: 0;
320-
/* color: var(--navbar-font-color); */
321318
font-size: calc(22 / var(--rem-base) * 1rem);
322319
}
323320

@@ -436,10 +433,8 @@ body {
436433
}
437434

438435
.sections-nav-list > li {
439-
/* text-decoration: none; */
440436
margin-right: 1rem;
441437
font-size: 1.2rem;
442-
/* font-weight: 400; */
443438
margin-top: 0.1rem;
444439
}
445440

@@ -536,6 +531,16 @@ body {
536531
font-size: 1.25rem;
537532
}
538533

534+
@media screen and (max-width: 1440px) {
535+
.sections-navbar {
536+
padding-left: 2.5rem;
537+
}
538+
539+
.sections-navbar-menu {
540+
margin-left: unset !important;
541+
}
542+
}
543+
539544
@media screen and (max-width: 1023.5px) {
540545
.sections-navbar {
541546
position: fixed;
@@ -701,13 +706,30 @@ body {
701706
}
702707
}
703708

704-
@media screen and (min-width: 1024px) and (max-width: 1440px) {
709+
@media screen and (min-width: 1024px) {
705710
.sections-navbar-menu {
706-
margin-left: -16rem;
711+
margin-left: -7rem;
712+
}
713+
714+
.sections-navbar {
715+
width: unset !important;
716+
}
717+
718+
.sections-navbar-brand {
719+
padding-left: 3.25rem !important;
720+
padding-top: 0.3rem !important;
721+
}
722+
723+
.sectionWhite-left {
724+
padding-left: 1rem;
725+
}
726+
727+
.sections-page > h1 {
728+
padding-left: 2.5rem !important;
707729
}
708730
}
709731

710-
@media screen and (max-width: 700px) {
732+
@media screen and (max-width: 768px) {
711733
.sections-header {
712734
display: none;
713735
}

src/css/search.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@
109109

110110
/* Mobile */
111111

112+
@media screen and (min-width: 1441px) {
113+
.search-result-dropdown-menu {
114+
margin-left: 2.5rem !important;
115+
margin-top: -5.5rem !important;
116+
}
117+
}
118+
112119
@media screen and (min-width: 1024px) {
113120
.navbar-brand {
114121
flex-grow: 1;
@@ -164,18 +171,16 @@
164171
padding-right: 0;
165172
}
166173

167-
.search-result-dropdown-menu {
168-
min-width: calc(100vw - 3.75rem);
169-
}
170-
171174
.search-input-landing {
172175
margin-top: 1.25rem;
173176
padding-right: 4rem;
174177
background-color: white;
178+
width: 16.75rem !important;
175179
}
176180

177181
.sections-page .search-result-dropdown-menu {
178-
margin-top: -6rem !important;
182+
min-width: calc(100vw - 3.75rem);
183+
margin-top: -23rem !important;
179184
}
180185

181186
.search-input-landing:hover {

src/css/sections.css

Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
.sectionWhite-left .paragraph {
6161
color: #496583;
62+
/* padding-right: 2rem; */
6263
}
6364

6465
.sectionWhite-right > div > div > div > img {
@@ -67,7 +68,7 @@
6768
}
6869

6970
.sectionWhite-heading {
70-
font-size: 2.2rem;
71+
font-size: 2rem;
7172
line-height: 1.2;
7273
font-weight: bold;
7374
color: #496583;
@@ -270,7 +271,7 @@
270271

271272
.innerTile > .content {
272273
background: transparent !important;
273-
border: 6px solid var(--color-white) !important;
274+
border: 4.5px solid var(--color-white) !important;
274275
border-radius: unset !important;
275276
text-align: center;
276277
}
@@ -285,34 +286,42 @@
285286

286287
/* Mobile */
287288

288-
@media screen and (max-width: 1140px) {
289+
@media screen and (max-width: 1440px) {
290+
.sectionWhite .sectionWhite-heading {
291+
padding-bottom: unset !important;
292+
}
293+
}
294+
295+
@media screen and (max-width: 1024px) {
289296
.sectionbody > .sectionPurple,
290297
.sectionbody > .sectionBlue,
291298
.sectionbody > .sectionWhite {
292299
height: unset;
293300
}
294301

295302
.sectionWhite-heading-blue > p {
296-
font-size: 1.25rem;
303+
font-size: 2rem;
297304
}
298-
}
299305

300-
@media screen and (max-width: 800px) {
301-
.doc > h1 {
302-
display: none;
306+
.sectionWhite-heading-blue {
307+
padding-top: unset !important;
303308
}
304309

305-
/* .sectionWhite-heading-blue > p {
306-
font-size: 1.25rem;
310+
.sectionWhite-heading {
311+
padding: unset !important;
307312
}
308313

309-
.get-started-button {
310-
padding: 0.5rem 2rem;
311-
font-size: 0.5rem;
312-
} */
314+
.doc .image > img,
315+
.doc .imageblock img {
316+
max-width: 110%;
317+
}
313318
}
314319

315320
@media screen and (max-width: 768px) {
321+
.doc > h1 {
322+
display: none;
323+
}
324+
316325
.sections-page .sectionbody {
317326
/* max-width: 80% !important; */
318327
text-align: center;
@@ -321,7 +330,7 @@
321330
.sectionbody .tile {
322331
width: 80%;
323332
margin: 0 auto;
324-
padding: 2rem;
333+
padding: 0.5rem 2rem;
325334
}
326335

327336
.sectionbody .sectionTitle {
@@ -344,5 +353,44 @@
344353

345354
.sectionWhite-heading {
346355
font-size: 1.75rem;
356+
padding-top: 3rem !important;
357+
padding-bottom: 0.75rem !important;
358+
}
359+
360+
.sectionWhite-right img {
361+
float: unset !important;
362+
margin-top: 1rem !important;
363+
max-width: 80% !important;
364+
}
365+
366+
.sectionbody .sectionPurple {
367+
margin-bottom: 2rem !important;
368+
}
369+
370+
.sectionWhite .sectionWhite-heading-blue {
371+
padding: 0.5rem 0.1rem 1.5rem 0.1rem !important;
372+
}
373+
}
374+
375+
@media screen and (max-width: 375px) {
376+
.sectionbody .tile {
377+
width: 100%;
378+
padding: 0.5rem 0.25rem;
379+
}
380+
381+
.sectionWhite .get-started-button {
382+
padding: 0.75rem 3.5rem;
383+
}
384+
385+
.sectionWhite-right img {
386+
max-width: 100% !important;
387+
}
388+
389+
main {
390+
max-width: 375px;
391+
}
392+
393+
.sectionWhite-heading {
394+
padding-bottom: 0.25rem !important;
347395
}
348396
}

0 commit comments

Comments
 (0)