Forskjell mellom versjoner av «MediaWiki:Common.css»
								
								Hopp til navigering
				Hopp til søk
				
				
							
								
							
		|  (lagt til CSS for styling av MediaWiki:Edittools) |  (added CSS for Infobox) | ||
| Linje 35: | Linje 35: | ||
| 	margin-left: 1px; | 	margin-left: 1px; | ||
| } | } | ||
| + | |||
| + | /* rounded corners */ | ||
| + | .rtop, .rbottom { display: block; padding: 0px; margin: 0px } | ||
| + | .rtop *, .rbottom * { display: block; height: 1px; overflow: hidden; padding: 0px } | ||
| + | .r1 {margin: 0 5px} | ||
| + | .r2 {margin: 0 3px} | ||
| + | .r3 {margin: 0 2px} | ||
| + | .r4 {margin: 0 1px; height: 2px} | ||
| + | /* end rounded corners */ | ||
| + | |||
| + | |||
| + | /* Navbox colors */ | ||
| + | .navbox-blue {  | ||
| + |     background-color: #cbdcfc;  | ||
| + |     border: 2px grey solid; | ||
| + |     padding: .5em;  | ||
| + |     margin-top: 10px; | ||
| + |     border-radius:0.4em; | ||
| + | } | ||
| + | .navbox-orange {  | ||
| + |     background-color: #ffddae; | ||
| + |     border: 2px grey solid; | ||
| + |     padding: .5em;  | ||
| + |     margin-top: 10px; | ||
| + |     border-radius:0.4em; | ||
| + | } | ||
| + | .navbox-green {  | ||
| + |     background-color: #d0e0d0;  | ||
| + |     border: 2px grey solid; | ||
| + |     padding: .5em;  | ||
| + |     margin-top: 10px; | ||
| + |     border-radius:0.4em; | ||
| + | } | ||
| + | .navbox-litegrey { | ||
| + |     background-color: #f2f2f2; | ||
| + |     border: 2px grey solid; | ||
| + |     padding: .5em;  | ||
| + |     margin-top: 10px; | ||
| + |     border-radius:0.4em; | ||
| + | } | ||
| + | |||
| + | .navbox-grey { | ||
| + |     background-color: grey; | ||
| + |     border: 2px grey solid; | ||
| + |     padding: .5em;  | ||
| + |     margin-top: 10px; | ||
| + |     border-radius:0.4em; | ||
| + | } | ||
| + | |||
| + | .collapseButton {          /* 'show'/'hide' buttons created dynamically */ | ||
| + |     float: right;          /* by the CollapsibleTables javascript in    */ | ||
| + |     font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */ | ||
| + |     text-align: right;     /* so they can be customised.                */ | ||
| + |     width: auto; | ||
| + | } | ||
| + | .navbox .collapseButton {  /* In navboxes, the show/hide button balances */ | ||
| + |     width: 6em;            /* the vde links from [[Template:Tnavbar]],   */ | ||
| + | }                          /* so they need to be the same width.         */ | ||
| + | |||
| + | /* Infobox stuff */ | ||
| + | .infobox { | ||
| + |    border: 1px solid #aaaaaa; | ||
| + |    background-color: #f9f9f9; | ||
| + |    color: black; | ||
| + |    margin:.5em 0 .5em 1em; | ||
| + |    padding: .2em; | ||
| + |    float: right; | ||
| + |    clear: right; | ||
| + | } | ||
| + | .infobox td, | ||
| + | .infobox th { | ||
| + |    vertical-align: top; | ||
| + |    padding-left: 3px; | ||
| + |    padding-right: 3px; | ||
| + | } | ||
| + | .infobox caption { font-size: larger; } | ||
| + | .infobox.bordered { border-collapse: collapse; } | ||
| + | .infobox.bordered td, | ||
| + | .infobox.bordered th { border: 1px solid #aaaaaa; } | ||
| + | |||
| + | .infobox.bordered .borderless td, | ||
| + | .infobox.bordered .borderless th { border: 0; } | ||
Revisjonen fra 7. jul. 2018 kl. 08:06
/* CSS plassert i denne fila vil gjelde for alle utseender. */
/**
 * Styling for links generated by [[MediaWiki:Edittools]]
 * @source https://www.mediawiki.org/wiki/Extension:CharInsert#Styling
 * @updated 2012-02-29
 */
.mw-charinsert-buttons {
	margin-top: 10px;
	border: 1px solid #aaaaaa;
	padding: 1px;
	text-align: center;
	font-size: 110%;
}
.mw-charinsert-buttons a {
	color: black;
	background-color: #cde !important;
	font-weight: bold;
	font-size: .9em;
	text-decoration: none;
	border: thin #069 outset;
	padding: 0 .1em .1em;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
	background-color: #bcd;
	border-style: inset;
}
.client-js .mw-edittools-section {
	display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
	font-size: 0.9em;
	padding-left: 1px;
	padding-right: 1px;
	margin-left: 1px;
}
/* rounded corners */
.rtop, .rbottom { display: block; padding: 0px; margin: 0px }
.rtop *, .rbottom * { display: block; height: 1px; overflow: hidden; padding: 0px }
.r1 {margin: 0 5px}
.r2 {margin: 0 3px}
.r3 {margin: 0 2px}
.r4 {margin: 0 1px; height: 2px}
/* end rounded corners */
/* Navbox colors */
.navbox-blue { 
    background-color: #cbdcfc; 
    border: 2px grey solid;
    padding: .5em; 
    margin-top: 10px;
    border-radius:0.4em;
}
.navbox-orange { 
    background-color: #ffddae;
    border: 2px grey solid;
    padding: .5em; 
    margin-top: 10px;
    border-radius:0.4em;
}
.navbox-green { 
    background-color: #d0e0d0; 
    border: 2px grey solid;
    padding: .5em; 
    margin-top: 10px;
    border-radius:0.4em;
}
.navbox-litegrey {
    background-color: #f2f2f2;
    border: 2px grey solid;
    padding: .5em; 
    margin-top: 10px;
    border-radius:0.4em;
}
.navbox-grey {
    background-color: grey;
    border: 2px grey solid;
    padding: .5em; 
    margin-top: 10px;
    border-radius:0.4em;
}
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
    float: right;          /* by the CollapsibleTables javascript in    */
    font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */
    text-align: right;     /* so they can be customised.                */
    width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Tnavbar]],   */
}                          /* so they need to be the same width.         */
/* Infobox stuff */
.infobox {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   color: black;
   margin:.5em 0 .5em 1em;
   padding: .2em;
   float: right;
   clear: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
   padding-left: 3px;
   padding-right: 3px;
}
.infobox caption { font-size: larger; }
.infobox.bordered { border-collapse: collapse; }
.infobox.bordered td,
.infobox.bordered th { border: 1px solid #aaaaaa; }
 
.infobox.bordered .borderless td,
.infobox.bordered .borderless th { border: 0; }
