Anyone here written a userstyle before? (not site style request)

blackflaggeek

New member
as ive been getting more into web development i want to use my skills for something. making userstyles seems like good practice with css but ive run into a roadblock and i got no real help on the userstyles site forums (its near dead). ive "written" the code but i have no idea how to make it into a style(yes i read the documentation and followed the instructions). the site is sublime's package control website. i like dark styles on websites i frequent often and this one didnt have one so im attempting to make one. anyway heres the code (sorry for lack of commenting ill add some when i get it working)





PHP:
@namespace url(cant post clickable linksl);
 @ -moz-document domain(cant post clickable links) {
    header {
        background-image: -moz-linear-gradient(bottom, #b1b1b1 0%, #1b1b1b 100%);
    }
    body {
        background-color: #1b1b1b;
    }
    header form input#search {
        background-color: #353535;
    }
    header nav a {
        color: #CACACA;
    }
    ul.packages li.hover {
        background-color: #424242;
    }
    footer {
        background-color: #1b1b1b;
    }
    kbd, tt, code {
        background-color: #363636;
        text-shadow: none;
    }
    p.code {
        background-color: #363636;
    }
    .code st3 {
        color:#353535;
    }
    body.package div#readme div.contents {
        background-color: #1b1b1b;
    }
    body.package div#readme div.contents code {
        background-color: #363636;
    }
    pre {
        text-shadow: 0 1px 0 #363636;
    }
    body.package div#readme div.contents pre {
        background-color: #363636;
    }
    body.package div#installs div#daily_installs .grid line.minor {
        stroke: #363636;
    }
    body.package div#installs div#daily_installs .grid .major.tick line {
        stroke: #363636;
    }
    .st3, .st2 {
        background-color: #363636;
        color: #a2a2a2;
    }
}


heres a picture of the code in sublime to be more readable.
 

Attachments

  • 2014-05-04_20-57-57.png
    2014-05-04_20-57-57.png
    37.2 KB · Views: 5

Sander k

New member
And what exactly do you want to know? I don't understand.
I am not that good with css, I am more a PHP guy.