Skip to content

Commit b6568aa

Browse files
committed
more
1 parent 5741a55 commit b6568aa

File tree

7 files changed

+37
-41
lines changed

7 files changed

+37
-41
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
}
7373
7474
strong {
75-
font-size: var(--sk-text-l);
75+
font-size: var(--sk-font-size-h2);
7676
text-align: center;
7777
font-family: var(--sk-font-heading);
7878
text-transform: lowercase;
@@ -142,7 +142,6 @@
142142
143143
strong {
144144
text-align: left;
145-
font-size: calc(0.04 * var(--width));
146145
}
147146
148147
.hero {

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<section class="hero">
66
<div class="hero-contents">
77
<div class="hero-text">
8-
<div class="tagline">Go full-stack with</div>
8+
<h3 class="tagline">Go full-stack with</h3>
99
<div class="logotype" role="img" aria-label="SvelteKit">
1010
<Logotype />
1111
</div>
@@ -78,14 +78,9 @@
7878
}
7979
8080
.hero .tagline {
81-
font-size: var(--sk-text-l);
82-
font-weight: 200;
83-
line-height: 1.2;
81+
font-size: var(--sk-font-size-h2);
8482
color: var(--sk-text-2);
85-
font-family: var(--sk-font-body);
8683
margin-bottom: 2rem;
87-
/* max-width: 12em; */
88-
/* margin: 0 auto; */
8984
}
9085
9186
.logotype :global(svg) {

apps/svelte.dev/src/routes/_home/Supporters/index.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@
5858
<style>
5959
h3 {
6060
color: var(--sk-text-2);
61-
font-size: var(--sk-text-l);
6261
}
6362
6463
.intro {
65-
max-width: 28em; /* text balancing */
6664
margin: 1em 0 3.2rem 0;
65+
text-wrap: balance;
6766
}
6867
6968
.supporters-grid {

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

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
<Section --background="var(--background-1)">
77
<p class="definition">
8-
<em>/ˈsvɛlt/</em> <span class="adjective">adjective</span>
9-
<span class="description">attractively thin, graceful and stylish</span>
8+
<em>/ˈsvɛlt/</em>
9+
<span class="description">
10+
<span class="adjective">adjective</span> attractively thin, graceful and stylish
11+
</span>
1012
</p>
1113

1214
<div class="grid" style="--columns: 3">
@@ -73,37 +75,39 @@
7375
}
7476
7577
.definition {
76-
font-size: var(--sk-text-l);
77-
}
78+
display: flex;
79+
align-items: baseline;
7880
79-
.definition em {
80-
font-style: normal;
81-
font-size: var(--sk-font-size-h1);
82-
color: var(--sk-theme-1);
83-
}
81+
em {
82+
font-style: normal;
83+
font-size: var(--sk-font-size-h1);
84+
color: var(--sk-theme-1);
85+
}
8486
85-
.definition .adjective {
86-
position: relative;
87-
top: -0.15em;
88-
padding: 0.25em 0.5em 0.1em;
89-
line-height: 1;
90-
margin: 0 1em;
91-
text-transform: uppercase;
92-
font-size: var(--sk-text-s);
93-
background: var(--sk-text-2);
94-
border-radius: var(--sk-border-radius);
95-
color: var(--sk-back-2);
96-
}
87+
.description {
88+
position: relative;
89+
font-family: var(--sk-font-ui);
90+
display: flex;
91+
align-items: center;
92+
bottom: 0.2em;
9793
98-
.definition .description {
99-
display: block;
94+
.adjective {
95+
position: relative;
96+
/* top: -0.15em; */
97+
padding: 0.25em 0.5em 0.1em;
98+
line-height: 1;
99+
margin: 0 1em;
100+
text-transform: uppercase;
101+
font-size: var(--sk-text-s);
102+
background: var(--sk-text-2);
103+
border-radius: var(--sk-border-radius);
104+
font-family: var(--sk-font-ui);
105+
color: var(--sk-back-2);
106+
}
107+
}
100108
}
101109
102110
@media (min-width: 900px) {
103-
.definition .description {
104-
display: inline;
105-
}
106-
107111
.video-container {
108112
order: 2;
109113
grid-column: 2 / 4;

packages/site-kit/src/lib/search/SearchBox.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
302302
}
303303
304304
input {
305-
font-size: var(--sk-text-l);
305+
font-size: var(--sk-font-size-ui-large);
306306
width: 100%;
307307
padding: var(--padding) 5rem var(--padding) var(--padding);
308308
height: 6rem;

packages/site-kit/src/lib/styles/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ h2 {
7171
}
7272

7373
h3 {
74-
font-size: var(--sk-text-h3);
74+
font-size: var(--sk-font-size-h3);
7575
}
7676

7777
:where(h1, h2, h3) {

packages/site-kit/src/lib/styles/tokens.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
--sk-font-size-h1: 3.6rem;
3232
--sk-font-size-h2: 3rem;
3333
--sk-font-size-h3: 2.4rem;
34-
--sk-text-l: 2.4rem;
3534
--sk-text-m: 2.1rem;
3635
--sk-text-s: 1.8rem;
3736
--sk-text-xs: 1.4rem;

0 commit comments

Comments
 (0)