Skip to content

Commit

Permalink
fix: add removeNegationPseudoClass options and docs for github page (#15
Browse files Browse the repository at this point in the history
)

* chore: add polished pkg

* chore: add styled component and remove m-2

* chore: fix taro app weapp and h5 env

* chore: commit use cva

* chore(deps): upgrade

* chore: default removeNegationPseudoClass and commit docs

* docs: commit options

* chore: regen docs
  • Loading branch information
sonofmagic authored Aug 2, 2023
1 parent cef1d61 commit b445ed5
Show file tree
Hide file tree
Showing 39 changed files with 4,256 additions and 457 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,5 @@ dist
# TernJS port file
.tern-port

types

stats/*.html
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ npm run prepare

## 配置项

详见 [types](./src/types.ts)
详见 <https://sonofmagic.github.io/weapp-pandacss/>

## 参考示例

Expand Down
7 changes: 7 additions & 0 deletions docs/cascade-layers.md → cascade-layers.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 辅助文档

## 为什么需要 `@csstools/postcss-cascade-layers`

Expand All @@ -22,3 +23,9 @@
```

> 具体原因详见 `postcss-load-config` 的加载顺序章节: <https://github.com/postcss/postcss-load-config#ordering>
另外 `@csstools/postcss-cascade-layers` 默认会把 `@layer` 指令按照优先级添加 `:not(#\#)` 选择器来提升优先级。

详见 `https://www.npmjs.com/package/@csstools/postcss-cascade-layers`

这里由于 `:not(#\#)` 有小程序不兼容的字符,所以插件本身把它转换成了 `:not(n)`
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
99 changes: 99 additions & 0 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
:root {
--light-hl-0: #795E26;
--dark-hl-0: #DCDCAA;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #0000FF;
--dark-hl-3: #569CD6;
--light-hl-4: #008000;
--dark-hl-4: #6A9955;
--light-hl-5: #098658;
--dark-hl-5: #B5CEA8;
--light-hl-6: #267F99;
--dark-hl-6: #4EC9B0;
--light-hl-7: #001080;
--dark-hl-7: #9CDCFE;
--light-hl-8: #AF00DB;
--dark-hl-8: #C586C0;
--light-hl-9: #0070C1;
--dark-hl-9: #4FC1FF;
--light-hl-10: #000000;
--dark-hl-10: #C8C8C8;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

@media (prefers-color-scheme: light) { :root {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--code-background: var(--dark-code-background);
} }

:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--code-background: var(--dark-code-background);
}

.hl-0 { color: var(--hl-0); }
.hl-1 { color: var(--hl-1); }
.hl-2 { color: var(--hl-2); }
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
.hl-10 { color: var(--hl-10); }
pre, code { background: var(--code-background); }
58 changes: 58 additions & 0 deletions docs/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/search.js

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

Loading

0 comments on commit b445ed5

Please sign in to comment.