@kuankuan/assist-2026 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuankuan/assist-2026",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "A toolset from kuankuan",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,6 +1,8 @@
1
1
  @mixin use($anythingElse: '') {
2
- @include select('no-preference', $anythingElse) {
3
- @content;
2
+ @media screen {
3
+ @include select('no-preference', $anythingElse) {
4
+ @content;
5
+ }
4
6
  }
5
7
  }
6
8
 
package/styles/theme.scss CHANGED
@@ -22,16 +22,25 @@ $defaultTheme: (
22
22
  );
23
23
 
24
24
  $curTheme: 'light';
25
+ $printTheme: 'light';
25
26
  @mixin use($anythingElse: '', $themeConfig: $defaultTheme) {
26
- @each $key, $value in $themeConfig {
27
- $curTheme: $key !global;
27
+ @media screen {
28
+ @each $key, $value in $themeConfig {
29
+ $curTheme: $key !global;
28
30
 
29
- @include select($key, $anythingElse) {
31
+ @include select($key, $anythingElse) {
32
+ @content;
33
+ }
34
+ }
35
+ }
36
+ @media print {
37
+ $curTheme: $printTheme !global;
38
+ @include select($printTheme, $anythingElse) {
30
39
  @content;
31
40
  }
32
41
  }
33
42
  }
34
- @function selecter($theme){
43
+ @function selecter($theme) {
35
44
  @return "[data-theme='#{$theme}']";
36
45
  }
37
46
  @mixin select($theme, $anythingElse: '') {