Skip to content

Commit e8d0134

Browse files
authored
fix: responsivess and mobile layout collision in header and services list (fixes #3294) (#44)
* fix: mobile layout collision in header and services list (fixes #3294) Signed-off-by: sarbojitrana <[email protected]> * fix: center align buttons and prevent horizontal scroll on mobile Signed-off-by: sarbojitrana <[email protected]> * fix: correct indentation in workflow file Signed-off-by: sarbojitrana <[email protected]> * fix: align social icons vertically, fix text overlap, and restore image vibrancy Signed-off-by: sarbojitrana <[email protected]> * fix: finalize mobile layout alignment, visibility, and spacing per review Signed-off-by: sarbojitrana <[email protected]> * fix: fix the buttons in the hero sections for smaller devices * fix: fix the buttons and scroll down link --------- Signed-off-by: sarbojitrana <[email protected]>
1 parent 7b3ec1b commit e8d0134

File tree

2 files changed

+232
-16
lines changed

2 files changed

+232
-16
lines changed

.github/workflows/build_and_check.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@ name: Preview
22

33
on:
44
pull_request:
5-
types:
6-
- opened
7-
- reopened
8-
- synchronize
9-
- closed
10-
jobs:
11-
deploy-preview:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: rossjrw/pr-preview-action@v1
16-
with:
17-
source-dir: .
18-
preview-branch: gh-pages
19-
umbrella-dir: pr-preview
20-
action: auto
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
11+
jobs:
12+
deploy-preview:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: rossjrw/pr-preview-action@v1
17+
with:
18+
source-dir: .
19+
preview-branch: gh-pages
20+
umbrella-dir: pr-preview
21+
action: auto

css/main.css

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,6 +2502,16 @@ html.no-csstransitions .home-content__main {
25022502
float: none;
25032503
margin-top: 0;
25042504
}
2505+
.services-list .service-text {
2506+
/* 1. Force reset the negative pull */
2507+
margin-top: 1rem !important;
2508+
2509+
/* 2. Reset left margin so it centers perfectly */
2510+
margin-left: 0 !important;
2511+
2512+
/* 3. Ensure text doesn't get squashed */
2513+
width: 100%;
2514+
}
25052515
}
25062516

25072517
@media only screen and (max-width: 600px) {
@@ -4043,4 +4053,209 @@ html.no-csstransitions .home-content__main {
40434053
.criteria-list {
40444054
/* margin-top: 20px; */
40454055
margin-bottom: 40px;
4056+
}
4057+
4058+
/* --- UPDATED MOBILE FIXES (ISSUE: 3294) --- */
4059+
@media only screen and (max-width: 900px) {
4060+
4061+
html, body {
4062+
overflow-x: hidden !important;
4063+
width: 100% !important;
4064+
position: relative;
4065+
}
4066+
4067+
.row {
4068+
margin-left: 0 !important;
4069+
margin-right: 0 !important;
4070+
width: 100% !important;
4071+
max-width: 100% !important;
4072+
padding-left: 0 !important;
4073+
padding-right: 0 !important;
4074+
}
4075+
4076+
#home, .home {
4077+
height: auto !important;
4078+
min-height: 100vh;
4079+
padding-top: 10rem !important;
4080+
padding-bottom: 5rem !important;
4081+
overflow: visible !important;
4082+
}
4083+
4084+
#about, .s-about {
4085+
margin-top: 20rem !important;
4086+
position: relative !important;
4087+
z-index: 20 !important;
4088+
}
4089+
4090+
.header-menu-text {
4091+
display: none !important;
4092+
}
4093+
4094+
.home-content {
4095+
display: flex !important;
4096+
flex-direction: column !important;
4097+
align-items: center !important;
4098+
text-align: center !important;
4099+
4100+
width: 100% !important;
4101+
max-width: 100% !important;
4102+
box-sizing: border-box !important;
4103+
4104+
margin: 1rem auto !important;
4105+
padding: 2rem !important;
4106+
4107+
background: rgba(255, 255, 255, 0.85);
4108+
border-radius: 15px;
4109+
}
4110+
4111+
.home-content__main {
4112+
width: 100% !important;
4113+
text-align: center !important;
4114+
margin: 0 !important;
4115+
}
4116+
4117+
.home-content h1 {
4118+
font-size: clamp(2rem, 8vw, 3.5rem);
4119+
line-height: 1.2;
4120+
margin-bottom: 1rem;
4121+
text-decoration: none !important;
4122+
border-bottom: none !important;
4123+
width: 100% !important;
4124+
}
4125+
4126+
.home-content h1 span,
4127+
.home-content h1 u,
4128+
.home-content__main u {
4129+
text-decoration: none !important;
4130+
border-bottom: none !important;
4131+
}
4132+
4133+
.home-social, .overlay, .shadow-overlay {
4134+
display: none !important;
4135+
}
4136+
4137+
.service-item {
4138+
display: flex !important;
4139+
flex-direction: column !important;
4140+
align-items: center !important;
4141+
justify-content: flex-start !important;
4142+
4143+
height: auto !important;
4144+
min-height: auto !important;
4145+
margin-bottom: 3rem !important;
4146+
width: 100% !important;
4147+
}
4148+
4149+
.service-icon {
4150+
display: block !important;
4151+
position: static !important;
4152+
margin-bottom: 1.5rem !important;
4153+
height: auto !important;
4154+
max-width: 100% !important;
4155+
}
4156+
4157+
.service-text {
4158+
display: block !important;
4159+
position: static !important;
4160+
width: 100% !important;
4161+
margin-top: 0 !important;
4162+
}
4163+
4164+
.services-list, .card {
4165+
height: auto !important;
4166+
overflow: visible !important;
4167+
}
4168+
4169+
.listed-criteria h2, .criteria-list h2 {
4170+
line-height: 1.4 !important;
4171+
height: auto !important;
4172+
display: block !important;
4173+
margin-bottom: 0.5rem !important;
4174+
}
4175+
4176+
.bunny img {
4177+
opacity: 1.0 !important;
4178+
}
4179+
4180+
footer, .footer, .s-footer {
4181+
text-align: center !important;
4182+
}
4183+
4184+
footer ul, .footer ul, .footer-social {
4185+
justify-content: center !important;
4186+
display: flex !important;
4187+
width: 100% !important;
4188+
padding-left: 0 !important;
4189+
margin-left: 0 !important;
4190+
}
4191+
4192+
footer form, .footer form {
4193+
display: flex !important;
4194+
flex-direction: column;
4195+
align-items: center !important;
4196+
width: 100%;
4197+
}
4198+
4199+
.footer-copyright, .copyright {
4200+
text-align: center !important;
4201+
width: 100%;
4202+
}
4203+
4204+
.process-div h3 {
4205+
margin-right: 1.5rem !important;
4206+
padding-right: 0.5rem !important;
4207+
}
4208+
4209+
.contact-secondary, .contact-info, .cinfo {
4210+
display: flex !important;
4211+
flex-direction: column !important;
4212+
align-items: center !important;
4213+
text-align: center !important;
4214+
width: 100% !important;
4215+
}
4216+
4217+
.contact-social {
4218+
display: flex !important;
4219+
justify-content: center !important;
4220+
width: 100% !important;
4221+
padding: 0 !important;
4222+
margin-top: 1.5rem !important;
4223+
gap: 1rem !important;
4224+
}
4225+
4226+
.home-content__buttons {
4227+
display: flex !important;
4228+
flex-direction: column !important;
4229+
align-items: center !important;
4230+
justify-content: center !important;
4231+
width: 100% !important;
4232+
gap: 1rem !important;
4233+
margin-top: 1.5rem !important;
4234+
}
4235+
4236+
.btn, .button {
4237+
display: inline-flex !important;
4238+
justify-content: center !important;
4239+
align-items: center !important;
4240+
text-align: center !important;
4241+
padding: 12px 24px !important;
4242+
height: auto !important;
4243+
min-height: 44px !important;
4244+
white-space: normal !important;
4245+
max-width: 90% !important;
4246+
box-sizing: border-box !important;
4247+
margin: 0 auto !important;
4248+
}
4249+
4250+
.home-content__scroll {
4251+
display: block !important;
4252+
width: 100% !important;
4253+
text-align: center !important;
4254+
position: static !important;
4255+
transform: none !important;
4256+
4257+
margin-top: 2rem !important;
4258+
margin-bottom: 1rem !important;
4259+
}
4260+
li, p { word-wrap: break-word; }
40464261
}

0 commit comments

Comments
 (0)