[#838] Use generate_medium_media_query instead of $*desktop_media_query

Fixes #838