Difference between revisions of "MediaWiki:Common.css"

From WOI Encyclopedia Italia
Jump to navigation Jump to search
m
m
Line 2: Line 2:
 
   background: url('http://www.wheelsofitaly.com/wiki/images/5/53/Vvv.png') 0px 0px repeat;
 
   background: url('http://www.wheelsofitaly.com/wiki/images/5/53/Vvv.png') 0px 0px repeat;
 
}
 
}
 +
/* Allow limiting of which header levels are shown in a TOC;
 +
  <div class="toclimit-3">, for instance, will limit to
 +
  showing ==headings== and ===headings=== but no further
 +
  (as long as there are no =headings= on the page, which
 +
  there shouldn't be according to the MoS).
 +
*/
 +
.toclimit-2 .toclevel-1 ul,
 +
.toclimit-3 .toclevel-2 ul,
 +
.toclimit-4 .toclevel-3 ul,
 +
.toclimit-5 .toclevel-4 ul,
 +
.toclimit-6 .toclevel-5 ul,
 +
.toclimit-7 .toclevel-6 ul {
 +
    display: none;
 +
}
 +
 +
/* Styling for Template:Quote */
 +
blockquote.templatequote {
 +
    margin-top: 0;
 +
}
 +
blockquote.templatequote div.templatequotecite {
 +
    line-height: 1em;
 +
    text-align: left;
 +
    padding-left: 2em;
 +
    margin-top: 0;
 +
}
 +
blockquote.templatequote div.templatequotecite cite {
 +
    font-size: 85%;
 +
}
 +
 +
/* User block messages */
 +
div.user-block {
 +
    padding: 5px;
 +
    margin-bottom: 0.5em;
 +
    border: 1px solid #A9A9A9;
 +
    background-color: #FFEFD5;
 +
}
 +
 +
/* Prevent line breaks in silly places:
 +
  1) Links when we don't want them to
 +
  2) Bold "links" to the page itself
 +
  2) HTML formulae
 +
  3) Ref tags with group names <ref group="Note"> --> "[Note 1]"
 +
*/
 +
.nowraplinks a,
 +
.nowraplinks .selflink,
 +
span.texhtml,
 +
sup.reference a {
 +
    white-space: nowrap;
 +
}
 +
 +
/* For template documentation */
 +
.template-documentation {
 +
    clear: both;
 +
    margin: 1em 0 0 0;
 +
    border: 1px solid #aaa;
 +
    background-color: #ecfcf4;
 +
    padding: 1em;
 +
}
 +
 +
/* Inline divs in ImageMaps (code borrowed from de.wiki) */
 +
.imagemap-inline div {
 +
    display: inline;
 +
}
 +
 +
/* Increase the height of the image upload box */
 +
#wpUploadDescription {
 +
    height: 13em;
 +
}
 +
 +
/* Reduce line-height for <sup> and <sub> */
 +
sup, sub {
 +
    line-height: 1em;
 +
}
 +
 +
/* Minimum thumb width */
 +
.thumbinner {
 +
    min-width: 100px;
 +
}
 +
 +
/* Remove white border from thumbnails */
 +
div.thumb {
 +
    border: none;
 +
}
 +
div.tright {
 +
    border: none;
 +
    margin: 0.5em 0 0.8em 1.4em;
 +
}
 +
div.tleft {
 +
    border: none;
 +
    margin: 0.5em 1.4em 0.8em 0;
 +
}
 +
 +
/* Makes the background of a framed image white instead of gray. */
 +
/* Only visible with transparent images. */
 +
div.thumb img.thumbimage {
 +
    background-color: #505050;
 +
}
 +
 +
/* The backgrounds for galleries. */
 +
#content .gallerybox div.thumb {
 +
    background-color: #505050;  /* Light gray padding */
 +
}
 +
/* Put a chequered background behind images, only visible if they have transparency */
 +
.gallerybox .thumb img,
 +
#file img {
 +
    background: white url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-20x20.png") repeat;
 +
-moz-box-shadow: 5px 5px rgba(0,0,0,0.5);
 +
-webkit-box-shadow: 5px 5px rgba(0,0,0,0.5);
 +
box-shadow: 5px 5px rgba(0,0,0,0.5);
 +
}
 +
/* But not on articles, user pages, portals or with opt-out. */
 +
.ns-0 .gallerybox .thumb img,
 +
.ns-2 .gallerybox .thumb img,
 +
.ns-100 .gallerybox .thumb img,
 +
.nochecker .gallerybox .thumb img {
 +
    background: 333333;
 +
}
 +
 +
/* Prevent floating boxes from overlapping any category listings,
 +
  file histories, edit previews, and edit [Show changes] views */
 +
#mw-subcategories, #mw-pages, #mw-category-media,
 +
#filehistory, #wikiPreview, #wikiDiff {
 +
    clear: both;
 +
}
 +
 +
/* Selectively hide headers in WikiProject banners */
 +
.wpb .wpb-header            { display: none; }
 +
.wpbs-inner .wpb .wpb-header { display: block; }    /* for IE */
 +
.wpbs-inner .wpb .wpb-header { display: table-row; } /* for real browsers */
 +
.wpbs-inner .wpb-outside    { display: none; }      /* hide things that should only display outside shells */
 +
 +
/* Styling for Abuse Filter tags */
 +
.mw-tag-markers {
 +
    font-family:sans-serif;
 +
    font-style:italic;
 +
    font-size:90%;
 +
}
 +
 +
/* Fix so <tt>, <code>, <pre>, <kbd>, and <samp> tags get normal text size
 +
  also in some versions of Firefox, Safari, Konqueror, Chrome etc.
 +
  Remove "tt, code, pre, " once r69336 is live;
 +
  remove the rest once r76322 is live. */
 +
tt, code, pre, kbd, samp {
 +
    font-family: monospace, "Courier New";
 +
}
 +
/* Same fix, but for inline code generated by #tag:syntaxhighlight */
 +
span.mw-geshi {
 +
    font-family: monospace, "Courier New" !important;
 +
}
 +
 +
/* Remove bullets when there are multiple edit page warnings */
 +
ul.permissions-errors > li {
 +
    list-style: none;
 +
}
 +
ul.permissions-errors {
 +
    margin: 0;
 +
}
 +
 +
/* No linewrap on the labels of the login/signup page */
 +
body.page-Special_UserLogin .mw-label label,
 +
body.page-Special_UserLogin_signup .mw-label label { white-space : nowrap; }
 +
 +
/* Fix an alignment issue with oggplayer when rendered as center */
 +
.center .ogg-player-options ul {
 +
    margin: 0.3em 0px 0px 1.5em;
 +
}
 +
 +
/* Disable text size adjust on mobile devices. People should use the mobile version,
 +
  or get the "proper" non mobile optimized version. */
 +
@media only screen and (max-device-width: 480px) {
 +
  body {
 +
    -webkit-text-size-adjust: none;
 +
  }
 +
}
 +
 +
/* Hide interface pieces for fundraising page test. [[User:Jalexander]] */
 +
 +
body.page-Wikipedia_Keep_It_Free #mw-panel div.portal,
 +
body.page-Wikipedia_Keep_It_Free  #p-namespaces,
 +
body.page-Wikipedia_Keep_It_Free  #p-views,
 +
body.page-Wikipedia_Keep_It_Free  #p-cactions,
 +
body.page-Wikipedia_Keep_It_Free #p-search,
 +
body.page-Wikipedia_Keep_It_Free #p-personal,
 +
body.page-Wikipedia_Keep_It_Free #catlinks,
 +
body.page-Wikipedia_Keep_It_Free #siteNotice{
 +
display: none !important;
 +
}
 +
 +
/* </syntaxhighlight> */
  
 +
table.collapsed tr.collapsable {
 +
display: none;
 +
}
 +
 +
.collapseButton { /* 'show'/'hide' buttons created dynamically by the */
 +
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
 +
font-weight: bold; /* are styled here so they can be customised.   */
 +
        padding: 5px;
 +
text-align: right;
 +
width: auto;
 +
}
  
 
/*
 
/*

Revision as of 08:05, 26 March 2012

body {
  background: url('http://www.wheelsofitaly.com/wiki/images/5/53/Vvv.png') 0px 0px repeat;
}
/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS).
 */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}
 
/* Styling for Template:Quote */
blockquote.templatequote { 
     margin-top: 0; 
}
blockquote.templatequote div.templatequotecite { 
    line-height: 1em;
    text-align: left;
    padding-left: 2em;
    margin-top: 0;
}
blockquote.templatequote div.templatequotecite cite {
    font-size: 85%;
}
 
/* User block messages */
div.user-block {
    padding: 5px;
    margin-bottom: 0.5em;
    border: 1px solid #A9A9A9;
    background-color: #FFEFD5;
}
 
/* Prevent line breaks in silly places: 
   1) Links when we don't want them to
   2) Bold "links" to the page itself
   2) HTML formulae
   3) Ref tags with group names <ref group="Note"> --> "[Note 1]"
*/
.nowraplinks a,
.nowraplinks .selflink,
span.texhtml,
sup.reference a { 
    white-space: nowrap;
}
 
/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa; 
    background-color: #ecfcf4; 
    padding: 1em;
}
 
/* Inline divs in ImageMaps (code borrowed from de.wiki) */
.imagemap-inline div {
    display: inline;
}
 
/* Increase the height of the image upload box */
#wpUploadDescription {
    height: 13em;
}
 
/* Reduce line-height for <sup> and <sub> */
sup, sub {
    line-height: 1em;
}
 
/* Minimum thumb width */
.thumbinner {
    min-width: 100px;
}
 
/* Remove white border from thumbnails */
div.thumb {
    border: none;
}
div.tright {
    border: none;
    margin: 0.5em 0 0.8em 1.4em;
}
div.tleft {
    border: none;
    margin: 0.5em 1.4em 0.8em 0;
}
 
/* Makes the background of a framed image white instead of gray. */
/* Only visible with transparent images. */
div.thumb img.thumbimage {
    background-color: #505050;
}
 
/* The backgrounds for galleries. */
#content .gallerybox div.thumb {
    background-color: #505050;   /* Light gray padding */
}
/* Put a chequered background behind images, only visible if they have transparency */
.gallerybox .thumb img,
#file img {
    background: white url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-20x20.png") repeat;
-moz-box-shadow: 5px 5px rgba(0,0,0,0.5);
-webkit-box-shadow: 5px 5px rgba(0,0,0,0.5);
box-shadow: 5px 5px rgba(0,0,0,0.5);
}
/* But not on articles, user pages, portals or with opt-out. */
.ns-0 .gallerybox .thumb img,
.ns-2 .gallerybox .thumb img,
.ns-100 .gallerybox .thumb img, 
.nochecker .gallerybox .thumb img {
    background: 333333;
}
 
/* Prevent floating boxes from overlapping any category listings,
   file histories, edit previews, and edit [Show changes] views */
#mw-subcategories, #mw-pages, #mw-category-media, 
#filehistory, #wikiPreview, #wikiDiff {
    clear: both;
}
 
/* Selectively hide headers in WikiProject banners */
.wpb .wpb-header             { display: none; }
.wpbs-inner .wpb .wpb-header { display: block; }     /* for IE */
.wpbs-inner .wpb .wpb-header { display: table-row; } /* for real browsers */
.wpbs-inner .wpb-outside     { display: none; }      /* hide things that should only display outside shells */
 
/* Styling for Abuse Filter tags */
.mw-tag-markers {
    font-family:sans-serif;
    font-style:italic;
    font-size:90%;
}
 
/* Fix so <tt>, <code>, <pre>, <kbd>, and <samp> tags get normal text size 
   also in some versions of Firefox, Safari, Konqueror, Chrome etc. 
   Remove "tt, code, pre, " once r69336 is live;
   remove the rest once r76322 is live. */
tt, code, pre, kbd, samp {
    font-family: monospace, "Courier New";
}
/* Same fix, but for inline code generated by #tag:syntaxhighlight */
span.mw-geshi {
    font-family: monospace, "Courier New" !important;
}
 
/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors > li {
    list-style: none;
}
ul.permissions-errors {
    margin: 0;
}
 
/* No linewrap on the labels of the login/signup page */
body.page-Special_UserLogin .mw-label label,
body.page-Special_UserLogin_signup .mw-label label { white-space : nowrap; }
 
/* Fix an alignment issue with oggplayer when rendered as center */
.center .ogg-player-options ul {
    margin: 0.3em 0px 0px 1.5em;
}
 
/* Disable text size adjust on mobile devices. People should use the mobile version,
  or get the "proper" non mobile optimized version. */
@media only screen and (max-device-width: 480px) {
  body {
    -webkit-text-size-adjust: none;
  }
}
 
/* Hide interface pieces for fundraising page test. [[User:Jalexander]] */
 
body.page-Wikipedia_Keep_It_Free #mw-panel div.portal,
body.page-Wikipedia_Keep_It_Free  #p-namespaces,
body.page-Wikipedia_Keep_It_Free  #p-views,
body.page-Wikipedia_Keep_It_Free  #p-cactions, 
body.page-Wikipedia_Keep_It_Free #p-search,
body.page-Wikipedia_Keep_It_Free #p-personal,
body.page-Wikipedia_Keep_It_Free #catlinks,
body.page-Wikipedia_Keep_It_Free #siteNotice{ 
 display: none !important;
}
 
/* </syntaxhighlight> */

table.collapsed tr.collapsable {
	display: none;
}
 
.collapseButton {		/* 'show'/'hide' buttons created dynamically by the		*/
	float: right;		/* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
	font-weight: bold;	/* are styled here so they can be customised.		  */
        padding: 5px; 
	text-align: right;
	width: auto;
}

/*
* Dynamic menus
*/
.dmenu { width: 180px }
 
.dmenu, .dmenu ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
}
.dmenu .selflink { font-weight: normal; }
 
.dmenu li { /* all list items */
position: relative;
float: left;
width: 172px;
padding: 4px;
z-index: 100;
}
 
.dmenu li,
.dmenu li.even a,
.dmenu li.odd a,
.dmenu li li,
.dmenu li li a,
.dmenu li li li,
.dmenu li li li a {
color : black;
}
 
.dmenu li li { margin: 0; }
 
.dmenu li ul { /* second-level lists */
position: absolute;
left: -999em;
z-index: 101;
border: 1px solid #ccc;
}
 
.dmenu li ul ul { /* third-and-above-level lists */
position: absolute;
left: -999em;
margin: 0 0 0 0;
z-index: 102;
}
 
.dmenu li.odd .submenu {
width: 12px;
height: 15px;
float: right;
background: url(/common/images/rarr-lt.png) 0 3px no-repeat;
}
.dmenu li.even .submenu {
width: 12px;
height: 15px;
float: right;
background: url(/common/images/rarr-dk.png) 0 3px no-repeat;
}
.dmenu li.odd {
	background: #E9EDF4;
	border: 2px solid #E9EDF4;
}
.dmenu li.even {
	background: #D0D8E8;
	border: 2px solid #D0D8E8;
}
 
.dmenu li:hover, .dmenu li.sfhover {
	border: 2px solid #385D8A;
}
 
.dmenu li:hover ul ul,
.dmenu li:hover ul ul ul,
.dmenu li.sfhover ul ul,
.dmenu li.sfhover ul ul ul {
left: -999em;
}
 
.dmenu li:hover ul,
.dmenu li li:hover ul,
.dmenu li li li:hover ul,
.dmenu li.sfhover ul,
.dmenu li li.sfhover ul,
.dmenu li li li.sfhover ul { /* lists nested under hovered list items */
left: 182px;
top: -3px;
}

a.new {
color: #FFFFFF !important;
}

.talkhere-comments .editsection {
        display: inline;
}

/* generated user stylesheet */
a { text-decoration: none; }
a.new, #quickbar a.new { color: #ffffff; }
#article, #bodyContent, #mw_content { text-align: justify; }
.editsection { display: none;