htmly icon indicating copy to clipboard operation
htmly copied to clipboard

Looking to override some css

Open ZachBacon opened this issue 1 year ago • 6 comments

So I'm basically porting a phpbb theme (prosilverdark) to htmly, and I have some minor success, but when it comes to loading posts, I'm having trouble overriding certain css elements. From what I've seen, it's done via systems/includes/functions.php But I rather not edit system files just to apply my style.

ZachBacon avatar Jan 15 '24 16:01 ZachBacon

Hello,

Can you give an example, what kind of HTML structure do you want to achieve?

danpros avatar Jan 15 '24 17:01 danpros

ideally I'd like to stylize the contents of well... content(), as it stands it's overriding the current style I'm trying to adapt. I'm trying to make it look like for example like this https://board.visualboyadvance-m.org/viewtopic.php?t=816

But it's ending up more like this instead. Screenshot 2024-01-15 124614

Mind you I'm not going for a full one on one full on copy, but it's not exactly taking on the css values I have.

ZachBacon avatar Jan 15 '24 17:01 ZachBacon

The content() in layout.html.php is out putting the content html code generated from the template files, like main.html.php (post collection page/category, tags etc.), single post file (post.html.php), static.html.php and so on. So no need to modify the core.

danpros avatar Jan 16 '24 00:01 danpros

Gotcha, thanks for letting me know.

ZachBacon avatar Jan 16 '24 00:01 ZachBacon

You're welcome. We need an improved docs, current docs is like for version below 2.7.

danpros avatar Jan 16 '24 08:01 danpros

I noticed, which is why I've been looking at existing templates and through git history to get some clues, but thank you for providing the biggest clue.

ZachBacon avatar Jan 16 '24 15:01 ZachBacon

I will mark it as fixed. Thanks

danpros avatar Mar 02 '24 01:03 danpros