Skip to content

Instantly share code, notes, and snippets.

@alyssasgable
Created January 9, 2018 18:28
Show Gist options
  • Save alyssasgable/c6afd5747ad9be053933e41c1e708d66 to your computer and use it in GitHub Desktop.
Save alyssasgable/c6afd5747ad9be053933e41c1e708d66 to your computer and use it in GitHub Desktop.
How To Add Brand Logo Image to Fabric Tool [cushionsource.com]
In order to add a logo to the brand in the Fabric Tool on the cushionsource.com website you have to:
1. Add a case to ocg-platform/cms/template/shared/js/FabricTool.js
case 'BRAND NAME':
brandclass = 'abc' /** Here you will put a short abbreviation for the brand */
break;
2. Add a property to ocg-platform/cms/template/shared/css/fabric-tool.css
.ftBrand-abc {
.get-logo(abc); /** Use same abbreviation used in Step 1 */
width: ##px; /** Here you will set the width of image */
}
3. Get Trey/Joel to add file to directory. You need to provide them the short abbreviation so that the directory will match.
.get-logo(@logo, @size: s) {
background-image: url("{$const.HTTP_CMS_IMG}/resources/fabric-tool/brands/@{logo}-@{size}.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment