Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

35 - Home styling responsiveness #62

Merged
merged 7 commits into from
Apr 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/css/homepage.css

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions includes/class-amp-travel-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ public function render_block_activity_list( $attributes ) {
<h3 class='bold h1 line-height-2 mb2 xs-hide sm-hide center'>" . esc_attr( $heading ) . '</h3>
</div>';
}
$output .= "<div class='overflow-scroll'>
<div class='travel-overflow-container'>
$output .= "<div class='travel-overflow-container'>
<div class='flex justify-center p1 md-px1 mxn1'>";

foreach ( $activities as $activity ) {
Expand All @@ -293,7 +292,6 @@ public function render_block_activity_list( $attributes ) {
}

$output .= '</div>
</div>
</div>
</section>';
return $output;
Expand Down
8 changes: 3 additions & 5 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ function amp_travel_get_popular_adventures( $adventures, $attributes ) {
</header>';
}

$output .= '<div class="overflow-scroll">
<div class="travel-overflow-container">
$output .= '<div class="travel-overflow-container">
<div class="travel-overflow-wrap flex px1 md-px2 mxn1">';

$popular_classes = array(
Expand Down Expand Up @@ -132,9 +131,8 @@ function amp_travel_get_popular_adventures( $adventures, $attributes ) {
}

$output .= '</div>
</div>
</div>
</section>';
</div>
</section>';

return $output;
}
Expand Down