Modifying a Default style

Mazhar's Avatar

Mazhar

08 Oct, 2017 06:43 AM

When I try to get the css of the builtin style Upstanding Citizen
from here
https://github.com/ttscoff/MarkedCustomStyles/blob/master/default_s...

on hitting raw, I see under src url part a lot of data that makes no sense.

Is it some broken link doing this?

I cannot get a clean file to try my modifications.

  1. Support Staff 1 Posted by Brett on 08 Oct, 2017 01:00 PM

    Brett's Avatar

    The CSS for some files (like that one) contain embedded fonts. Just scroll down.

    - Brett

  2. 2 Posted by Mazhar on 08 Oct, 2017 05:17 PM

    Mazhar's Avatar

    Thanks for the clarification.
    Like that style. Just wanted h3, h4 to get progressively smaller.

  3. Support Staff 3 Posted by Brett on 08 Oct, 2017 05:22 PM

    Brett's Avatar

    Note that it is possible to modify things like that using the Additional CSS under Style preferences. You can add override styles there that apply to all themes. All themes also get a body class based on their filename, so you can modify just Upstanding styles with:

    .upstandingcitizen h2 { … }

    - Brett

  4. Support Staff 4 Posted by Brett on 08 Oct, 2017 05:23 PM

    Brett's Avatar

    The classes are auto-assigned, I didn't double check that one. If you right click on the preview window and Inspect element, you can see the actual classes on the body tag (and even experiment with style changes live in the preview).

    - Brett

  5. 5 Posted by Mazhar on 08 Oct, 2017 05:28 PM

    Mazhar's Avatar

    Thanks! I will try. Not too familiar with this, just a happy user. (But did tinker successfully earlier with one style.)

  6. 6 Posted by Mazhar on 08 Oct, 2017 05:47 PM

    Mazhar's Avatar

    Thanks.

    "All themes also get a body class based on their filename, so you can modify just Upstanding styles with:

    .upstandingcitizen h2 { … }"

    This worked beautifully. All good. Thank you for responding, and so quickly.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac