File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -521,16 +521,22 @@ body>footer a:hover {
521
521
padding-top : 1em ;
522
522
margin : .4em
523
523
}
524
+ .dojo-flex {
525
+ display : flex !important ;
526
+ flex-wrap : wrap ;
527
+ justify-content : center ;
528
+ margin : auto ;
529
+ }
524
530
525
531
.dojo {
526
- display : inline-block ;
527
- height : 300px ;
528
532
width : 45% ;
529
533
margin : 5px ;
530
534
padding : 15px 0 ;
531
535
background : #fff ;
532
536
position : relative ;
533
- text-align : center
537
+ text-align : center ;
538
+ display : block ;
539
+ height : auto
534
540
}
535
541
536
542
.dojo >p {
@@ -622,8 +628,7 @@ body>footer a:hover {
622
628
623
629
@media only screen and (min-width :560px ) {
624
630
.dojo {
625
- width : 220px ;
626
- height : 275px ;
631
+ width : calc (220px - 10px );
627
632
margin : 10px ;
628
633
}
629
634
.event {
Original file line number Diff line number Diff line change 8
8
= region
9
9
\- #{dojos.count} Dojos
10
10
.panel-collapse.collapse{:id => " collapse#{ index } " , :role => " tabpanel" }
11
- .panel-body.grayscale-bg
11
+ .panel-body.grayscale-bg.dojo-flex
12
12
= render partial: 'shared/dojo', collection: dojos
Original file line number Diff line number Diff line change 1
- %ul .loaded
1
+ %ul .loaded.dojo-flex
2
2
= render partial: 'shared/dojo', collection: regions_and_dojos.values.flatten
You can’t perform that action at this time.
0 commit comments