I changed the css of marxists.org using Stylus. I think it ended up pretty good.

Do you do something similar? Even if it’s just changing the font on the ebook reader?

  • TabularTuxedo@lemmygrad.mlOP
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    28 days ago

    CSS:

    spoiler to avoid clutter
    *,
    *:before,
    *:after {
        font-family: "Source Code Pro", "Noto Serif", serif;
    }
    
    :root {
        font-size: 16px;
    }
    
    html {
        background-color: #000;
        max-width: 100vw;
    }
    
    body {
        max-width: 60ch;
        margin: 0 auto;
        padding: min(10em, 10vw);
        font-stretch: expanded;
        background-color: rgb(238, 238, 216);
        color: #333;
        text-align: left;
    }
    
    
    p {
        font-family: inherit;
        text-align: inherit;
        margin: 0;
        margin-top: 1em;
        margin-bottom: 1em;
    }
    
    
    p[class] {
        font-family: inherit;
    }
    
    span.minor {
        font-family: inherit;
    }
    
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: inherit;
    }
    
    a,
    a:link,
    a:visited {
        color: #000;
        text-decoration: underline dotted 2px;
    }
    
    img {
        image-rendering: pixelated;
        filter: grayscale(1);
    }
    
    img:hover {
        image-rendering: initial;
        filter: grayscale(0);
    }
    
    a:hover {
        text-decoration: none;
        background-color: black;
        color: white;
    }