Jump to content

Module:Portal bar/styles.css

Page template-protected
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hike395 (talk | contribs) at 07:40, 18 December 2021 (border on top of content, not on bottom of header (for small)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
/* {{pp|small=y}} */
.portal-bar {
	font-size: 88%;
	font-weight: bold;
	display:flex;
	align-items: baseline;
}

.portal-bar-bordered {
	padding: 0 2em;
	background-color: #fdfdfd;
	border: 1px solid #a2a9b1;
	clear: both;
	margin: 1em auto 0;
}

.portal-bar-unbordered {
	padding: 0 1.7em;
	margin-left: 0;
}

.portal-bar-header {
    white-space: nowrap;
    margin: 0 1em 0 0.5em;
    padding: 0.3em 0 0.2em;
    min-height: 24px;
    line-height: 22px;
}

.portal-bar-content {
	display:flex;
	flex-flow: row wrap;
	align-items: baseline;
	flex:1;
	padding: 0.15em 0;
	column-gap: 1em;
}

.portal-bar-item {
	display:flex;
	align-items: baseline;
	margin:0.15em 0;
	min-height:24px;
	text-align: left;
}

.portal-bar-logo {
	width: 22px;
	line-height: 22px;
	margin:0 0.2em;
	text-align: right;
}

.portal-bar-link {
	margin:0 0.2em;
	text-align: left;
}

@media screen and (max-width:768px) {
	.portal-bar {
		font-size: 88%;
		font-weight: bold;
		display:flex;
		flex-flow: column wrap;
	}
	
	.portal-bar-header {
		text-align: left;
		white-space: nowrap;
        padding: 0.2em 0;
		flex:0 1;
	}

	.portal-bar-content {
		display:flex;
		flex-flow: row wrap;
		align-items: baseline;
		flex:1;
		padding: 0.15em 0;
		column-gap: 1em;
		border-top: 1px solid #a2a9b1;
	}
}

/* .navbox + .portal-bar-bordered */
.navbox + link + .portal-bar-bordered {
	margin-top: -1px;
}

.navbox + style + .portal-bar-bordered {
	margin-top: -1px;
}

.portal-bar + .navbox-styles + .navbox{
	margin-top: -1px;
}