Moduł:Infobox/styles.css

Z Wikibooks, biblioteki wolnych podręczników.
/* Style dla infoboksów */

.infobox {
	border: 1px solid #a2a9b1;
	background-color: #f8f8f8;
	border-collapse: collapse;
	color: black;
	font-size: 90%;
	text-align:left;
	margin: 0 0 0.4em 1.4em;
	border-spacing: 0;
	float: right;
	clear: right;
	width: 250px;
}
.ambox + .infobox {
	margin-top: 0.6em;
}
.infobox td,
.infobox th {
	vertical-align: top;
	padding: 4px;
}
.infobox td > .nopadding td {
	padding: 0px;
}

.infobox caption {
	font-size: larger;
	margin-left: inherit;
}
.infobox.bordered {
	border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}

.infobox.sisterproject {
	width: 20em;
	font-size: 90%;
}

.infobox td > p {
	margin: 0;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #a2a9b1;
	border-right: 1px solid #a2a9b1;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
	border: 0;
	border-right: 1px solid #a2a9b1;
}
.infobox ul,ol { margin-top: 0px; }

/* [[Szablon:Infobox ukryte]] */
.infobox>tbody>tr>td[colspan]:first-child>.collapsible {
	width:100%;
	margin:0;
	background-color:transparent;
	font-size:100%;
	border-spacing: 0;
	border-collapse:collapse;
}

/******************************************************************************/
/* Początek CSS dla bezstylowych infoboksów */
/* [[Moduł:Infobox]] */

.infobox>caption {
	border-width: 1px;
	border-color: #a2a9b1;
	border-top-style: solid;
	border-left-style: solid;
	border-right-style: solid;
	border-bottom-style: none;
	border-collapse: collapse;
	color: black;
	border-spacing: 0;
	text-align: center;
	margin: 0;
	background: #ccc;
	padding: 4px;
	caption-side: top;
	font-size: larger;
	font-weight: bold;
}

.infobox .wdq-items>th, /* [[Szablon:Język infobox/temp]] */
.infobox>tbody>tr:not([style])>th:not([colspan]):not([style]) {
	text-align: left;
	font-weight: normal;
	background-color: #eee;
	color: #111;
}

.infobox>tbody>tr:not([style])>th[colspan] {
	border: 1px solid #a2a9b1;
	text-align: center;
	font-weight: bold;
}

.infobox>tbody>tr:not([style])>th[colspan]:not([style]) {
	background-color: #ddd;
	color: black;
}

.infobox>tbody>tr.iboxsisterlink:not([style]) {
	border: 1px solid #a2a9b1;
	background-color:white;
	text-align: center;
}

.infobox>tbody>tr.iboxsisterlink>td>img:first-child {
	float:left;
	margin-right: 0.5em;
}

/* uwidoczniony separator w wierszach */
.infobox>tbody>.iboxs {
	border-top: 1px solid #a2a9b1;
}

/* grafika w infoboksach jest zwykle wyśrodkowana na białym tle */
.infobox .grafika {
	background-color: white;
	text-align: center;
	vertical-align: middle;
}

/* grafika parami obok siebie */
.infobox>tbody>tr>td>table.ibox2 {
	border-spacing: 0;
	border-collapse: collapse;
	width: 100%;
}

.infobox>tbody>tr>td>table.ibox2>tbody>tr>td,
.infobox>tbody>tr>td>table.ibox2>tbody>tr>th {
	width: 50%;
	text-align: center;
	vertical-align: middle;
}

/* Koniec CSS dla bezstylowych infoboksów */
/******************************************************************************/

/*{{Kategoria|Moduły - arkusze stylów}}*/