|
| 1 | +.snippet { |
| 2 | + position: relative; |
| 3 | + flex-direction: row; |
| 4 | + gap: calc(2 * var(--base-spacing)); |
| 5 | + padding: calc(3 * var(--base-spacing)) calc(3 * var(--base-spacing)) |
| 6 | + calc(3 * var(--base-spacing)) calc(1 * var(--base-spacing)); |
| 7 | + background-color: var(--action-primary-background-default-solid); |
| 8 | + border: 1px solid transparent; |
| 9 | + color: var(--text-primary); |
| 10 | +} |
| 11 | + |
| 12 | +.snippet pre { |
| 13 | + margin: 0; |
| 14 | +} |
| 15 | + |
| 16 | +.snippet:hover { |
| 17 | + background-color: var(--action-primary-background-hover); |
| 18 | + border: 1px solid var(--border-default); |
| 19 | +} |
| 20 | + |
| 21 | +.snippet .copy-button { |
| 22 | + display: none; |
| 23 | + position: absolute; |
| 24 | + top: calc(3 * var(--base-spacing)); |
| 25 | + right: calc(3 * var(--base-spacing)); |
| 26 | +} |
| 27 | + |
| 28 | +#snippet-showhide { |
| 29 | + display: none; |
| 30 | +} |
| 31 | + |
| 32 | +.snippet-showhide { |
| 33 | + margin-top: calc(2 * var(--base-spacing)); |
| 34 | +} |
| 35 | + |
| 36 | +#snippet-showhide-label::before { |
| 37 | + content: "Show all"; |
| 38 | + color: var(--action-primary-content-default); |
| 39 | + text-decoration: none; |
| 40 | + cursor: pointer; |
| 41 | +} |
| 42 | + |
| 43 | +#snippet-showhide-label:hover::before { |
| 44 | + color: var(--action-primary-content-hover); |
| 45 | +} |
| 46 | + |
| 47 | +#snippet-showhide-label:active::before { |
| 48 | + color: var(--action-primary-content-active); |
| 49 | +} |
| 50 | + |
| 51 | +#snippet-showhide:checked + #snippet-showhide-label::before { |
| 52 | + content: "Hide"; |
| 53 | +} |
| 54 | + |
| 55 | +.snippet:hover { |
| 56 | + background-color: var(--action-primary-background-hover); |
| 57 | + border: 1px solid var(--border-default); |
| 58 | +} |
| 59 | + |
| 60 | +.snippet:hover .copy-button { |
| 61 | + display: block; |
| 62 | +} |
| 63 | + |
| 64 | +.hljs-keyword { |
| 65 | + color: var(--code-method-highlighting-keyword); |
| 66 | +} |
| 67 | + |
| 68 | +.hljs-comment { |
| 69 | + color: var(--code-syntax-highlighting-comment); |
| 70 | +} |
| 71 | + |
| 72 | +.hljs-quote { |
| 73 | + color: var(--code-syntax-highlighting-quote); |
| 74 | +} |
| 75 | + |
| 76 | +.hljs-line-number { |
| 77 | + color: var(--code-syntax-highlighting-line-number); |
| 78 | +} |
| 79 | + |
| 80 | +.hljs-title { |
| 81 | + color: var(--code-syntax-highlighting-title); |
| 82 | +} |
| 83 | + |
| 84 | +.hljs-keyword { |
| 85 | + color: var(--code-syntax-highlighting-keyword); |
| 86 | +} |
| 87 | + |
| 88 | +.hljs-code-fg { |
| 89 | + color: var(--code-syntax-highlighting-code-fg); |
| 90 | +} |
| 91 | + |
| 92 | +.hljs-literal { |
| 93 | + color: var(--code-syntax-highlighting-literal); |
| 94 | +} |
| 95 | + |
| 96 | +.hljs-type { |
| 97 | + color: var(--code-syntax-highlighting-type); |
| 98 | +} |
| 99 | + |
| 100 | +.hljs-subst { |
| 101 | + color: var(--code-syntax-highlighting-subst); |
| 102 | +} |
| 103 | + |
| 104 | +.hljs-meta { |
| 105 | + color: var(--code-syntax-highlighting-meta); |
| 106 | +} |
| 107 | + |
| 108 | +.hljs-string { |
| 109 | + color: var(--code-syntax-highlighting-string); |
| 110 | +} |
| 111 | + |
| 112 | +.hljs-deletion { |
| 113 | + color: var(--code-syntax-highlighting-deletion); |
| 114 | +} |
| 115 | + |
| 116 | +.hljs-variable { |
| 117 | + color: var(--code-syntax-highlighting-variable); |
| 118 | +} |
0 commit comments