Right sidebar at repository page with description and other becomes top row, quite like it used to be before 2020 redesign
当前为
/* ==UserStyle==
@name GitHub - single column with important info on the top
@namespace myfonj
@version 1.0.1
@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/[^?#/]+?/[^?#/]+?(?!/)") {
/*
GitHub - single column with important info on the top
if this style
*/
.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;
}
.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
}
}