Bootstrap theme customization - Glyphicons
Posted: Wed Oct 28, 2015 10:17 am
Bootstrap -- great addition to AC and very glad to see it used. My attempt at customizations lead to some questions, though:
The Glyphicons that are used in the navigation (especially nice on mobile display/responsive sizing) are great.
There are a few that are referenced in the code, such as product finder, the phone for contact us, and logout. However, I want to add a few more to my navigation.
Looks like there's a couple of items to review:
1.) The bootstrap responsive style (see style.less) includes an import line:
@import "less/glyphicons.less";
Question: WHERE is that glyphicons.less file? I cannot see it anywhere in my installation.
2.) There's a copy of font files in the /App_Themes/Bootstrap_Responsive/fonts directory:
glyphicons-halfings-regular.eot, .svg, .ttf, .woff, and .woff2 versions.
Question: Has anyone tried to install these fonts locally? Is there any reference for these?
3.) "cheat sheets" with libraries of these available Glyphs seem to be available here: http://glyphicons.com/
Question: is this the accurate reference for the font files in #2 above?
When I attempt to update the code in style.less to use a different glyph, no dice.
For example, in style.less (starting around line 371), there's the following
Attempts to add new icons (for different menu items) fail:
- how should we customize these .less files to update with appropriate new icons?
- is there a reference sheet (similar to http://glyphicons.com/) that we can use?
And finally -- if I'm using .less incorrectly, please feel free to correct me!
Thanks!
The Glyphicons that are used in the navigation (especially nice on mobile display/responsive sizing) are great.
There are a few that are referenced in the code, such as product finder, the phone for contact us, and logout. However, I want to add a few more to my navigation.
Looks like there's a couple of items to review:
1.) The bootstrap responsive style (see style.less) includes an import line:
@import "less/glyphicons.less";
Question: WHERE is that glyphicons.less file? I cannot see it anywhere in my installation.
2.) There's a copy of font files in the /App_Themes/Bootstrap_Responsive/fonts directory:
glyphicons-halfings-regular.eot, .svg, .ttf, .woff, and .woff2 versions.
Question: Has anyone tried to install these fonts locally? Is there any reference for these?
3.) "cheat sheets" with libraries of these available Glyphs seem to be available here: http://glyphicons.com/
Question: is this the accurate reference for the font files in #2 above?
When I attempt to update the code in style.less to use a different glyph, no dice.
For example, in style.less (starting around line 371), there's the following
Code: Select all
.finder {
.glyphicon-search;
}
.contact {
.glyphicon-phone-alt;
}
.acct {
.glyphicon-user;
}
Code: Select all
.users {
.glyphicon-group;
}
.products {
.glyphicon-cart-in;
}
- is there a reference sheet (similar to http://glyphicons.com/) that we can use?
And finally -- if I'm using .less incorrectly, please feel free to correct me!
Thanks!