LESS varible with string concatenation... is it possible?

2 views
Skip to first unread message

alota takada

unread,
Feb 16, 2016, 10:20:56 PM2/16/16
to LESS - Leaner CSS
Corresponding StackOverflow: http://stackoverflow.com/questions/35445551/less-css-string-variable-concatination?noredirect=1#comment58589295_35445551

I have a LESS variable in a file called "variable.less" that looks like:

@maxcdn-heroku-ssl: "https://heroku-mywebsite.netdna-ssl.com";

I'm trying to import that variable into a separate LESS file and use it as so:

@import "variables.less";
.guide {
    background-image:url(@maxcdn-heroku-ssl+/public/image/Logo.default/Logo@2x.png);

This gives me the following error:

expected ')' got '+'

Can someone provide guidance on how to do this properly. Thanks


Reply all
Reply to author
Forward
0 new messages