A much cleaner and more modern version of GreasyFork!
当前为
/* ==UserStyle==
@name GreasyFork | Modernized
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A much cleaner and more modern version of GreasyFork!
@author Freeplay(https://il.ink/freeplay)
==/UserStyle== */
@-moz-document domain("greasyfork.org") {
@media only screen and (min-width: 921px) { /* Disables itself when width is less than 921px due to it breaking */
body > .width-constraint {
max-width: 100%;
margin: 0;
padding: 10px;
}
.sidebarred {
margin-left: auto;
max-width: calc(100% - 220px) !important;
}
.text-content {
margin-left: auto;
max-width: calc(100% - 220px) !important;
border: none;
padding-top: 2px;
}
/* HEADER */
#main-header {
position: sticky;
top: 0;
width: 100%;
padding: 0;
z-index: 100;
background-image: none;
background-color: #ff2b2b;
}
#main-header > .width-constraint{
max-width: 100%;
padding-left: 10px;
padding-right: 10px;
display: flex;
align-items: center;
}
#site-name {
position: absolute;
width: 200px;
min-width: 200px;
height: 30px;
margin-top: auto;
margin-bottom: auto;
}
#site-name > a > img {
height: 30px;
}
#site-name-text > h1 {
height: 30px;
font-size: 25px;
}
#site-nav {
display: flex;
height: 40px;
width: auto;
align-items: center;
margin-left: auto;
}
#site-nav > * {
position: relative !important;
}
#site-nav > nav {
width: 250px !important;
min-width: 250px;
}
#nav-user-info {
width: 300px;
min-width: 300px;
}
/* SIDEBAR */
.sidebar {
position: fixed;
left: 0;
background-color: white;
padding: 0;
margin: 0;
top: 44px;
overflow-y: auto;
overflow-x: hidden;
width: 220px;
height: calc(100% - 44px);
box-shadow: 5px 0px 5px rgba(0,0,0,0.1);
text-decoration: none !important;
}
.sidebar-search {
height: 50px;
}
.sidebar-search:hover > input {
border-bottom: 1px solid rgba(0,0,0,0.2) !important;
}
.sidebar-search input[type="search"] {
height: 30px;
padding: 0;
margin: 10px;
border: none;
width: 200px;
}
.sidebar-search input[type="submit"] {
display: none;
}
#script-list-option-groups > div {
padding: 10px;
}
#script-list-option-groups > div > ul {
background-color: transparent;
box-shadow: none;
border: none;
margin: -10px;
}
.list-option > a {
text-decoration: none;
}
/* LISTS */
#browse-script-list, #user-script-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
grid-gap: 10px;
border: none;
box-shadow: none;
background-color: transparent;
}
#browse-script-list > li, #user-script-list > li {
border: none !important;
border-radius: 5px;
background-color: white;
transition: box-shadow .2s;
}
#browse-script-list > li:hover, #user-script-list > li:hover {
box-shadow: 0px 2px 20px rgba(0,0,0,0.1);
}
.script-list li:not(.ad-entry) {
border-right: 1px solid #DDDDDD;
}
.ad-entry, #codefund {
grid-column: 1/-1;
}
/*** USER PAGE ***/
/* Control Panel */
#user-control-panel {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
grid-gap: 10px;
padding: 0;
}
#user-control-panel > li {
text-decoration: none;
list-style: none;
text-align: center;
background-color: #eee;
padding: 5px 0;
border-radius: 5px;
}
}
}