MediaWiki:Common.css: Difference between revisions

From Gambian Holiday Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:
background: #724E2C;
background: #724E2C;
color: white;
color: white;
}
/* Image. */
& img {
margin: 0;
width: 2em;
}
}

Revision as of 21:23, 21 June 2024

/*
    IGNORE THE ‘CSS ERRORS’.
    
    Those are just because this editor doesn’t understand that
    browsers nowadays *do* in fact support CSS nesting...
*/

/* This contains the formatting for the Biography template. */
div.global-biography {
	display: flex;
	flex-direction: column;
	width: 22em;
	float: right;
	clear: right;
	border: 1px solid black;
	padding: 0;
	
	/* Title. */
	& > p {
		margin-top: 0;
		text-align: center;
		font-size: 1.2rem;
		font-weight: bold;
		width: 100%;
		height: 1.5rem;
		line-height: 1.5rem;
		background: #724E2C;
		color: white;
	}
	
	/* Image. */
	& img { 
		margin: 0;
		width: 2em;
	}
	
	/* Table (e.g. 'name: ...'). */
	& table { margin: .1rem ; }
	& tr { gap: 1rem; }
	& td:first-child { 
		width: 5rem;
		font-weight: bold; 
	}
}