|
2 | 2 | * Copyright (c) Facebook, Inc. and its affiliates.
|
3 | 3 | */
|
4 | 4 |
|
| 5 | +html .sp-wrapper { |
| 6 | + /* palette */ |
| 7 | + --sp-colors-fg-active: #24292e !important; |
| 8 | + --sp-colors-fg-default: #959da5 !important; |
| 9 | + --sp-colors-fg-inactive: #e4e7eb !important; |
| 10 | + --sp-colors-bg-active: #e4e7eb !important; |
| 11 | + --sp-colors-bg-default: #ffffff !important; |
| 12 | + --sp-colors-bg-default-overlay: #ffffff !important; |
| 13 | + --sp-colors-bg-input: #ffffff !important; |
| 14 | + --sp-colors-accent: #c8c8fa !important; |
| 15 | + --sp-colors-bg-error: #ffcdca !important; |
| 16 | + --sp-colors-fg-error: #811e18 !important; |
| 17 | + /* syntax */ |
| 18 | + --theme-plain: #24292e; |
| 19 | + --theme-comment: #6a737d; |
| 20 | + --theme-keyword: #d73a49; |
| 21 | + --theme-tag: #22863a; |
| 22 | + --theme-punctuation: #24292e; |
| 23 | + --theme-definition: #6f42c1; |
| 24 | + --theme-property: #005cc5; |
| 25 | + --theme-static: #032f62; |
| 26 | + --theme-string: #032f62; |
| 27 | +} |
| 28 | +html.dark .sp-wrapper { |
| 29 | + --sp-colors-fg-active: #FFFFFF !important; |
| 30 | + --sp-colors-fg-default: #999999 !important; |
| 31 | + --sp-colors-fg-inactive: #343434 !important; |
| 32 | + --sp-colors-bg-active: #343434 !important; |
| 33 | + --sp-colors-bg-default: #16181D !important; |
| 34 | + --sp-colors-bg-default-overlay: #16181D !important; |
| 35 | + --sp-colors-bg-input: #242424 !important; |
| 36 | + --sp-colors-accent: #6caedd !important; |
| 37 | + --sp-colors-bg-error: #ffcdca !important; |
| 38 | + --sp-colors-fg-error: #811e18 !important; |
| 39 | + /* syntax */ |
| 40 | + --theme-plain: #FFFFFF; |
| 41 | + --theme-comment: #757575; |
| 42 | + --theme-keyword: #77B7D7; |
| 43 | + --theme-tag: #DFAB5C; |
| 44 | + --theme-punctuation: #ffffff; |
| 45 | + --theme-definition: #86D9CA; |
| 46 | + --theme-property: #77B7D7; |
| 47 | + --theme-static: #C64640; |
| 48 | + --theme-string: #977CDC; |
| 49 | +} |
| 50 | + |
| 51 | +.sp-tabs, .sp-tab-button:hover { |
| 52 | + background: none !important; |
| 53 | +} |
| 54 | + |
5 | 55 | .sp-tabs .sp-tab-button {
|
6 |
| - color: #087EA4; |
| 56 | + color: #087ea4; |
7 | 57 | padding: 0 4px;
|
8 | 58 | }
|
9 | 59 |
|
10 | 60 | html.dark .sp-tabs .sp-tab-button {
|
11 |
| - color: #149ECA; |
| 61 | + color: #149eca; |
12 | 62 | }
|
13 | 63 |
|
14 | 64 | .sp-tabs .sp-tab-button:hover {
|
15 |
| - color: #087EA4; |
| 65 | + color: #087ea4; |
16 | 66 | }
|
17 | 67 |
|
18 | 68 | html.dark .sp-tabs .sp-tab-button:hover {
|
19 |
| - color: #149ECA; |
| 69 | + color: #149eca; |
20 | 70 | }
|
21 | 71 |
|
22 | 72 | .sp-tabs .sp-tab-button[data-active='true'] {
|
23 |
| - color: #087EA4; |
24 |
| - border-bottom: 2px solid #087EA4; |
| 73 | + color: #087ea4; |
| 74 | + border-bottom: 2px solid #087ea4; |
25 | 75 | }
|
26 | 76 |
|
27 | 77 | html.dark .sp-tabs .sp-tab-button[data-active='true'] {
|
28 |
| - color: #149ECA; |
29 |
| - border-bottom: 2px solid #149ECA; |
| 78 | + color: #149eca; |
| 79 | + border-bottom: 2px solid #149eca; |
30 | 80 | }
|
31 | 81 |
|
32 | 82 | .sp-stack .sp-code-editor,
|
@@ -60,57 +110,54 @@ html.dark .sp-tabs .sp-tab-button[data-active='true'] {
|
60 | 110 | *
|
61 | 111 | * If you know a better way to keep them from diverging, send a PR.
|
62 | 112 | */
|
63 |
| - .sp-layout { |
| 113 | +.sp-layout { |
64 | 114 | border-bottom-left-radius: 0.5rem !important;
|
65 | 115 | border-bottom-right-radius: 0.5rem !important;
|
66 | 116 | }
|
67 |
| - |
68 |
| -.cm-activeLine { |
69 |
| - background: rgba(245, 247, 250, var(--tw-bg-opacity)) !important; |
70 |
| -} |
71 |
| -.sp-code-editor { |
72 |
| - background: white !important; |
73 |
| -} |
74 | 117 | .sp-stack {
|
75 | 118 | height: initial !important;
|
76 | 119 | width: fit-content !important;
|
77 | 120 | }
|
78 | 121 | .sp-cm {
|
79 | 122 | -webkit-text-size-adjust: none !important;
|
| 123 | + padding: 0 !important; |
80 | 124 | }
|
81 |
| -.cm-wrap, |
82 |
| -.cm-wrap .cm-gutters { |
| 125 | +.cm-wrap { |
83 | 126 | background: transparent !important;
|
84 | 127 | }
|
85 | 128 | .sp-pre-placeholder {
|
86 | 129 | display: block !important;
|
87 | 130 | margin-top: 0px !important;
|
88 | 131 | margin-bottom: 0px !important;
|
| 132 | + padding: 18px var(--sp-space-3) !important; |
89 | 133 | @apply font-mono !important;
|
90 | 134 | font-size: 13.6px !important;
|
91 | 135 | line-height: 24px !important;
|
| 136 | + height: 100%; |
| 137 | + overflow: scroll; |
92 | 138 | }
|
93 | 139 | .text-xl .sp-pre-placeholder {
|
94 | 140 | font-size: 16px !important;
|
95 | 141 | line-height: 24px !important;
|
96 | 142 | }
|
97 | 143 | .sp-cm.sp-pristine .cm-scroller {
|
98 | 144 | overflow: auto !important;
|
| 145 | + padding: 18px 0 !important; |
99 | 146 | }
|
100 | 147 | .sp-layout {
|
101 | 148 | overflow: initial !important;
|
102 |
| - border:0px solid transparent !important; |
| 149 | + border: 0px solid transparent !important; |
103 | 150 | border-top-left-radius: 0px !important;
|
104 | 151 | border-top-right-radius: 0px !important;
|
105 | 152 | }
|
106 |
| -html.dark .sp-layout>:not(:first-child) { |
107 |
| - border-color: #343A46; |
| 153 | +html.dark .sp-layout > :not(:first-child) { |
| 154 | + border-color: #343a46; |
108 | 155 | }
|
109 | 156 | html.dark .sp-layout {
|
110 |
| - background-color: #343A46; |
| 157 | + background-color: #343a46; |
111 | 158 | }
|
112 | 159 | html.dark .sp-loading {
|
113 |
| - background-color: #23272F; |
| 160 | + background-color: #23272f; |
114 | 161 | }
|
115 | 162 |
|
116 | 163 | @media (min-width: 768px) {
|
|
0 commit comments