QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Change background colour

Started by Ronald, Mar 24, 2020, 07:49 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Ronald

SMF 2.1 RC2.. I find the face page kind of bright and hard to read..

How can I change the colour for the pages..

Skhilled

That depends on the theme you are using. You want to look for the "body" class which would be similar to this like the theme on this site in /Themes/your_theme/css/index.css:

body {
    background: #e9eef2;
    font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
    color: #4d4d4d;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

Change this:

background: #e9eef2;
The color will not be the same but you get the idea. For the font color, change:

color: #4d4d4d;

Ronald

I did change the background, but not what I want.

See my images they show what I want to change, I need some colour that is easy on the eyes, the white backgrounds are way to bright..

1. You cannot view this attachment.
2. You cannot view this attachment.
3. You cannot view this attachment.

This is what I'd like to change the colours on, maybe a little bluer.

Skhilled

#3
Are you asking to change the background around the boards and topics or the backgrounds of the boards and topic?

Like this, of course, not maybe that color:

You cannot view this attachment.

Ronald

Quote from: Skhilled on Mar 24, 2020, 02:59 PMAre you asking to change the background around the boards and topics or the backgrounds of the boards and topic?

Yes, When I open the forum, I'd like to see a soft colour, when I open a topic I'd like to see a soft colour..

Question I was just on cripzone and I see a theme skin called blue piece, is that theme skin available for 2.1 RC2, now I really like that skin very easy on the eyes..

Skhilled

I just edited my post above.

No, Blue Piece is not available for RC2 but we can start work on it for RC2 if you'd like.

Ronald

Quote from: Skhilled on Mar 24, 2020, 03:12 PMI just edited my post above.

No, Blue Piece is not available for RC2 but we can start work on it for RC2 if you'd like.

Yea, I could go for that, it still has white but not as much.

Skhilled

So, do you want edits made to the theme you have or for us to work on Blue Piece?

Ronald

Quote from: Skhilled on Mar 24, 2020, 04:45 PMSo, do you want edits made to the theme you have or for us to work on Blue Piece?

Lets work on the Blue Piece

Skhilled

Ok, but always remember...never edit the default Curves theme. Make a copy of that and edit that one and use it instead, if needed. When there's an upgrade it will destroy all of your changes and may also make it hard for mods to add their code.

Skhilled


Bigguy

"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Ronald

Quote from: Skhilled on Mar 25, 2020, 07:25 AMIt's just a start but it's something:

https://skhilled.com/rc2_updated/index.php?theme=8

That is what I'm looking for Steve, how can I make the changes..

Skhilled

First, create a copy of the default theme and give it a name. Then upload this index.css to it.

You cannot view this attachment.

Ronald

I did all this, and the forum I am using went all funny

Skhilled

You may not have uploaded it to the correct theme. Tell me EXACTLY what you did and are you using the RC2 version from the SMF site or Github?

Ronald

Quote from: Skhilled on Mar 25, 2020, 08:49 AMYou may not have uploaded it to the correct theme. Tell me EXACTLY what you did and are you using the RC2 version from the SMF site or Github?

Using RC2 from SMF.

cPanel, public_html, themes, blue piece, css, upload index and override files to index.css, 100%

Do a refresh go back to forum, Profile, change theme, to Blue Piece. Skin over rides forum

Ronald

See Image You cannot view this attachment.

Skhilled

#18
Ah! May be cause of EhPortal and/or other mods...

EDIT: When you add a theme AFTER adding mods you must add the code from those mods to that theme...

OR

Remove all mods then add the theme then reinstall the mods.

Remember, it is always easiest to install themes first then the mods.

BTW, did you try to install the Blue Piece theme from CZ to your site? If so, it will not work!

Ronald

Quote from: Skhilled on Mar 25, 2020, 09:05 AMAh! May be cause of EhPortal and/or other mods...

EDIT: When you add a theme AFTER adding mods you must add the code from those mods to that theme...

OR

Remove all mods then add the theme then reinstall the mods.

Remember, it is always easiest to install themes first then the mods.

BTW, did you try to install the Blue Piece theme from CZ to your site? If so, it will not work!

I have to remove the mods, and reinstall them..

No i did a new theme from the acp..

Ronald

OK I removed all the mod's, because I only have 6 installed went quickly. Then I re installed the 6 mod's, did a refresh, and get the same thing.. So I disabled that theme skin for now..

Ronald

When checking both index.css files, they are different,  why?

lurkalot

Quote from: Ronald on Mar 25, 2020, 08:44 AMI did all this, and the forum I am using went all funny

Did you turn off "Minimize CSS and JavaScript files" ?  Admin > Configuration > Features and Options >> Minimize CSS and JavaScript files

If not it will be looking at that css file instead of the one you uploaded. ;)

Ronald

Quote from: lurkalot on Mar 25, 2020, 02:55 PMDid you turn off "Minimize CSS and JavaScript files" ?  Admin > Configuration > Features and Options >> Minimize CSS and JavaScript files

If not it will be looking at that css file instead of the one you uploaded. ;)

Thanks, I just put a check mark in the box. I re installed the index,css file, refreshed, got the same funny looking forum..

lurkalot

Quote from: Ronald on Mar 25, 2020, 05:18 PMThanks, I just put a check mark in the box. I re installed the index,css file, refreshed, got the same funny looking forum..

In that case this wasn't the issue, and you'll need to un-check that box again, at least until you get the theme working properly.  I didn't realise you already had this setting turned off, sorry.  ;)

lesmond

Ron are you using the index.css on smf 2.1RC2 ?

The only person who got all his work done by Friday was Robinson Crusoe

Ronald

Quote from: lesmond on Mar 26, 2020, 05:42 AMRon are you using the index.css on smf 2.1RC2 ?

Les..yes SMF 2.1 RC2

Skhilled

Well, something weird is going on but not sure what...

Ronald

Quote from: Skhilled on Mar 27, 2020, 08:31 PMWell, something weird is going on but not sure what...

You index and mine were different, put them side by side and your's had more at the top part of the page..

Skhilled

It should be different but not sure why it is causing you problems. Please post yours so I can try it.

Ronald

Here is my Blue Piece from the  css, index.css file You cannot view this attachment.

Skhilled

#31
Ron, you have a bunch of added code at the end of your file for a mod. This is the first line of that code starting at line 3991:

/* BEGIN MOD ContentOfLatestPosts */

I didn't post it all here because it kind of long. I think that may be why, because that is not in my css file.

EDIT: It appears that you have that same set of code 3 times. Not sure why 3 times but should only be once, I'd think.

Ronald

Quote from: Skhilled on Mar 28, 2020, 06:02 PMRon, you have a bunch of added code at the end of your file for a mod. This is the first line of that code starting at line 3991:

/* BEGIN MOD ContentOfLatestPosts */

I didn't post it all here because it kind of long. I think that may be why, because that is not in my css file.

EDIT: It appears that you have that same set of code 3 times. Not sure why 3 times but should only be once, I'd think.

Could be, I was doing some work the other night and accidentally delete two files, the index.php and settings.php. Had a rough time getting the forum back up.

Removed all the mod's and re installed them, that was the last one to go in..

Skhilled

Also when you removed your mods and reinstalled the forum did you remove the hooks as well?

You should use the "Fix packages" tool after removing all of the mods:

https://download.simplemachines.org/index.php?tools