File tree Expand file tree Collapse file tree 7 files changed +72
-52
lines changed Expand file tree Collapse file tree 7 files changed +72
-52
lines changed Original file line number Diff line number Diff line change 89
89
90
90
< footer >
91
91
< div class ="footer ">
92
- < div class ="copyright "> © CoreJS Company</ div >
92
+ < div class ="copyright ">
93
+ < div class ="footer-logo "> < img src ="images/core-js.png " alt ="core-js "> </ div >
94
+ © CoreJS Company
95
+ </ div >
93
96
< div class ="resources ">
94
97
< div class ="resource-item title "> Resources</ div >
95
98
< div class ="resource-item "> < a href ="./blog/ "> Blog</ a > </ div >
103
106
< div class ="resource-item title "> Community</ div >
104
107
< div class ="community-item "> < a href ="https://github.com/zloirock/core-js/ " target ="_blank "> GitHub</ a > </ div >
105
108
< div class ="community-item "> < a href ="https://x.com/zloirock " target ="_blank "> X</ a > </ div >
109
+ < div class ="community-item "> < a href ="# " target ="_blank "> Discord</ a > </ div >
106
110
</ div >
107
111
</ div >
108
112
</ footer >
Original file line number Diff line number Diff line change 1
- < h1 > Playground </ h1 >
2
- < div class ="playground-navigation ">
3
- < div class ="back-link ">
4
- < a href ="# ">
1
+ < div class =" playground-menu " >
2
+ < div class ="title ">
3
+ < div class ="back-link ">
4
+ < a href ="# ">
5
5
< span class ="icon ">
6
6
< svg data-slot ="icon " fill ="none " stroke-width ="1.5 " stroke ="currentColor " viewBox ="0 0 24 24 " xmlns ="http://www.w3.org/2000/svg " aria-hidden ="true ">
7
7
< path stroke-linecap ="round " stroke-linejoin ="round " d ="M12 9.75 14.25 12m0 0 2.25 2.25M14.25 12l2.25-2.25M14.25 12 12 14.25m-2.58 4.92-6.374-6.375a1.125 1.125 0 0 1 0-1.59L9.42 4.83c.21-.211.497-.33.795-.33H19.5a2.25 2.25 0 0 1 2.25 2.25v10.5a2.25 2.25 0 0 1-2.25 2.25h-9.284c-.298 0-.585-.119-.795-.33Z "> </ path >
8
8
</ svg >
9
9
</ span > Back
10
- </ a >
10
+ </ a >
11
+ </ div >
12
+ < h1 > Playground</ h1 >
11
13
</ div >
12
14
< div class ="playground-versions "> {versions-menu}</ div >
15
+ < div class ="playground-controls ">
16
+ < button class ="run-button "> Run</ button >
17
+ < button class ="link-button "> Link</ button >
18
+ </ div >
13
19
</ div >
20
+
14
21
< div class ="sandbox-wrapper ">
15
22
< div class ="editor ">
16
23
< textarea id ="code-input " class ="input " spellcheck ="false "> </ textarea >
@@ -26,8 +33,4 @@ <h1>Playground</h1>
26
33
</ div >
27
34
< div class ="result "> </ div >
28
35
</ div >
29
- < div class ="controls-static ">
30
- < button class ="run-button "> Run</ button >
31
- < button class ="link-button "> Link</ button >
32
- </ div >
33
36
< script src ="https://unpkg.com/@babel/standalone/babel.min.js "> </ script >
Original file line number Diff line number Diff line change @@ -11,17 +11,16 @@ button {
11
11
font-weight : 600 ;
12
12
13
13
@include themify ($themes ) {
14
- background-color : themed (' button -color' );
15
- border : 1px solid themed (' button -color' );
16
- color : themed (' font -color-dark ' );
14
+ background-color : themed (' box -color' );
15
+ border : 1px solid themed (' link -color' );
16
+ color : themed (' link -color' );
17
17
}
18
18
19
19
& :focus ,
20
20
& :hover {
21
21
@include themify ($themes ) {
22
22
background-color : themed (' button-color-hover' );
23
- border : 1px solid themed (' font-color' );
24
- color : themed (' font-color' );
23
+ color : themed (' link-color-hover' );
25
24
}
26
25
}
27
26
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ $themes: (
12
12
' font-warning' : dark .$orange ,
13
13
' font-error' : dark .$red ,
14
14
15
- ' button-color' : dark .$foreground ,
15
+ ' button-color' : dark .$bg ,
16
16
' button-color-hover' : dark .$selection ,
17
17
' box-color' : dark .$bg ,
18
18
' box-light' : dark .$selection ,
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ footer {
24
24
flex-direction : row ;
25
25
}
26
26
27
+ .footer-logo {
28
+ width : 144px ;
29
+ }
30
+
27
31
.title {
28
32
font-size : 1.125rem ;
29
33
font-weight : 600 ;
@@ -38,7 +42,6 @@ footer {
38
42
39
43
@include media (' min' , ' sm' ) {
40
44
order : unset ;
41
- align-self : center ;
42
45
margin-top : 0 ;
43
46
}
44
47
}
Original file line number Diff line number Diff line change 6
6
header {
7
7
display : flex ;
8
8
justify-content : center ;
9
- height : 87px ;
10
9
11
10
@include themify ($themes ) {
12
11
background-color : themed (' background-color' );
@@ -21,15 +20,15 @@ nav {
21
20
justify-content : space-between ;
22
21
align-items : center ;
23
22
24
- padding : 0.5 rem 1rem ;
23
+ padding : 1 rem 1rem ;
25
24
26
25
@include wrapper ;
27
26
28
27
.logo {
29
28
max-width : 60% ;
30
29
31
30
@include media (' min' , ' sm' ) {
32
- width : 300 px ;
31
+ width : 360 px ;
33
32
max-width : unset ;
34
33
}
35
34
77
76
}
78
77
79
78
a {
80
- font-size : 1.25 rem ;
79
+ font-size : 1.5 rem ;
81
80
display : block ;
82
81
overflow-wrap : break-word ;
83
82
@include themify ($themes ) {
90
89
color : themed (' link-color-hover' );
91
90
}
92
91
}
92
+
93
+ .icon {
94
+ width : 26px ;
95
+ height : 26px ;
96
+ }
93
97
}
94
98
95
99
.mobile-docs-menu {
Original file line number Diff line number Diff line change 4
4
@use " ../includes/themify" as * ;
5
5
6
6
.sandbox-wrapper {
7
- margin : 2 rem 0 ;
7
+ margin : 1 rem 0 ;
8
8
9
9
@include media (" min" , " lg" ) {
10
10
display : flex ;
131
131
}
132
132
}
133
133
134
- .controls-static {
135
- display : none ;
136
-
137
- @include media (" min" , " lg" ) {
138
- display : block ;
139
- }
140
- }
141
-
142
- .playground-navigation {
134
+ .playground-menu {
143
135
display : flex ;
144
136
flex-direction : column ;
137
+ align-items : center ;
145
138
gap : 1rem ;
146
139
147
140
@include media (" min" , " md" ) {
148
141
flex-direction : row ;
149
- justify-content : space-between ;
150
- align-items : center ;
142
+ gap : 2rem ;
151
143
}
152
- }
153
144
154
- .playground-versions {
155
- min-width : 200px ;
156
- width : 100% ;
145
+ .title {
146
+ display : flex ;
147
+ align-items : center ;
148
+ gap : 2rem ;
157
149
158
- @include media (" min" , " md" ) {
159
- max-width : 200px ;
160
- margin-left : auto ;
161
- }
150
+ .back-link {
151
+ display : none ;
162
152
163
- .dropdown .dropdown-wrapper > a :after {
164
- top : 8px ;
165
- }
153
+ a {
154
+ display : flex ;
155
+ align-items : center ;
156
+ gap : 0.5rem ;
157
+ }
158
+ }
166
159
167
- .backdrop {
168
- z-index : 3 ;
160
+ h1 {
161
+ border-bottom : 0 ;
162
+ margin : 0 ;
163
+ }
169
164
}
170
- }
171
165
172
- .back-link {
173
- display : none ;
166
+ .playground-versions {
167
+ min-width : 200px ;
168
+ width : 100% ;
174
169
175
- a {
170
+ @include media (" min" , " md" ) {
171
+ max-width : 200px ;
172
+ }
173
+
174
+ .dropdown .dropdown-wrapper > a :after {
175
+ top : 8px ;
176
+ }
177
+
178
+ .backdrop {
179
+ z-index : 3 ;
180
+ }
181
+ }
182
+
183
+ .playground-controls {
176
184
display : flex ;
177
- align-items : center ;
178
- gap : 0.5rem ;
185
+ gap : 1rem ;
179
186
}
180
187
}
You can’t perform that action at this time.
0 commit comments