Skip to content

Commit

Permalink
docs: fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackman99 committed Jul 22, 2024
1 parent 8267d4d commit aea0079
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@sveltepress/theme-default": "^2.0.4",
"@sveltepress/theme-default": "^2.0.6",
"@sveltepress/vite": "^0.33.2",
"@types/node": "^20.4.5",
"sass": "^1.64.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,14 @@
<CRadioGroup options="{mapOptions(gutters)}" bind:value="{gutter}" />

<div class="{`${finalClasses} c-row`}">
<div class="{`item c-col-${col}`}">1</div>
<div class="{`item c-col-${col}`}">2</div>
<div class="{`item c-col-${col}`}">3</div>
<div class="item c-col-{col} h-15">1</div>
<div class="item c-col-{col} h-30">2</div>
<div class="item c-col-{col} h-23">3</div>
</div>
</div>

<style>
.item {
--at-apply: 'bg-svp-primary text-white text-center flex items-center justify-center bg-clip-content';
}
.item:nth-child(1) {
--at-apply: 'h-[60px]';
}
.item:nth-child(2) {
--at-apply: 'h-[120px]';
}
.item:nth-child(3) {
--at-apply: 'h-[90px]';
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
<CRadioGroup options="{mapOptions(itemNumArray)}" bind:value="{itemNum}" />

<div
class="{`c-grid c-grid-col-${col} c-grid-row-${row} c-grid-gap-${gap} c-pa-${gap}`}"
class="c-grid c-grid-col-{col} c-grid-row-{row} c-grid-gap-{gap} c-pa-{gap}"
>
{#each activeItems as item, i (item)}
<div
animate:flip="{{
duration: 500,
}}"
class="{`item c-col-${col}`}"
class="item c-col-{col}"
in:receive="{{
key: item,
}}"
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
],
"scripts": {
"build": "svelte-package -i src && vite build",
"build:icon": "vite build -c vite.icon.config.js"
"build:icon": "vite build -c vite.icon.config.js",
"prepare": "pnpm build:icon"
},
"peerDependencies": {
"svelte": "^3.46.0 || ^4.0.0"
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aea0079

Please sign in to comment.