Reduce the weight of a Glyphicon

后端 未结 4 834
抹茶落季
抹茶落季 2021-02-14 11:33

Is there a way to reduce the \"weight\" of Glyphicons?

I am using the \"ok\" Glyphicon which disp

4条回答
  •  醉酒成梦
    2021-02-14 12:09

    Works on Different background-color.

    $(document).ready(function() {
        $( "[.fas || .glyphicon]" ).each(function( index ) {
          var color = $(this).parent().css("background-color");
          $(this).css("-webkit-text-stroke","2px "+color)
        });
    });
    

    Notice : choose one of .fas or .glyphicon .

提交回复
热议问题