How to change text colour in message box?

Go down

How to change text colour in message box?

Post by Log on July 10th 2018, 4:32 pm

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.
avatar
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

Re: How to change text colour in message box?

Post by pedxz on July 11th 2018, 12:34 am

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
avatar
pedxz
Forumember

Male Posts : 107
Reputation : 22
Language : speaker daemonium & português
Location : Lisboa, Portugal

http://ajuda.forumeiros.com/u62843

Back to top Go down

Re: How to change text colour in message box?

Post by Log on July 11th 2018, 12:54 am

@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

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

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

Re: How to change text colour in message box?

Post by pedxz on July 11th 2018, 1:01 am

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

Male Posts : 107
Reputation : 22
Language : speaker daemonium & português
Location : Lisboa, Portugal

http://ajuda.forumeiros.com/u62843

Back to top Go down

Re: How to change text colour in message box?

Post by Log on July 11th 2018, 1:03 am

@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.
avatar
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

Re: How to change text colour in message box?

Post by mpelmmc on July 11th 2018, 3:13 am

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
mpelmmc
Helper
Helper

Male Posts : 548
Reputation : 75
Language : Spanish and English
Location : Spain

http://asistencia.foroactivo.com/forum

Back to top Go down

Back to top


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