Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Commit df5fd99

Browse files
authored
Merge pull request #2690 from romulomachado/make-meetups-responsive
Make meetups page responsive
2 parents 6cccbcf + 7b038f3 commit df5fd99

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

source/community/meetups.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Meetups"
3+
responsive: true
34
---
45

56
<h1>Meetups Around the World</h1>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
body.community_meetups_index.responsive > #content-wrapper {
2+
width: 100%;
3+
max-width: 960px;
4+
margin: 0 auto;
5+
}
6+
7+
body.community_meetups_index.responsive #content {
8+
width: 90%;
9+
}
10+
11+
@media screen and (max-width: 460px) {
12+
.meetups .columns {
13+
margin: 0;
14+
}
15+
16+
.meetups tr {
17+
width: 100%;
18+
display: block;
19+
}
20+
21+
.meetups td {
22+
width: 100%;
23+
display: block;
24+
}
25+
}

source/stylesheets/site.css.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
@import 'components/security';
2222
@import 'components/sponsors';
2323
@import 'components/logos';
24+
@import 'components/meetups';
2425

2526
@mixin width-for-columns($cols) {
2627
width: $cols * $col-width + ($cols - 1) * $col-spacing;
@@ -1366,6 +1367,12 @@ body.community_meetups #content {
13661367
width: 221px;
13671368
height: 185px;
13681369
margin: -35px 20px 0 auto;
1370+
1371+
@media screen and (max-width: 460px) {
1372+
float: none;
1373+
width: 100%;
1374+
background-repeat: no-repeat;
1375+
}
13691376
}
13701377
p {
13711378
text-align: left;

0 commit comments

Comments
 (0)