Modulo:Navbox/styles.css: differenze tra le versioni

Da Semi del Verbo, l'enciclopedia dell'influenza del Vangelo sulla cultura
Contenuto cancellato Contenuto aggiunto
remove qualifications on th - this will remove styling from "hand-crafted" navboxes, but there's no other elegant way to deal with it. see talk page
Etichetta: Annullato
Nessun oggetto della modifica
Etichetta: Ripristino manuale
 
(2 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
/* {{pp|small=y}} */
/* {{Protetta}} */

.navbox {
.navbox {
border: 1px solid #aaa;
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
clear: both;
font-size: 88%;
margin: auto;
padding: 2px;
text-align: center;
padding: 1px;
width: 100%;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
}
}


.navbox .navbox {
.navbox th {
padding-left: 1em;
margin-top: 0; /* No top margin for nested navboxes */
padding-right: 1em;
}
text-align: center;

.navbox + .navbox, /* TODO: remove first line after transclusions have updated */
.navbox + .navbox-styles + .navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
}


.navbox-inner,
.navbox > tbody > tr:first-child > th {
background: #ccf;
.navbox-subgroup {
font-size: 90%;
width: 100%;
width: 100%;
}
}


.navbox_navbar {
.navbox-group,
float: left;
.navbox-title,
margin: 0;
.navbox-abovebelow {
padding: 0.25em 1em;
padding: 0 10px 0 0;
line-height: 1.5em;
text-align: left;
width: 6em;
text-align: center;
}
}


.navbox_title {
.navbox-group {
white-space: nowrap;
font-size: 110%;
/* @noflip */
text-align: right;
}
}


.navbox_abovebelow {
.navbox,
background: #ddf;
.navbox-subgroup {
font-size: 90%;
background-color: #fdfdfd;
font-weight: normal;
}
}


.navbox_group {
.navbox-list {
background: #ddf;
line-height: 1.5em;
font-size: 90%;
border-color: #fdfdfd; /* Must match background color */
padding: 0 10px;
white-space: nowrap;
}
}


.navbox_list {
.navbox-list-with-group {
text-align: left;
font-size: 90%;
border-left-width: 2px;
width: 100%;
border-left-style: solid;
}
}


.navbox_list a {
/* cell spacing for navbox cells */
white-space: nowrap;
/* Borders above 2nd, 3rd, etc. rows */
/* TODO: figure out how to replace tr as structure;
* with div structure it should be just a matter of first-child */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {
border-top: 2px solid #fdfdfd; /* Must match background color */
}
}


.navbox_odd {
.navbox-title {
background-color: #ccf; /* Level 1 color */
background: #fdfdfd;
}
}


.navbox_even {
.navbox-abovebelow,
background: #f7f7f7;
.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #ddf; /* Level 2 color */
}
}


.navbox_center {
.navbox-subgroup .navbox-group,
text-align: center;
.navbox-subgroup .navbox-abovebelow {
background-color: #e6e6ff; /* Level 3 color */
}
}


.navbox-even {
.navbox .navbox_image {
padding-left: 7px;
background-color: #f7f7f7;
vertical-align: middle;
width: 0;
}
}


.navbox-odd {
.navbox + .navbox {
margin-top: -1px; /* bordo ridotto tra navbox adiacenti (non funziona in IE6, ma non fa danni) */
background-color: transparent;
}
}


.navbox .mw-collapsible-toggle {
/* TODO: figure out how to remove reliance on td as structure */
font-weight: normal;
.navbox .hlist td dl,
text-align: right;
.navbox .hlist td ol,
width: 7em;
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0;
}
}


.subnavbox {
.navbox .navbar {
display: block;
margin: -3px;
font-size: 100%;
width: 100%;
}
}


.subnavbox_group {
.navbox-title .navbar {
background: #ddf;
/* @noflip */
float: left;
padding: 0 10px;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
}

Versione attuale delle 13:21, 27 ott 2022

/* {{Protetta}} */

.navbox {
	border: 1px solid #aaa;
	clear: both;
	margin: auto;
	padding: 2px;
	width: 100%;
}

.navbox th {
	padding-left: 1em;
	padding-right: 1em;
	text-align: center;
}

.navbox > tbody > tr:first-child > th {
	background: #ccf;
	font-size: 90%;
	width: 100%;
}

.navbox_navbar {
	float: left;
	margin: 0;
	padding: 0 10px 0 0;
	text-align: left;
	width: 6em;
}

.navbox_title {
	font-size: 110%;
}

.navbox_abovebelow {
	background: #ddf;
	font-size: 90%;
	font-weight: normal;
}

.navbox_group {
	background: #ddf;
	font-size: 90%;
	padding: 0 10px;
	white-space: nowrap;
}

.navbox_list {
	font-size: 90%;
	width: 100%;
}

.navbox_list a {
	white-space: nowrap;
}

.navbox_odd {
	background: #fdfdfd;
}

.navbox_even {
	background: #f7f7f7;
}

.navbox_center {
	text-align: center;
}

.navbox .navbox_image {
	padding-left: 7px;
	vertical-align: middle;
	width: 0;
}

.navbox + .navbox {
	margin-top: -1px;    /* bordo ridotto tra navbox adiacenti (non funziona in IE6, ma non fa danni) */
}

.navbox .mw-collapsible-toggle {
	font-weight: normal;
	text-align: right;
	width: 7em;
}

.subnavbox {
	margin: -3px;
	width: 100%;
}

.subnavbox_group {
	background: #ddf;
	padding: 0 10px;
}