Beispiel #1
0
 /**
  * Returns all of the queued CSS.
  *
  * @static
  * @return string
  */
 public static function get_queued_css()
 {
     $css = self::$_css;
     if (self::$_hires_css) {
         if ($css) {
             $css .= NL;
         }
         $css .= '@media only screen and (-moz-min-device-pixel-ratio: 1.5),' . NL . 'only screen and (-o-min-device-pixel-ratio: 3/2),' . NL . 'only screen and (-webkit-min-device-pixel-ratio: 1.5),' . NL . 'only screen and (min-device-pixel-ratio: 1.5),' . NL . 'only screen and (min-resolution: 1.5dppx) {' . NL . self::$_hires_css . NL . '}';
     }
     // clear out the queue
     self::$_css = '';
     self::$_hires_css = '';
     return $css;
 }