Standard Styles for Code

Brett's Avatar

Brett

29 May, 2009 11:39 PM

Here's a quick suggestion regarding the default CSS you've defined for styling bits of code. It'd be nice to have multi-line code blocks defined with the same styles as inline code blocks. As it is, the inline code style has a dark background whereas the multi line pre code style doesn't. From a usability standpoint, it's nice to train users that these gray boxes all have code in them.

I'd suggest these modifications. A screenshot showing the impact of my suggested changes is attached as well. Thanks!

pre { background:#F1F1F1; border:1px solid #DDDDDD; padding:0 5px; margin: 0; }

pre code { background:#F1F1F1; }

  1. 1 Posted by Kyle Neath (Git... on 02 Jun, 2009 07:28 AM

    Kyle Neath (GitHub Staff) 's Avatar

    Thanks, went ahead and tweaked the styles, it should be live in a week or so when we deploy next.

  2. Kyle Neath (GitHub Staff) closed this discussion on 02 Jun, 2009 07:28 AM.

  3. Brett re-opened this discussion on 02 Jun, 2009 03:16 PM

  4. 2 Posted by Brett on 02 Jun, 2009 03:16 PM

    Brett's Avatar

    Sweet. Thanks!

    -----Original Message-----
    From: Tender Support [mailto:[email blocked]]
    Sent: Tuesday, June 02, 2009 1:28 AM
    To: [email blocked]
    Subject: Re: Standard Styles for Code [Suggestions]

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

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