I have found there is syntax for desktop devices is
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) { }
But i need media query for 768px to 1240px desktop version only. Any one have idea about min & max condition for that media query.
asked Aug 23, 2019 at 5:47
Mage2 Developer
1,5231 gold badge19 silver badges37 bronze badges
-
Please check your custom theme "_variable.less" file there you will get exact idea about syntax with this variable used in that.Sarfaraj Sipai– Sarfaraj Sipai2019年08月23日 05:53:57 +00:00Commented Aug 23, 2019 at 5:53
-
I know about variables, i need syntax.Mage2 Developer– Mage2 Developer2019年08月23日 05:55:39 +00:00Commented Aug 23, 2019 at 5:55
1 Answer 1
You can use as below code in your less file:
@media (min-width: 768px) and (max-width:1240) { width: 75%; //your css goes here}
answered Aug 23, 2019 at 5:51
Dinesh Rajput
5534 silver badges18 bronze badges
default