tea.mathoverflow.net - Discussion Feed (shaded backgrounds) Sun, 04 Nov 2018 13:45:28 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Harald Hanche-Olsen comments on "shaded backgrounds" (9768) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9768#Comment_9768 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9768#Comment_9768 Thu, 21 Oct 2010 04:18:36 -0700 Harald Hanche-Olsen Maybe you were seeing things, or maybe not. Meanwhile, the CSS seems to have reverted back to its previous state. Is some automatic process undoing Scott's changes? (Edit: Er, no, I guess my browser had cached an old vanilla.css. After I prodded it a bit, it works like it should.)

]]>
Andrew Stacey comments on "shaded backgrounds" (9766) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9766#Comment_9766 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9766#Comment_9766 Thu, 21 Oct 2010 02:48:34 -0700 Andrew Stacey Well, I'm pretty sure that when I looked at it in Firebug to see what to do then the inline code blocks were also wrapped in pre blocks. Either Scott's fixed that or I was seeing things. Anyway, looks great now.

]]>
Harald Hanche-Olsen comments on "shaded backgrounds" (9751) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9751#Comment_9751 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9751#Comment_9751 Wed, 20 Oct 2010 14:49:21 -0700 Harald Hanche-Olsen @Scott: That's fine, unless you also want to also add

#Comments pre code {padding: 8px 16px;}

for visual consistency with blockquotes.

@Andrew: Now you have me confused. The new CSS seems to work find, and I don't see any pre blocks surrounding inline code here?

]]>
Andrew Stacey comments on "shaded backgrounds" (9750) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9750#Comment_9750 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9750#Comment_9750 Wed, 20 Oct 2010 13:21:55 -0700 Andrew Stacey Sadly, the default Markdown installation on vanilla puts inline code in the pre block as well so adding the display: block to the pre environment has the same effect as it had on the code tag. I have a suspicion that I hacked Markdown to fix this. I'll take a look tomorrow.

]]>
Scott Morrison comments on "shaded backgrounds" (9749) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9749#Comment_9749 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9749#Comment_9749 Wed, 20 Oct 2010 13:17:46 -0700 Scott Morrison Thanks Harald -- I've implemented that too. Anything else on CSS?

]]>
Harald Hanche-Olsen comments on "shaded backgrounds" (9745) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9745#Comment_9745 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9745#Comment_9745 Wed, 20 Oct 2010 12:26:08 -0700 Harald Hanche-Olsen Yes, better. But better still if you add something like #Comments pre code {…; display: block;} where … is the left border you took out of the declaration for code. So that inline code blocks will work like the non-inline ones used to:

This is a sample inline block.
It is three lines long,
indented by four spaces and surrounded by blank lines in the markdown source.

(@Andrew: pre-wrap must be CSS 3? I don't see anything about it in the CSS 2 spec. Later: Oh, never mind.)

]]>
Scott Morrison comments on "shaded backgrounds" (9744) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9744#Comment_9744 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9744#Comment_9744 Wed, 20 Oct 2010 11:47:32 -0700 Scott Morrison Okay, changed something else about a frame, and decreased the padding a little. Are we okay now?

]]>
Scott Morrison comments on "shaded backgrounds" (9742) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9742#Comment_9742 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9742#Comment_9742 Wed, 20 Oct 2010 11:34:12 -0700 Scott Morrison Hmm. That seems to have broken things worse!

]]>
Andrew Stacey comments on "shaded backgrounds" (9721) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9721#Comment_9721 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9721#Comment_9721 Wed, 20 Oct 2010 00:59:54 -0700 Andrew Stacey Find the file vanilla.css and edit it. That's, in fact, the most annoying part because the file is "compacted" meaning that they took out all unnecessary whitespace - including line breaks! You can just replace it with vanilla.src.css from the src directory, or you can edit the vanilla.src.css, compactify it, and then replace vanilla.css with the compactified version. (I have a recollection of saying this before ...). Anyway, the bit you want to find is #Comments code. In there, there's a setting display: block;. Remove that. I also recommend making the white-space pre-wrap instead of pre.

]]>
Scott Morrison comments on "shaded backgrounds" (9715) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9715#Comment_9715 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9715#Comment_9715 Tue, 19 Oct 2010 21:16:33 -0700 Scott Morrison @Andrew, want to tell me what to do?

]]>
Andrew Stacey comments on "shaded backgrounds" (9639) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9639#Comment_9639 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9639#Comment_9639 Mon, 18 Oct 2010 02:08:26 -0700 Andrew Stacey Yeah, inline code is broken on meta (it's a simple CSS fix ...).

]]>
Harry Gindi comments on "shaded backgrounds" (9638) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9638#Comment_9638 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9638#Comment_9638 Mon, 18 Oct 2010 02:07:14 -0700 Harry Gindi Wait,

       Blah

Nifty!

]]>
Andrew Stacey comments on "shaded backgrounds" (9632) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9632#Comment_9632 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9632#Comment_9632 Mon, 18 Oct 2010 00:40:48 -0700 Andrew Stacey The blue backgrounds are for quotations:

I see people posting things in shaded boxes and I was wondering how one does that. Can someone enlighten me?

The yellow backgrounds are for code:

I see people posting things in shaded boxes and I was wondering how one does that.
Can someone enlighten me?

Both are achieved using standard Markdown syntax (pretty much the same as on the main MO site): for quotations, prepend with >, for code, indent by at least four spaces. For more on the syntax, take a look at the original documentation

]]>
Sándor Kovács comments on "shaded backgrounds" (9628) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9628#Comment_9628 http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9628#Comment_9628 Sun, 17 Oct 2010 23:41:51 -0700 Sándor Kovács [Just in case, what I mean is for example Anton Geraschenko's post in http://tea.mathoverflow.net/discussion/34/tag-mergerename-requests/#Item_0] ]]>