Skip to content

Commit

Permalink
Improve about tab mobile and tablet display
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Yorkley committed Jan 8, 2020
1 parent 578cfad commit 8a62cab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
6 changes: 1 addition & 5 deletions app/assets/stylesheets/darkswarm/shop_tabs.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

.tab-view {
margin-bottom: 5em;
padding: 0;
padding: 0.9375rem;
background: none;
border: none;

Expand Down Expand Up @@ -118,10 +118,6 @@
padding-bottom: 0.25rem;
font-size: 0.875rem;
}

@media all and (max-width: 640px) {
padding: 1em;
}
}
}
}
16 changes: 9 additions & 7 deletions app/views/shopping_shared/tabs/_about.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
%script{ type: "text/ng-template", id: "shop/about.html" }
.content#about{"ng-controller" => "AboutUsCtrl"}
.row
.small-12.large-8.columns
%img.hero-img-small{"ng-src" => "{{::shopfront.promo_image}}", "ng-if" => "::shopfront.promo_image"}
%p{"ng-bind-html" => "::shopfront.long_description"}
.small-12.large-4.columns
 
#about{"ng-controller" => "AboutUsCtrl"}
%img.hero-img-small{"ng-src" => "{{::shopfront.promo_image}}", "ng-if" => "::shopfront.promo_image"}
.content
.row
.small-12.columns
%p{"ng-bind-html" => "::shopfront.long_description"}
.small-12.large-4.columns
 

0 comments on commit 8a62cab

Please sign in to comment.