tea.mathoverflow.net - Discussion Feed (shaded backgrounds) 2018-11-04T13:45:28-08:00 http://mathoverflow.tqft.net/ Lussumo Vanilla & Feed Publisher Harald Hanche-Olsen comments on "shaded backgrounds" (9768) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9768#Comment_9768 2010-10-21T04:18:36-07:00 2018-11-04T13:45:28-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ 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 ... 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 2010-10-21T02:48:34-07:00 2018-11-04T13:45:28-08:00 Andrew Stacey http://mathoverflow.tqft.net/account/4/ 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, ... 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 2010-10-20T14:49:21-07:00 2018-11-04T13:45:28-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ @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 ... @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 2010-10-20T13:21:55-07:00 2018-11-04T13:45:28-08:00 Andrew Stacey http://mathoverflow.tqft.net/account/4/ 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 ... 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 2010-10-20T13:17:46-07:00 2018-11-04T13:45:28-08:00 Scott Morrison http://mathoverflow.tqft.net/account/3/ Thanks Harald -- I've implemented that too. Anything else on CSS? 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 2010-10-20T12:26:08-07:00 2018-11-04T13:45:28-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ 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 ... 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 2010-10-20T11:47:32-07:00 2018-11-04T13:45:28-08:00 Scott Morrison http://mathoverflow.tqft.net/account/3/ Okay, changed something else about a frame, and decreased the padding a little. Are we okay now? 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 2010-10-20T11:34:12-07:00 2018-11-04T13:45:28-08:00 Scott Morrison http://mathoverflow.tqft.net/account/3/ Hmm. That seems to have broken things worse! 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 2010-10-20T00:59:54-07:00 2018-11-04T13:45:28-08:00 Andrew Stacey http://mathoverflow.tqft.net/account/4/ 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 ... 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 2010-10-19T21:16:33-07:00 2018-11-04T13:45:28-08:00 Scott Morrison http://mathoverflow.tqft.net/account/3/ @Andrew, want to tell me what to do? @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 2010-10-18T02:08:26-07:00 2018-11-04T13:45:28-08:00 Andrew Stacey http://mathoverflow.tqft.net/account/4/ Yeah, inline code is broken on meta (it's a simple CSS fix ...). 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 2010-10-18T02:07:14-07:00 2018-11-04T13:45:28-08:00 Harry Gindi http://mathoverflow.tqft.net/account/55/ Wait, Blah Nifty! Wait,

       Blah

Nifty!

]]>
Andrew Stacey comments on "shaded backgrounds" (9632) http://mathoverflow.tqft.net/discussion/713/shaded-backgrounds/?Focus=9632#Comment_9632 2010-10-18T00:40:48-07:00 2018-11-04T13:45:28-08:00 Andrew Stacey http://mathoverflow.tqft.net/account/4/ 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 ... 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 2010-10-17T23:41:51-07:00 2018-11-04T13:45:28-08:00 Sándor Kovács http://mathoverflow.tqft.net/account/394/ I see people posting things in shaded boxes and I was wondering how one does that. Can someone enlighten me? Thanks! [Just in case, what I mean is for example Anton Geraschenko's post in ... [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]]]>