-
AuthorPosts
-
wolfix Friend
wolfix
- Join date:
- March 2007
- Posts:
- 75
- Downloads:
- 8
- Uploads:
- 3
- Thanks:
- 21
- Thanked:
- 6 times in 2 posts
February 20, 2014 at 4:04 pm #195010Hi,
I’ve re-positioned the nav bar under the logo…
I’d like to change the height of the nav bar but can’t find the css setting with firebug or chrome properties.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
February 20, 2014 at 5:13 pm #523632Within your custom.css file, try adding the following rule . . .
.navbar {
height: 30px;
}Of course, you can play around with the pixel value until you arrive at the display you’re most happy with.
You will then also want to add an additional rule (within custom.css) as follows:
.navbar-collapse {
max-height: 30px;
Again, you can play around with the pixel value until you arrive at the display you’re most happy with.
Hope That Helps
1 user says Thank You to TomC for this useful post
wolfix Friendwolfix
- Join date:
- March 2007
- Posts:
- 75
- Downloads:
- 8
- Uploads:
- 3
- Thanks:
- 21
- Thanked:
- 6 times in 2 posts
February 20, 2014 at 6:33 pm #523639Thanks Tom, that worked…
Now I need to reduce the height of the box that displays the little white line under the active link… I’ve tried several things but I’m missing something.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
February 21, 2014 at 2:11 pm #523770You can try to put these css rules into the custom.css that Tom suggested above:
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
height: 45px;
}Adjust the height until you get perfect result.
wolfix Friendwolfix
- Join date:
- March 2007
- Posts:
- 75
- Downloads:
- 8
- Uploads:
- 3
- Thanks:
- 21
- Thanked:
- 6 times in 2 posts
February 24, 2014 at 3:33 pm #524144Thanks Leo!
wolfix Friendwolfix
- Join date:
- March 2007
- Posts:
- 75
- Downloads:
- 8
- Uploads:
- 3
- Thanks:
- 21
- Thanked:
- 6 times in 2 posts
February 24, 2014 at 4:00 pm #524150<em>@Leo Burnetts 412630 wrote:</em><blockquote>You can try to put these css rules into the custom.css that Tom suggested above:
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
height: 45px;
}Adjust the height until you get perfect result.</blockquote>
Thanks Leo…
Everything but the “hover” works.
Any ideas?
Hieu Nguyen AdminHieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
February 24, 2014 at 5:56 pm #524161Why not play around with “variables.less”?
Open “less/variables.less” and find this:
@navbar-height: 55px;
Change “55px” to your prefer value.
By doing that, Off-canvas toggle, Logo, Menu Item, Search on the Header will automatically change to fit the new Navbar Height.
For example, if your new Navbar Height is “50px”, then the Off-canvas toggle size will be 50px * 50px. 🙂
Note: Remember to turn on “Developer Mode” while working with LESS. When you finish, turn it off and rebuild “Less to CSS”.
wolfix Friendwolfix
- Join date:
- March 2007
- Posts:
- 75
- Downloads:
- 8
- Uploads:
- 3
- Thanks:
- 21
- Thanked:
- 6 times in 2 posts
February 24, 2014 at 6:48 pm #524165Thanks for the reply Hieu!
I’m not familiar with the following concepts or features:
1) less/variables.less
2) off-canvas toggle
3) using Developer Mode while working with Less
4) rebuilding “Less to CSS.I’ll start by reading through http://www.joomlart.com/documentation/joomla-templates/purity-iii
If you have any direct documentation links to the list above, please reply.
Thanks!
Hieu Nguyen AdminHieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
February 24, 2014 at 7:10 pm #524168As you might know that Purity III is build on top of T3 Framework V3, so it’s really important that you have some basic knowledge about T3 Framework, Bootstrap and LESS.
T3 Framework documentation can be found here:
http://t3-framework.org/documentation.html
Bootstrap Documentation:
and LESS:
For a “variables.less” part in my previous reply, my advice is “don’t be afraid to try”! It’s really easy and simple! You can switch back to the default value anytime you want.
Tip: Backup “variable.less” by chaging its name to “variable.less.original” in case you want to look at the default variable’s value.
I will explain further if you have any questions. But you should try first. That’s the best way to learn something new! 🙂
1 user says Thank You to Hieu Nguyen for this useful post
-
AuthorPosts
This topic contains 9 replies, has 4 voices, and was last updated by Hieu Nguyen 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum