/** * Check if the media rule should be included * * @param \Crossjoin\Css\Format\Rule\AtMedia\MediaQuery $media_query * @return bool */ protected function isAllowedMediaRule(MediaQuery $media_query) { $type = $media_query->getType(); $condition = count($media_query->getConditions()); return ($type === MediaQuery::TYPE_ALL || $type === MediaQuery::TYPE_SCREEN) && $condition === 0; }