|
| 1 | +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file |
| 2 | +// for details. All rights reserved. Use of this source code is governed by a |
| 3 | +// BSD-style license that can be found in the LICENSE file. |
| 4 | + |
| 5 | +pre code { |
| 6 | + white-space: pre; |
| 7 | + word-wrap: initial; |
| 8 | + font-size: 100% |
| 9 | +} |
| 10 | + |
| 11 | +pre { |
| 12 | + border: 1px solid #ddd; |
| 13 | + background-color: #eee; |
| 14 | + font-size: 14px; |
| 15 | +} |
| 16 | + |
| 17 | +code { |
| 18 | + font-family: 'Roboto Mono', Menlo, monospace; |
| 19 | + color: inherit; |
| 20 | + padding: 0.2em 0.4em; |
| 21 | + font-size: 85%; |
| 22 | + background-color: rgba(27, 31, 35, 0.05); |
| 23 | + border-radius: 3px; |
| 24 | +} |
| 25 | + |
| 26 | +// Syntax highlighting, for highlightjs rendered code: |
| 27 | + |
| 28 | +.hljs-string, .hljs-doctag { |
| 29 | + color: var(--main-string-color); |
| 30 | +} |
| 31 | + |
| 32 | +.hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable, .hljs-tag .hljs-attr { |
| 33 | + color: var(--main-var-color); |
| 34 | +} |
| 35 | + |
| 36 | +.hljs-comment, .hljs-quote { |
| 37 | + color: var(--main-comment-color); |
| 38 | + font-style: italic; |
| 39 | +} |
| 40 | + |
| 41 | +.hljs-title, .hljs-section, .hljs-selector-id { |
| 42 | + color: var(--main-section-color); |
| 43 | + font-weight: bold; |
| 44 | +} |
| 45 | + |
| 46 | +.hljs-tag, .hljs-name, .hljs-attribute { |
| 47 | + color: var(--main-tag-color); |
| 48 | + font-weight: normal; |
| 49 | +} |
| 50 | + |
| 51 | +.hljs-keyword, .hljs-selector-tag, .hljs-subst { |
| 52 | + color: var(--main-keyword-color); |
| 53 | + font-weight: bold; |
| 54 | +} |
| 55 | + |
| 56 | +.hljs { |
| 57 | + display: block; |
| 58 | + overflow-x: auto; |
| 59 | + padding: 0.5em; |
| 60 | + color: var(--main-text-color); |
| 61 | + background: var(--main-code-bg); |
| 62 | +} |
0 commit comments