Less media-query variable returns ParseError: Expected ')'

Less media-query variable returns ParseError: Expected ')'

我刚开始使用 Less,现在我正在尝试将媒体查询转换为变量。我要的是这个:

@mobile: only screen and (max-width: 750px);
@media @mobile;{
    body {
        font-size: 30px;
    }
}

但是当我 运行 我的网站 returns 出现以下错误:

ParseError: Expected ')' in main.less on line 1, column 27:

1 - @mobile: only screen and (max-width: 750px);

我做错了什么? :-(

@mobile: ~"only screen and (max-width: 750px)";
@media @mobile {
    body {
        font-size: 30px;
    }
}