@happyvertical/smrt-workbench 0.60.16 → 0.60.17

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.
@@ -120,7 +120,7 @@ function headingTag(depth = 2) {
120
120
  }
121
121
  </script>
122
122
 
123
- <div class="markdown-document">
123
+ <div class="smrt-markdown-document__root" data-smrt-component="MarkdownDocument">
124
124
  {#each blocks as block}
125
125
  {#if block.type === 'heading'}
126
126
  <svelte:element this={headingTag(block.depth)}>{block.text}</svelte:element>
@@ -128,7 +128,7 @@ function headingTag(depth = 2) {
128
128
  <p>{block.text}</p>
129
129
  {:else if block.type === 'code'}
130
130
  {#if block.language}
131
- <p class="code-language">{block.language}</p>
131
+ <p class="smrt-markdown-document__language" data-smrt-part="meta">{block.language}</p>
132
132
  {/if}
133
133
  <pre><code>{block.text}</code></pre>
134
134
  {:else if block.type === 'list' && block.ordered}
@@ -149,55 +149,57 @@ function headingTag(depth = 2) {
149
149
 
150
150
  <style>
151
151
  @layer smrt.reset, smrt.structure, smrt.theme;
152
- @layer smrt.theme {
153
- .markdown-document {
152
+ @layer smrt.structure {
153
+ .smrt-markdown-document__root {
154
154
  display: grid;
155
155
  gap: 0.85rem;
156
- line-height: 1.62;
157
156
  }
158
-
159
- .markdown-document :global(h2),
160
- .markdown-document :global(h3),
161
- .markdown-document :global(h4),
162
- .markdown-document :global(h5),
163
- .markdown-document p,
164
- .markdown-document ul,
165
- .markdown-document ol {
157
+ .smrt-markdown-document__root :global(h2),
158
+ .smrt-markdown-document__root :global(h3),
159
+ .smrt-markdown-document__root :global(h4),
160
+ .smrt-markdown-document__root :global(h5),
161
+ .smrt-markdown-document__root p,
162
+ .smrt-markdown-document__root ul,
163
+ .smrt-markdown-document__root ol {
164
+ margin: 0;
165
+ }
166
+ .smrt-markdown-document__root ul,
167
+ .smrt-markdown-document__root ol {
168
+ padding-left: 1.2rem;
169
+ }
170
+ .smrt-markdown-document__root pre {
166
171
  margin: 0;
172
+ overflow: auto;
173
+ padding: 0.85rem;
167
174
  }
175
+ }
168
176
 
169
- .markdown-document :global(h2),
170
- .markdown-document :global(h3),
171
- .markdown-document :global(h4),
172
- .markdown-document :global(h5) {
177
+ @layer smrt.theme {
178
+ .smrt-markdown-document__root {
179
+ line-height: 1.62;
180
+ }
181
+ .smrt-markdown-document__root :global(h2),
182
+ .smrt-markdown-document__root :global(h3),
183
+ .smrt-markdown-document__root :global(h4),
184
+ .smrt-markdown-document__root :global(h5) {
173
185
  color: var(--smrt-color-on-surface);
174
186
  line-height: 1.25;
175
187
  }
176
-
177
- .markdown-document p,
178
- .markdown-document li {
188
+ .smrt-markdown-document__root p,
189
+ .smrt-markdown-document__root li {
179
190
  color: var(--smrt-color-on-surface-variant);
180
191
  }
181
-
182
- .markdown-document ul,
183
- .markdown-document ol {
184
- padding-left: 1.2rem;
185
- }
186
-
187
- .markdown-document pre {
188
- margin: 0;
189
- overflow: auto;
192
+ .smrt-markdown-document__root pre {
190
193
  border: var(--smrt-hairline);
191
194
  border-radius: 6px;
192
195
  background: var(--smrt-color-surface-container-low);
193
196
  color: var(--smrt-color-on-surface);
194
- padding: 0.85rem;
195
197
  }
196
-
197
- .code-language {
198
+ .smrt-markdown-document__language {
198
199
  color: var(--smrt-color-primary);
199
200
  font-size: 0.78rem;
200
201
  text-transform: uppercase;
201
202
  }
202
203
  }
204
+
203
205
  </style>