MediaWiki:Module:Documentation.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
(copied from fandom dev wiki)
 
(remove border)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Documentation */
/**
/**
  * CSS for [[Module:Documentation]] and [[Template:Documentation]]
  * CSS for [[Module:Documentation]] and [[Template:Documentation]]
Line 10: Line 11:
.template-documentation {
.template-documentation {
border: 1px solid #CCC;
border: 1px solid #CCC;
border-color: var(--theme-border-color, #CCC);
margin: 1em 0;
margin: 1em 0;
}
}
Line 16: Line 16:
.template-documentation .template-documentation-header {
.template-documentation .template-documentation-header {
background-color: #EEE;
background-color: #EEE;
background-color: var(--theme-page-background-color--secondary, #EEE);
border-color: var(--border, #CCC);
border-bottom: 1px solid #CCC;
border-color: var(--theme-border-color, #CCC);
padding: 1em;
padding: 1em;
}
}
Line 24: Line 22:
.template-documentation .template-documentation-langs {
.template-documentation .template-documentation-langs {
background-color: #F6F6F6;
background-color: #F6F6F6;
background-color: rgba(var(--theme-border-color--rgb, 246,246,246), 0.15);
border-color: #CCC;
border-bottom: 1px solid #CCC;
border-color: var(--theme-border-color, #CCC);
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
Line 56: Line 52:
.template-documentation .template-documentation-footer {
.template-documentation .template-documentation-footer {
background-color: #EEE;
background-color: #EEE;
background-color: var(--theme-page-background-color--secondary, #EEE);
border-color: #CCC;
border-top: 1px solid #CCC;
border-color: var(--theme-border-color, #CCC);
font-size: 100%;
font-size: 100%;
padding: .5em 1em;
padding: .5em 1em;
text-align: right;
text-align: right;
}
}

Latest revision as of 17:56, 30 December 2023

/* Documentation */
/**
 * CSS for [[Module:Documentation]] and [[Template:Documentation]]
 */

/**
 * ======================
 * Template documentation
 * ======================
 */
.template-documentation {
	border: 1px solid #CCC;
	margin: 1em 0;
}

.template-documentation .template-documentation-header {
	background-color: #EEE;
	border-color: var(--border, #CCC);
	padding: 1em;
}

.template-documentation .template-documentation-langs {
	background-color: #F6F6F6;
	border-color: #CCC;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	padding-bottom: 0.5em
}

.template-documentation .template-documentation-langs li {
	margin: 0 0 0 1em;
	padding: 0.5em 0 0;
}

.template-documentation .template-documentation-langs li.selected {
	order: -1;
}

.template-documentation .template-documentation-langs li.selected a {
	color: black;
	font-weight: bold;
}

.template-documentation .template-documentation-content {
	overflow-y: auto;
	padding: 1em;
}

.template-documentation .template-documentation-footer {
	background-color: #EEE;
	border-color: #CCC;
	font-size: 100%;
	padding: .5em 1em;
	text-align: right;
}