Edit Existing. Pre-Defined CSS

josephavellino's Avatar

josephavellino

14 Apr, 2012 12:52 PM

Is it possible to edit the existing, pre-defined CSS? For example, I would like to change the gray background in the GitHub CSS for block quote text to look more like Sepia.

I am not an expert at CSS, certainly more of a novice, by the way.

Thanks in advance,

  1. Support Staff 1 Posted by Brett on 14 Apr, 2012 01:36 PM

    Brett's Avatar

    You can export an HTML file and include the template you want to modify, then add a rule at the end to override the default specifier. It's slightly complicated by the fact that Marked compresses the CSS for the default styles to make the resulting HTML as optimized as possible, but you can pull it off. Just cut out the portion of code between the `<style></style>` tags and then add a definition at the bottom such as:

    blockquote { background: rgba(255, 249, 227, 1)!important }

    Then save the result as a CSS file with the name you want to appear in the menu and add it to the Custom CSS section of preferences.

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