File tree Expand file tree Collapse file tree 6 files changed +49
-28
lines changed Expand file tree Collapse file tree 6 files changed +49
-28
lines changed Original file line number Diff line number Diff line change 35
35
--cm-ttc-c-track : white;
36
36
}
37
37
38
- html [data-kb-theme = "dark" ] {
38
+ html [class = "dark" ] {
39
39
--cm-scheme : dark;
40
40
--cm-foreground : # d4cfbf80 ;
41
- --cm-background : # 121212 ;
42
41
--cm-tooltip-background : # 121212 ;
42
+ --cm-background : # 121212 ;
43
43
--cm-comment : # 758575 ;
44
44
--cm-string : # d48372 ;
45
45
--cm-keyword : # 4d9375 ;
@@ -54,6 +54,9 @@ html[data-kb-theme="dark"] {
54
54
--cm-line-highlight-background : # 4d4d4d29 ;
55
55
--cm-line-highlight-border : # 3a3a3a80 ;
56
56
--cm-selection-background : # 242424 ;
57
+ /* scrollbars colors */
58
+ --cm-ttc-c-thumb : # 3d3d3d ;
59
+ --cm-ttc-c-track : # 000 ;
57
60
}
58
61
59
62
.highlighted ,
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { useImportMap } from "@/hooks/impormap"
5
5
import logger from "@/utils/logger"
6
6
import basicTemplate from "./basic.html?raw"
7
7
8
+ import "./styles.css"
9
+
8
10
interface Props {
9
11
className ?: string
10
12
code : string
@@ -72,7 +74,6 @@ const Preview: React.FC<Props> = ({ code, className }) => {
72
74
< iframe
73
75
ref = { iframeRef }
74
76
title = "preview"
75
- style = { { width : "100%" , height : "100%" , border : "none" } }
76
77
sandbox = "allow-forms allow-modals allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation"
77
78
/>
78
79
</ div >
Original file line number Diff line number Diff line change
1
+ .react-repl-iframe-container > iframe {
2
+ width : 100% ;
3
+ height : 100% ;
4
+ border : none;
5
+ background-color : # fff ;
6
+ }
Original file line number Diff line number Diff line change 24
24
color : var (--repl-text-secondary );
25
25
font-weight : bold;
26
26
border-radius : 3px ;
27
+ border : 1px solid transparent;
27
28
}
28
29
29
30
.repl-tab-button : hover ,
30
31
.repl-tab-button .active {
31
- background-color : var (--repl-primary-hover );
32
- color : var (--repl-bg-primary );
32
+ background-color : var (--repl-hover );
33
33
}
34
34
35
35
.repl-tab-button .active {
36
- color : var (--repl-bg-primary );
37
- background-color : var (--repl-primary-color );
36
+ color : var (--repl-text-primary );
37
+ background-color : var (--repl-hover );
38
+ border-color : var (--repl-border-color );
38
39
}
39
40
40
41
.repl-output-content {
Original file line number Diff line number Diff line change 30
30
flex-shrink : 0 ;
31
31
position : relative;
32
32
z-index : 10 ;
33
+
34
+ transition : transform 0.2s ease-in-out;
33
35
}
34
36
35
37
.repl-split-panel-divider : hover ,
36
38
.repl-split-panel-divider : active {
37
- background-color : var ( --repl-primary-color );
39
+ transform : scale ( 2 );
38
40
}
Original file line number Diff line number Diff line change 1
- .react-repl {
2
- height : 100% ;
3
- width : 100% ;
4
- margin : 0px ;
5
- }
6
-
7
- # gtx-trans ,
8
- grammarly-extension ,
9
- deepl-inline-translate ,
10
- grammarly-popups ,
11
- deepl-inline-popup ,
12
- grammarly-desktop-integration {
13
- display : none !important ;
14
- }
15
-
16
1
: root {
17
2
/* Base Colors */
18
- --repl-primary-color : # 1e9dbc ;
19
- --repl-primary-hover : # 58c4dc ;
3
+ --repl-primary-color : # ffffff ;
20
4
21
5
/* UI Colors */
22
6
--repl-divider-color : # e0e0e0 ;
7
+ --repl-border-color : # e4e4e7 ;
8
+ --repl-hover : # f4f4f5 ;
23
9
24
10
/* Text Colors */
25
- --repl-text-primary : # 393a34 ;
11
+ --repl-text-primary : # 000 ;
26
12
--repl-text-secondary : # 858585 ;
27
13
28
14
/* Background Colors */
29
15
--repl-bg-primary : # fdfdfd ;
30
- --repl-bg-secondary : # f5f5f5 ;
31
- --repl-bg-hover : rgba (0 , 0 , 0 , 0.04 );
16
+ }
17
+
18
+ .dark {
19
+ /* Base Colors */
20
+ --repl-primary-color : # 09090b ;
21
+
22
+ /* UI Colors */
23
+ --repl-divider-color : # 27272a ;
24
+ --repl-border-color : # 27272a ;
25
+ --repl-hover : # 09090b ;
26
+
27
+ /* Text Colors */
28
+ --repl-text-primary : # fff ;
29
+ --repl-text-secondary : # 858585 ;
30
+
31
+ /* Background Colors */
32
+ --repl-bg-primary : # 09090b ;
33
+ }
34
+
35
+ .react-repl {
36
+ height : 100% ;
37
+ width : 100% ;
38
+ margin : 0px ;
39
+ background-color : var (--repl-bg-primary );
32
40
}
You can’t perform that action at this time.
0 commit comments