Difference between revisions of "MediaWiki talk:Common.css"

From Organic Design wiki
(Typo?)
(will track down css that does the flexible width)
Line 64: Line 64:
 
:Thanks - looks like Rob fixed it already ;-) --[[User:Nad|nad]] 21:26, 4 December 2008 (NZDT)
 
:Thanks - looks like Rob fixed it already ;-) --[[User:Nad|nad]] 21:26, 4 December 2008 (NZDT)
 
::Oops, my suggestion wasn't right also, the correct is with a hyphen as he wrote it. [[User:Capmo|Capmo]] 04:58, 5 December 2008 (NZDT)
 
::Oops, my suggestion wasn't right also, the correct is with a hyphen as he wrote it. [[User:Capmo|Capmo]] 04:58, 5 December 2008 (NZDT)
 +
:::Thanks for pointing that out but it still doesn't seem to have the effect I was trying to achieve. Which is to make PRE blocks of code break and not make the window really wide. I have done this [http://www.sit.auckland.ac.nz/Ruby_on_Rails_deployment here] but I forgot which part of the css was doing this. --[[User:Rob|Rob]] 11:30, 5 December 2008 (NZDT)

Revision as of 22:30, 4 December 2008

Notes and references

Could we have the following code included in the css for handling notes references the same way as Wikipedia? I wouldn't know where to put it and might break something. This is copied off W:MediaWiki:Common.css --Milan 00:18, 15 September 2008 (NZST)


/* make the list of references look smaller */ ol.references {

   font-size: 100%;

}

.references-small { font-size: 90%;}

/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */ /* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */ /* column-count is from the CSS3 module "CSS Multi-column Layout" */ /* Please ignore any validator errors caused by these two lines */ .references-2column {

   font-size: 90%;
   -moz-column-count: 2;
   -webkit-column-count: 2;
   column-count: 2;

}

.same-bg { background: none; }

/* Highlight clicked reference in blue to help navigation */ ol.references > li:target {

   background-color: #DEF;

}

sup.reference:target {

   background-color: #DEF;

}

/* Styling for citations */ cite {

   font-style: normal;
   word-wrap: break-word;

}

/* If there is an inline link to a full citation, the full citation will turn blue when the inline link is clicked */ cite:target {

   background-color: #DEF;

}

/* Do not expand URLs within citations for printing. The URLs should be included explicitly, to avoid confusion */

@media print {

   #content cite a.external.text:after {
       display: none;
   }

}

/* For linked citation numbers and document IDs, where the number need not be shown on a screen or a handheld, but should be included in the printed version */

@media screen, handheld, projection {

   cite *.printonly {
       display: none;
   }

}

Typo?

Hi! You recently added the line ( whites-pace: pre-wrap; ). Shouldn't it read whitespace instead of whites-pace? Capmo 18:29, 4 December 2008 (NZDT)

Thanks - looks like Rob fixed it already ;-) --nad 21:26, 4 December 2008 (NZDT)
Oops, my suggestion wasn't right also, the correct is with a hyphen as he wrote it. Capmo 04:58, 5 December 2008 (NZDT)
Thanks for pointing that out but it still doesn't seem to have the effect I was trying to achieve. Which is to make PRE blocks of code break and not make the window really wide. I have done this here but I forgot which part of the css was doing this. --Rob 11:30, 5 December 2008 (NZDT)