Skip to content

Commit 8980c22

Browse files
committed
fix community page horizontal scrolling
1 parent 2c969da commit 8980c22

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

static/css/community.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ body.cid-community .community-section:first-child {
6262
body.cid-community #navigation-items {
6363
padding: 0.25em;
6464

65-
width: 100vw;
65+
width: 100%;
6666
max-width: initial;
6767

6868
margin-top: 2.5em;
@@ -117,7 +117,7 @@ body.cid-community .community-section#introduction > p {
117117

118118
body.cid-community #gallery {
119119
display: flex;
120-
max-width: 100vw;
120+
max-width: 100%;
121121
gap: 0.75rem;
122122
justify-content: center;
123123
margin-left: auto;
@@ -140,7 +140,7 @@ body.cid-community #gallery img.community-gallery-mobile {
140140

141141

142142
body.cid-community .community-section#events {
143-
width: 100vw;
143+
width: 100%;
144144
max-width: initial;
145145
margin-bottom: 0;
146146

@@ -154,7 +154,7 @@ body.cid-community .community-section#events {
154154
}
155155

156156
body.cid-community .community-section#values {
157-
width: 100vw;
157+
width: 100%;
158158
max-width: initial;
159159
background-image: url('/images/community/event-bg.jpg');
160160
color: #fff;
@@ -167,7 +167,7 @@ body.cid-community .community-section#values {
167167
}
168168

169169
body.cid-community .community-section#meetups {
170-
width: 100vw;
170+
width: 100%;
171171
max-width: initial;
172172
margin-top: 0;
173173

@@ -176,8 +176,6 @@ body.cid-community .community-section#meetups {
176176
background-repeat: no-repeat, repeat;
177177
background-size: auto 100%, cover;
178178
color: #fff;
179-
180-
width: 100vw;
181179
/* fallback in case calc() fails */
182180
padding: 5vw;
183181
padding-bottom: 1em;
@@ -229,7 +227,7 @@ body.cid-community .fullbutton {
229227
}
230228

231229
body.cid-community #videos {
232-
width: 100vw;
230+
width: 100%;
233231
max-width: initial;
234232
padding: 0.5em 5vw 5% 5vw; /* fallback in case calc() fails */
235233
background-color: #eeeeee;
@@ -321,7 +319,7 @@ body.cid-community .resourcebox {
321319

322320

323321
body.cid-community .community-section.community-frame {
324-
width: 100vw;
322+
width: 100%;
325323
}
326324

327325
body.cid-community .community-section.community-frame .twittercol1 {
@@ -422,4 +420,11 @@ body.cid-community #cncf-code-of-conduct h2:after {
422420
body.cid-community .community-section#meetups p:last-of-type {
423421
margin-bottom: 6em; /* extra space for background */
424422
}
423+
}
424+
425+
@media only screen and (max-width: 767px) {
426+
body.cid-community .community-section h2:before,
427+
body.cid-community .community-section h2:after {
428+
display: none;
429+
}
425430
}

0 commit comments

Comments
 (0)