Skip to content

Commit 86bccda

Browse files
committed
Adjust styles for mobile devices
1 parent 880271b commit 86bccda

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

src/components/pages/HomePage/HomePage.module.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
@media (orientation: landscape) {
2323
.Background {
24-
background-position: 30% 10%;
24+
background-position: 30% 15%;
2525
background-size: 140%;
2626
}
2727
}
@@ -40,6 +40,13 @@
4040
}
4141
}
4242

43+
@media (orientation: portrait) and (max-width: 1000px) {
44+
.Background {
45+
background-position: 57% 50%;
46+
background-size: 200%;
47+
}
48+
}
49+
4350
@media (orientation: portrait) and (max-width: 480px) {
4451
.Background {
4552
background-position: 69% -26%;

src/components/pages/HomePage/ShortInfo/Parallax/Parallax.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
.component {
88
position: fixed;
9-
top: 25%;
9+
top: 35%;
1010
}
1111

1212
@media (max-width: 800px) {
1313
.component {
14-
top: 20%;
14+
top: calc(var(--ifm-navbar-height) + 3rem + 1rem);
1515
}
1616
}

src/css/announcement-bar.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ div[class^="announcementBar"][role="banner"] .announcement-bar {
2222
justify-content: flex-start;
2323
align-items: center;
2424
height: 2.4rem;
25-
padding: 0 4rem;
25+
padding: 0 1rem;
2626
background-color: #282826;
2727
color: #F6F6F6;
2828
margin: 0 auto;
@@ -38,6 +38,7 @@ div[class^="announcementBar"][role="banner"] .announcement-bar:hover {
3838
div[class^="announcementBar"][role="banner"] .announcement-bar__icon {
3939
width: 1.6rem;
4040
height: 1.6rem;
41+
padding: 1px; /* Fix icon crop in Safari */
4142
}
4243

4344
div[class^="announcementBar"][role="banner"] .announcement-bar__icon:first-child {
@@ -47,3 +48,9 @@ div[class^="announcementBar"][role="banner"] .announcement-bar__icon:first-child
4748
div[class^="announcementBar"][role="banner"] .announcement-bar__icon:last-child {
4849
margin-left: 1rem;
4950
}
51+
52+
@media (max-width: 480px) {
53+
div[class^="announcementBar"][role="banner"] .announcement-bar {
54+
font-size: 0.75rem;
55+
}
56+
}

0 commit comments

Comments
 (0)