The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to change text colour in message box?

2 posters

Go down

How to change text colour in message box? Empty How to change text colour in message box?

Post by Log Tue 10 Jul - 16:32

Technical Details


Forum version : #ModernBB
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari, Other
Screenshot of problem : https://i.imgur.com/kkiNLYq.png
Who the problem concerns : All members
Forum link : http://bbforums.me

Description of problem

How do I change the colour from black to white in the message box (shown in the attached screenshot)? When in the BBCode editor mode, the text colour is fine. But when in the default editor mode, the text shows as black.

This is the CSS I have currently for the message box, if it helps at all:
Code:
#message-box textarea {
   color: #CCCCCC !important;
}
.sceditor-toolbar {
   background-color: #B8C0D1 !important;
}
.sceditor-container textarea {
   background-color: #242629 !important;
}
.sceditor-container {
   background-color: #242629 !important;
}

Thank you for your help.

Edit: For some reason the text is now also black even in the BBCode editor mode.
Edit 2: I believe the text is black no matter what when typing in the quick reply box. But when creating or editing a post, it's black in the normal editing mode but white in the BBCode editing mode.
Edit 3: I managed to fix the colour of the text in the quick reply box for the BBCode editor mode with the following code:
Code:
.sceditor-container iframe,.sceditor-container textarea {
   color: #CCCCCC !important;
}
But still no luck with changing the text colour for the default editing mode.
Log
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by tikky Wed 11 Jul - 0:34

Hey @Log,
Welcome to Forumotion Forum Support,
Use this JS, in all page
Code:
$(function() {
  $(function() {
    $(".sceditor-container iframe, .sceditor-container textarea")
      .contents()
      .find("head")
      .append(
        "<style>body,html,code:before,p,table{color:#FFFFFF!important;}</style>"
      );
  });
});

and this CSS
Code:
.sceditor-container iframe, .sceditor-container textarea {
  color: white!important;
}

like a shot,
pedxz How to change text colour in message box? 1f608


Last edited by pedxz on Mon 23 Jul - 1:51; edited 1 time in total (Reason for editing : remove the error)
tikky
tikky
Forumember

Posts : 923
Reputation : 160
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by Log Wed 11 Jul - 0:54

pedxz wrote:Hey @Log,
Welcome to Forumotion Forum Support,
Use this JS, in all page
Code:
$(function() {
  $(function() {
    $(".sceditor-container iframe, .sceditor-container textarea")
      .contents()
      .find("head")
      .append(
        "<style>body,html,code:before,p,table,{color:#FFFFFF!important;}</style>"
      );
  });
});

and this CSS
Code:
.sceditor-container iframe, .sceditor-container textarea {
  color: white!important;
}

like a shot,
pedxz How to change text colour in message box? 1f608

Thanks for your answer but I just tried adding both the JS and CSS but it did not seem to affect anything.
Log
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by tikky Wed 11 Jul - 1:01

Check if the JavaScript pages are active:
Modules > HTML & JAVASCRIPT > Javascript codes management, find this option Enable Javascript code management and select Yes
tikky
tikky
Forumember

Posts : 923
Reputation : 160
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by Log Wed 11 Jul - 1:03

pedxz wrote:Check if the JavaScript pages are active:
Modules > HTML & JAVASCRIPT > Javascript codes management, find this option Enable Javascript code management and select Yes

I did enable this before adding the JS code.
Log
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by Guest Wed 11 Jul - 3:13

Hello @Log

May you please open a section in which guest can post in your forum in order for us to make tests and give you a proper answer?

Thank you Smile
avatar
Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum