Skip to content

Commit cb1e189

Browse files
committed
Refine lookbook block styling
1 parent cfb9c3c commit cb1e189

File tree

2 files changed

+97
-11
lines changed

2 files changed

+97
-11
lines changed

views/css/everblock.css

Lines changed: 86 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,112 @@
2525
}
2626
/* Lookbook product markers */
2727
.lookbook-marker {
28-
width: 2rem;
29-
height: 2rem;
28+
position: relative;
29+
width: 2.75rem;
30+
height: 2.75rem;
3031
border-radius: 50%;
3132
padding: 0;
3233
display: flex;
3334
align-items: center;
3435
justify-content: center;
36+
background-color: #fff;
37+
border: 3px solid #f25b76;
38+
box-shadow: 0 12px 24px rgba(242, 91, 118, 0.25);
39+
transition: transform 0.2s ease, box-shadow 0.2s ease;
40+
}
41+
42+
.lookbook-marker::after {
43+
content: "";
44+
display: block;
45+
width: 0.9rem;
46+
height: 0.9rem;
47+
border-radius: 50%;
48+
background-color: #f25b76;
3549
}
50+
51+
.lookbook-marker:focus,
52+
.lookbook-marker:hover {
53+
transform: scale(1.05);
54+
box-shadow: 0 16px 32px rgba(242, 91, 118, 0.35);
55+
}
56+
3657
.prettyblock-lookbook {
3758
width: 100%;
3859
display: grid;
39-
gap: 1rem;
60+
gap: 1.5rem;
61+
align-items: start;
4062
}
63+
4164
.prettyblock-lookbook.columns-2 {
42-
grid-template-columns: repeat(2, 1fr);
65+
grid-template-columns: repeat(2, minmax(0, 1fr));
4366
}
67+
4468
.prettyblock-lookbook.columns-3 {
45-
grid-template-columns: repeat(3, 1fr);
69+
grid-template-columns: repeat(3, minmax(0, 1fr));
70+
}
71+
72+
.prettyblock-lookbook .lookbook-item {
73+
display: flex;
74+
align-items: center;
75+
justify-content: center;
76+
}
77+
78+
.prettyblock-lookbook .lookbook-item--main {
79+
padding: 0 1.5rem;
80+
}
81+
82+
.lookbook-main-wrapper {
83+
max-width: 640px;
84+
margin: 0 auto;
85+
}
86+
87+
.lookbook-helper {
88+
display: inline-flex;
89+
align-items: center;
90+
gap: 0.75rem;
91+
padding: 0.75rem 1.5rem;
92+
border-radius: 999px;
93+
background-color: #fff;
94+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
95+
font-size: 0.95rem;
96+
color: #3a3a3a;
97+
}
98+
99+
.lookbook-helper-icon {
100+
display: inline-flex;
101+
align-items: center;
102+
justify-content: center;
103+
width: 2.5rem;
104+
height: 2.5rem;
105+
border-radius: 50%;
106+
background: linear-gradient(135deg, rgba(242, 91, 118, 0.12), rgba(242, 91, 118, 0.25));
107+
color: #f25b76;
108+
}
109+
110+
.lookbook-helper-svg {
111+
display: block;
112+
}
113+
114+
.lookbook-helper-text {
115+
font-weight: 600;
46116
}
117+
47118
@media (max-width: 767.98px) {
48119
.prettyblock-lookbook.columns-2,
49120
.prettyblock-lookbook.columns-3 {
50121
grid-template-columns: 1fr;
51122
}
52123
}
124+
125+
@media (min-width: 992px) {
126+
.prettyblock-lookbook {
127+
gap: 0;
128+
}
129+
130+
.prettyblock-lookbook .lookbook-item--main {
131+
padding: 0 3rem;
132+
}
133+
}
53134
/* Style pour le panier déroulant */
54135
.ever-shopping-cart .dropdown-menu.cart-dropdown-content {
55136
padding: 15px;

views/templates/hook/prettyblocks/prettyblock_lookbook.tpl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
{assign var=columns value=$block.settings.columns|default:'1'}
2626
<div class="prettyblock-lookbook columns-{$columns}{$prettyblock_visibility_class}"{if $prettyblock_lookbook_wrapper_style} style="{$prettyblock_lookbook_wrapper_style}"{/if}>
27-
<div class="lookbook-item">
27+
<div class="lookbook-item lookbook-item--before">
2828
{prettyblocks_zone zone_name="block-lookbook-{$block.id_prettyblocks}-before"}
2929
</div>
30-
<div class="lookbook-item">
30+
<div class="lookbook-item lookbook-item--main">
3131
{capture name='prettyblock_lookbook_inner_style'}
3232
{if isset($block.settings.default.bg_color) && $block.settings.default.bg_color}
3333
background-color:{$block.settings.default.bg_color|escape:'htmlall':'UTF-8'};
@@ -41,7 +41,7 @@
4141
<div class="row">
4242
{/if}
4343

44-
<div class="{if $block.settings.default.container|default:false}container{/if} text-center">
44+
<div class="{if $block.settings.default.container|default:false}container{/if} text-center lookbook-main-wrapper">
4545
{if $block.settings.title}
4646
<h2 class="mb-3">{$block.settings.title|escape:'htmlall':'UTF-8'}</h2>
4747
{/if}
@@ -59,8 +59,13 @@
5959
{/foreach}
6060
{/if}
6161
</div>
62-
<div class="mt-3">
63-
<small class="text-muted">{l s='Cliquez sur un point pour voir le produit' mod='everblock'}</small>
62+
<div class="lookbook-helper" role="note">
63+
<span class="lookbook-helper-icon" aria-hidden="true">
64+
<svg class="lookbook-helper-svg" width="20" height="20" viewBox="0 0 20 20" focusable="false" aria-hidden="true">
65+
<path d="M5 2.5a1 1 0 0 0-1 1v10.042a1 1 0 0 0 1.707.707l2.586-2.586 2.48 4.96a1 1 0 0 0 1.342.447l1.856-.928a1 1 0 0 0 .447-1.342l-2.48-4.96 3.293.658A1 1 0 0 0 16 8.52V3.5a1 1 0 0 0-1-1H5z" fill="currentColor"/>
66+
</svg>
67+
</span>
68+
<span class="lookbook-helper-text">{l s='Cliquez sur un point pour voir le produit' mod='everblock'}</span>
6469
</div>
6570
</div>
6671

@@ -69,7 +74,7 @@
6974
{/if}
7075
</div>
7176
</div>
72-
<div class="lookbook-item">
77+
<div class="lookbook-item lookbook-item--after">
7378
{prettyblocks_zone zone_name="block-lookbook-{$block.id_prettyblocks}-after"}
7479
</div>
7580
</div>

0 commit comments

Comments
 (0)