Not Solved 1.8.39 - 1.8.40 CSS lines
#1
Not Solved
In this upgrade it states:
"Please note that the global.css file requires a manual insertion of two additional CSS lines."
When you follow this link, it presents admin/inc/functions_themes.php with multitude of green and red lines, inc/class_parser.php with quite a few green and red lines and also install/resources/mybb_theme.xml with a couple of green lines.  
Now, I am assuming green=add and red=delete, but am I making changes to all these files as the third one appears to be an install resource and I am confused as to why we need to alter this..
Also, this is slightly more than the stated "insertion of two additional CSS lines."
Please can you advise?
Reply
#2
Not Solved
Hello,

The only lines you need to worry about are the two lines to be added to .codeblock code (global.css). The rest of the changes visible in that pull request are changes that are either already applied with your upgrade or related to new installs.
Reply
#3
Not Solved
Achieved, thank you  
Smile
Reply
#4
Not Solved
I'm at a loss. The only reference to .codeblock code I find on the linked page is the change to line 1520 in functions_themes.php?
Reply
#5
Not Solved
In that linked page, the third selection (for install/resources/mybb_theme.xml) I think is the one to use.  Update your global.css under themes, edit stylesheet, ".codeblock code" section of global.css as per these two additional green lines outlined in that provided link.
I think..
Reply
#6
Not Solved
Yes, in Admin CP's Templates & Style → Themes → Default → global.css → Edit Stylesheet: Advanced Mode, around line 813, you'd find:
.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 200px;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;
}

in which two extra declarations are needed:
	white-space: pre;
	tab-size: 4;

The updated block would look like:
.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 200px;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;
	white-space: pre;
	tab-size: 4;
}

The modification usually needs to be applied to other themes.

If the original file has not been modified (Inherited from MyBB Master Style), the change may be already present.
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#7
Not Solved
(2026-06-10, 12:09 PM)Devilshakerz Wrote: ...
If the original file has not been modified (Inherited from MyBB Master Style), the change may be already present.

Thank you.

We performed a fresh complete install of 1.8.39 a month or so ago and I find this change is already in our source.

Cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)