Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created March 11, 2019 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/f609878cf9c18755bef5fb2190e1bbe9 to your computer and use it in GitHub Desktop.
Save lonekorean/f609878cf9c18755bef5fb2190e1bbe9 to your computer and use it in GitHub Desktop.
Coder's Block v6 code styles
@mixin code-wrap {
border: 1px dashed #ccc;
background-color: #f2f2f2;
}
code {
font-family: 'Source Code Pro', monospace;
}
// inline code
:not(pre) > code {
@include code-wrap;
padding: 1px 4px;
white-space: nowrap;
}
// block code
pre code {
display: block;
padding: 10px 20px;
border-left: 5px solid #666;
line-height: 1.4;
overflow: auto;
}
// block code wrapper
.gatsby-highlight pre {
@include code-wrap;
margin: 0;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #62707F;
}
.token.punctuation {
color: #6E6E6E;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #527A00;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #8D6535;
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #0072A3;
}
.token.function,
.token.class-name {
color: #D2284A;
}
.token.regex,
.token.important,
.token.variable {
color: #996300;
}
.token.italic,
.token.comment {
font-style: italic;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment