Skip to content

Commit 85557b1

Browse files
committed
simplify
1 parent f85b983 commit 85557b1

File tree

12 files changed

+28
-80
lines changed

12 files changed

+28
-80
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
}
6363
6464
h1 {
65-
font-size: var(--sk-text-xxl);
65+
font-size: var(--sk-font-size-h1);
6666
margin: 0 0 0.5em 0;
6767
}
6868

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
7979
.definition em {
8080
font-style: normal;
81-
font-size: var(--sk-text-xxl);
81+
font-size: var(--sk-font-size-h1);
8282
color: var(--sk-theme-1);
8383
}
8484

apps/svelte.dev/src/routes/_home/common.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
--background-2: var(--sk-theme-2);
88
}
99

10-
.home h2 {
11-
font-size: var(--sk-text-xl);
12-
line-height: 1.2;
13-
}
14-
1510
.home .grid {
1611
display: grid;
1712
gap: 1em;
@@ -23,10 +18,6 @@
2318
}
2419

2520
@media (min-width: 900px) {
26-
.home h2 {
27-
font-size: var(--sk-text-xxl);
28-
}
29-
3021
.home .grid {
3122
grid-template-columns: repeat(var(--columns), 1fr);
3223
gap: 7rem;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@
4444
width: 100%;
4545
height: 100%;
4646
font-family: inherit;
47-
font-size: var(--sk-text-xl);
47+
font-size: var(--sk-font-size-h2);
4848
border: none;
49-
/* border: 1px solid var(--sk-back-5); */
5049
border-radius: var(--sk-border-radius);
5150
padding: 2rem 2rem 2rem 5rem;
5251
background: no-repeat 1rem 50% / 3rem 3rem url(/icons/search.svg);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@
160160
}
161161
162162
h2 {
163-
font-size: var(--sk-text-xl);
163+
font-family: var(--sk-font-ui);
164+
font-size: var(--sk-font-size-ui-large);
164165
}
165166
166167
p {

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,6 @@
6868
font-size: var(--sk-text-m);
6969
}
7070
71-
/* TODO is this still used? don't think so */
72-
section {
73-
max-width: var(--sk-line-max-width);
74-
padding: 0 0 0 1rem;
75-
76-
h2,
77-
h3,
78-
h4 {
79-
margin-left: -1rem;
80-
}
81-
82-
a code {
83-
color: inherit;
84-
}
85-
}
86-
8771
code {
8872
white-space: pre-wrap;
8973
padding: 0.2rem 0.4rem;
@@ -324,7 +308,7 @@
324308
opacity: 0;
325309
transition: opacity 0.2s;
326310
327-
:where(h2, h3, h4, h5, h6):hover & {
311+
:where(h2, h3):hover & {
328312
opacity: 1;
329313
}
330314
}

packages/site-kit/src/lib/home/Blurb.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
grid-gap: 1rem;
3737
}
3838
39-
.grid :global(h2) {
40-
font-size: var(--sk-text-xl);
41-
line-height: 1.2;
42-
}
43-
4439
.grid {
4540
display: grid;
4641
gap: 1em;
@@ -52,10 +47,6 @@
5247
}
5348
5449
@media (min-width: 900px) {
55-
.grid :global(h2) {
56-
font-size: var(--sk-text-xl);
57-
}
58-
5950
.grid {
6051
--columns: 3;
6152

packages/site-kit/src/lib/home/TrySection.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
display: inline-block;
7575
width: 25rem;
7676
margin: 0 0 1rem;
77-
font-size: var(--sk-text-xl);
7877
}
7978
8079
@media (min-width: 900px) {

packages/site-kit/src/lib/nav/Menu.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@
430430
padding-left: 1rem;
431431
}
432432
433-
.viewport :global(a[aria-current='true']) {
434-
background-color: hsla(var(--sk-theme-1-hsl), 0.05);
435-
}
436-
437433
.viewport :global(a:hover),
438434
.related-menu-arrow:hover {
439435
border-radius: var(--sk-border-radius);
@@ -442,9 +438,4 @@
442438
443439
background-color: var(--sk-back-4);
444440
}
445-
446-
.viewport :global(a[aria-current='true']:hover) {
447-
background-color: hsla(var(--sk-theme-1-hsl), 0.05);
448-
color: var(--sk-theme-1);
449-
}
450441
</style>

packages/site-kit/src/lib/nav/NavContextMenu.svelte

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434
{#if contents}
3535
{#each contents as { sections, title }, index}
3636
<section>
37-
<h3>{title}</h3>
37+
<h2>{title}</h2>
3838

3939
{#if sections.length !== 0}
4040
<ul>
4141
{#each sections as { title, sections: subsections }}
4242
<li>
4343
{#if title}
44-
<h4>
44+
<h3>
4545
{title}
46-
</h4>
46+
</h3>
4747
{/if}
4848

4949
<ul>
@@ -77,7 +77,7 @@
7777
nav {
7878
padding: 0.29rem;
7979
padding-top: 0;
80-
font-family: var(--sk-font-body);
80+
font-family: var(--sk-font-ui);
8181
overflow-y: auto;
8282
8383
height: 100%;
@@ -86,7 +86,6 @@
8686
section > ul {
8787
padding: 1rem;
8888
padding-bottom: 0rem;
89-
9089
margin-bottom: 0;
9190
}
9291
@@ -104,8 +103,8 @@
104103
transform: translateX(2.5%);
105104
}
106105
107-
h3,
108-
h4 {
106+
h2,
107+
h3 {
109108
display: block;
110109
111110
padding-bottom: 0.8rem;
@@ -117,7 +116,7 @@
117116
color: var(--sk-text-3);
118117
}
119118
120-
h3 {
119+
h2 {
121120
position: sticky;
122121
top: -1px;
123122
z-index: 1;
@@ -160,7 +159,7 @@
160159
}
161160
162161
[aria-current='true'] {
163-
background-color: hsla(var(--sk-theme-1-hsl), 0.1) !important;
162+
/* background-color: hsla(var(--sk-theme-1-hsl), 0.1) !important; */
164163
color: var(--sk-theme-1) !important;
165164
font-weight: 400;
166165
}
@@ -174,7 +173,7 @@
174173
font-size: 1.1rem;
175174
font-weight: 600;
176175
letter-spacing: 1px;
177-
font-family: var(--sk-font-body);
176+
font-family: var(--sk-font-ui);
178177
line-height: 1;
179178
color: var(--sk-theme-1);
180179
background: hsla(var(--sk-theme-1-hsl), 0.1);

0 commit comments

Comments
 (0)