@schneiderelli/cms-runtime 0.1.1 → 0.1.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.
@@ -166,4 +166,30 @@
166
166
  border-top: 1px solid var(--csm-border-color, #e2e8f0);
167
167
  margin: 1.5rem 0;
168
168
  }
169
+
170
+ /* Image styling */
171
+ .csm-markdown :global(img) {
172
+ max-width: 100%;
173
+ height: auto;
174
+ }
175
+
176
+ .csm-markdown :global(img[style*="float: left"]) {
177
+ float: left;
178
+ margin: 0 1rem 1rem 0;
179
+ }
180
+
181
+ .csm-markdown :global(img[style*="float: right"]) {
182
+ float: right;
183
+ margin: 0 0 1rem 1rem;
184
+ }
185
+
186
+ .csm-markdown :global(img[style*="display: block"]) {
187
+ display: block;
188
+ margin: 1rem auto;
189
+ }
190
+
191
+ /* Clear floats after images */
192
+ .csm-markdown :global(p:has(img[style*="float"])) {
193
+ overflow: auto;
194
+ }
169
195
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schneiderelli/cms-runtime",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Content System Manager Runtime - Shared types and components for CMS editor and website framework",
5
5
  "scripts": {
6
6
  "dev": "vite dev",