Disable to focus text

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Disable to focus text

Post by Zoe69 » Sat Sep 16, 2017 3:28 am

Hi,

When I approach with mouse cursor to text "Your name:" the text changes from white to orange...
I want to turn off this setting so that text stays white.
https://ctrlv.cz/shots/2017/09/16/63CJ.png

I modify the basic template prosilver.

PS:
In the file "colours.css" I have not found a separate color for this setting.


Please help.

janus_zonstraal
Registered User
Posts: 1628
Joined: Sat Aug 30, 2014 1:30 pm

Re: Disable to focus text

Post by janus_zonstraal » Sat Sep 16, 2017 5:52 am

Than you have to give it a separate name like "label_1"
And place that in the colours.css =>
label_1 {
color: #3e6155;
}
Sorry! My English is bat ;) !!!

User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Re: Disable to focus text

Post by Zoe69 » Sat Sep 16, 2017 12:54 pm

But I have to set in another file so that the color of ("label_1"> "colours.css") was used for a web page? or not?


if I understand it badly, and only "colours.css" editing is needed .
You can change my file and upload it to pastebin please thx. (with your change "label_1")

Here is my file "colours.css"
https://pastebin.com/raw/tRtDL3ER

janus_zonstraal
Registered User
Posts: 1628
Joined: Sat Aug 30, 2014 1:30 pm

Re: Disable to focus text

Post by janus_zonstraal » Sat Sep 16, 2017 1:08 pm

But I have to set in another file so that the color of ("label_1"> "colours.css") was used for a web page? or not?
Yes in your style template/memberlist_email.html

This lines
<dt><label for="name">{L_SENDER_NAME}{L_COLON}</label></dt>
<dd><input class="inputbox autowidth" type="text" name="name" id="name" size="50" tabindex="2" value="{NAME}" /></dd>
Change label in label_1 and edit the colours.css
Sorry! My English is bat ;) !!!

User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Re: Disable to focus text

Post by Zoe69 » Sat Sep 16, 2017 1:15 pm

So I found out that this solution does not work for me...
Or I'm doing something wrong :cry:



memberlist_email.html (Short version)

Code: Select all

<dl>
<dt><label.test1 for="name">{L_SENDER_NAME}{L_COLON}</label.test1></dt>
<dd><input class="inputbox autowidth" type="text" name="name" id="name" size="50" tabindex="2" value="{NAME}" /></dd>
</dl>
colours.css (Short version)

Code: Select all

label.test1 {
color: #ff0dff;
}

User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Re: Disable to focus text

Post by Zoe69 » Mon Sep 18, 2017 3:21 am

Or do I have to change something else in another file/files?

janus_zonstraal
Registered User
Posts: 1628
Joined: Sat Aug 30, 2014 1:30 pm

Re: Disable to focus text

Post by janus_zonstraal » Mon Sep 18, 2017 6:18 am

Did you purge the cache?

A link to you board will be helpful
Sorry! My English is bat ;) !!!

User avatar
Steve
Registered User
Posts: 992
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Disable to focus text

Post by Steve » Mon Sep 18, 2017 8:09 am

label.test1 is wrong label class="test1" would be correct ?

User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Re: Disable to focus text

Post by Zoe69 » Mon Sep 18, 2017 2:21 pm

(Test site)
http://anime-lovers.8u.cz/memberlist.ph ... ntactadmin

(label class="test1") This solution also does not work :cry: :cry:

User avatar
Steve
Registered User
Posts: 992
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Disable to focus text

Post by Steve » Mon Sep 18, 2017 2:42 pm

have your purged the forums cache? none of them form fields have a class="" with in a label.

User avatar
3Di
Registered User
Posts: 11698
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: Disable to focus text

Post by 3Di » Mon Sep 18, 2017 2:51 pm

<label class="test1"> is ok.

in colours.css after label ADD on a newline

Code: Select all

.test1 {
	color: #ffffff;
}
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Re: Disable to focus text

Post by Zoe69 » Mon Sep 18, 2017 3:48 pm

I'm probably stupid and still doing something wrong :mrgreen:
because it still does not work :roll:


I have edited these two files:
colours.css
https://pastebin.com/raw/2eHxaWDg (3x option)

memberlist_email.html
https://pastebin.com/raw/ZSR9akdM (rename label to test1)

(Test site)
http://anime-lovers.8u.cz/memberlist.ph ... ntactadmin

User avatar
Raul [ThE KuKa]
Jr. Extension Validator
Posts: 3606
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: Disable to focus text

Post by Raul [ThE KuKa] » Mon Sep 18, 2017 4:59 pm

Zoe69 wrote:
Sat Sep 16, 2017 3:28 am
Hi,

When I approach with mouse cursor to text "Your name:" the text changes from white to orange...
I want to turn off this setting so that text stays white.
https://ctrlv.cz/shots/2017/09/16/63CJ.png
Hello,

But for this I should add a hover to CSS?
For example, if you used this on CSS file:

Code: Select all

.test1 {
	color: #FFFFFF;
}
Add after:

Code: Select all

.test1:hover {
	color: #F7FE2E;
}
I do not know if I read too fast, but I think it should be that ... :?
If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
phpBB International Support Team (Spanish - Español) :flag_es: Online Since 2003
🎨phpBB Professional Premium Themes🔥
Author Translations (Spanish - Spain) :two_hearts:

:warning: I don't support those without the copyright Spanish translation. :warning:

User avatar
Steve
Registered User
Posts: 992
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Disable to focus text

Post by Steve » Mon Sep 18, 2017 5:41 pm

This is wrong:
<dt><test1 for="name">
Should be:
<dt><label class="test1">

User avatar
Zoe69
Registered User
Posts: 10
Joined: Thu Aug 31, 2017 11:36 am

Re: Disable to focus text

Post by Zoe69 » Tue Sep 19, 2017 1:30 am

Thank you all for your help, but it is still not work.
I don't know the advanced editing of the CSS code...

That's why I want to ask if someone is willing and will show me the right solution thx. :roll:
I will send any access to FTP to PM.

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests