GitHub - single column with important info on the top

Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign

当前为 2020-07-08 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name           GitHub - single column with important info on the top
@description    Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign
@namespace      myfonj
@version        1.0.0
@license        CC0 - Public Domain
==/UserStyle== */
@-moz-document domain("github.com") {
/*
GitHub - single column with important info on the top
if this style ceases to work (or has opposite effect),
hopefully they reverted that wicked nonsense
("Main content" element is the "last" one. See below.)
*/
.repository-content > div {
	flex-direction: column-reverse !important;
}

.repository-content > div > div {
	width: auto;
}

/*
 This div should be MAIN and should be near H1 or something.
 It is suffocated at the end of the document in sidebar instead :(
*/
.repository-content > div > div:last-child > div {
	display: flex;
	flex-direction: row;
}

.repository-content > div > div:last-child > div > div > div {
	border: none;
	padding-top: 0;
	padding-right: 2rem;
	padding-bottom: 3rem;
}

/* old-school */
.repository-content > div > div:last-child > div > div:last-child > div {
	padding-right: 0;
}

/* "About" heading is superfluous now */
.repository-content > div > div:last-child > div > div:first-child > div > h2 {
	display: none;
}

.repository-content > div > div:last-child > div > div:first-child > div > h2 + p {
	margin-top: 0 !important;
}

/* shrink contributors list a bit, to give other columns more space */
.repository-content > div > div:last-child > div > div > div > ul.list-style-none.d-flex {
	max-width: 10.1rem
}

}