MediaWiki talk:Common.css: Difference between revisions

 
(3 intermediate revisions by 2 users not shown)
Line 27:
:: I suggest for width you can probably use 80 columns as a switch point. Classic terminal width! For length, pick a value that's a page or so in your browser (or maybe 66; the classic length of a page of typewritten text). –[[User:Dkf|Donal Fellows]] 14:12, 26 January 2010 (UTC)
:: Try <code>overflow: auto;</code>. In Firefox, this creates scroll bars only as necessary (I tried it out with Firebug, and it works great). [http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow The standard] is vague as to exactly what should happen, but my guess is that most browsers will do what you want. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 15:32, 26 January 2010 (UTC)
 
== Hard Quoted strings ==
 
Some languages (e.g. [[J]]) now use the GeSHi setting HARDQUOTE rather than QUOTEMARKS to specify strings (AFAIU = less processing overhead). However the resulting string gets marked with a different CSS class (<tt>st_h</tt>) to normal strings (<tt>st0</tt>) and that class isn't currently handled by the RC style sheet.
The following change to the style sheet would display both types of strings the same way.
 
<pre><nowiki>
.st0, .st_h {
color: #ff0000;
}</nowiki></pre>
 
:Could you add <tt>.st1</tt> there too? Languages that use both single- and double-quote strings (php for one) will show single-quote strings as plain text. --[[User:MizardX|MizardX]] 21:54, 19 May 2010 (UTC)
 
:Is there a reason not to make this change? AFAICS it won't break anything, and if per-language style sheets are introduced at some stage then they will override this default setting. --[[User:Tikkanz|Tikkanz]] 22:00, 16 June 2010 (UTC)
:: Seeing as I haven't changed it since January, I'd guess I've alternated between being busy or simply forgetting. Changed. --[[User:Short Circuit|Michael Mol]] 12:26, 17 June 2010 (UTC)