mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-16 18:28:04 -05:00
* Bump version to 2.0.0; bump dependencies versions * Make v2 docs the primary docs; jettison the v1 docs’ source: whenever the v1 docs need to be rebuild in the future, that can be done on the `1` branch and copied over; simplify folder tree * Updated v1 docs that reflect that v2 is out and have updated paths to reflect that the v2 docs are now the primary docs, and the v1 docs only live under /v1/ * Add Google Analytics; track navigation, editing code and running code * 2.0.0 changelog * Fix link to root docs * No more @next; installing local copy should be --save-dev * Analytics on the browser-based tests page should prove fascinating . . . * Update annotated source * Add note to changelog clarifying scope
101 lines
2.2 KiB
CSS
101 lines
2.2 KiB
CSS
/* Adapted from https://github.com/FarhadG/code-mirror-themes/blob/master/themes/twilight.css */
|
|
|
|
.CodeMirror,
|
|
.placeholder-code {
|
|
letter-spacing: 0.3px;
|
|
color: #f8f8f8;
|
|
/* Prevent mobile Safari from zooming in on our code editors; the code is 16px naturally, but somehow being explicit about it prevents the zooming */
|
|
font-size: 16px;
|
|
}
|
|
.CodeMirror-lines {
|
|
padding: 0.5em 0;
|
|
}
|
|
.placeholder-code {
|
|
padding: 0.5em 4px;
|
|
margin-bottom: 1.3rem;
|
|
white-space: pre-wrap;
|
|
}
|
|
div.CodeMirror-cursor {
|
|
border-left: 3px solid #f8f8f8;
|
|
}
|
|
.CodeMirror-activeline-background {
|
|
background: #ffffff08;
|
|
}
|
|
.CodeMirror-selected {
|
|
background: #ddf0ff33;
|
|
}
|
|
.cm-comment,
|
|
.placeholder-code .comment {
|
|
font-style: italic;
|
|
color: #5f5a60;
|
|
}
|
|
.cm-keyword,
|
|
.placeholder-code .keyword {
|
|
color: #cda869;
|
|
}
|
|
.cm-string,
|
|
.placeholder-code .string {
|
|
color: #8f9d6a;
|
|
}
|
|
.cm-property,
|
|
.placeholder-code .attribute {
|
|
color: #dad085;
|
|
}
|
|
.cm-atom {
|
|
color: #dad085;
|
|
}
|
|
.cm-number,
|
|
.placeholder-code .number,
|
|
.placeholder-code .built_in,
|
|
.placeholder-code .builtin-name,
|
|
.placeholder-code .literal,
|
|
.placeholder-code .type,
|
|
/*.placeholder-code .params,*/
|
|
.placeholder-code .meta,
|
|
.placeholder-code .link {
|
|
color: #dad085;
|
|
}
|
|
.cm-operator,
|
|
.placeholder-code .punctuation,
|
|
.placeholder-code .symbol,
|
|
.placeholder-code .bullet,
|
|
.placeholder-code .addition,
|
|
.placeholder-code .operator {
|
|
color: #cda869;
|
|
}
|
|
|
|
/* Uneditable code blocks are inverted, so use darker versions of the above */
|
|
|
|
.uneditable-code-block .comment {
|
|
font-style: italic;
|
|
color: #837B85;
|
|
}
|
|
.uneditable-code-block .class,
|
|
.uneditable-code-block .function,
|
|
.uneditable-code-block .keyword,
|
|
.uneditable-code-block .reserved,
|
|
.uneditable-code-block .title {
|
|
color: #534328;
|
|
}
|
|
.uneditable-code-block .string
|
|
.uneditable-code-block .value
|
|
.uneditable-code-block .inheritance
|
|
.uneditable-code-block .header {
|
|
color: #3A4029;
|
|
}
|
|
.uneditable-code-block .variable,
|
|
.uneditable-code-block .literal,
|
|
.uneditable-code-block .tag,
|
|
.uneditable-code-block .regexp,
|
|
.uneditable-code-block .subst,
|
|
.uneditable-code-block .property {
|
|
color: #474429;
|
|
}
|
|
.uneditable-code-block .number,
|
|
.uneditable-code-block .preprocessor,
|
|
.uneditable-code-block .built_in,
|
|
.uneditable-code-block .params,
|
|
.uneditable-code-block .constant {
|
|
color: #474429;
|
|
}
|