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

From Organic Design wiki
(Typo?: thx)
(works for Firefox, Camino not co-operating)
 
(3 intermediate revisions by 2 users not shown)
Line 63: Line 63:
 
Hi! You recently added the line ( '''whites-pace: pre-wrap;''' ). Shouldn't it read '''whitespace''' instead of '''whites-pace'''? [[User:Capmo|Capmo]] 18:29, 4 December 2008 (NZDT)
 
Hi! You recently added the line ( '''whites-pace: pre-wrap;''' ). Shouldn't it read '''whitespace''' instead of '''whites-pace'''? [[User:Capmo|Capmo]] 18:29, 4 December 2008 (NZDT)
 
: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)
 +
:::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)
 +
::::The only difference I found were these 4 extra lines that come right after the line you already added:
 +
                white-space: pre-wrap;      /* css-3 */
 +
                white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 +
                white-space: -pre-wrap;      /* Opera 4-6 */
 +
                white-space: -o-pre-wrap;    /* Opera 7 */
 +
                word-wrap: break-word;      /* Internet Explorer 5.5+ */
 +
::::They will probably do the trick. [[User:Capmo|Capmo]] 16:20, 10 December 2008 (NZDT)
 +
:::::Looks like it works! Now the only browser that has long lines is [http://caminobrowser.org/ Camino], but strangely, the [http://www.sit.auckland.ac.nz/IT_Conference_2008 science it] site works with Camino. Who knows? Close enough for me. --[[User:Rob|Rob]] 16:32, 10 December 2008 (NZDT)

Latest revision as of 03:32, 10 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)
The only difference I found were these 4 extra lines that come right after the line you already added:
                white-space: pre-wrap;       /* css-3 */
                white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
                white-space: -pre-wrap;      /* Opera 4-6 */
                white-space: -o-pre-wrap;    /* Opera 7 */
                word-wrap: break-word;       /* Internet Explorer 5.5+ */
They will probably do the trick. Capmo 16:20, 10 December 2008 (NZDT)
Looks like it works! Now the only browser that has long lines is Camino, but strangely, the science it site works with Camino. Who knows? Close enough for me. --Rob 16:32, 10 December 2008 (NZDT)