Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: 808server on September 27, 2023, 03:26:08 PM

Title: The theme or???
Post by: 808server on September 27, 2023, 03:26:08 PM
I have users who want to use a dark theme, but most/all seem to have weird issues with 2.1.4 of my install.

Double fonts, black on black test in the message body.

Since it's happening with all dark themes, I'm wondering if it's my SMF settings??

Thanks
Title: Re: The theme or???
Post by: shawnb61 on September 27, 2023, 03:38:39 PM
I would report this to the specific theme(s).
Title: Re: The theme or???
Post by: 808server on September 28, 2023, 01:43:39 AM
Thank you! That's what I needed to know.
Title: Re: The theme or???
Post by: 808server on September 29, 2023, 01:13:57 AM
OK, in the default css folder: jquery.sceditor.default.css contains black for text.
How can I override this when the theme is dark?

When is the theme's version of jquery.sceditor.css used?

Thanks




html, p, code::before, table {
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: black;
line-height: 1.25;
overflow: visible;
}
Title: Re: The theme or???
Post by: Diego Andrés on September 29, 2023, 02:17:54 AM
Should probably ask in the support topic for that theme like Shawn said, the author would be able to provide better assistance.
Title: Re: The theme or???
Post by: Kindred on September 29, 2023, 06:47:52 AM
Put a copy in your custom theme's css folder and modify it...
Title: Re: The theme or???
Post by: 808server on September 29, 2023, 01:22:33 PM
WOW! That easy????? Thank you!
Title: Re: The theme or???
Post by: shawnb61 on September 29, 2023, 01:45:33 PM
Notes from this previous thread may help:

Quote from: shawnb61 on August 05, 2023, 07:26:40 PMActually, a few clarifications.  Been a while since I looked into this...  The fog is slowly lifting...

- jquery.sceditor.theme.css covers the appearance of the sceditor area.  From the rows of formatting buttons to the bottom of the textarea.
- jquery.sceditor.default.css covers the textarea ONLY, in WYSIWYG mode ONLY.

So if you want a unique appearance of the editor, e.g., buttons & toolbars, etc., update jquery.sceditor.theme.css in your theme folder.  It may help to start with a copy of jquery.sceditor.css from the default theme.

If you want to control WYSIWYG appearance within the editor textarea, update jquery.sceditor.default.css in your theme folder.  It may help to start with a copy of jquery.sceditor.default.css from the default theme.

The editor is a 3rd party plugin we use.  It accepts ONE custom css file as a parameter, specifically to support dynamic toggling of WYSIWYG mode.

That ONE file limitation for WYSIWYG mode makes certain tasks difficult, e.g., if you are trying to work on a theme with multiple color palette options such as light vs dark mode.  If you need to do that, you need to do some work via code & css vars to work around those limitations (e.g., like I did with my themes). 

Hope this helps.  Clarifications & corrections welcome, the fog may not have lifted fully yet...
Title: Re: The theme or???
Post by: 808server on September 29, 2023, 04:24:18 PM
Thank you! Editing jquery.sceditor.default.css worked fine!
Since the theme was a dark theme, loading that css modified file works.
Very easy at the end!
Title: Re: The theme or???
Post by: Steve on September 29, 2023, 06:14:50 PM
Marking solved then.