Inheriting css class which is located in another file

后端 未结 2 868
Happy的楠姐
Happy的楠姐 2021-01-28 11:58

I am using bootstrap and less.

I want one of my class to inherit from a bootstrap class. The problem is I am using bootstrap from a cdn and don\'t want to have any boots

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-28 12:30

    You don't have to install anything. Just download the less file you want to use from GitHub and import it:

    @import (reference) "https://raw.githubusercontent.com/twbs/bootstrap/master/less/buttons.less";
    

    Less Import

    But I don’t think that's a good idea anyway. Less will have to request that file every time you compile.

提交回复
热议问题