mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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";`;
|
$: 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>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
@ -138,10 +123,9 @@
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Column max="{10}" xlg="{10}" noGutter>
|
<Column max="{8}" xlg="{8}" noGutter>
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab label="CSS StyleSheet" />
|
<Tab label="CSS StyleSheet" />
|
||||||
<Tab label="CDN" />
|
|
||||||
<Tab label="SCSS" />
|
<Tab label="SCSS" />
|
||||||
<svelte:fragment slot="content">
|
<svelte:fragment slot="content">
|
||||||
<TabContent>
|
<TabContent>
|
||||||
|
@ -164,32 +148,6 @@
|
||||||
</Column>
|
</Column>
|
||||||
</Row>
|
</Row>
|
||||||
</TabContent>
|
</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>
|
<TabContent>
|
||||||
<p>
|
<p>
|
||||||
The most performant method to load styles is to import SCSS
|
The most performant method to load styles is to import SCSS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue