Skip to content

Commit f1bfca8

Browse files
committed
Styles
1 parent 72dc91f commit f1bfca8

File tree

7 files changed

+72
-52
lines changed

7 files changed

+72
-52
lines changed

website/src/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989

9090
<footer>
9191
<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>
9396
<div class="resources">
9497
<div class="resource-item title">Resources</div>
9598
<div class="resource-item"><a href="./blog/">Blog</a></div>
@@ -103,6 +106,7 @@
103106
<div class="resource-item title">Community</div>
104107
<div class="community-item"><a href="https://github.com/zloirock/core-js/" target="_blank">GitHub</a></div>
105108
<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>
106110
</div>
107111
</div>
108112
</footer>

website/src/playground.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
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="#">
55
<span class="icon">
66
<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">
77
<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>
88
</svg>
99
</span> Back
10-
</a>
10+
</a>
11+
</div>
12+
<h1>Playground</h1>
1113
</div>
1214
<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>
1319
</div>
20+
1421
<div class="sandbox-wrapper">
1522
<div class="editor">
1623
<textarea id="code-input" class="input" spellcheck="false"></textarea>
@@ -26,8 +33,4 @@ <h1>Playground</h1>
2633
</div>
2734
<div class="result"></div>
2835
</div>
29-
<div class="controls-static">
30-
<button class="run-button">Run</button>
31-
<button class="link-button">Link</button>
32-
</div>
3336
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>

website/src/scss/includes/forms.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ button {
1111
font-weight: 600;
1212

1313
@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');
1717
}
1818

1919
&:focus,
2020
&:hover {
2121
@include themify($themes) {
2222
background-color: themed('button-color-hover');
23-
border: 1px solid themed('font-color');
24-
color: themed('font-color');
23+
color: themed('link-color-hover');
2524
}
2625
}
2726

website/src/scss/includes/themes.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $themes: (
1212
'font-warning': dark.$orange,
1313
'font-error': dark.$red,
1414

15-
'button-color': dark.$foreground,
15+
'button-color': dark.$bg,
1616
'button-color-hover': dark.$selection,
1717
'box-color': dark.$bg,
1818
'box-light': dark.$selection,

website/src/scss/parts/footer.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ footer {
2424
flex-direction: row;
2525
}
2626

27+
.footer-logo {
28+
width: 144px;
29+
}
30+
2731
.title {
2832
font-size: 1.125rem;
2933
font-weight: 600;
@@ -38,7 +42,6 @@ footer {
3842

3943
@include media('min', 'sm') {
4044
order: unset;
41-
align-self: center;
4245
margin-top: 0;
4346
}
4447
}

website/src/scss/parts/header.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
header {
77
display: flex;
88
justify-content: center;
9-
height: 87px;
109

1110
@include themify($themes) {
1211
background-color: themed('background-color');
@@ -21,15 +20,15 @@ nav {
2120
justify-content: space-between;
2221
align-items: center;
2322

24-
padding: 0.5rem 1rem;
23+
padding: 1rem 1rem;
2524

2625
@include wrapper;
2726

2827
.logo {
2928
max-width: 60%;
3029

3130
@include media('min', 'sm') {
32-
width: 300px;
31+
width: 360px;
3332
max-width: unset;
3433
}
3534

@@ -77,7 +76,7 @@ nav {
7776
}
7877

7978
a {
80-
font-size: 1.25rem;
79+
font-size: 1.5rem;
8180
display: block;
8281
overflow-wrap: break-word;
8382
@include themify($themes) {
@@ -90,6 +89,11 @@ nav {
9089
color: themed('link-color-hover');
9190
}
9291
}
92+
93+
.icon {
94+
width: 26px;
95+
height: 26px;
96+
}
9397
}
9498

9599
.mobile-docs-menu {

website/src/scss/parts/playground.scss

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@use "../includes/themify" as *;
55

66
.sandbox-wrapper {
7-
margin: 2rem 0;
7+
margin: 1rem 0;
88

99
@include media("min", "lg") {
1010
display: flex;
@@ -131,50 +131,57 @@
131131
}
132132
}
133133

134-
.controls-static {
135-
display: none;
136-
137-
@include media("min", "lg") {
138-
display: block;
139-
}
140-
}
141-
142-
.playground-navigation {
134+
.playground-menu {
143135
display: flex;
144136
flex-direction: column;
137+
align-items: center;
145138
gap: 1rem;
146139

147140
@include media("min", "md") {
148141
flex-direction: row;
149-
justify-content: space-between;
150-
align-items: center;
142+
gap: 2rem;
151143
}
152-
}
153144

154-
.playground-versions {
155-
min-width: 200px;
156-
width: 100%;
145+
.title {
146+
display: flex;
147+
align-items: center;
148+
gap: 2rem;
157149

158-
@include media("min", "md") {
159-
max-width: 200px;
160-
margin-left: auto;
161-
}
150+
.back-link {
151+
display: none;
162152

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+
}
166159

167-
.backdrop {
168-
z-index: 3;
160+
h1 {
161+
border-bottom: 0;
162+
margin: 0;
163+
}
169164
}
170-
}
171165

172-
.back-link {
173-
display: none;
166+
.playground-versions {
167+
min-width: 200px;
168+
width: 100%;
174169

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 {
176184
display: flex;
177-
align-items: center;
178-
gap: 0.5rem;
185+
gap: 1rem;
179186
}
180187
}

0 commit comments

Comments
 (0)