summaryrefslogtreecommitdiff
path: root/StoneIsland/www/css
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-10-14 18:02:31 +0200
committerJules Laplace <julescarbon@gmail.com>2019-10-14 18:02:31 +0200
commitfb383f5bdca2dc3865daa7e749fe5a340151cf7d (patch)
tree89cd1c4df7c935da50b692819cd83d10ccd13608 /StoneIsland/www/css
parent67da30b4d76f569785da7a1ce86fa822bafddcfa (diff)
using native selects instead of the html selector for sizes
Diffstat (limited to 'StoneIsland/www/css')
-rwxr-xr-xStoneIsland/www/css/products.css22
1 files changed, 17 insertions, 5 deletions
diff --git a/StoneIsland/www/css/products.css b/StoneIsland/www/css/products.css
index 63e9b020..5efef660 100755
--- a/StoneIsland/www/css/products.css
+++ b/StoneIsland/www/css/products.css
@@ -160,19 +160,31 @@
display: flex;
flex-direction: row;
}
-.product .size-color span {
- position:relative;
- box-sizing:border-box;
- padding: 0 12px;
+.product .size-color > div {
+ position: relative;
+ box-sizing: border-box;
height: 48px;
font-size: 1rem;
display: flex;
justify-content: center;
align-items: center;
}
-.product .size-color span.size {
+.product .size-color > div > div.label {
+ padding: 0 12px;
+ max-width: 6rem;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.product .size-color div.size {
border-right: 1px solid #444;
}
+.product .size-color > div > select {
+ position: absolute;
+ top: 0; left: 0;
+ width: 100%; height: 100%;
+ opacity: 0;
+}
.product .price {
display:table-cell;