-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restyling and redefining fixtures for homepage, category, product and…
… Q&A pages
- Loading branch information
Showing
16 changed files
with
345 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
.carousel-wrapper { | ||
position: relative; | ||
|
||
.carousel { | ||
.products-carousel { | ||
margin: 0 -1em; | ||
} | ||
|
||
.carousel-nav { | ||
.carousel-left { | ||
.products-carousel-nav { | ||
.products-carousel-left { | ||
left: 30px; | ||
} | ||
|
||
.carousel-right { | ||
.products-carousel-right { | ||
right: 30px; | ||
} | ||
|
||
.carousel-left, .carousel-right { | ||
.products-carousel-left, .products-carousel-right { | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
} | ||
} | ||
|
||
.carousel-item { | ||
.products-carousel-item { | ||
padding: 5px 1em; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
import 'sylius/bundle/ShopBundle/Resources/private/entry'; | ||
import './styles.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.homepage-logo { | ||
border-radius: 6px; | ||
overflow: hidden; | ||
} | ||
|
||
.homepage-sale { | ||
img { | ||
width: 60% !important; | ||
margin: auto !important; | ||
border-radius: 20px; | ||
} | ||
} | ||
|
||
.cms_content_element__taxons-list { | ||
.ui.column { | ||
text-align: center; | ||
|
||
a { | ||
font-size: 14pt; | ||
font-weight: bold; | ||
} | ||
} | ||
} |
334 changes: 265 additions & 69 deletions
334
tests/Application/config/packages/bitbag_sylius_cms_plugin.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
.../templates/bundles/BitBagSyliusCmsPlugin/Shop/ContentElement/_products_carousel.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% set tag = random(0, 1000) %} | ||
<div class="{{ content_element_base_class }}__products-carousel"> | ||
<div class="carousel-wrapper"> | ||
<div class="products-carousel products-carousel-{{ tag }}"> | ||
{% for product in products %} | ||
<div class="products-carousel-item"> | ||
{% include '@SyliusShop/Product/_box.html.twig' %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="products-carousel-nav"> | ||
<button class="products-carousel-left products-carousel-left-{{ tag }} ui huge black icon button"> | ||
<i class="left arrow icon"></i> | ||
</button> | ||
<button class="products-carousel-right products-carousel-right-{{ tag }} ui huge black icon button"> | ||
<i class="right arrow icon"></i> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
window.addEventListener('load', function () { | ||
$('.products-carousel-{{ tag }}').slick({ | ||
infinite: true, | ||
slidesToShow: 4, | ||
slidesToScroll: 1, | ||
prevArrow: $('.products-carousel-left-{{ tag }}'), | ||
nextArrow: $('.products-carousel-right-{{ tag }}'), | ||
appendArrows: false, | ||
}); | ||
}) | ||
</script> |
7 changes: 7 additions & 0 deletions
7
...tion/templates/bundles/BitBagSyliusCmsPlugin/Shop/ContentElement/_products_grid.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="{{ content_element_base_class }}__products-grid"> | ||
<div class="ui four doubling cards"> | ||
{% for product in products %} | ||
{% include '@SyliusShop/Product/_box.html.twig' %} | ||
{% endfor %} | ||
</div> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...ation/templates/bundles/BitBagSyliusCmsPlugin/Shop/ContentElement/_single_media.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="{{ content_element_base_class }}__single-media"> | ||
<div style="border-radius: 4px; overflow: hidden"> | ||
{{ media.renderedContent }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters