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-09-25 提交的版本,查看 最新版本

/* ==UserStyle==
@name           GitHub - single column with important info on the top
@namespace      myfonj
@version        1.0.2
@description    Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign
@author         myf
==/UserStyle== */
@-moz-document regexp("^https?://github.com/([^#?/]*?)/([^#?/]*?)/?([#?].*)?$") {
/*
https://greasyfork.org/en/scripts/406729/versions/new
*/
.repository-content > div {
	flex-direction: column-reverse !important;
}

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

/*
 for god's sake, this div should be MAIN and should be near H1 or something
 not suffocated at the end of the document in sidebar
*/
.repository-content > div > div:last-child > div {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.repository-content > div > div:last-child > div > * {
	flex-grow: 1;
	flex-shrink: 1;
	Xoutline: 1px solid red;
}
.repository-content > div > div:last-child .mt-3:not(.f4) ~ * {
	Xoutline: 1px solid red;
	display: inline-block !important;
}


.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 > * {
	Xmax-width: 40em;
}


.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 {
	xmax-width: 10.1rem;
}
/* last column with lng meter */
.repository-content > div > div:last-child > div > div:last-child {
	xmax-width: 10rem;
}

}