Skip to content

Commit 5f90bcb

Browse files
authored
Merge pull request #42341 from Arhell/com
fix community page horizontal scrolling
2 parents e5c723c + 8980c22 commit 5f90bcb

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;
@@ -231,7 +229,7 @@ body.cid-community .fullbutton {
231229
}
232230

233231
body.cid-community #videos {
234-
width: 100vw;
232+
width: 100%;
235233
max-width: initial;
236234
padding: 0.5em 5vw 5% 5vw; /* fallback in case calc() fails */
237235
background-color: #eeeeee;
@@ -325,7 +323,7 @@ body.cid-community .resourcebox {
325323

326324

327325
body.cid-community .community-section.community-frame {
328-
width: 100vw;
326+
width: 100%;
329327
}
330328

331329
body.cid-community .community-section.community-frame .twittercol1 {
@@ -431,4 +429,11 @@ body.cid-community #cncf-code-of-conduct h2:after {
431429
body.cid-community .community-section#meetups p:last-of-type {
432430
margin-bottom: 6em; /* extra space for background */
433431
}
432+
}
433+
434+
@media only screen and (max-width: 767px) {
435+
body.cid-community .community-section h2:before,
436+
body.cid-community .community-section h2:after {
437+
display: none;
438+
}
434439
}

0 commit comments

Comments
 (0)