Skip to content

Commit 9695d8a

Browse files
committed
docs(svelte): add reference to storybook svelte docs
Remove razor
1 parent 8caefe9 commit 9695d8a

33 files changed

+38
-51
lines changed

packages/stacks-docs/_includes/layouts/page.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ <h5 class="mt16 mb8 fw-bold tt-uppercase fs-fine fc-black-400 mnl1">Sections</h5
2323
https://stackoverflow.com/questions/38723559/flex-item-exceeds-its-container
2424
{% endcomment %}
2525
<div class="flex--item fl-grow1 ws1">
26-
{% if js or figma or razor %}
26+
{% if js or figma or svelte %}
2727
<div class="stacks-badged d-flex g8 ai-center">
2828
<h1 class="stacks-h1 flex--item mb0 mr-auto">{{ title }}</h1>
2929

30-
{% if razor %}
31-
<a href="{{ razor }}" class="d-flex fc-white" target="_blank">
32-
<div class="stacks-badge-dotnet--icon blr-sm p4">{% icon "Checkmark" %}</div>
33-
<div class="stacks-badge-dotnet--text d-flex flex__center brr-sm px8 py4">Razor</div>
30+
{% if svelte %}
31+
<a href="{{ svelte }}" class="d-flex fc-white" target="_blank">
32+
<div class="stacks-badge-svelte--icon blr-sm p4">{% icon "Checkmark" %}</div>
33+
<div class="stacks-badge-svelte--text d-flex flex__center brr-sm px8 py4">Svelte</div>
3434
</a>
3535
{% endif %}
3636

packages/stacks-docs/assets/less/stacks-documentation.less

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,17 @@
181181
color: var(--fc-light);
182182
}
183183

184-
// -- Custom dotnet badge colors
185-
// follows the dotnet brand guidelines at https://github.com/dotnet/brand/blob/main/dotnet-brand-guidelines.pdf
186-
.stacks-badge-dotnet--icon {
187-
background-color: #2b0b98;
184+
// -- Custom svelte badge colors
185+
.stacks-badge-svelte--icon {
186+
background-color: #994d00;
188187
.dark-mode({
189-
background-color: #dfd8f7;
188+
background-color: #f96743;
190189
});
191190
}
192-
.stacks-badge-dotnet--text {
193-
background-color: #512bd4;
191+
.stacks-badge-svelte--text {
192+
background-color: #d43008;
194193
.dark-mode({
195-
background-color: #9e92c7;
194+
background-color: #eab095;
196195
});
197196
}
198197

packages/stacks-docs/product/components/activity-indicator.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: Activity indicator
4-
razor: https://razor.stackoverflow.design/components/activity-indicator
54
description: Stacks provides a small jewel for indicating new activity.
65
tags: components
76
---

packages/stacks-docs/product/components/avatars.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: Avatars
4-
razor: https://razor.stackoverflow.design/components/avatar
4+
svelte: https://beta.svelte.stackoverflow.design/?path=/docs/components-avatar--docs
55
figma: https://svelte.stackoverflow.design/figma/avatars
66
description: Avatars are used to quickly identify users or teams.
77
tags: components

packages/stacks-docs/product/components/award-bling.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: page
33
title: Award bling
4-
razor: https://razor.stackoverflow.design/components/award-bling
5-
figma: https://svelte.stackoverflow.design/figma/badges
4+
svelte: https://beta.svelte.stackoverflow.design/?path=/docs/components-awardbling--docs
5+
figma: https://svelte.stackoverflow.design/figma/award-bling
66
description: Award bling is used to indicate award type in badges, topbar, and user cards.
77
tags: components
8-
---
8+
---svelte: https://beta.svelte.stackoverflow.design/?path=/docs/components-award-bling--docs
99
<section class="stacks-section">
1010
{% header "h2", "Types" %}
1111
<p class="stacks-copy">Use award bling to indicate the type of award.</p>

packages/stacks-docs/product/components/badges.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: Badges
4-
razor: https://razor.stackoverflow.design/components/badge
54
figma: https://svelte.stackoverflow.design/figma/badges
65
description: Badges are labels used for flags, earned achievements, and number totals.
76
tags: components

packages/stacks-docs/product/components/banners.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: Banners
4-
razor: https://razor.stackoverflow.design/components/banner
54
figma: https://svelte.stackoverflow.design/figma/banners
65
description: Banners are a type of <a href="/product/components/notices">notice</a>, delivering both system and engagement messaging. These are highly intrusive messaging methods and so should be used appropriately.
76
tags: components

packages/stacks-docs/product/components/button-groups.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: Button groups
4-
razor: https://razor.stackoverflow.design/components/button-group
54
figma: https://svelte.stackoverflow.design/figma/button-groups
65
description: Button groups are a collection of buttons. This component is used in our questions view, and is frequently used in conjunction with other form elements such as search fields and sorting dropdowns. If the content you’re interacting with is a simple paring down or filter of the current view, it’s appropriate to use the <code class="stacks-code">.s-btn-group</code> component. Add the class <code class="stacks-code">.is-selected</code> and the <code class="stacks-code">aria-current</code> attribute with the <a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current#values">appropriate value</a> to show the currently selected button.
76
tags: components

packages/stacks-docs/product/components/buttons.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: Buttons
4-
razor: https://razor.stackoverflow.design/components/button
4+
svelte: https://beta.svelte.stackoverflow.design/?path=/docs/components-button--docs
55
figma: https://svelte.stackoverflow.design/figma/buttons
66
description: Buttons are user interface elements which allows users to take actions throughout the project. It is important that they have ample click space and help communicate the importance of their actions.
77
tags: components

packages/stacks-docs/product/components/checkbox.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: Checkbox & Radio
4-
razor: https://razor.stackoverflow.design/components/check
54
figma: https://svelte.stackoverflow.design/figma/form-elements
65
description: Checkable inputs that visually allow for multiple options or true/false values.
76
tags: components

0 commit comments

Comments
 (0)