Skip to content

Commit 0681868

Browse files
committed
doc-site: update styling
1 parent 232453b commit 0681868

File tree

7 files changed

+38
-3
lines changed

7 files changed

+38
-3
lines changed

doc-site/src/components/HomepageFeatures.module.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
.features {
22
align-items: center;
3+
@media only screen and (max-width: 641px) {
4+
padding-left: 1rem;
5+
padding-right: 1rem;
6+
}
37

48
.title {
59
color: white;
610
font-weight: 400;
711
text-transform: inherit;
812
max-width: 34rem;
913
}
14+
@media screen and (max-width: 768px) {
15+
.title {
16+
padding: 0 2rem;
17+
}
18+
}
1019

1120
.row {
1221
justify-content: center;

doc-site/src/components/HomepageOfferings.module.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
border-radius: 12px;
8282
display: flex;
8383
padding: 2rem;
84-
flex: 0 0 330px;
8584

8685
ul{
8786
height: 100%;
@@ -130,6 +129,11 @@
130129
font-weight: 600;
131130
white-space: nowrap;
132131
}
132+
@media only screen and (max-width: 400px) {
133+
p {
134+
font-size: 0.8rem;
135+
}
136+
}
133137
}
134138
}
135139
}
@@ -138,7 +142,7 @@
138142
box becomes stacked when screen is small
139143
and the dotted line is vertical instead of horizontal
140144
**/
141-
@media screen and (max-width: 919px) {
145+
@media screen and (max-width: 967px) {
142146
.offerings_container {
143147
padding: 5rem 2rem;
144148
min-height: 62rem;

doc-site/src/components/HomepageWhyZero.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
text-align: center;
33
background: white;
44
color: var(--ifm-landing-page-inverse-font-color);
5+
@media only screen and (max-width: 641px) {
6+
padding-left: 3rem;
7+
padding-right: 3rem;
8+
}
59

610
.title {
711
margin-bottom: 5rem;

doc-site/src/css/custom.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,16 @@ html{
117117
padding:0 var(--ifm-spacing-horizontal);
118118
}
119119

120+
@media only screen and (max-width: 400px) {
121+
.footer {
122+
display: none;
123+
}
124+
}
125+
120126
/** LANDING PAGE SECTION **/
121127
.featured-sections {
122128
text-align: center;
123-
padding: 6rem;
129+
padding: 6rem 0;
124130
}
125131

126132
.featured-sections h3, .featured-sections h2 {

doc-site/src/pages/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export default function Home() {
4545
box-shadow: none;
4646
background: linear-gradient(90deg, rgba(15, 16, 17, 0.6) 0%, rgba(1, 2, 66, 0.6) 100%);
4747
}
48+
@media only screen and (max-width: 641px) {
49+
.navbar__items--right {
50+
display: none;
51+
}
52+
}
4853
.navbar__inner {
4954
padding: 0 3rem;
5055
}

doc-site/src/pages/index.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@
4040
align-items: center;
4141
justify-content: center;
4242
margin: 4rem auto 4rem;
43+
text-align: center;
4344
a {
4445
font-size: 2rem;
4546
font-weight: bold;
4647
color: #ffffff;
4748
}
49+
@media only screen and (max-width: 600px) {
50+
a {
51+
padding: 0 2rem;
52+
}
53+
}
4854
}
4955

5056
@media screen and (max-width: 966px) {

doc-site/src/theme/DocSidebar/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
:root {
99
--collapse-button-bg-color-dark: #2e333a;
10+
overflow-x: hidden;
1011
}
1112

1213
@media (min-width: 997px) {

0 commit comments

Comments
 (0)