Skip to content

Commit

Permalink
[fix](docs): fix installation page in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeMargarida committed Jul 4, 2023
1 parent de78274 commit 618f7d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,21 @@ export default createStyles((theme) => {
flexDirection: 'column',
alignItems: 'center',
maxHeight: '198px',
border: `1px solid ${theme.fn.themeColor('gray', 4)} !important`,
border: `1px solid ${theme.fn.themeColor('gray', 4)}`,
borderRadius: `${theme.radii.sm.value} !important`,
padding: `${theme.space.lgPX.value} !important`,
backgroundColor: 'white !important',
transition: 'box-shadow 200ms ease, transform 100ms ease',
'&:hover': {
transform: 'scale(1.01)',
boxShadow: '$md'
},
'&.active': {
borderColor: `$blue600 !important`
}
},
title: {
textAlign: 'uppercase'
},
variants: {
state: {
active: {
['.dark &']: {
borderColor: `$blue600`
},
borderColor: `$blue600 !important`
}
}
}
};
});
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script>
import useStyles from './Guides.styles';
import { UnstyledButton } from '@svelteuidev/core';
import useStyles from './Guides.styles';
export let title = 'title';
export let icon = undefined;
export let className = '';
export let active = {};
export let active = false;
$: ({ cx, classes, getStyles } = useStyles());
</script>

<UnstyledButton on:click class={`${cx(className, getStyles(active))} guides`}>
<UnstyledButton on:click class={`${cx(className, getStyles(), { active })} guides`}>
<svelte:component this={icon || null} />
<p class={classes.title}>{title}</p>
</UnstyledButton>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
export let setId;
/** Variable for switching cards stitches variant*/
const active = { state: 'active' };
$: selected = 'kit';
$: setId(selected);
</script>
Expand All @@ -20,12 +19,7 @@
]}
>
{#each STARTGUIDE_DATA as { title, id, icon } (id)}
<Guides
on:click={() => (selected = id)}
{title}
{icon}
active={selected === id ? active : {}}
/>
<Guides on:click={() => (selected = id)} {title} {icon} active={selected === id} />
{/each}
</SimpleGrid>
</Box>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { SimpleGrid, Box } from '@svelteuidev/core';
import CheckboxCard from './Card.svelte';
import { Title, SimpleGrid, Box } from '@svelteuidev/core';
import { PACKAGE_DATA } from './data.js';
export let setDeps;
Expand Down

0 comments on commit 618f7d6

Please sign in to comment.