LESS compile error

坚强是说给别人听的谎言 提交于 2019-12-05 16:59:21

Most frustrating thing about LESS is its less than helpful debug information.

It was a simple missing semicolon on line 57

    a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        font-family: @baseFontFamily    //missing semicolon
        font-size: 1.5em;
        color: @gray85;
        font-weight: 300;
        text-decoration: none;
        text-transform: uppercase;
        border-bottom: solid 1px @gray50;
    }
}

The corrected code worked fine

    a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        font-family: @baseFontFamily;
        font-size: 1.5em;
        color: @gray85;
        font-weight: 300;
        text-decoration: none;
        text-transform: uppercase;
        border-bottom: solid 1px @gray50;
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!