Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Documentation/styles.css: Difference between revisions

From Mine in Abyss
minecraft>Anterdc99
mNo edit summary
 
minecraft>TheDJ
use the text color from design tokens. Use fixed, as our backgrounds are always light blue.
Line 1: Line 1:
.documentation {
.ts-doc-sandbox .mbox-image {
background-color: hsl(215, 75%, 92%);
padding:.75em 0 .75em .75em;
border: 1px solid #ccc;
}
padding: 0.8em 1em 0.7em;
.ts-doc-doc {
clear: both;
background-color: #eaf3ff;
color: var(--color-fixed, #333);
border: 1px solid #a3caff;
margin-top: 1em;
margin-top: 1em;
clear: both;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
}
body.wgl-theme-dark .documentation {
 
background-color: hsl(215, 25%, 8%);
.ts-doc-header {
border-color: #121212;
background-color: #c2dcff;
color: var(--color-fixed, #333 );
padding: .642857em 1em .5em;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
}


.documentation-header-top,
.ts-doc-heading {
.documentation-header-bottom {
display: inline-block;
padding: 0.8em 1em 0.7em;
padding-left: 30px;
background-color: hsl(215, 75%, 85%);
background: center left / 24px 24px no-repeat;
/* @noflip */
background-image: url( //upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg );
height: 24px;
line-height: 24px;
font-size: 13px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
}
body.wgl-theme-dark .documentation-header-top,
 
body.wgl-theme-dark .documentation-header-bottom {
.ts-doc-header .ts-tlinks-tlinks {
background-color: hsl(215, 25%, 12%);
line-height: 24px;
margin-left: 0;
}
}


.documentation-header-top {
.ts-doc-header .ts-tlinks-tlinks a.external {
margin: -0.8em -1em 0.8em;
color: #0645ad;
border-bottom: inherit;
}
}


.documentation-header-bottom {
.ts-doc-header .ts-tlinks-tlinks a.external:visited {
margin: 0.7em -1em -0.7em;
color: #0b0080;
border-top: inherit;
clear: both;
}
}


.documentation #documentation-jump-to-code {
.ts-doc-header .ts-tlinks-tlinks a.external:active {
    white-space: nowrap;
color: #faa700;
}
}


.documentation #documentation-header-tools {
.ts-doc-content {
    float: right;
padding: .214286em 1em;
    margin-left: 2em;
}
}


.documentation-header-title {
.ts-doc-content:after {
font-weight: bold;
content: '';
font-size: 130%;
clear: both;
margin-right: 1em;
display: block;
line-height: 1;
}
}


.documentation-badDoc {
.ts-doc-content > :first-child {
background-color: hsl(40, 75%, 92%);
margin-top: .5em;
}
}
body.wgl-theme-dark .documentation-badDoc {
 
background-color: hsl(40, 25%, 8%);
.ts-doc-content > :last-child {
margin-bottom: .5em;
}
}


.documentation-badDoc .documentation-header-top,
.ts-doc-footer {
.documentation-badDoc .documentation-header-bottom {
background-color: #eaf3ff;
background-color: hsl(40, 75%, 85%);
color: var(--color-fixed, #333);
border: 1px solid #a3caff;
padding: .214286em 1em;
margin-top: .214286em;
font-style: italic;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
}
body.wgl-theme-dark .documentation-badDoc .documentation-header-top,
 
body.wgl-theme-dark .documentation-badDoc .documentation-header-bottom {
@media all and (min-width: 720px) {
background-color: hsl(40, 25%, 12%);
.ts-doc-header .ts-tlinks-tlinks {
float: right;
}
}
}


.documentation-noDoc {
/* fix headers in dark mode */
background-color: hsl(0, 0%, 92%);
.ts-doc-content .mw-heading {
}
color: var(--color-fixed, #222);
body.wgl-theme-dark .documentation-noDoc {
background-color: hsl(0, 0%, 8%);
}
}
 
.mw-templatedata-caption,
.documentation-noDoc .documentation-header-top,
.mw-templatedata-format {
.documentation-noDoc .documentation-header-bottom {
color: var(--color-fixed, #222);
background-color: hsl(0, 0%, 85%);
}
}
body.wgl-theme-dark .documentation-noDoc .documentation-header-top,
/* fix icon for templatedata params (inline/block) in dark mode */
body.wgl-theme-dark .documentation-noDoc .documentation-header-bottom {
.mw-templatedata-doc-params .oo-ui-widget {
background-color: hsl(0, 0%, 12%);
filter: unset !important;
}
}
/*
[[Category:Template styles]]
[[zh:Module:Documentation/styles.css]]
*/

Revision as of 14:05, 14 August 2024

.ts-doc-sandbox .mbox-image	{
	padding:.75em 0 .75em .75em;
}
	
.ts-doc-doc {
	clear: both;
	background-color: #eaf3ff;
	color: var(--color-fixed, #333);
	border: 1px solid #a3caff;
	margin-top: 1em;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
}

.ts-doc-header {
	background-color: #c2dcff;
	color: var(--color-fixed, #333 );
	padding: .642857em 1em .5em;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
}

.ts-doc-heading {
	display: inline-block;
	padding-left: 30px;
	background: center left / 24px 24px no-repeat;
	/* @noflip */
	background-image: url( //upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg );
	height: 24px;
	line-height: 24px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ts-doc-header .ts-tlinks-tlinks {
	line-height: 24px;
	margin-left: 0;
}

.ts-doc-header .ts-tlinks-tlinks a.external {
	color: #0645ad;
}

.ts-doc-header .ts-tlinks-tlinks a.external:visited {
	color: #0b0080;
}

.ts-doc-header .ts-tlinks-tlinks a.external:active {
	color: #faa700;
}

.ts-doc-content {
	padding: .214286em 1em;
}

.ts-doc-content:after {
	content: '';
	clear: both;
	display: block;
}

.ts-doc-content > :first-child {
	margin-top: .5em;
}

.ts-doc-content > :last-child {
	margin-bottom: .5em;
}

.ts-doc-footer {
	background-color: #eaf3ff;
	color: var(--color-fixed, #333);
	border: 1px solid #a3caff;
	padding: .214286em 1em;
	margin-top: .214286em;
	font-style: italic;
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
}

@media all and (min-width: 720px) { 
	.ts-doc-header .ts-tlinks-tlinks {
		float: right;
	}
}

/* fix headers in dark mode */
.ts-doc-content .mw-heading {
	color: var(--color-fixed, #222);
}
.mw-templatedata-caption,
.mw-templatedata-format {
	color: var(--color-fixed, #222);
}
/* fix icon for templatedata params (inline/block) in dark mode */
.mw-templatedata-doc-params .oo-ui-widget {
	filter: unset !important;
}