Skip to content

Commit 4afc622

Browse files
authored
Merge pull request #388 from awesomemotive/issue/397-product-image-gallery-misalignment-layout-6
Fix Firefox-specific product gallery misalignment
2 parents 95e4f54 + f4cd47e commit 4afc622

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

assets/sass/plugins/woocommerce/_single-product.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,19 @@
8585
}
8686
.flex-viewport{
8787
width: calc(100% - 85px);
88+
@supports (-moz-appearance: none) {
89+
width: 100%;
90+
}
8891
}
8992
.flex-control-thumbs {
9093
order: -1;
9194
flex-direction: column;
95+
@supports (-moz-appearance: none) {
96+
position: absolute;
97+
left: 0;
98+
top: 50%;
99+
transform: translateY(-50%);
100+
}
92101

93102
li {
94103
width: 65px;
@@ -101,9 +110,19 @@
101110
}
102111
.flex-nav-prev {
103112
left: calc(80px + 30px);
113+
@supports (-moz-appearance: none) {
114+
left: 20px;
115+
top: 50%;
116+
transform: translateY(-50%);
117+
}
104118
}
105119
.flex-nav-next {
106120
right: 30px;
121+
@supports (-moz-appearance: none) {
122+
right: 105px;
123+
top: 50%;
124+
transform: translateY(-50%);
125+
}
107126
}
108127
}
109128
.gallery-showcase {
@@ -113,6 +132,12 @@
113132
.woocommerce-product-gallery {
114133
flex: 0 0 60%;
115134
max-width: 60%;
135+
@supports (-moz-appearance: none) {
136+
padding-left: 85px;
137+
img{
138+
width: 100%;
139+
}
140+
}
116141
}
117142
.entry-summary {
118143
flex: 0 0 40%;

0 commit comments

Comments
 (0)