MediaWiki talk:Common.css: Difference between revisions

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>
892

edits