mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs: remove CDN instructions from site
This commit is contained in:
parent
27ca34170e
commit
607a97cddb
1 changed files with 1 additions and 43 deletions
|
@ -42,21 +42,6 @@
|
|||
`;
|
||||
|
||||
$: cssImport = `import "carbon-components-svelte/css/${$theme}.css";`;
|
||||
$: cssCdn = `<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://unpkg.com/carbon-components-svelte/css/${$theme}.css"
|
||||
/>
|
||||
</head>
|
||||
</html>`;
|
||||
$: cssCdnSvelteHead = `<svelte:head>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://unpkg.com/carbon-components-svelte/css/${$theme}.css"
|
||||
/>
|
||||
</svelte:head>`;
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
@ -138,10 +123,9 @@
|
|||
</Row>
|
||||
|
||||
<Row>
|
||||
<Column max="{10}" xlg="{10}" noGutter>
|
||||
<Column max="{8}" xlg="{8}" noGutter>
|
||||
<Tabs>
|
||||
<Tab label="CSS StyleSheet" />
|
||||
<Tab label="CDN" />
|
||||
<Tab label="SCSS" />
|
||||
<svelte:fragment slot="content">
|
||||
<TabContent>
|
||||
|
@ -164,32 +148,6 @@
|
|||
</Column>
|
||||
</Row>
|
||||
</TabContent>
|
||||
<TabContent>
|
||||
<p>
|
||||
An alternative to loading styles is to link an external
|
||||
StyleSheet from a Content Delivery Network (CDN) like
|
||||
<OutboundLink inline size="lg" href="https://unpkg.com/">
|
||||
unpkg.com
|
||||
</OutboundLink>.
|
||||
</p>
|
||||
<p>This is best suited for rapid prototyping.</p>
|
||||
<h5>HTML</h5>
|
||||
<Row padding noGutter>
|
||||
<Column>
|
||||
<p>
|
||||
<CodeSnippet type="multi" code="{cssCdn}" />
|
||||
</p>
|
||||
</Column>
|
||||
</Row>
|
||||
<h5>svelte:head</h5>
|
||||
<Row padding noGutter>
|
||||
<Column>
|
||||
<p>
|
||||
<CodeSnippet type="multi" code="{cssCdnSvelteHead}" />
|
||||
</p>
|
||||
</Column>
|
||||
</Row>
|
||||
</TabContent>
|
||||
<TabContent>
|
||||
<p>
|
||||
The most performant method to load styles is to import SCSS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue