-
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Theme edge properties updated, Divider component added
- Loading branch information
1 parent
f7edc7f
commit bfd4661
Showing
6 changed files
with
80 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Components: Dividers */ | ||
|
||
@layer components { | ||
/* Horizontal Rule --- */ | ||
|
||
.hr { | ||
border-color: var(--color-surface-200-800); | ||
border-top-width: 1px; | ||
display: block; | ||
width: 100%; | ||
} | ||
|
||
/* Vertical Rule --- */ | ||
|
||
.vr { | ||
border-color: var(--color-surface-200-800); | ||
border-left-width: 1px; | ||
display: inline-block; | ||
height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
playgrounds/skeleton-core/src/pages/components/dividers.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
import Layout from '@layouts/Layout.astro'; | ||
--- | ||
|
||
<Layout> | ||
<div class="space-y-10"> | ||
<section class="space-y-10"> | ||
<header><h1 class="h1">Dividers</h1></header> | ||
</section> | ||
<!-- Horizontal Rule --> | ||
<section class="space-y-4"> | ||
<h2 class="h2">Horizontal Rule</h2> | ||
<div class="w-full space-y-4"> | ||
<p class="text-xs opacity-60">Default</p> | ||
<hr class="hr" /> | ||
<p class="text-xs opacity-60">border-t-2</p> | ||
<hr class="hr border-t-2" /> | ||
<p class="text-xs opacity-60">border-t-4</p> | ||
<hr class="hr border-t-4" /> | ||
<p class="text-xs opacity-60">border-t-8</p> | ||
<hr class="hr border-t-8" /> | ||
</div> | ||
</section> | ||
<!-- Vertical Rule --> | ||
<section class="space-y-4"> | ||
<h2 class="h2">Vertical Rule</h2> | ||
<div class="h-20 flex justify-start items-center gap-4"> | ||
<p class="text-xs opacity-60">Default →</p> | ||
<span class="vr"></span> | ||
<span class="vr border-l-2"></span> | ||
<span class="vr border-l-4"></span> | ||
<span class="vr border-l-8"></span> | ||
<p class="text-xs opacity-60">← border-l-8</p> | ||
</div> | ||
</section> | ||
</div> | ||
</Layout> |