Module:Portal/styles.css: Difference between revisions

From The Goon Show Depository
m (1 revision imported)
en>Izno
(remove restrictive must be child selector between class and ul)
Line 16: Line 16:
}
}


.portalbox > ul {
.portalbox ul {
display: table;
display: table;
box-sizing: border-box;
box-sizing: border-box;
Line 26: Line 26:
}
}


.portalborder > ul {
.portalborder ul {
padding: 0.1em;
padding: 0.1em;
background: #f9f9f9;
background: #f9f9f9;
}
}


.portalbox > ul > li {
.portalbox ul > li {
display: table-row;
display: table-row;
}
}
.portalbox > ul > li > span:first-child {
 
.portalbox ul > li > span:first-child {
display: table-cell;
display: table-cell;
padding: 0.2em;
padding: 0.2em;
Line 41: Line 42:
}
}


.portalbox > ul > li > span:last-child {
.portalbox ul > li > span:last-child {
display: table-cell;
display: table-cell;
padding: 0.2em 0.2em 0.2em 0.3em;
padding: 0.2em 0.2em 0.2em 0.3em;
vertical-align: middle;
vertical-align: middle;
}
}

Revision as of 21:02, 8 December 2022

/* {{pp-template}} */
.portalbox {
	padding: 0; /* Timeless adds padding */
}

.portalborder {
	border: solid #aaa 1px;
}

.portalbox.tleft {
	margin: 0.5em 1em 0.5em 0
}

.portalbox.tright {
	margin: 0.5em 0 0.5em 1em
}

.portalbox ul {
	display: table;
	box-sizing: border-box;
	max-width: 175px;
	font-size: 85%;
	line-height: 110%;
	font-style: italic;
	font-weight: bold;
}

.portalborder ul {
	padding: 0.1em;	
	background: #f9f9f9;
}

.portalbox ul > li {
	display: table-row;
}

.portalbox ul > li > span:first-child {
	display: table-cell;
	padding: 0.2em;
	vertical-align: middle;
	text-align: center;
}

.portalbox ul > li > span:last-child {
	display: table-cell;
	padding: 0.2em 0.2em 0.2em 0.3em;
	vertical-align: middle;
}