forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_product.scss
More file actions
152 lines (127 loc) · 2.52 KB
/
_product.scss
File metadata and controls
152 lines (127 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
.page-product {
.product {
&__name {
margin-bottom: 2rem;
}
&__infos {
.accordion-button {
padding: 1.25rem 0;
font-size: 1.25rem;
font-weight: 700;
}
.accordion-body {
padding: 0;
}
}
&__images {
margin-bottom: 1rem;
.carousel {
overflow: hidden;
border-radius: 8px;
}
&__modal-opener {
position: absolute;
right: 0.635rem;
bottom: 0.635rem;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
min-width: 2.5rem;
height: 2.5rem;
cursor: pointer;
background-color: #fff;
border: none;
border-radius: 50%;
box-shadow: 0.125rem -0.125rem 0.25rem 0 rgb(0 0 0 / 20%);
}
}
&__description-short {
margin-bottom: 1.5rem;
}
&__tax-label {
margin-bottom: 1.5rem;
color: var(--bs-gray-700);
}
&__prices {
font-size: 1.25rem;
}
&__current-price {
font-weight: 700;
}
&__discount {
margin-left: 0.5rem;
color: var(--bs-gray-700);
}
&__price-regular {
text-decoration: line-through;
}
&__variants {
.variant {
margin-bottom: 1.5rem;
ul {
display: flex;
align-items: center;
li {
&:first-of-type {
span {
margin-left: 0;
}
}
}
}
.input-color {
display: none;
}
.color {
span {
font-size: 0;
}
}
}
}
&__add-to-cart {
margin-bottom: 2rem;
.product-actions__button button {
width: 100%;
}
}
&-pack__item {
border: 1px $gray-200 solid;
}
}
@include media-breakpoint-down(md) {
.carousel-control-next {
right: 1rem;
}
.carousel-control-prev {
left: 1rem;
}
.carousel-control-prev,
.carousel-control-next {
width: 3rem;
height: 3rem;
}
}
}
// Needs to be outside of the .page-product scope because it can be inside a modal
.thumbnails__container {
.thumbnail {
img {
border: 2px solid transparent;
border-radius: 8px;
}
&.active img {
border: 2px solid $primary;
}
}
}
// Hide product image zoom on quickview modal
body.modal-open {
.quickview {
.product__images__modal-opener {
display: none;
}
}
}