Module:Portal/styles.css: Difference between revisions

From IxWiki
Jump to navigation Jump to search
m (1 revision imported)
imported>Hike395
(split out border CSS)
 
Line 1: Line 1:
/* {{pp-template}} */
/* {{pp-template}} */
.portal {
.portalbox {
    float: right;
padding: 0; /* Timeless adds padding */
}
 
.portalborder {
border: solid #aaa 1px;
border: solid #aaa 1px;
padding: 0; /* Timeless adds padding */
}
}


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


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


.portal > ul {
.portalbox > ul {
display: table;
display: table;
box-sizing: border-box;
box-sizing: border-box;
padding: 0.1em;
max-width: 175px;
max-width: 175px;
background: #f9f9f9;
font-size: 85%;
font-size: 85%;
line-height: 110%;
line-height: 110%;
Line 25: Line 27:
}
}


.portal > ul > li {
.portalborder > ul {
padding: 0.1em;
background: #f9f9f9;
}
 
.portalbox > ul > li {
display: table-row;
display: table-row;
}
}
.portal > ul > li > span:first-child {
.portalbox > ul > li > span:first-child {
display: table-cell;
display: table-cell;
padding: 0.2em;
padding: 0.2em;
Line 35: Line 42:
}
}


.portal > 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;
}
}

Latest revision as of 23:15, 15 February 2022

/* {{pp-template}} */
.portalbox {
    float: right;
	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;
}