I think this is not possible, but you can write this format. If you are using the SASS css preprocessor.
For example, you can copy this code and paste in https://www.sassmeister.com/ - and watch the weekend
Sass
@media only screen and (max-width: 767px) { body{ color:red; } @media (orientation:portrait) { body{ color:green; } } @media (orientation:landscape) { body{ color:orange; } } }
CSS output
@media only screen and (max-width: 767px) { body { color: red; } } @media only screen and (max-width: 767px) and (orientation: portrait) { body { color: green; } } @media only screen and (max-width: 767px) and (orientation: landscape) { body { color: orange; } }
ShibinRagh Nov 13 '17 at 6:31 on 2017-11-13 06:31
source share