/* ==UserStyle==
@name GreasyFork | Modernized
@namespace github.com/openstyles/stylus
@version 1.0.2
@description A much cleaner and more modern version of GreasyFork!
@author Freeplay(https://il.ink/freeplay)
@preprocessor stylus
--- SETTINGS ---
@var checkbox darkmode "Dark Mode" 0 -- NOT READY FOR USE
==/UserStyle== */
/* UPDATE - Jun, 7 / 20
- Changed links back to underlines, Didn't work too well in some areas
*/
/* UPDATE - Jun, 5 / 20
- Minor changes - AKA other things I forgot to log.
- Modern TextBox
- Sortof Modern Dropdown
- Links are now shown by the blue color instead of the underline, hovering displays underline
- Tweaked Header
*/
@-moz-document domain("greasyfork.org") {
@media only screen and (min-width: 921px) { /* Disables itself when width is less than 921px due to it breaking */
:root {
if darkmode {
--color-primary: #272b36;
--color-secondary: #272b3a;
--color-tertiary: #2c3242;
--color-bg: #1c1f28;
--color-text: #eee;
--color-link: #00b3ff;
--color-link-visited: cyan;
--shadow-normal: 0 0 5px rgba(0,0,0,0.5);
--shadow-button: 0px 0px 2px rgba(150,150,150,0.3);
} else {
--color-primary: #ff2b2b;
--color-secondary: white;
--color-tertiary: white;
--color-bg: #F6F6F6;
--color-text: black;
--color-link: #0265be;
--color-link-visited: #cf2525;
--shadow-normal: 0 0 5px #DDDDDD;
--shadow-button: 0px 0px 2px rgba(0,0,0,0.2);
}
}
body {
margin-top: 44px;
}
/* TEXT */
p {
color: var(--color-text);
}
/* BUTTONS/LINKS */
select, option, input, button {
border: none;
box-shadow: var(--shadow-button);
border-radius: 5px;
padding: 5px;
transition: all .2s;
background-color: var(--color-secondary);
color: var(--color-text);
}
select:hover, input:hover, input:focus, button:hover {
/*border-bottom: 1px solid rgba(0,0,0,0.2) !important; */
box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
background-color: var(--color-tertiary);
}
nav > li > a, .pagination > a, #user-control-panel > li > a, #script-links > li > a, div[class="list-option-group"] > ul > li > a, h2 > a {
text-decoration: none;
color: var(--color-text);
}
a {
text-underline-offset: .25em;
}
a:hover {
text-decoration: underline !important;
}
a:visited {
color: var(--color-link-visited);
}
body {
background-color: var(--color-bg);
}
body > .width-constraint {
max-width: 100%;
margin: 0;
padding: 10px;
}
section {
border: none !important;
}
.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: fixed;
top: 0;
width: 100%;
height: 44px;
padding: 0;
z-index: 1;
background-image: none;
background-color: var(--color-primary);
}
#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: 100%;
min-width: 300px;
}
#nav-user-info > form > select {
margin: 0 10px;
}
.with-submenu > nav {
background-color: var(--color-primary);
}
/* SIDEBAR */
.sidebar {
position: fixed;
left: 0;
z-index: 2;
background-color: var(--color-secondary);
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 input[type="search"] {
height: 30px;
/*padding: 0*/
margin: 10px;
border: none;
width: 200px;
/*background-color: transparent;*/
color: var(--color-text);
}
.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;
}
/*ist-option > a {
text-decoration: none;
}*/
/* LISTS */
#browse-script-list, #user-script-list, #user-deleted-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, #user-deleted-script-list > li {
border: none !important;
border-radius: 5px;
background-color: var(--color-secondary);
transition: box-shadow .2s;
color: var(--color-text);
}
#browse-script-list > li:hover, #user-script-list > li:hover, #user-deleted-script-list > li:hover {
box-shadow: 0px 2px 20px rgba(0,0,0,0.1);
}
#browse-script-list > li > article {
height: 100%;
display: flex;
flex-wrap: wrap;
}
#browse-script-list > li > article > h2 {
overflow: hidden;
}
.inline-script-stats {
margin-top: auto;
width: 100%;
}
.script-list li:not(.ad-entry) {
border-right: 1px solid #DDDDDD;
}
.ad-entry, #codefund {
grid-column: 1/-1;
}
.sidebarred-main-content > p:last-child {
display: none;
}
/*** FILTER BY SITES PAGE ***/
/*** SCRIPT DETAILS PAGE ***/
/*** USER PAGE ***/
/* Control Panel */
#user-control-panel {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
grid-gap: 10px;
padding: 10px;
}
#user-control-panel > li {
text-decoration: none;
list-style: none;
text-align: center;
background-color: #eee;
padding: 5px 0;
border-radius: 5px;
}
}
}