Skip to content

Commit

Permalink
Merge pull request #1640 from bookernath/STRF-7374
Browse files Browse the repository at this point in the history
Fix category header image size
  • Loading branch information
bookernath authored Feb 17, 2020
2 parents 25ee822 + e53db52 commit e7ed4ed
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/scss/components/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,6 @@

// Payment Methods
@import "stencil/paymentMethods/component";

// Categories
@import "stencil/category/component";
11 changes: 11 additions & 0 deletions assets/scss/components/stencil/category/_category.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// =============================================================================
// CATEGORY (CSS)
// =============================================================================


// Category header
// -----------------------------------------------------------------------------

.category-header-image {
width: 100%;
}
7 changes: 7 additions & 0 deletions assets/scss/components/stencil/category/_component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// =============================================================================
// CATEGORY
// =============================================================================


// Component
@import "category";
1 change: 1 addition & 0 deletions templates/pages/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
image=category.image
fallback_size=theme_settings.zoom_size
lazyload=theme_settings.lazyload_mode
class="category-header-image"
}}
{{/if}}
{{#unless theme_settings.hide_category_page_heading }}
Expand Down

0 comments on commit e7ed4ed

Please sign in to comment.