View Full Version : Text box selected color
Cadellin
02-04-2010, 09:42 PM
Could someone tell me which stylevar/class controls the background color of a textbox when it's selected?
Additionally anyone know how to change the default color of text in the WYSIWYG editor?
Lynne
02-04-2010, 10:19 PM
I think you want to look these up in Search for Templates and they may tell you the stylevars and/or color:
body.wysiwyg
.editor_textbox textarea (or .editor_textbox iframe)
Cadellin
02-05-2010, 12:03 AM
I did as you said but I can't find anything that overrides the white background on focus.
Thanks anyway Lynne
Lynne
02-05-2010, 01:33 AM
Whoops, didn't notice it was on focus. I don't know that you can do anything on focus to the wysiwyg since it is an iframe, not a form input.
Cadellin
02-11-2010, 05:40 PM
Any further suggestions anyone?
What I'm trying to achieve is a dark theme for my WYSIWYG - which would involve changing the background to the WYSIWYG editor to #2c2c2c and changing the default text color to #fff.
Cadellin
06-21-2010, 07:13 PM
I found a solution to this in the end.
.wysiwyg, .formcontrols .blockrow .editor_textbox textarea:focus, .editor_textbox textarea, .editor_textbox iframe, body.wysiwyg {
color: #fff; /*Default Font Color */
background-color: #2c2c2c; /*WYSIWYG Background */
}
Casmos
10-15-2010, 07:07 PM
Yes,, it worked. I use only this part. Because all I needed was the WYSIWYG Background color changed thank you very much.
Put in additional.css
/*WYSIWYG Background */
body.wysiwyg {
background-color: #2c2c2c;
}
I found a solution to this in the end.
.wysiwyg, .formcontrols .blockrow .editor_textbox textarea:focus, .editor_textbox textarea, .editor_textbox iframe, body.wysiwyg {
color: #fff; /*Default Font Color */
background-color: #2c2c2c; /*WYSIWYG Background */
}
OurCouponHome
10-22-2010, 12:58 AM
I tried to add both of these codes into my additional CSS and neither have worked. I still have my static background showing as background in my member supplied text boxes (they should be white #ffffff). I can't figure this out and it it driving me insane. I had my somewhat "techie" hubby look at in and even he doesn't know what it going on. Any ideas? PLEASE!
Example:
http://www.ourcouponhome.com/showthread.php?26490-Hi-from-Garland-TX&p=196439#post196439
Yes,, it worked. I use only this part. Because all I needed was the WYSIWYG Background color changed thank you very much.
Put in additional.css
/*WYSIWYG Background */
body.wysiwyg {
background-color: #2c2c2c;
}
Lynne
10-22-2010, 01:49 AM
We can see no Quick Reply box on that page. If you want us to look, you should supply a test username/password.
OurCouponHome
10-22-2010, 09:30 AM
UserID: Techie
Password: password
Lynne
10-22-2010, 01:22 PM
Your Quick Reply currently has a black (#2C2C2C) background color and the text is white (#FFFFFF). That is set here in additional.css:
.wysiwyg,.formcontrols .blockrow .editor_textbox textarea:focus,.editor_textbox textarea,.editor_textbox iframe,body.wysiwyg{color:#fff;background-color:#2c2c2c;
although, note that you forgot the closing } above. That means the rest of your CSS in the additional.css file is not valid and won't show up.
OurCouponHome
10-22-2010, 02:27 PM
Not sure what happened because now our New Posts look like this
LichtMann
12-14-2010, 10:02 AM
Thank you it fixed my problem!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.