Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 06-01-2010, 08:04 PM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Navlinks CSS help neded please

Hi,

From searching these forums, I believe there is no stylevar for the navlinks left, right and bottom borders. So, I have located the CSS for the navlinks part of the forums, but I'm not quite sure how to go about adding stuff so it work how I want it to do, so if someone could guide me here, I'd be very greatful

I just want a 1px border to follow the rest of the forum's style. I'm using the stock template with colour changes, nothing else.

The code I have is this:

Code:
}
#navlinks {
	background: {vb:stylevar navlinks_background};
	_background-image: none;
	border-top: {vb:stylevar navlinks_border_top};
	padding: 6px;
	text-align: center;
	color: {vb:stylevar navlinks_color};
	font-size: 1em;
	clear:both;
}
Thanks

P.S. You know the small drop shadow that is to the left of the boxes on the main forum page? Can I add that to the border too? What is the correct name for that please?
Reply With Quote
  #2  
Old 06-03-2010, 08:15 PM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone any ideas on this please?
Reply With Quote
  #3  
Old 06-03-2010, 10:30 PM
Qwk86gn's Avatar
Qwk86gn Qwk86gn is offline
 
Join Date: Jan 2009
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The place you need to change the CSS is in vbulletin.css

Search for:
Code:
.navlinks {
Replace CSS with:
Code:
.navlinks {
    background: {vb:stylevar navlinks_background};
    border: {vb:stylevar navlinks_border_top};
    padding: {vb:stylevar padding} 0;
    text-align: center;
    color: {vb:stylevar navlinks_color};
    font-size: {vb:stylevar font-size};
    margin-top: 20px;
    margin-bottom: 20px;
    width:100%;
    clear:both;
    -moz-box-shadow: -2px 2px 2px {vb:stylevar shadow_color};
    -webkit-box-shadow: -2px 2px 2px {vb:stylevar shadow_color};
}
Then use stylevar navlinks_border_top to control the border around the nav links.

Use stylevar shadow_color to set the shadow color around the navlinks.
Reply With Quote
  #4  
Old 06-03-2010, 11:52 PM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Steve,

Thanks for the reply

Sadly, nothing happens. I already have specified a border colour (in the stylevar) for the top, I have it as 575757, and I'm using the default shadow. With that code, neither the shadow or the border show up.
Reply With Quote
  #5  
Old 06-04-2010, 12:50 AM
Qwk86gn's Avatar
Qwk86gn Qwk86gn is offline
 
Join Date: Jan 2009
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you looking in the correct template, vbulletin.css?

I tested this prior to posting here and it worked perfectly.

The code you gave above does not change the navlinks like you want. You must edit vbulletin.css template.
Reply With Quote
  #6  
Old 06-04-2010, 08:52 AM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, see my original post, that code is the original code from vbulletin.css. If I replace yours with mine, nothing happens.
Reply With Quote
  #7  
Old 06-04-2010, 11:43 AM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've uploaded a screenshot to show where and how it was added.
Attached Images
File Type: png vbulletin.css.png (16.7 KB, 0 views)
Reply With Quote
  #8  
Old 06-04-2010, 04:26 PM
Qwk86gn's Avatar
Qwk86gn Qwk86gn is offline
 
Join Date: Jan 2009
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I get your web address to check it out?

Do you have anything in your additional.css template?

Are you viewing the correct style when checking to see if it works, "vB4 Default Style"?
Reply With Quote
  #9  
Old 06-04-2010, 06:38 PM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Steve, it was me, I must have done something wrong, so I reverted the template and redid it and it worked this time.

Can I just ask, if I want to add the shadow to any future items, is it just a case of adding those two lines to the end of the css for those particular areas?

Code:
    -moz-box-shadow: -2px 2px 2px {vb:stylevar shadow_color};
    -webkit-box-shadow: -2px 2px 2px {vb:stylevar shadow_color}
Thanks for your help
Reply With Quote
  #10  
Old 06-04-2010, 08:13 PM
Qwk86gn's Avatar
Qwk86gn Qwk86gn is offline
 
Join Date: Jan 2009
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it working!

Yes you can use the shadows just about anywhere.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04254 seconds
  • Memory Usage 2,254KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete