Less v2 does not compile Twitter's Bootstrap 2.x

前端 未结 5 2105
挽巷
挽巷 2020-12-05 17:30

When compiling Twitter\'s Bootstrap 2.3.2. with Less 2 i found to following error:

NameError: #grid > .core > .span is undefined in /home/bootstrap-2.3         


        
5条回答
  •  庸人自扰
    2020-12-05 18:01

    In the less/navbar.less file:

    Replace:

    .navbar-static-top .container,
    .navbar-fixed-top .container,
    .navbar-fixed-bottom .container {
      #grid > .core > .span(@gridColumns);
    }
    

    With:

    .navbar-static-top .container,  
    .navbar-fixed-top .container,
    .navbar-fixed-bottom .container { 
    width: (@gridColumnWidth * @gridColumns) + (@gridGutterWidth * (@gridColumns - 1));
    }
    

    See also: Overriding class definitions with Less

提交回复
热议问题