Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added media queries and changed span toggle margin error #295

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1 class="heading">A very Mogul Christmas</h1>
<div id="switch">
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
<span class="switch slider round"></span>
</label>
</div>
</div>
Expand Down
72 changes: 71 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ a:active {
}

#header {
position: "relative";
position: relative;
display: flex;
align-items: center;
justify-content: center;
Expand Down Expand Up @@ -547,3 +547,73 @@ a:active {
#report {
color: red;
}

/* media queries */
@media screen and (min-width: 1024px) {
body {
width: 100%;
height: 100%;
}
}

/* For Tablet View */
@media screen and (min-device-width: 768px)
and (max-device-width: 1024px) {
body {
width: 100%;
height: 100%;
}
}

/* For Mobile Portrait View */
@media screen and (max-device-width: 480px)
and (orientation: portrait) {
body {
width: 100%;
height: 100%;
}
}

/* For Mobile Landscape View */
@media screen and (max-device-width: 640px)
and (orientation: landscape) {
body {
width: 100%;
height: 100%;
}
}

/* For Mobile Phones Portrait or Landscape View */
@media screen and (max-device-width: 640px) {
body {
width: 100%;
height: 100%;
}
}

/* For iPhone 4 Portrait or Landscape View */
@media screen and (min-device-width: 320px)
and (-webkit-min-device-pixel-ratio: 2) {
body {
width: 100%;
height: 100%;
}
}

/* For iPhone 5 Portrait or Landscape View */
@media (device-height: 568px) and (device-width: 320px)
and (-webkit-min-device-pixel-ratio: 2) {
body {
width: 100%;
height: 100%;
}
}

/* For iPhone 6 and 6 plus Portrait or Landscape View */
@media (min-device-height: 667px) and (min-device-width: 375px)
and (-webkit-min-device-pixel-ratio: 3) {
body {
width: 100%;
height: 100%;
}
}