mutian / Sublime-CSS-Format

CSS Formatting for Sublime Text
http://mutian.github.io/Sublime-CSS-Format/
MIT License
98 stars 27 forks source link

不能正常格式化less #32

Closed gucong3000 closed 9 years ago

gucong3000 commented 9 years ago
.btn-linear-gradient(@startColor:#555, @endColor:#333) {
    filter: e(%("progid:DXImageTransform.Microsoft.Gradient(StartColorStr='%d', EndColorStr='%d')", argb(@startColor), argb(@endColor)));
    background: linear-gradient(to bottom, @startColor, @endColor);
}

按“expand-bs”方式格式化,出错。期望括号内部分不换行

gucong3000 commented 9 years ago
// 字体加载
.font_face(@fontname, @url: "/css/fonts"){
    font-family: @fontname;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    @font-face {
        font-family: @fontname;
        src: url("@{url}/@{fontname}.eot");
        src: url("@{url}/@{fontname}.eot?#iefix") format("embedded-opentype"), url("@{url}/@{fontname}.woff") format("woff"), url("@{url}/@{fontname}.ttf") format("truetype"), url("@{url}/@{fontname}.svg#iconfont") format("svg");
    }
}

// “分享到”功能相关图标
// 微博
// 微信
// 人人
// 信封
// Facebook
// QQ空间
.icon-shareto(@color: #000, @bgColor: #fff){
    .font_face("shareto");
    background-color: @bgColor;
    border-radius: 99em;
    line-height: 110px;
    font-weight: normal;
    font-style: normal;
    font-size: 80px;
    display: block;
    color: @color;
    height: 110px;
    width: 110px;
}
mutian commented 9 years ago

已经修复,请更新至最新版本

gucong3000 commented 9 years ago

最新版本测试正常