“模块:Arguments/doc”与“模板:Documentation/styles.css”:页面之间的差异

来自NebulaeWiki
< 模块:Arguments(页面间差异)
(已保护“模块:Arguments/doc”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
(已保护“模板:Documentation/styles.css”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
第1行: 第1行:
{{Documentation}}
.documentation {
{{Wikipedia template}}
display: flex;
box-sizing: border-box;
flex-direction: column;
margin: 1.6rem 0;
padding-top: 1.6rem;
border-top: 1px solid;
    border-color: var( --border-color-base );
border-radius: var( --border-radius--medium );
font-size: 0.875rem;
}


'''Module:Arguments''' provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:
.documentation-header {
* Easy trimming of arguments and removal of blank arguments.
margin-top: 0;
* Arguments can be passed by both the current frame and by the parent frame at the same time. (More details below.)
margin-bottom: 0.8rem;
* Arguments can be passed in directly from another Lua module or from the debug console.
color: var( --color-base--emphasized );
* Arguments are fetched as needed, which can help avoid (some) problems with {{tag|ref}} tags.
font-size: 1.25rem;
* Most features can be customized.
font-weight: 600;
line-height: 1.2;
}
 
.documentation-subheader {
margin: -0.6rem 0 1.6rem 0;
color: var( --color-base--subtle );
font-size: 0.825rem;
}
 
.documentation-links {
margin: 0.3rem 0;
float: right;
font-family: monospace;
font-size: 0.875rem;
font-weight: 400;
}
 
/**
* Tooltip styles used by DependencyList,
* shouldn't be here but it is only used here anyways
*/
.hatnote-container {
position: relative;
}
 
.tooltip-trigger {
padding: 0.2rem 0.5rem;
margin-right: 2px;
background: var( --color-primary );
border-radius: 100px;
color: #fff;
}
 
.tooltip-trigger:hover {
background: var( --color-primary--hover );
}
 
.tooltip-content {
position: absolute;
z-index: 1;
right: 0;
padding: 15px;
background-color: var( --color-surface-1 );
border-radius: var( --border-radius--medium );
box-shadow: 0 14px 28px rgba( 0, 0, 0, 0.06 ), 0 10px 10px rgba( 0, 0, 0, 0.06 );
visibility: hidden;
}
 
.tooltip-content > ol {
margin-top: 0;
margin-left: 1.2rem;
}
 
.tooltip-content:hover,
.tooltip-trigger:hover + .tooltip-content {
visibility: visible;
}

2023年9月23日 (六) 22:38的最新版本

.documentation {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	margin: 1.6rem 0;
	padding-top: 1.6rem;
	border-top: 1px solid;
    border-color: var( --border-color-base );
	border-radius: var( --border-radius--medium );
	font-size: 0.875rem;
}

.documentation-header {
	margin-top: 0;
	margin-bottom: 0.8rem;
	color: var( --color-base--emphasized );
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.documentation-subheader {
	margin: -0.6rem 0 1.6rem 0;
	color: var( --color-base--subtle );
	font-size: 0.825rem;
}

.documentation-links {
	margin: 0.3rem 0;
	float: right;
	font-family: monospace;
	font-size: 0.875rem;
	font-weight: 400;
}

/**
 * Tooltip styles used by DependencyList,
 * shouldn't be here but it is only used here anyways
 */
.hatnote-container {
	position: relative;
}

.tooltip-trigger {
	padding: 0.2rem 0.5rem;
	margin-right: 2px;
	background: var( --color-primary );
	border-radius: 100px;
	color: #fff;
}

.tooltip-trigger:hover {
	background: var( --color-primary--hover );
}

.tooltip-content {
	position: absolute;
	z-index: 1;
	right: 0;
	padding: 15px;
	background-color: var( --color-surface-1 );
	border-radius: var( --border-radius--medium );
	box-shadow: 0 14px 28px rgba( 0, 0, 0, 0.06 ), 0 10px 10px rgba( 0, 0, 0, 0.06 );
	visibility: hidden;
}

.tooltip-content > ol {
	margin-top: 0;
	margin-left: 1.2rem;
}

.tooltip-content:hover,
.tooltip-trigger:hover + .tooltip-content {
	visibility: visible;
}