collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 1041
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Background color blending  (Read 7523 times)

0 Members and 1 Guest are viewing this topic.

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Background color blending
« on: April 30, 2014, 12:22:42 PM »
For a while I've been putting up with this. My background is black, and the text is black when editing Simpleportal blocks with custom html.

I've been getting by by pasting from notepad, but enough is enough.. All I want to do is change the background color to white when editing a block. I'm not super skilled when it comes to editing css, but if I know where to look I can alter it with no problem.

Thanks, and I do like Simpleportal. :D

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #1 on: April 30, 2014, 12:58:16 PM »
This is really about customizing your theme.  And it is easy.
Here is what I did:

I used the F12 developers tools in my browser (IE, Chrome, Safari, and Firefox all have these) to figure out what that box is  -- I used the select tool.
I found out it has the class sp_text_editor

So here is what you do:
In your theme's main CSS file (probably index.css) add something like.
Code: [Select]
.sp_text_editor {
background-color: white;
}
and remember you will have to do this again the next time you update the theme.

An alternative would be to change the text color rather than the background color.
I leave that up to you.  Have fun!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #2 on: April 30, 2014, 02:24:15 PM »
No luck. I take it what you gave me is an override to the code in place?

I copied and pasted in the index.css I edited with notepad and added it.

I don't know how to use the "find" feature within the site so I downloaded the index.css from ftp, modified it, and re added it. I also did  a search for .sp figuring I'd find it if it was there. Not finding it, I manually added it.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #3 on: April 30, 2014, 02:59:52 PM »
Hmm.  My mistake.  I did not look closely enough.  perhaps the selector needs to be
.sp_text_editor textarea

This should, perhaps, override the setting for background-color for textarea.

Have you tried using the "computed" styles to see what is getting set where, and which settings override other settings?  It is very useful.  As I don't have a link to your website, I am still just guessing, and I might still be getting things wrong.

But if you keep using the developers tools to figure out which CSS "rule" to create, you will eventually succeed.

Good Luck, and Welcome to SimplePortal!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #4 on: April 30, 2014, 04:59:43 PM »
I think I may not have communicated things right. The only board that's like this is when I edit the custom html in the Simpleportal block Admin area.

Replying to threads and PM's in unaffected by this. They all have a white background and black text. The pic I showed was of the Admin area editing a block.

I don't know about the Developer's tools. I've never used them before. Here's a link to the site.
http://roguepinball.com/

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #5 on: April 30, 2014, 05:23:46 PM »
While using IE or Chrome, hit the "F12" key to start these developer tools.  You can also find the developer tools from your browser's menu.  I highly recommend these of tools.  They will really help you as you customize your website.

While I can see your website, of course I cannot see your block editor, so I cannot test this out for you.

I am not familiar with your theme, so I am only guessing.  You may have to do some sleuthing on your own.
However, I imagine that changing the background color or else the text color will work.

Code: [Select]
.sp_text_editor textarea {
background-color: white;
}
or
Code: [Select]
.sp_text_editor textarea{
color: white;
}

Looking at the page source, I can see the CSS files that are loaded from your custom theme directory.
Either one of these MIGHT BE a good place to add your new little bits of CSS to. You may have to do a little trial and error before you get it just right.
http://roguepinball.com/Themes/darkclassic/css/index.css
http://roguepinball.com/Themes/darkclassic/css/style.css

Have fun!  good luck!

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #6 on: April 30, 2014, 06:04:37 PM »
I know this is a really simple thing in terms of what has to be done, but with my knowledge it's like looking for a needle in a haystack. :-[

I tried adding that code(s) to both index and style .css with no effect. Does it matter where the code is added? What I mean by that is do I need to add it in a special section? I'm guessing as long as I don't cut into a "Subroutine" I'll be ok.  (Since I do VB for the games I create I'm imagining that the { } function as Sub and End Sub. I'm trying to liken it to what I know. :) )

I could get you a temporary login if you were interested. I have a "test member" I use that I could promote to Admin.

Edit: By the way the developer's tools look interesting. I never knew they were there.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #7 on: May 01, 2014, 08:47:14 AM »
Itchigo,

I would suggest putting any new CSS at the very end of one file or the other.
Then, I would use that "developer tool" to see how it gets applied to the textarea within the sp_text_editor.

Here is some information on using Chrome's developers tools to check this kind of thing out.
https://developers.google.com/chrome-developer-tools/docs/elements-styles?csw=1

And, also, you will benefit from learning just a little bit about working with CSS stylesheets.
http://www.w3schools.com/css/css_syntax.asp

You have the general idea about {}, only they aren't functions in CSS. You have a selector (which is to search for the part of HTML you want to style) and a block surrounded by {} that contains style declarations that should be applied when the selector is found in your HTML.

The thing is -- yes, it is straightforward in terms of what has to be done but no, it isn't as simple as we might like. So it might take a couple of tries to get it right, because maybe some style gets loaded later that will over-ride the style you put in index.css or style.css, and the "computed style pane" will show you all the selectors that are trying to style that one piece of CSS and which one "wins".  Or maybe I've made a bad choice of selector.


If you want me to look, please make a special admin account just for me to use, and PM me the details. Afterwards, demote  and change the password, or else delete the whole thing.  Be very careful about giving away the keys to your kingdom :)
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #8 on: May 06, 2014, 12:04:17 PM »
Hi Itchigo,

I did look at the blocks editor, and I see what you are talking about.

I started to create a new custom HTML block (but I did not save it)
Then I looked at the block editor page using the F12 developers tool, in the "Computed" tab, I see that you have set the color for textarea to white in index.css.  But then style.css loads AFTER index.css, and #content has a very dark background color.  Since that textarea has an id of #content, this overrides the setting in style.css.

To fix the problem, you could remove your custom CSS from index.css and put it in the end of style.css or else in portal.css instead.  That should work.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #9 on: May 06, 2014, 01:49:20 PM »
Well I tried. I tried doing that and no luck. I copied from the previous post. I even looked to see if it was using an image I could just "replace". It looks like there's a color gradient thing going on there, so I looked for code that pertained to that too.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #10 on: May 06, 2014, 02:23:52 PM »
background image -- good point.
How about, at the bottom of style.css,
Code: [Select]
.sp_text_editor textarea { background: white; }If that doesn't do it for every browser:
Code: [Select]
.sp_text_editor textarea {background-image: none; background: white; }
I suggest style.css because it loads AFTER index.css.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #11 on: May 08, 2014, 06:11:26 PM »
I tried both (individually) with both Style and Index.css. Do you think the selector's wrong?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #12 on: May 08, 2014, 07:24:21 PM »
It is possible.  Did you check with the developers tools?  The last time I looked, the selector was correct, but it was overridden by the other CSS file.  Next, I saw that the background-image was covering up the background-color.

Try again.  Each time, look to see if the selector catches anything.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #13 on: May 08, 2014, 08:11:11 PM »
I did look, but it all looked like gobblygook to me, so I went back and tried the files again, then I posted above.

I changed the credentials, I noticed you tried to check things out. I'll leave it up as an admin for the night. I go back to work tomorrow (I work weekends)  :thumbsdown: so I will have limited time to work on this. But thank you for trying to help. :)

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #14 on: May 08, 2014, 08:29:53 PM »
OK.  My apologies.  Of course that should be
#sp_text_editor
(because it is id="sp_text_editor", not class="sp_text_editor")

I really do like http://www.w3schools.com/css/css_intro.asp for an intro to basic old-fashioned CSS.  It is incredibly useful if you want to customize your site.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Background color blending
« Reply #15 on: May 26, 2014, 10:57:08 PM »
I spent a while looking this over and fixed it!

While in the Developer's Tools I found a checkbox, telling it to use this image for a background. I unchecked it, it crossed itself out, I saved the changes and reimported it to the site via ftp.

Thank You AngelinaBelle!!

(I'd mark it as solved, but I don't see that anywhere).
« Last Edit: May 26, 2014, 10:59:16 PM by Itchigo »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Background color blending
« Reply #16 on: May 27, 2014, 02:56:12 PM »
Congratulations! You are well on your way to understanding how to customize the appearance of your forum!

I have no idea what happened to the solved button.  I'll ask
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?