-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(site): tidy layout of required/optional pills
- Loading branch information
1 parent
2315227
commit 698742e
Showing
15 changed files
with
248 additions
and
195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
<style> | ||
.pill { | ||
display: inline-flex; | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
padding-left: 0.625rem; | ||
padding-right: 0.625rem; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
font-weight: 500; | ||
align-items: center; | ||
border-radius: 9999px; | ||
} | ||
.gray { | ||
background-color: #f3f4f6; | ||
color: #1f2937; | ||
} | ||
.cols { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
.pill { | ||
display: inline-flex; | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
padding-left: 0.625rem; | ||
padding-right: 0.625rem; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
font-weight: 500; | ||
align-items: center; | ||
border-radius: 9999px; | ||
} | ||
.gray { | ||
background-color: #f3f4f6; | ||
color: #1f2937; | ||
} | ||
</style> | ||
|
||
<span class='pill gray'>Optional</span> | ||
<div class="cols"> | ||
<slot /> | ||
<span class="pill gray">Optional</span> | ||
</div> |
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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
<style> | ||
.pill { | ||
display: inline-flex; | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
padding-left: 0.625rem; | ||
padding-right: 0.625rem; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
font-weight: 500; | ||
align-items: center; | ||
border-radius: 9999px; | ||
} | ||
.red { | ||
.cols { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
.pill { | ||
display: inline-flex; | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
padding-left: 0.625rem; | ||
padding-right: 0.625rem; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
font-weight: 500; | ||
align-items: center; | ||
border-radius: 9999px; | ||
} | ||
.red { | ||
background-color: #fee2e2; | ||
color: #991b1b; | ||
} | ||
</style> | ||
|
||
<span class='pill red'>Required</span> | ||
<div class="cols"> | ||
<slot /> | ||
<span class='pill red'>Required</span> | ||
</div> |
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
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
Oops, something went wrong.