mataroa icon indicating copy to clipboard operation
mataroa copied to clipboard

Support custom CSS

Open savchenko opened this issue 5 years ago • 11 comments

As the content is generated dynamically, allowing users to include arbitrary CSS would be an advantage. Maybe with the light filtering for external resources, etc.

savchenko avatar Jul 02 '20 02:07 savchenko

Hey Andrew,

I was thinking about this idea, but I think I'm leaning towards rejecting it because the point of mataroa is to be as minimal as possible. I won't close the door completely though, for the future; that's just my idea for the time being.

sirodoht avatar Jul 06 '20 23:07 sirodoht

Just wanted to add to this. It would be helpful to give us the ability to add some more styling. I have a table that I'd prefer to have a smaller font.

Screenshot 2022-06-06 at 12 55 25

Having the freedom to add a little inline styling like this would make all the difference and offer my readers a better experience.

table {font-size:11px}
Screenshot 2022-06-06 at 12 57 47

crukundo avatar Jun 06 '22 09:06 crukundo

Hey @crukundo!

So, I have just added font-size in the allowed styles. This means you can use it as an inline style (but not standalone). For example, if you want to change your table font-size, you have to add it in HTML form (not markdown). Eg:

<table style="font-size: 11px;">
    <thead>
        <tr>
            <th align="left">Data</th>
            <th align="left">Detail</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td align="left">01000000</td>
            <td align="left">Version 1</td>
        </tr>
        <tr>
            <td align="left">01</td>
            <td align="left"># of inputs (1)</td>
        </tr>
        <tr>
            <td align="left">c8 ... 3a</td>
            <td align="left">Ref output hash</td>
        </tr>
    </tbody>
</table>

Hopefully that makes sense? If not, let me know.

sirodoht avatar Jun 06 '22 21:06 sirodoht

Fantastic! Thank you for the quick turnaround @sirodoht. Works perfectly.

crukundo avatar Jun 06 '22 21:06 crukundo

is there any way to disable the RSS feed in the footer? i was looking for an option, then tried looking for CSS input, then gave up and got here :)

yffr avatar Aug 23 '22 15:08 yffr

Hey @yffr!

There is no option to disable to the RSS feed. Out of curiosity, how come you want to disable it?

sirodoht avatar Aug 23 '22 16:08 sirodoht

personally i prefer to go super minimal with no update subscriptions as i quite appreciate the blog's versatility to become an article page for my website - where i can post tutorials and whatnot else without people getting pings

... even though nobody really reads the articles and only my friends have statistically ever visited my domain, i'd just appreciate a super simple interface to reference people who need help with topics i may have covered ...

dunno - tried bearblog and they require paid subscriptions to link to personal domains, which quickly drove me away immediately ... not that many other minimal blogging platform options, and yes, i've tried static site generators, and other git based web services on other platforms ...

upto you in the end, if not implemented i may just give up on the idea of a tutorial site, thats all

yffr avatar Aug 24 '22 12:08 yffr

Hmm I see. I don't think we'll implement an option to disable RSS, with the thinking being that RSS is native to blogs, not only as a mechanism to get updates but also as a technique to boost the decentralised web (as RSS does not require a central discovery platform).

You can also just export your blog — from https://mataroa.blog/export/ — and use the mataroa theme with zola or hugo and just delete the RSS links from the templates/layout.

To be honest, since I understand you have everything you need feature-wise, if one decides to subscribe though RSS, just let them (also) decide how to handle these notifications/pings themselves. Just a suggestion / personal opinion :)

sirodoht avatar Aug 24 '22 12:08 sirodoht

well, that may have to do - thanks for hearing me out :)

yffr avatar Aug 24 '22 13:08 yffr