Skip to content

Commit 8d76120

Browse files
authored
more css tweaks (#765)
* more css tweaks * tweak background colours * reduce fg saturation * bump --sk-fg-4 brightness to meet accessibility guidelines * use fg-2 for on-this-page * darker sidebar
1 parent bd6bcbc commit 8d76120

File tree

17 files changed

+60
-58
lines changed

17 files changed

+60
-58
lines changed

apps/svelte.dev/src/lib/components/SecondaryNav.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
align-items: center;
1717
justify-content: space-between;
1818
padding: 0.6rem var(--sk-page-padding-side);
19-
background-color: var(--sk-bg-2);
19+
background-color: var(--sk-bg-1);
2020
white-space: nowrap;
2121
flex: 0;
2222
gap: 1rem;

apps/svelte.dev/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<style>
4848
figcaption {
49-
font: var(--sk-font-body-small);
49+
font: var(--sk-font-ui-medium);
5050
}
5151
5252
.home :global {

apps/svelte.dev/src/routes/_home/Community.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
figcaption {
2828
position: relative;
2929
top: max(-2vw, calc(-0.02 * (120rem + 2 * var(--sk-page-padding-side))));
30-
font: var(--sk-font-body-small);
30+
font: var(--sk-font-ui-medium);
3131
margin: 0 auto;
3232
padding: 0 var(--sk-page-padding-side);
33-
color: var(--sk-fg-4);
33+
color: var(--sk-fg-3);
3434
text-align: center;
3535
3636
a {

apps/svelte.dev/src/routes/blog/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
top: 0;
130130
font: var(--sk-font-ui-medium);
131131
text-transform: uppercase;
132-
color: var(--sk-fg-4);
132+
color: var(--sk-fg-3);
133133
}
134134
}
135135

apps/svelte.dev/src/routes/blog/[slug]/+page.svelte

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@
4545
img {
4646
max-width: 100%;
4747
}
48-
49-
figcaption {
50-
color: var(--sk-fg-4);
51-
font: var(--sk-font-body-small);
52-
}
5348
}
5449
5550
video {
@@ -65,7 +60,7 @@
6560
font: var(--sk-font-body-small);
6661
6762
p {
68-
color: var(--sk-fg-4);
63+
color: inherit;
6964
font: inherit;
7065
}
7166
}

apps/svelte.dev/src/routes/docs/[...path]/+layout.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@
4040
}
4141
4242
.toc-container {
43-
background: var(--sk-bg-3);
43+
background: var(--sk-bg-2);
4444
display: none;
45+
46+
:root.dark & {
47+
background: var(--sk-bg-0);
48+
}
4549
}
4650
4751
@media (min-width: 832px) {

apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575
7676
a {
77-
color: var(--sk-fg-3);
77+
color: var(--sk-fg-2);
7878
}
7979
}
8080

apps/svelte.dev/src/routes/tutorial/[...slug]/Output.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
height: 80%;
192192
font: var(--sk-font-mono);
193193
padding: 1rem;
194-
border-top: 1px solid var(--sk-fg-4);
194+
border-top: 1px solid var(--sk-border);
195195
background: rgba(255, 255, 255, 0.5);
196196
transform: translate(0, 100%);
197197
-webkit-transform: translate3d(0, 100%, 0.01);

apps/svelte.dev/src/routes/tutorial/[...slug]/OutputRollup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
font: var(--sk-font-mono);
7777
padding: 1rem;
7878
background: var(--sk-bg-1);
79-
border-top: 1px solid var(--sk-fg-4);
79+
border-top: 1px solid var(--sk-border);
8080
transform: translate(0, 100%);
8181
-webkit-transform: translate3d(0, 100%, 0.01);
8282
transition: transform 0.3s;

packages/repl/src/lib/Output/CompilerOptions.svelte

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
<!-- svelte-ignore a11y_label_has_associated_control (TODO this warning should probably be disabled if there's a component)-->
2828
<label class="option">
2929
<span class="key">dev:</span>
30-
<Checkbox
31-
checked={workspace.compiler_options.dev!}
32-
onchange={(dev) => {
33-
workspace.update_compiler_options({ dev });
34-
}}
35-
/>
30+
<span style="font-size: 1.2rem">
31+
<Checkbox
32+
checked={workspace.compiler_options.dev!}
33+
onchange={(dev) => {
34+
workspace.update_compiler_options({ dev });
35+
}}
36+
/>
37+
</span>
3638
<span class="boolean">{workspace.compiler_options.dev}</span>
3739
</label>
3840
});
@@ -94,31 +96,27 @@
9496
9597
input[type='radio'] + label:before {
9698
content: '';
97-
background: #eee;
9899
display: block;
99100
box-sizing: border-box;
100101
float: left;
101-
width: 15px;
102-
height: 15px;
102+
width: 1.6rem;
103+
height: 1.6rem;
103104
margin-left: -21px;
104105
margin-top: 4px;
105106
/* vertical-align: top; */
106107
cursor: pointer;
107108
text-align: center;
108-
transition: box-shadow 0.1s ease-out;
109-
}
110-
111-
input[type='radio'] + label:before {
109+
transition: box-shadow 0.05s ease-out;
112110
background-color: var(--sk-fg-4);
113111
border-radius: 100%;
114-
box-shadow: inset 0 0 0 0.5em rgba(255, 255, 255, 0.95);
115-
border: 1px solid var(--sk-fg-4);
112+
box-shadow: inset 0 0 0 0.5em var(--sk-bg-2);
113+
border: 1px solid var(--sk-border);
116114
}
117115
118116
input[type='radio']:checked + label:before {
119117
background-color: var(--sk-fg-accent);
120-
box-shadow: inset 0 0 0 0.15em rgba(255, 255, 255, 0.95);
121-
border: 1px solid var(--sk-fg-4);
118+
box-shadow: inset 0 0 0 0.15em var(--sk-bg-2);
119+
border: 1px solid var(--sk-fg-accent);
122120
transition: box-shadow 0.2s ease-out;
123121
}
124122
</style>

0 commit comments

Comments
 (0)