Difference between revisions of "MediaWiki:Common.css"

From Geekworm Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
}
 
}
  
/* The following is customed by huang from Geekworm team */
+
/* The following is customed by huangyp on 2023.7.20 */
 
.tb_red {
 
.tb_red {
 
color: #ff0000;
 
color: #ff0000;
Line 26: Line 26:
  
 
.tb_blue_bold {
 
.tb_blue_bold {
color: #ff0000;
+
color: #0000ff;
 
font-weight: bold;
 
font-weight: bold;
 
}
 
}
        /* FAQ style */
+
/* 可折叠元素。切换链接移至左侧。
 +
/* 调整周围的外边距(margin)。 */
 +
/*
 +
.mw-collapsible span.mw-collapsible-toggle {
 +
    float:left;
 +
    margin-left:0;
 +
    margin-right:1em;
 +
}
 +
*
 +
 
 +
/* 如果想隐藏默认或自定义标签切换链接中的括号(出于美观或其他原因)*/
 +
/*
 +
.mw-collapsible-toggle-default:before, .mw-collapsible-toggle-default:after {
 +
    display: none;
 +
}
 +
*/
  
 +
/* FAQ style */
 
details {
 
details {
 
border: .05rem solid #448aff;
 
border: .05rem solid #448aff;
Line 38: Line 54:
 
color: var(--md-admonition-fg-color);
 
color: var(--md-admonition-fg-color);
 
display: flow-root !important;;
 
display: flow-root !important;;
margin: 1.5625em 0;
+
margin: 1.0em 0;
padding: 0 .6rem;
+
padding: 0 0.6rem;
 
page-break-inside: avoid
 
page-break-inside: avoid
 
}
 
}

Latest revision as of 12:42, 17 April 2024

/* CSS placed here will be applied to all skins */

/* How do I remove a tab on only one page? */
body.page-Main_Page li#ca-talk {
	display: none !important;
}

/* added by huangyp on 2020.3.27 to hide viewsource page*/
#ca-viewsource {
	display: none !important;
}

/* The following is customed by huangyp on 2023.7.20 */
.tb_red {
	color: #ff0000;
}

.tb_red_bold {
	color: #ff0000;
	font-weight: bold;
}

.tb_blue {
	color: #0000ff;
}

.tb_blue_bold {
	color: #0000ff;
	font-weight: bold;
}
/* 可折叠元素。切换链接移至左侧。
/* 调整周围的外边距(margin)。 */
/*
.mw-collapsible span.mw-collapsible-toggle {
    float:left;
    margin-left:0;
    margin-right:1em;
}
*

/* 如果想隐藏默认或自定义标签切换链接中的括号(出于美观或其他原因)*/
/*
.mw-collapsible-toggle-default:before, .mw-collapsible-toggle-default:after {
    display: none;
}
*/

/* FAQ style */
details {
	border: .05rem solid #448aff;
	line-height: 1.6;
	border-radius: .2rem;
	box-shadow: var(--md-shadow-z1);
	color: var(--md-admonition-fg-color);
	display: flow-root !important;;
	margin: 1.0em 0;
	padding: 0 0.6rem;
	page-break-inside: avoid
}

summary {
	border-color: #64dd17;
	background-color: #64dd171a;
	border: none;
	font-weight: 700;
	margin: 0 -.6rem;
	padding-bottom: .4rem;
	padding-top: .4rem;
	position: relative
}