File tree 3 files changed +95
-89
lines changed
3 files changed +95
-89
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ a:hover {
31
31
color : # 424d5b ;
32
32
}
33
33
34
-
35
- main {
34
+ main ,
35
+ footer {
36
36
padding : 0 1.5rem ;
37
37
}
38
38
@@ -49,26 +49,6 @@ main {
49
49
flex-direction : column;
50
50
}
51
51
52
- textarea : focus ,
53
- textarea : focus-visible {
54
- outline : none;
55
- }
56
- .preview {
57
- position : relative;
58
- border-top : 1px solid # dfe0e5 ;
59
- padding : 1.5rem 1rem ;
60
- }
61
- .preview--error {
62
- margin : 0 ;
63
- padding : 8px ;
64
- font-size : 13px ;
65
- color : # f47067 ;
66
- position : absolute;
67
- top : 0 ;
68
- right : 0 ;
69
- left : 0 ;
70
- bottom : 0 ;
71
- }
72
52
.executor {
73
53
position : absolute;
74
54
right : 8px ;
@@ -78,73 +58,7 @@ textarea:focus-visible {
78
58
border-radius : 4px ;
79
59
color : # fff ;
80
60
}
81
- .preview--result {
82
- font-family : Consolas, Monaco, monospace;
83
- border : none;
84
- font-size : 16px ;
85
- line-height : 1.25em ;
86
- background-color : # fff ;
87
- width : 100% ;
88
- }
89
-
90
- .filetree {
91
- display : flex;
92
- position : relative;
93
- flex-wrap : wrap;
94
- padding-right : 2rem ;
95
- }
96
-
97
- .filetab {
98
- position : relative;
99
- padding : 0.4rem 1.5rem ;
100
- border : none;
101
- line-height : 1 ;
102
- background-color : # fff ;
103
- cursor : pointer;
104
- color : # 000 ;
105
- }
106
- .filetab : hover {
107
- opacity : .8 ;
108
- }
109
- .filetab--active {
110
- color : # 087ea4 ;
111
- }
112
- .filetab--active ::after {
113
- content : '' ;
114
- position : absolute;
115
- bottom : -2px ;
116
- height : 2px ;
117
- background : # 087ea4 ;
118
- left : 0 ;
119
- width : 100% ;
120
- }
121
- .filetab--new {
122
- padding : 0 ;
123
- color : # 087ea4 ;
124
- background-color : # f0f0f0 ;
125
- }
126
- .filetab__button {
127
- display : inline-block;
128
- padding : 0.4rem 1.5rem ;
129
- margin : 0 ;
130
- line-height : 1 ;
131
- border : none;
132
- background-color : transparent;
133
- cursor : pointer;
134
- color : # 70858c ;
135
- }
136
- .filetab__input {
137
- display : inline-block;
138
- outline : none;
139
- border : none;
140
- padding : 0.4rem 1.5rem ;
141
- margin : 0 ;
142
- background-color : # f0f0f0 ;
143
- }
144
61
145
- [data-codesandbox ] {
146
- box-shadow : 0 24px 40px 4px rgb (200 200 200 / 50% );
147
- }
148
62
149
63
.titles {
150
64
display : flex;
@@ -196,7 +110,8 @@ textarea:focus-visible {
196
110
}
197
111
198
112
@media (max-width : 640px ) {
199
- main {
113
+ main ,
114
+ footer {
200
115
padding : 0 0.5rem ;
201
116
}
202
117
.filetree {
Original file line number Diff line number Diff line change
1
+ textarea : focus ,
2
+ textarea : focus-visible {
3
+ outline : none;
4
+ }
5
+ .preview {
6
+ position : relative;
7
+ border-top : 1px solid # dfe0e5 ;
8
+ padding : 1.5rem 1rem ;
9
+ }
10
+ .preview--error {
11
+ margin : 0 ;
12
+ padding : 8px ;
13
+ font-size : 13px ;
14
+ color : # f47067 ;
15
+ position : absolute;
16
+ top : 0 ;
17
+ right : 0 ;
18
+ left : 0 ;
19
+ bottom : 0 ;
20
+ }
21
+ .preview--result {
22
+ font-family : Consolas, Monaco, monospace;
23
+ border : none;
24
+ font-size : 16px ;
25
+ line-height : 1.25em ;
26
+ background-color : # fff ;
27
+ width : 100% ;
28
+ }
29
+
30
+ .filetree {
31
+ display : flex;
32
+ position : relative;
33
+ flex-wrap : wrap;
34
+ padding-right : 2rem ;
35
+ }
36
+
37
+ .filetab {
38
+ position : relative;
39
+ padding : 0.4rem 1.5rem ;
40
+ border : none;
41
+ line-height : 1 ;
42
+ background-color : # fff ;
43
+ cursor : pointer;
44
+ color : # 000 ;
45
+ }
46
+ .filetab : hover {
47
+ opacity : .8 ;
48
+ }
49
+ .filetab--active {
50
+ color : # 087ea4 ;
51
+ }
52
+ .filetab--active ::after {
53
+ content : '' ;
54
+ position : absolute;
55
+ bottom : -2px ;
56
+ height : 2px ;
57
+ background : # 087ea4 ;
58
+ left : 0 ;
59
+ width : 100% ;
60
+ }
61
+ .filetab--new {
62
+ padding : 0 ;
63
+ color : # 087ea4 ;
64
+ background-color : # f0f0f0 ;
65
+ }
66
+ .filetab__button {
67
+ display : inline-block;
68
+ padding : 0.4rem 1.5rem ;
69
+ margin : 0 ;
70
+ line-height : 1 ;
71
+ border : none;
72
+ background-color : transparent;
73
+ cursor : pointer;
74
+ color : # 70858c ;
75
+ }
76
+ .filetab__input {
77
+ display : inline-block;
78
+ outline : none;
79
+ border : none;
80
+ padding : 0.4rem 1.5rem ;
81
+ margin : 0 ;
82
+ background-color : # f0f0f0 ;
83
+ }
84
+
85
+ [data-codesandbox ] {
86
+ border-radius : 8px ;
87
+ overflow : hidden ;
88
+ box-shadow : 0 12px 36px 4px rgb (200 200 200 / 50% );
89
+ }
Original file line number Diff line number Diff line change 1
1
'use client'
2
2
3
+ import './codesandbox.css'
4
+
3
5
const CDN_HOST = 'https://esm.sh'
4
6
5
7
import { Editor } from 'codice'
You can’t perform that action at this time.
0 commit comments