Sub theming apigee_responsive & bootstrap version

Not applicable

I have created a sub-theme from apigee_responsive. I want to use the less files in my sub-theme to generate a new CSS so I can customise the look and feel of my protal. When I look at the supplied bootstrap.less file it expects a bootstrap distribution locally as it imports all of the bootstrap less files from '../bootstrap/less'.

I downloaded v4 & v3 from https://github.com/twbs/bootstrap.git. However the variables.less file that is in the sub-theme folder clearly comes from a different version of bootstrap as the github bootstrap files will not compile with it due to missing variables etc.

So the questions I have are:

Is the apigee_responsive variables.less file an apigee customised one or just from another version altogether ?

Is it safe to copy variables.less from one of the bootstrap versions I got from github and just customise that ?

0 3 259
3 REPLIES 3

estebansp
Participant II

Hi @mark.ferguson

Have you checked the readme.txt file in the less folder of the apigee_responsive theme? It talks a little about those files, including the variables.less file.

I think you'll find the answer to both your questions in there.

I hope this helps!

Regards.

Yes I did. The problem is more that the variables.less file I have in my sub-theme clearly does not match with the bootstrap version I downloaded to compile the less files against so I went ahead and copied the variables.less file from bootstrap and then applied my own styles to that. No adverse effect on the Apigee base theme as far as I can see.

If the less files that are copied by sub-theming rely on bootstrap less files being present on the file system then the instructions should tell us where to get the correct version of those from. I can't see any on the filesystem I have been looking at (Acquia is our hosting provider).

jyothikiranr
Participant IV

@mark.ferguson

Here is the documentation for the less approach of bootstrap sub-theming in D7

https://drupal-bootstrap.org/api/bootstrap/starterkits%21less%21README.md/group/subtheme_less/7

If you'd like to see the structure of sub-theme, take look at https://www.drupal.org/project/bootstrap

This could you give you the files you're looking for.