Hi everyone
We would like to further customize the babylon theme and are wondering what is the best way to override $bodyBgColor to avoid maintenance issues.
According to the original location of $bodyBgColor (sass/layout/_variables.sass) and the documentation the right place should be _layout_style.sass but this does not work.
Are we missing something?
Regarding maintenance issues: Is it okay to modify the _variables.scss and _theme_variables.scss files?
Thank you very much in advance!
Override $bodyBgColor
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
On layout, If you want to;
- change a color or padding or ... value(Exp; body color), please use sass/layout/_variable.scss; Exp: $bodyBgColor:red
- write css/scss rule, please use sass/_layout_styles.scss; Exp;
On theme, If you want to;
- change a color or padding or .. value(Exp;link color), please use sass/_theme_variable.scss; Exp: $linkColor: blue;
- write css/scss rule, please use sass/_theme_styles.scss.
On layout, If you want to;
- change a color or padding or ... value(Exp; body color), please use sass/layout/_variable.scss; Exp: $bodyBgColor:red
- write css/scss rule, please use sass/_layout_styles.scss; Exp;
Code: Select all
/* Add your customizations of layout here */
body {
> div {
color: red;
background-color: yellow;
...
}
}
- change a color or padding or .. value(Exp;link color), please use sass/_theme_variable.scss; Exp: $linkColor: blue;
- write css/scss rule, please use sass/_theme_styles.scss.
Github Profile: https://github.com/mertsincan
Hi
Thank you for your response!
Okay this is a bit confusing especially when reading the docs of babylon: "Updates usually require updating the layout and theme folders so your changes won't get effected during updates since they are kept in external files."
I would be really helpful if you could update the docs so that is easier to spot which files are allowed to update and when to use which file.
We spent many hours during a previous update of an older template so we really want to make sure that we can update this one without any maintenance issues.
Thank you in advance
Thank you for your response!
Okay this is a bit confusing especially when reading the docs of babylon: "Updates usually require updating the layout and theme folders so your changes won't get effected during updates since they are kept in external files."
I would be really helpful if you could update the docs so that is easier to spot which files are allowed to update and when to use which file.
We spent many hours during a previous update of an older template so we really want to make sure that we can update this one without any maintenance issues.
Thank you in advance
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Thanks a lot for the feedback! I'll create a folder named "overrides" and add 4 files; _layout_styles.scss, _theme_styles.scss, _layout_variables.scss and _theme_variables.scss. You can use them to override babylon variables or styles. When Babylon is released, you will not be affected.
Added for next release.
Added for next release.
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome! I released it for you. You can download new version from store.
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks a lot for the update!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests