@pie-players/pie-theme 0.3.29 → 0.3.31
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/dist/components.css +27 -0
- package/package.json +2 -2
package/dist/components.css
CHANGED
|
@@ -83,6 +83,33 @@
|
|
|
83
83
|
max-height: inherit !important;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/*
|
|
87
|
+
* PIE-94: horizontal-scroll wrapper for authored images inside passages and
|
|
88
|
+
* item stems. The shared sanitizer (`sanitizeItemMarkup` in
|
|
89
|
+
* `@pie-players/pie-players-shared`) wraps every `<img>` in
|
|
90
|
+
* `<span class="pie-image-scroll">` before injection. When the image fits its
|
|
91
|
+
* column the scrollbar stays hidden (overflow-x: auto); when it doesn't, the
|
|
92
|
+
* wrapper — not the passage or section layout — provides the sideways scroll
|
|
93
|
+
* needed to satisfy WCAG 1.4.10 Reflow at 400% zoom.
|
|
94
|
+
*/
|
|
95
|
+
.pie-image-scroll {
|
|
96
|
+
display: block;
|
|
97
|
+
max-width: 100%;
|
|
98
|
+
overflow-x: auto;
|
|
99
|
+
overflow-y: hidden;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pie-image-scroll > img {
|
|
103
|
+
display: block;
|
|
104
|
+
max-width: none;
|
|
105
|
+
height: auto;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.pie-image-scroll:focus-visible {
|
|
109
|
+
outline: 2px solid var(--pie-focus-ring-color, #1a73e8);
|
|
110
|
+
outline-offset: 2px;
|
|
111
|
+
}
|
|
112
|
+
|
|
86
113
|
/* These styles are used in the body content of an item -- they also appear in the item body editor. */
|
|
87
114
|
|
|
88
115
|
.book-title-k5 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-theme",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared PIE theme tokens, css variables, and theme custom element",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test": "bun test --dom src"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@biomejs/biome": "^2.
|
|
46
|
+
"@biomejs/biome": "^2.4.12",
|
|
47
47
|
"typescript": "^5.9.3"
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/theme#readme",
|