// Code // // Inline and block-level code snippets. Includes tweaks to syntax highlighted // snippets from Pygments/Rouge and Gist embeds. code, pre { font-family: $code-font-family; } code { padding: .2em .45em; font-size: 80%; color: rgba(var(--rgb-primary), 0.85); background-color: rgba(var(--rgb-primary), 0.1); border-radius: 3px; } pre { margin-top: 0; margin-bottom: 1rem; } pre code { padding: 0; font-size: 100%; color: #f8f8f2; background-color: transparent; } // Pygments via Jekyll .highlight { padding: 0.4rem; margin: 0 0 1rem; font-size: 0.8rem; line-height: 1.4; background-color: #272822; border-radius: 0.25rem; pre { margin-bottom: 0; overflow-x: auto; } .lineno { display: inline-block; // Ensures the null space also isn't selectable padding-right: 0.75rem; padding-left: 0.25rem; color: #999; // Make sure numbers aren't selectable -webkit-user-select: none; -moz-user-select: none; user-select: none; } } // Gist via GitHub Pages // .gist .gist-file { // font-family: Menlo, Monaco, "Courier New", monospace !important; // } // .gist .markdown-body { // padding: 15px; // } // .gist pre { // padding: 0; // background-color: transparent; // } // .gist .gist-file .gist-data { // font-size: .8rem !important; // line-height: 1.4; // } // .gist code { // padding: 0; // color: inherit; // background-color: transparent; // border-radius: 0; // }