Skip to content

Commit 4212567

Browse files
committed
tightened design
1 parent 74f9744 commit 4212567

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

docs/src/components/easings.svelte

+12-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<select bind:value={strength}>
3131
{#each strengths as str}
3232
<option value={str}>
33-
--{ease}-{str}
33+
{ease} {str}
3434
</option>
3535
{/each}
3636
</select>
@@ -70,25 +70,32 @@
7070
--sl-card-bg: var(--sl-color-purple-low);
7171
border: 1px solid var(--sl-color-gray-5);
7272
background-color: var(--sl-color-black);
73-
padding: clamp(1rem,calc(0.125rem + 3vw),2.5rem);
74-
gap: clamp(0.5rem,calc(0.125rem + 1vw),1rem);
73+
padding: var(--ec-codePadInl);
74+
gap: var(--ec-codePadInl);
7575
}
7676
7777
.controls {
78+
max-inline-size: max-content;
7879
display: flex;
7980
gap: var(--size-2);
81+
padding-inline-end: var(--size-3);
82+
border: 1px solid var(--sl-color-gray-5);
83+
border-radius: var(--radius-2);
8084
align-items: stretch;
8185
8286
& > select {
8387
background: inherit;
8488
border: none;
8589
margin: 0;
90+
text-transform: capitalize;
91+
padding-inline: var(--size-3) var(--size-1);
8692
}
8793
8894
& > .play {
8995
background: var(--sl-color-bg-nav);
90-
border: 1px solid var(--sl-color-gray-5);
91-
border-radius: var(--radius-2);
96+
border: none;
97+
border-radius: 0;
98+
border-inline-end: 1px solid var(--sl-color-gray-5);
9299
padding-block: var(--size-2);
93100
padding-inline: var(--size-4);
94101
text-transform: capitalize;

docs/src/content/docs/props/easings.mdx

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Easings
33
description: A reference page in my new Starlight docs site.
44
---
55

6-
import { Tabs, TabItem, Icon } from '@astrojs/starlight/components';
6+
import { Tabs, TabItem, Icon, LinkCard } from '@astrojs/starlight/components';
77
import Easings from '@components/easings.svelte'
88

99
### Intro
@@ -414,3 +414,11 @@ The lower the number, the weaker the effect.
414414
</Tabs>
415415

416416
<Easings ease="ease-bounce" rotation="0" duration="3s" client:visible />
417+
418+
----
419+
420+
<LinkCard
421+
title="Need help?"
422+
description="Join us in Discord and ask a question, help could be a few minutes away."
423+
href="https://discord.gg/AqA4fU886r"
424+
/>

0 commit comments

Comments
 (0)