</head>
<body>
-<div id="news" class=" mt-5 flex ">
+<div id="select-product" class=" mt-5 flex ">
<div class="selected-wrapper p-12 flex-col">
<div class="selected-product flex">
- <div class="img">
+ <div class="img-product">
<img src="img/product.png" alt="">
</div>
- <div class="product-info flex-col ml-12">
- <p >Capteur de force</p>
- <p>Modèle 1220</p>
+ <div class="product-info flex-col ml-12 sm:ml-6">
+ <p class="product-txt" >Capteur de force</p>
+ <p class="product-txt">Modèle 1220</p>
+
+ <div class="flex number text-grey-dark">
+ <div class="number-input flex items-center">
+ Quantité
+ <button onclick="this.parentNode.querySelector('input[type=number]').stepDown()" ></button>
+ <input class="quantity" min="0" name="quantity" value="1" type="number">
+ <button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus"></button>
+ </div>
+ </div>
+ <p class="text-red mt-3">Supprimer</p>
+ </div>
+ </div>
+ <div class="selected-product mt-12 flex">
+ <div class="img-product">
+ <img src="img/product.png" alt="">
+ </div>
+ <div class="product-info flex-col ml-12 sm:ml-6">
+ <p class="product-txt" >Capteur de force</p>
+ <p class="product-txt">Modèle 1220</p>
+
+ <div class="flex number text-grey-dark">
+ <div class="number-input flex items-center">
+ Quantité
+ <button onclick="this.parentNode.querySelector('input[type=number]').stepDown()" ></button>
+ <input class="quantity" min="0" name="quantity" value="1" type="number">
+ <button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus"></button>
+ </div>
+ </div>
+ <p class="text-red mt-3">Supprimer</p>
+ </div>
+ </div>
+ <div class="selected-product mt-12 flex">
+ <div class="img-product">
+ <img src="img/product.png" alt="">
+ </div>
+ <div class="product-info flex-col ml-12 sm:ml-6">
+ <p class="product-txt" >Capteur de force</p>
+ <p class="product-txt">Modèle 1220</p>
<div class="flex number text-grey-dark">
<div class="number-input flex items-center">
Quantité
<button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus"></button>
</div>
</div>
- <p class="text-red">Supprimer</p>
+ <p class="text-red mt-3">Supprimer</p>
</div>
</div>
</div>
box-sizing: border-box !important
margin: 0
font-family: $muli
+#select-product
+ margin-left: 10vw
+ margin-right: 10vw
.selected-wrapper
background $lightgrey
+ width: 44.2vw;
+ @media (max-width 1080px)
+ width 100%
+ @media (max-width 499px)
+ padding 5vw!important
+.img-product
+ img
+ width 100%
-.number
- background: white
- padding 12px 8px
+.product-txt
+ margin-bottom: 0.75rem!important
input[type="number"] {
-webkit-appearance: textfield;
.number-input {
display: inline-flex;
+ padding 0px 12px
+ background white
}
.number-input,
box-sizing: border-box;
}
-.number-input button {
+.number-input button
outline:none;
-webkit-appearance: none;
background-color: transparent;
border: none;
align-items: center;
justify-content: center;
- width: 2.5rem;
- height: 2.5rem;
+ width: 2rem;
+ height: 2rem;
cursor: pointer;
margin: 0;
position: relative;
-}
+ @media (max-width : 499px)
+ width 1rem
+ height 1rem
.number-input button:before,
.number-input button:after {
position: absolute;
content: '';
width: 8px;
- height: 2px;
+ height: 1px;
background-color: $dark;
transform: translate(-50%, -50%);
}
transform: translate(-50%, -50%) rotate(90deg);
}
-.number-input input[type=number] {
+.number-input input[type=number]
font-family: sans-serif;
- max-width: 5rem;
+ max-width: 3rem;
padding: .5rem;
- font-size: 2rem;
- height: 3rem;
- font-weight: bold;
+ height: 2.5rem;
text-align: center;
-}
\ No newline at end of file
+ @media (max-width : 499px)
+ display block
+ max-width: 1rem;
+ padding: 0
+ height: 1rem
+ //margin-bottom: 0.25rem
+ line-height 0
+