Перейти к содержимому


Фотография
- - - - -

css.less.gpeasy и base64


В теме одно сообщение

#1 CB9TOIIIA

CB9TOIIIA

Отправлено 28 May 2015 - 12:54

CSS:

.blockglav-4 { background: data-uri('../images/eyebrown.png') no-repeat scroll 48% 35% transparent; }

В итоге просто URL выходит... т.е. не в base64

 

А если:

.blockglav-4 { background: data-uri('../images/eyebrown.png'); }

Все верно :)

 

Вопрос можно ли как-то css.less.gpeasy это фишку добавить? или придется правила немного переписывать.


  • 0

#2 CB9TOIIIA

CB9TOIIIA

Отправлено 28 May 2015 - 12:58

Точно не понял, но вроде:

    $options = array(
            'compress'     => 1, // option - whether to compress
            'strictUnits'  => 0, // whether units need to evaluate correctly
            'strictMath'   => 0, // whether math has to be within parenthesis
            'relativeUrls' => 1, // option - whether to adjust URL's to be relative
            'numPrecision' => 4,
            'cache_method' => 0,
            'sourceMap'    => 0,
        );

Вроде помогло:

  'relativeUrls' => 1, // option - whether to adjust URL's to be relative

с относительными не хотел... хотя может магия O0


  • 0




Click to return to top of page in style!