clampography 2.1.0 → 2.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/print.js +54 -0
package/package.json CHANGED
@@ -66,5 +66,5 @@
66
66
  "sideEffects": false,
67
67
  "type": "module",
68
68
  "unpkg": "css/clampography.min.css",
69
- "version": "2.1.0"
69
+ "version": "2.1.1"
70
70
  }
package/src/print.js CHANGED
@@ -87,6 +87,60 @@ export default (options = {}) => {
87
87
  "max-width": "100%",
88
88
  "page-break-inside": "avoid",
89
89
  },
90
+ // Lists (neutralize extra.js colors and ensure visibility)
91
+ [scope("ul > li::before")]: {
92
+ "background-color": "#555",
93
+ "print-color-adjust": "exact",
94
+ "-webkit-print-color-adjust": "exact",
95
+ },
96
+ [scope("ol > li::before")]: {
97
+ "color": "#555",
98
+ },
99
+ // Inline Code & Pre (neutralize extra.js & base.js backgrounds)
100
+ [scope(":where(code:not(pre code), kbd, samp)")]: {
101
+ "background-color": "transparent",
102
+ "color": "black",
103
+ "border-color": "#ccc",
104
+ },
105
+ // Mark & Del (neutralize extra.js colors)
106
+ [scope("mark")]: {
107
+ "background-color": "transparent",
108
+ "color": "black",
109
+ "border": "1px solid #ccc",
110
+ },
111
+ [scope("del")]: {
112
+ "text-decoration-color": "black",
113
+ },
114
+ // Blockquote (neutralize extra.js inline start color)
115
+ [scope("blockquote")]: {
116
+ "border-inline-start-color": "#ccc",
117
+ "color": "black",
118
+ },
119
+ // Captions & Muted (neutralize extra.js colors)
120
+ [scope("caption, figcaption, .muted")]: {
121
+ "color": "#666",
122
+ },
123
+ // HR, Details & Summary (neutralize extra.js colors)
124
+ [scope("hr")]: {
125
+ "background-color": "#ccc",
126
+ "border-color": "#ccc",
127
+ },
128
+ [scope("details")]: {
129
+ "border-color": "#ccc",
130
+ },
131
+ [scope("summary")]: {
132
+ "color": "black",
133
+ },
134
+ // Forms (neutralize forms.js backgrounds and borders)
135
+ [scope(":where(input, textarea, select, button, [type='button'], [type='reset'], [type='submit'])")]: {
136
+ "background-color": "transparent",
137
+ "color": "black",
138
+ "border-color": "#ccc",
139
+ },
140
+ [scope(":where(input, textarea, select):focus-visible")]: {
141
+ "box-shadow": "none",
142
+ "outline": "none",
143
+ },
90
144
  },
91
145
  };
92
146
  };