Skip to content

SIPC dark mode by carterworks

Screenshot of SIPC dark mode

Details

Authorcarterworks

LicenseNo License

Categorymitpress

Created

Updated

Size1.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Increases the readability for Abelson, Sussman, and Sussman's "Structure and Interpretation of Computer Programs" as hosted on the MIT Press website.. The theme is loosely modeled after gwern.net.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         SIPC dark mode
@version      20220626.19.47
@namespace    userstyles.world/user/carterworks
@description  Increases the readability for Abelson, Sussman, and Sussman's "Structure and Interpretation of Computer Programs" as hosted on [the MIT Press website.](https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book.html). The theme is loosely modeled after [gwern.net](https://gwern.net).
@author       carterworks
@license      No License
==/UserStyle== */

@-moz-document url-prefix("https://mitpress.mit.edu/sites/default/files/sicp/") {
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');

:root {
    --background-color: #111111;
    --text-color: #f1f1f1;
    --link-hover-color: #b1b1b1;

    font-size: 24px;
    line-height: 1.4;
    font-family: 'EB Garamond', serif;
}

body {
    background: var(--background-color);
    color: var(--text-color);
}

a {
    text-decoration: underline dotted;
    text-underline-offset: 5%;
}

a:any-link {
    color: var(--text-color);
}

a:hover {
    color: var(--link-hover-color);
}

p, ul {
    max-width: 50ch;
    hyphens: auto;
}

p + p {
    margin-top: 1.2rem;
}

.navigation {
    position: sticky;
    bottom: 1rem;
    font-size: 0.75rem;
}

.epigraph {
    font-size: 0.75rem;
}

table {
    font-size: inherit;
}

img {
    background: var(--text-color);
    padding: 8px;
    border-radius: 4px;
}

.smallprint hr {
    width: 80%;
}

a[name^="call"] sup {
    margin-left: 4px;
}
}

Reviews

No reviews yet.