-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing the responsiveness for mobile websites
- Loading branch information
1 parent
6979af8
commit ac159e0
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@media screen and (max-width: 768px) { | ||
html, body { | ||
overflow-x: hidden; | ||
} | ||
|
||
body { | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
.container { | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
|
||
/* Adjust font sizes for mobile */ | ||
h1, h2, h3 { | ||
font-size: 90%; | ||
} | ||
|
||
p, a { | ||
font-size: 95%; | ||
} | ||
|
||
/* Ensure images don't overflow */ | ||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
} | ||
|
||
/* Specific adjustments for the Hero section */ | ||
@media screen and (max-width: 640px) { | ||
.hero-title { | ||
font-size: 2.5rem !important; | ||
} | ||
|
||
.hero-subtitle { | ||
font-size: 1.25rem !important; | ||
} | ||
|
||
.hero-cta { | ||
font-size: 1rem !important; | ||
padding: 0.5rem 1rem !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters