String replace in Sass

前端 未结 2 1273
独厮守ぢ
独厮守ぢ 2021-02-12 18:15

Sass 3.2.1

How to replace in string some part of text? For example, remove from color #fefefe a dash #, to be fefefe.

Thanks!

2条回答
  •  盖世英雄少女心
    2021-02-12 18:56

    Simple temporary solution (in my case for Mac):

    $ git clone -b string_functions https://github.com/chriseppstein/sass
    $ cd sass
    $ sudo rake install
    
    $ sudo mv /usr/bin/sass /usr/bin/sass.orig
    $ sudo ln -s /Library/Ruby/Gems/1.8/gems/sass-3.2.0.alpha.0/bin/sass /usr/bin/sass
    

提交回复
热议问题