-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for additional callout variants (#201)
* Create callout variants; color scheme TBD * Apply new color schemes to callouts --------- Co-authored-by: Cameron James <[email protected]>
- Loading branch information
Showing
31 changed files
with
216 additions
and
93 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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
{% capture passThroughTitle %} | ||
{{ include.title }} | ||
{% endcapture %} | ||
|
||
{% capture passThroughText %} | ||
{{ include.text }} | ||
{% endcapture %} | ||
|
||
{% include | ||
callout-base.html | ||
icon="fa-solid fa-circle-xmark" | ||
iconColor="text-callout-bad-icon" | ||
backgroundColor="bg-callout-bad-fill" | ||
border="border bg-callout-bad-border" | ||
title=passThroughTitle | ||
titleStyles='bg-callout-bad-text' | ||
text=passThroughText | ||
textStyle='text-callout-bad-text [&_strong]:text-callout-bad-text-accent [&_a]:text-callout-bad-text-accent' | ||
%} |
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,30 @@ | ||
|
||
{% if include.title or include.text %} | ||
<div class="rounded-md {{ include.backgroundColor }} p-4 my-5 border {{ include.border }}"> | ||
<div class="flex"> | ||
<div class="flex-shrink-0"> | ||
{% if include.icon %} | ||
<div class="callout-icon-container h-8 w-8 flex justify-center items-center"> | ||
<i class="text-[24px] h-6 w-6 {{ include.icon }} {{ include.iconColor }}" /> | ||
</div> | ||
{% else %} | ||
<p>include.icon not found</p> | ||
{% endif %} | ||
</div> | ||
<div class="ml-3"> | ||
{% if include.title %} | ||
<h3 class="text-lg font-medium {{ include.textStyle or 'text-swim-body-text' }} mt-1 no_toc"> | ||
{{ include.title }} | ||
</h3> | ||
{% endif %} | ||
{% if include.text %} | ||
<div class="mt-2 text-sm {{ include.textStyle or 'text-swim-body-text' }}"> | ||
<p> | ||
{{ include.text }} | ||
</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} |
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,19 @@ | ||
{% capture passThroughTitle %} | ||
{{ include.title }} | ||
{% endcapture %} | ||
|
||
{% capture passThroughText %} | ||
{{ include.text }} | ||
{% endcapture %} | ||
|
||
{% include | ||
callout-base.html | ||
icon="fa-solid fa-circle-info" | ||
iconColor="text-callout-info-icon" | ||
backgroundColor="bg-callout-info-fill" | ||
border="border border-callout-info-border" | ||
title=passThroughTitle | ||
titleStyles='text-callout-info-text' | ||
text=passThroughText | ||
textStyle='text-callout-info-text [&_strong]:text-callout-info-text-accent [&_a]:text-callout-info-text-accent' | ||
%} |
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,19 @@ | ||
{% capture passThroughTitle %} | ||
{{ include.title }} | ||
{% endcapture %} | ||
|
||
{% capture passThroughText %} | ||
{{ include.text }} | ||
{% endcapture %} | ||
|
||
{% include | ||
callout-base.html | ||
icon="fa-solid fa-circle-check" | ||
iconColor="text-callout-ok-icon" | ||
backgroundColor="bg-callout-ok-fill" | ||
border="border text-callout-ok-border" | ||
title=passThroughTitle | ||
titleStyles='text-callout-ok-text' | ||
text=passThroughText | ||
textStyle='text-callout-ok-text [&_strong]:text-callout-ok-text-accent [&_a]:text-callout-ok-text-accent' | ||
%} |
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,19 @@ | ||
{% capture passThroughTitle %} | ||
{{ include.title }} | ||
{% endcapture %} | ||
|
||
{% capture passThroughText %} | ||
{{ include.text }} | ||
{% endcapture %} | ||
|
||
{% include | ||
callout-base.html | ||
icon="fa-solid fa-triangle-exclamation" | ||
iconColor="text-callout-warning-icon" | ||
backgroundColor="bg-callout-warning-fill" | ||
border="border text-callout-warning-border" | ||
title=passThroughTitle | ||
titleStyles='text-callout-warning-text' | ||
text=passThroughText | ||
textStyle='text-callout-warning-text [&_strong]:text-callout-warning-text-accent [&_a]:text-callout-warning-text-accent' | ||
%} |
This file was deleted.
Oops, something went wrong.
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
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
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.