Research Realm:Main Page/Sandbox/styles.css

From Research Realm
.mp-box {
	border: 1px solid #aaa; /* all colors overriden on specific elements in @media screen */
	padding: 0 0.5em 0.5em;
	margin-top: 4px;
}

/* Welcome text */

#mp-welcomecount {
	text-align: center;
	margin: 0.4em;
}

#mp-welcome {
	padding: 0.1em;
	margin-top: 0.5em;
}

#mp-welcome h1,
#mp-welcome .mw-heading1 {
	margin: 0;
	border-bottom: 0
}

#mp-welcome h1 {
	border-bottom: solid 1px #000;
	text-shadow: 1px 2px 3px #999;
	box-shadow: 0 4px 6px -6px #000;
}

#articlecount {
	font-size: 85%;
}

/* Middle section (flex) */

.topics-container {
	display: flex;
	flex-direction: row;
	margin: 2em auto;
}

.topics-item {
/*	background-color: #f1f1f1;
	padding: 10px; */
	width: 100%;
	vertical-align: top;
	text-align: center;
	padding: 1em 0;
}

.topics-list {
	margin: 1.5em 0.5em 3em 0.5em;
	line-height: 1.2;
	text-align: left;
}

/* Bottom text */

#mp-contributetable {
	margin: 0 auto 1em auto;
	line-height: 1.2;
}

#mp-contribute {
	font-size: 105%;
	font-weight: bold;
	padding-bottom: 1em;
}

#mp-exciting {
	text-align: center;
	font-size: 1.2em;
	font-style: italic;
	font-weight: bold;
	padding-bottom: 1em;
}

@media screen {
	#mp-topbanner {
		background-color: #eee;
		border-color: #b8b8b8;
	}
}

/* Different sizes */

@media (max-width: 850px) {
	.topics-container {
		flex-direction: column;
	}

	.topics-item {
		border-top-width: 1px;
		border-top-style: solid;
		border-top-color: #b8b8b8;
		border-bottom-width: 1px;
		border-bottom-style: solid;
		border-bottom-color: #b8b8b8;
		margin-top: -0.5px;
		margin-bottom: -0.5px;
	}
	
	.topics-list {
		text-align: center;
	}
	
	/* hlist replication */
	.topics-list ul {
		margin: 0;
		padding: 0;
	}

	.topics-list li {
		margin: 0;
		display: inline;
	}
	
	.topics-list.inline,
.topics-list.inline dl,
.topics-list.inline ol,
.topics-list.inline ul,
/* Display nested lists inline */
.topics-list dl dl,
.topics-list dl ol,
.topics-list dl ul,
.topics-list ol dl,
.topics-list ol ol,
.topics-list ol ul,
.topics-list ul dl,
.topics-list ul ol,
.topics-list ul ul {
	display: inline;
}

/* Hide empty list items */
.topics-list .mw-empty-li {
	display: none;
}

/* TODO: :not() can maybe be used here to remove the later rule. naive test
 * seems to work. more testing needed. like so:
 *.topics-list dt:not(:last-child)::after {
 *	content: ": ";
 *}
 *.topics-list dd:not(:last-child)::after,
 *.topics-list li:not(:last-child)::after {
 *	content: " · ";
 *	font-weight: bold;
 *}
 */
/* Generate interpuncts */
.topics-list dt::after {
	content: ": ";
}

.topics-list dd::after,
.topics-list li::after {
	content: " · ";
	font-weight: bold;
}

.topics-list dd:last-child::after,
.topics-list dt:last-child::after,
.topics-list li:last-child::after {
	content: none;
}

/* Add parentheses around nested lists */
.topics-list dd dd:first-child::before,
.topics-list dd dt:first-child::before,
.topics-list dd li:first-child::before,
.topics-list dt dd:first-child::before,
.topics-list dt dt:first-child::before,
.topics-list dt li:first-child::before,
.topics-list li dd:first-child::before,
.topics-list li dt:first-child::before,
.topics-list li li:first-child::before {
	content: " (";
	font-weight: normal;
}

.topics-list dd dd:last-child::after,
.topics-list dd dt:last-child::after,
.topics-list dd li:last-child::after,
.topics-list dt dd:last-child::after,
.topics-list dt dt:last-child::after,
.topics-list dt li:last-child::after,
.topics-list li dd:last-child::after,
.topics-list li dt:last-child::after,
.topics-list li li:last-child::after {
	content: ")";
	font-weight: normal;
}

/* Put ordinals in front of ordered list items */
.topics-list ol {
	counter-reset: listitem;
}

.topics-list ol > li {
	counter-increment: listitem;
}

.topics-list ol > li::before {
	content: " " counter(listitem) "\a0";
}

.topics-list dd ol > li:first-child::before,
.topics-list dt ol > li:first-child::before,
.topics-list li ol > li:first-child::before {
	content: " (" counter(listitem) "\a0";
}

}

@media (min-width: 851px) {
	.topics-item {
		border-right-width: 1px;
		border-right-style: solid;
		border-right-color: #b8b8b8;
		border-left-width: 1px;
		border-left-style: solid;
		border-left-color: #b8b8b8;
		margin-left: -0.5px;
		margin-right: -0.5px;
	}
	
	#mp-subtopics {
		margin-left: 2em;
		margin-top: 1.5em
	}
}

@media screen and (max-width: 1099px) {
	
	.topicstable {
		box-sizing: border-box;
		display: flex;
		flex-flow: row wrap;
		transition: 0.5s;
	}

}