跳至內容

MediaWiki討論:Common.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)[回覆]