Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2015, 02:34 PM
itsRahul itsRahul is offline
 
Join Date: Oct 2011
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to change Loginbox text color while user is typing?

I have installed a theme which looks nice except for the fact that the login box text is black, while the background is black. The "username/password" default values are a light white/grey color, but as soon as you click the box to start typing, it becomes black.

I successfully changed the password to the desired color by adding color="#8e9fb3" to the code under style manager -> <theme name> -> header.

I opened up the Element Inspector in Firefox to view the login box html. After applying it to the login box, it looks fine at first.
Then when the user selects the box to type in a username, this appears "style = color: rgb(0,0,0)" at the end of the navbar_username code. I can't find this anywhere but I know that it's overwriting the text color or something to make it black upon user selection. Can anyone help me fix this?
Reply With Quote
  #2  
Old 08-13-2015, 05:01 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In additional.css find

.loginBoxInput
and
.loginInput

Change as you like, actually if understand what you want, you must change background: in .loginBoxInput
Reply With Quote
  #3  
Old 08-13-2015, 09:16 PM
itsRahul itsRahul is offline
 
Join Date: Oct 2011
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what my additional.css says

.loginBoxInput {
background:url({vb:stylevar imgdir_themedir}/loginBoxInput.gif) no-repeat top left;
width:129px;
height:28px;
}
.loginInput {
background:transparent;
border:0;
color: #8e9fb3;
font-size:12px;
width:119px;
padding:0 5px;
height:28px;
line-height:28px;
}

Removing this line:background:url({vb:stylevar imgdir_themedir}/loginBoxInput.gif) no-repeat top left;
changed nothing. The entire top/header has a dark color so it's ok if the boxes are black. I just want the font to appear light when typing. Before the user selects a box, the default text "Username/password" are in light, readable text.

I don't understand why the color: #8e9fb3 gets overwritten from user selecting the box. How do I find the area that's overwriting on user click?
Reply With Quote
  #4  
Old 08-14-2015, 07:07 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah, well in .loginInput and color: #8e9fb3; you have, is for default text and when selected only for code, for user name is in Style Variable Editor, scroll and find Forms see input_color Try this than.

These will take effect and other places
Reply With Quote
  #5  
Old 08-14-2015, 05:31 PM
itsRahul itsRahul is offline
 
Join Date: Oct 2011
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stratis View Post
ah, well in .loginInput and color: #8e9fb3; you have, is for default text and when selected only for code, for user name is in Style Variable Editor, scroll and find Forms see input_color Try this than.

These will take effect and other places
That worked. Thank you!

On another note though, since this applies everywhere, do you know how I can modify this to only apply to the login? Or can I add something in additional.css to do the same thing?
Reply With Quote
  #6  
Old 08-19-2015, 04:06 PM
itsRahul itsRahul is offline
 
Join Date: Oct 2011
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have any tips?
Reply With Quote
  #7  
Old 08-19-2015, 04:40 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried adding !important to the color e.g.

Code:
color: #8e9fb3 !important;
Reply With Quote
Благодарность от:
CAG CheechDogg
Reply


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 04:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07980 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete