Various fix and optimization to the core.less and media_queries.less