picocrank 1.6.1 → 1.6.2

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": "picocrank",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "A set of zero dependency Vue components built on the Femtocrank global CSS theme.",
5
5
  "main": "vite.config.js",
6
6
  "scripts": {
@@ -41,29 +41,30 @@ const props = defineProps({
41
41
  </script>
42
42
 
43
43
  <style scoped>
44
- :slotted(button):not(.good),
45
- :slotted(.button):not(.good)
44
+ :slotted(.section-header button).neutral,
45
+ :slotted(.section-header .button).neutral
46
46
  {
47
47
  background-color: white;
48
+ color: #000;
48
49
  }
49
50
 
50
- :slotted(button:hover):not(.good),
51
- :slotted(.button:hover):not(.good)
51
+ :slotted(.section-header .button:hover).neutral,
52
+ :slotted(.section-header .button:hover).neutral
52
53
  {
53
54
  background-color: #f0f0f0;
54
55
  }
55
56
 
56
57
  @media (prefers-color-scheme: dark) {
57
- :slotted(button):not(.good),
58
- :slotted(.button):not(.good)
58
+ :slotted(.section-header button).neutral,
59
+ :slotted(.section-header .button).neutral
59
60
  {
60
61
  background-color: #111;
61
62
  border: 1px solid #222;
62
63
  color: #fff;
63
64
  }
64
65
 
65
- :slotted(button:hover):not(.good),
66
- :slotted(.button:hover):not(.good)
66
+ :slotted(.section-header button:hover).neutral,
67
+ :slotted(.section-header .button:hover).neutral
67
68
  {
68
69
  background-color: #222;
69
70
  border: 1px solid #333;
@@ -18,6 +18,18 @@
18
18
  <button class = "good">Add</button>
19
19
  </template>
20
20
 
21
+ <div>
22
+ <button class = "neutral">
23
+ Neutral
24
+ </button>
25
+ <button class = "good">
26
+ Good
27
+ </button>
28
+ <button class = "bad">
29
+ Bad
30
+ </button>
31
+ </div>
32
+
21
33
  <p>
22
34
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
23
35
  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.