Research Realm:Main Page/Sandbox/styles.css: Difference between revisions

From Research Realm
No edit summary
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* styles.css */
.mp-box {
body {
border: 1px solid #aaa; /* all colors overriden on specific elements in @media screen */
    margin: 0;
padding: 0 0.5em 0.5em;
    font-family: Arial, sans-serif;
margin-top: 4px;
    background-color: #f4f4f4;
}
}


.flex-container {
/* Welcome text */
    display: flex;
 
    flex-wrap: wrap;
#mp-welcomecount {
    gap: 20px;
text-align: center;
    padding: 20px;
margin: 0.4em;
    max-width: 1200px;
    margin: 0 auto;
}
}


.flex-item {
#mp-welcome {
    flex: 1 1 calc(33.333% - 20px);
padding: 0.1em;
    box-sizing: border-box;
margin-top: 0.5em;
    padding: 20px;
margin-bottom: 0.4em;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}


h1 {
#mp-welcome h1,
    text-align: center;
#mp-welcome .mw-heading1 {
    color: #333;
margin: 0;
    margin-bottom: 20px;
border-bottom: 0
}
}


.mp-box {
#mp-welcome h1 {
border-left: 1px solid #aaa;
border-bottom: solid 1px #000;
border-right: 1px solid #aa0;
text-shadow: 1px 2px 3px #999;
padding: 0 0.5em 0.5em;
box-shadow: 0 4px 6px -6px #000;
margin-top: 4px;
}
 
#articlecount {
font-size: 85%;
}
 
/* Middle section (flex) */
 
.topics-container {
display: flex;
flex-direction: row;
margin: 2em auto;
padding: 0 1em;
}
 
.topics-item {
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;
}
 
#mp-subtopics {
margin-top: 1.5em
}
 
/* Bottom text */
 
#mp-contributetable {
margin: 0 auto 1em auto;
line-height: 1.2;
}
}


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


.topictable1 td {
#mp-exciting {
border-right-width: 1px;
text-align: center;
border-right-style: solid;
font-size: 1.2em;
border-right-color: rgb(255, 0, 255);
font-style: italic;
border-left-width: 1px;
font-weight: bold;
border-left-style: solid;
padding-bottom: 1em;
border-left-color: rgb(255, 0, 255);
padding: 0.5em;
}
}


.topictable1 th {
@media screen {
text-align:center;
#mp-topbanner {
padding: 0.5em;
background-color: #eee;
border-color: #b8b8b8;
}
}
}


.topictable2 tr, td {
/* Different sizes */
border-right-width: 1px;
 
border-right-style: solid;
@media (max-width: 850px) {
border-right-color: rgb(255, 255, 0);
.topics-container {
border-left-width: 1px;
flex-direction: column;
border-left-style: solid;
}
border-left-color: rgb(255, 255, 0);
 
border-collapse: collapse;
.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;
margin: 1em 0.5em;
}
/* hlist replication */
.topics-list ul {
margin: 0;
padding: 0;
}
 
.topics-list li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.topics-list ul ul {
display: inline;
}
/* Generate interpuncts */
.topics-list li::after {
content: " · ";
font-weight: bold;
}
.topics-list li:last-child::after {
content: none;
}
/* Add parentheses around nested lists */
.topics-list li li:first-child::before {
content: " (";
font-weight: normal;
}
 
.topics-list li li:last-child::after {
content: ")";
font-weight: normal;
}
 
}
}


@media (min-width: 875px) {
@media (min-width: 851px) {
#mp-upper {
.topics-item {
display: flex;
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;
}
}
}
@media screen and (max-width: 1099px) {
#mp-left {
.topicstable {
flex: 1 1 20%;
box-sizing: border-box;
margin: 2px;
display: flex;
flex-flow: row wrap;
transition: 0.5s;
}
}
}
}

Latest revision as of 04:03, 18 October 2025

.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;
	margin-bottom: 0.4em;
}

#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;
	padding: 0 1em;
}

.topics-item {
	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;
}

#mp-subtopics {
	margin-top: 1.5em
}

/* 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;
		margin: 1em 0.5em;
	}
	
	/* hlist replication */
	.topics-list ul {
		margin: 0;
		padding: 0;
	}

	.topics-list li {
		margin: 0;
		display: inline;
	}
		/* Display nested lists inline */
	
	.topics-list ul ul {
		display: inline;
	}
	
		/* Generate interpuncts */
	.topics-list li::after {
		content: " · ";
		font-weight: bold;
	}
	
	.topics-list li:last-child::after {
		content: none;
	}
	
		/* Add parentheses around nested lists */
	.topics-list li li:first-child::before {
		content: " (";
		font-weight: normal;
	}

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

}

@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;
	}
}

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

}