Skip to content

Commit 5c9fd4d

Browse files
committed
fix: build
1 parent 33fa525 commit 5c9fd4d

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

package-lock.json

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"dist/*",
1111
"src/*"
1212
],
13-
"main": "src/styles.scss",
13+
"main": "dist/styles.css",
14+
"sass": "src/styles.scss",
15+
"style": "dist/styles.css",
1416
"scripts": {
1517
"build": "sass --load-path=node_modules/@picocss/pico/scss/ src/styles.scss dist/styles.css",
1618
"publish": "npm publish"
@@ -31,7 +33,7 @@
3133
},
3234
"homepage": "https://github.com/angular-buchstyles#readme",
3335
"dependencies": {
34-
"@picocss/pico": "2.0.6",
36+
"@picocss/pico": "2.1.1",
3537
"sass": "1.83.4"
3638
}
3739
}

src/styles.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* You can add global styles to this file, and also import other style files */
2-
@use '@picocss/pico/scss/pico' with (
2+
@use 'pico' with (
33
$theme-color: 'slate',
44
$semantic-root-element: 'app-root',
55
$enable-semantic-container: true,
@@ -23,7 +23,7 @@
2323
// "components/progress": false,
2424
// "components/tooltip": false,
2525
// "utilities/accessibility": false,
26-
// "utilities/reduce-motion": false,,,,,,,,,,,,,,,,,,
26+
// "utilities/reduce-motion": false
2727
)
2828
);
2929

@@ -42,6 +42,11 @@ section:has(> h1+button) {
4242
'body body';
4343
align-items: baseline;
4444
gap: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
45+
margin-bottom: var(--pico-block-spacing-vertical);
46+
box-shadow: var(--pico-card-box-shadow);
47+
border-radius: calc(var(--pico-border-radius) * 2);
48+
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
49+
background-color: var(--pico-card-sectioning-background-color);
4550

4651
> h1,
4752
> h2,
@@ -61,12 +66,6 @@ section:has(> h1+button) {
6166
grid-area: body;
6267
}
6368

64-
margin-bottom: var(--pico-block-spacing-vertical);
65-
box-shadow: var(--pico-card-box-shadow);
66-
border-radius: calc(var(--pico-border-radius) * 2);
67-
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
68-
background-color: var(--pico-card-sectioning-background-color);
69-
7069
h2 {
7170
font-size: calc(0.8 * var(--pico-font-size));
7271
}

0 commit comments

Comments
 (0)