跳转到内容

MediaWiki talk:Common.css

页面内容不支持其他语言。
维基百科,自由的百科全书
(重定向自MediaWiki talk:Print.css

編輯請求 2023-11-20

请求已处理

.nowraplinks a:before,
.nowraplinks .selflink:before {
    content: " ";
    font-size: 0;
    white-space: normal;
}

.nowraplinks .nowrap a:before,
.nowraplinks .nowrap .selflink:before {
    white-space: nowrap;
}

请求移除以上样式,这些样式会导致部分模板里的链接的底部出现多余的空隙。

例子:Template:2019冠狀病毒病疫情邊欄

除此以外,以上样式还会导致普通文本与绿链之间出现意外的换行。

例子:Template:SARSr-CoV 的“VOI”处

--Taeas留言2023年11月20日 (一) 17:37 (UTC)[回复]

@Shizhao--Taeas留言2023年12月2日 (六) 03:53 (UTC)[回复]
确定是这个css的问题还是模板的问题?--百無一用是書生 () 2023年12月18日 (一) 07:00 (UTC)[回复]
经测试,移除该 CSS 可解决以上问题,可以确定是 CSS 存在问题。--Taeas留言2023年12月18日 (一) 12:06 (UTC)[回复]
我担心的是会不会影响到其他模板的正常显示--百無一用是書生 () 2023年12月28日 (四) 03:01 (UTC)[回复]
可以先部署,有问题的话再视具体情况解决。--Taeas留言2023年12月28日 (四) 05:08 (UTC)[回复]
@Shizhao、@Xiplus--Taeas留言2024年1月15日 (一) 07:03 (UTC)[回复]

可能需要进一步评估这部分css修改可能会造成的影响--百無一用是書生 () 2024年4月9日 (二) 03:22 (UTC)[回复]

@Shizhao或可先部署,待有人回報問題再看看情況?—— Eric Liu 創造は生命(留言留名學生會 2024年5月28日 (二) 06:03 (UTC)[回复]
完成--百無一用是書生 () 2024年6月2日 (日) 12:10 (UTC)[回复]

編輯請求 2024-07-03

请求已处理

/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
	font-weight: normal;
	/* @noflip */
	text-align: right;
	padding-right: 0.2em;
	padding-left: 0.2em;
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
	/* @noflip */
	float: left;
	/* @noflip */
	text-align: left;
}

从粤语维基百科引入此样式,以消除<th>...</th>标签下展开折叠按钮为粗体的尴尬。--Dabao qian 2024年7月3日 (三) 20:24 (UTC)[回复]

如果消除加粗的话,不应该设置“font-weight”?——Sakamotosan路过围观 | 避免做作,免敬 2024年7月4日 (四) 00:41 (UTC)[回复]
此更改还引入了mw-collapsible-leftside-toggle这一元素块,参见Template:Hidden begin,由于中文版现时缺少对应元素块导致展开折叠按钮改到左侧不生效。--Dabao qian 2024年7月4日 (四) 09:59 (UTC)[回复]
@Dabao qian答非所问,折叠按钮的加粗是因为继承了th的加粗,所以针对性对应这个元素可以设font-weight:normal来抵消。是否存在mw-collapsible-leftside-toggle跟你消除粗体并没直接关联。搬代码好歹要读懂和理解根源吧。简单就是:为什么没有font-weight:normal来达到你提及的效果?——Sakamotosan路过围观 | 避免做作,免敬 2024年7月5日 (五) 02:18 (UTC)[回复]
第三行:font-weight: normal;--Dabao qian 2024年7月5日 (五) 03:45 (UTC)[回复]
囧rz……,无异议。——Sakamotosan路过围观 | 避免做作,免敬 2024年7月5日 (五) 04:20 (UTC)[回复]
完成--百無一用是書生 () 2024年7月11日 (四) 08:51 (UTC)[回复]
需要后续处理:删除第495-506行的内容,即'show'/'hide' buttons created dynamically by the CollapsibleTables javascript之后11行的内容。--Dabao qian 2024年7月11日 (四) 10:09 (UTC)[回复]

編輯請求 2024-07-17

请求已处理

如上,上次编辑之后的后续处理,将507-519行collapseButton元素相关内容删除。--Dabao qian 2024年7月17日 (三) 10:05 (UTC)[回复]

 已修复--百無一用是書生 () 2024年7月21日 (日) 06:39 (UTC)[回复]

編輯請求 2024-07-28

body:not(.skin-vector-search-vue) .mw-body>.firstHeading:lang(zh-hans):before, body:not(.skin-vector-search-vue) .mw-body>.firstHeading:lang(zh-cn):before, body:not(.skin-vector-search-vue) .mw-body>.firstHeading:lang(zh-my):before, body:not(.skin-vector-search-vue) .mw-body>.firstHeading:lang(zh-sg):before {
    content: url(/static/images/mobile/copyright/wikipedia-wordmark-zh-hans.svg);
}

将以上内容移除(Special:固定链接/83591115#条目标题左侧出现多余的“维基百科”)--Func讨论·贡献2024年7月28日 (日) 18:01 (UTC)[回复]

編輯請求 2024-08-04

对应Module:Sidebar于2023年的更新,将Print.css第25行的.ns-0 .vertical-navbox,改为.mediawiki.ns-0 .mw-parser-output .sidebar,。--Dabao qian 2024年8月4日 (日) 08:26 (UTC)[回复]

允许信息框模板使用模板样式

请求更新Common.css以允许信息框模板使用模板样式。

/* Infobox template style */
.infobox {
	border: 1px solid var(--border-color-base,#a2a9b1);
	border-spacing: 3px;
	background-color: var(--background-color-neutral-subtle,#f8f9fa);
	color: inherit;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
	width: 22em;
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	vertical-align: top;
}

.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	padding: 0.2em;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
	/* @noflip */
	text-align: right;
}

.infobox.bordered {
	border-collapse: collapse;
}

--Dabao qian 2024年8月4日 (日) 18:58 (UTC)[回复]