title: Check if body tag hass class and apply css for certain class in media query
body: <p>How can I check if body tag has certain class and then apply some css to other class, but only if screen is small (in media query)?
  My body tag changes classes thry javascript and hass either class="menu" or class="menu menu-open".Now if screen is max-width:640px and class="menu" I need to add css for class="logo" (display: table, margin: 0 auto).
  How can I do that?</p>