@placeholderco/placeholder-ui 3.0.5 → 3.1.0

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 (48) hide show
  1. package/dist/app.css +32 -3
  2. package/dist/cards/GitCard.svelte +4 -4
  3. package/dist/display/Avatar.svelte +1 -1
  4. package/dist/display/LinkCollection.svelte +5 -5
  5. package/dist/display/Paper.svelte +1 -1
  6. package/dist/display/filetree/FileTree.svelte +2 -2
  7. package/dist/display/filetree/FileTreeItem.svelte +6 -6
  8. package/dist/editors/CodeMirror.svelte +6 -6
  9. package/dist/editors/tiptap/LinkActionMenu.svelte +25 -25
  10. package/dist/editors/tiptap/TipTap.svelte +14 -14
  11. package/dist/editors/tiptap/TipTapBubble.svelte +14 -14
  12. package/dist/editors/tiptap/extensions/codeBlockEditor.css +9 -9
  13. package/dist/editors/tiptap/toolbar/AlertButton.svelte +22 -22
  14. package/dist/editors/tiptap/toolbar/ButtonLinkButton.svelte +26 -26
  15. package/dist/editors/tiptap/toolbar/ColorButton.svelte +19 -19
  16. package/dist/editors/tiptap/toolbar/HtmlButton.svelte +3 -3
  17. package/dist/editors/tiptap/toolbar/LinkButton.svelte +19 -19
  18. package/dist/editors/tiptap/toolbar/TableButton.svelte +18 -18
  19. package/dist/editors/tiptap/toolbar/ToolbarButton.svelte +4 -4
  20. package/dist/form/Checkbox.svelte +10 -10
  21. package/dist/form/Chips.svelte +2 -2
  22. package/dist/form/ColorPicker.svelte +5 -5
  23. package/dist/form/ComboBoxMulti.svelte +2 -4
  24. package/dist/form/CronBuilder.svelte +2 -2
  25. package/dist/form/Radio.svelte +7 -7
  26. package/dist/form/RadioGroup.svelte +1 -1
  27. package/dist/form/SelectMulti.svelte +1 -1
  28. package/dist/form/Slider.svelte +7 -7
  29. package/dist/form/TextArea.svelte +2 -2
  30. package/dist/layout/Navbar.svelte +3 -3
  31. package/dist/layout/Sidenav.svelte +2 -2
  32. package/dist/ui/ActionIcon.svelte +1 -1
  33. package/dist/ui/Badge.svelte +7 -7
  34. package/dist/ui/Button.svelte +2 -2
  35. package/dist/ui/ContextMenu.svelte +1 -1
  36. package/dist/ui/ContextMenuList.svelte +5 -5
  37. package/dist/ui/Drawer.svelte +1 -1
  38. package/dist/ui/Dropdown.svelte +3 -3
  39. package/dist/ui/Dropzone.svelte +2 -2
  40. package/dist/ui/Loader.svelte +5 -1
  41. package/dist/ui/Pagination.svelte +2 -2
  42. package/dist/ui/Popover.svelte +2 -2
  43. package/dist/ui/ProgressBar.svelte +3 -3
  44. package/dist/ui/Table.svelte +11 -11
  45. package/dist/ui/Tooltip.svelte +3 -3
  46. package/dist/uiTheme.svelte.d.ts +6 -0
  47. package/dist/uiTheme.svelte.js +2 -0
  48. package/package.json +1 -1
package/dist/app.css CHANGED
@@ -25,6 +25,10 @@
25
25
  --ui-font-family:
26
26
  ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif, 'Apple Color Emoji',
27
27
  'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
28
+ /* Root font size: 1rem. Component sizes are in rem/em, so the whole UI scales with it.
29
+ On the root, rem is relative to the browser's default size (normally 16px), so 0.875rem
30
+ is 14px by default and still follows the user's browser text-size setting. */
31
+ --ui-font-size: 0.875rem;
28
32
 
29
33
  /* ---- Brand colors (neutral defaults) ---- */
30
34
  --ui-primary-rgb: 30 58 95;
@@ -82,19 +86,20 @@
82
86
  --label-color: #6c757d;
83
87
 
84
88
  /* layout */
85
- --header-height: 46px;
89
+ --header-height: 2.875rem;
86
90
  --page-content-height: calc(100vh - var(--header-height));
87
91
 
88
92
  background-color: var(--page-bg);
89
93
  color: var(--text-color);
90
94
  font-family: var(--ui-font-family);
95
+ font-size: var(--ui-font-size);
91
96
  }
92
97
 
93
98
  /* The `site` Navbar variant is a taller marketing header. Raising the token here (rather than
94
99
  on the header itself) keeps --page-content-height, Sidenav and Drawer in step with it.
95
100
  :where() keeps specificity at :root level so a consumer's own --header-height still wins. */
96
101
  :root:where(:has(.pui-navbar.site)) {
97
- --header-height: 68px;
102
+ --header-height: 4.25rem;
98
103
  }
99
104
 
100
105
  .dark {
@@ -130,6 +135,30 @@ textarea {
130
135
  font-family: inherit;
131
136
  }
132
137
 
138
+ /* iOS Safari zooms the page when a field with text under 16px is focused, and the 14px root
139
+ puts every field under that. -webkit-touch-callout is only supported on iOS/iPadOS WebKit,
140
+ so desktop sizes are untouched. !important is needed to beat the components' scoped rules.
141
+ (A `maximum-scale=1` viewport also stops the zoom but blocks pinch-zoom on Android.) */
142
+ @supports (-webkit-touch-callout: none) {
143
+ input:not(
144
+ [type='checkbox'],
145
+ [type='radio'],
146
+ [type='range'],
147
+ [type='color'],
148
+ [type='file'],
149
+ [type='button'],
150
+ [type='submit'],
151
+ [type='reset'],
152
+ [type='image'],
153
+ [type='hidden']
154
+ ),
155
+ select,
156
+ textarea,
157
+ [contenteditable]:not([contenteditable='false']) {
158
+ font-size: max(16px, 1rem) !important;
159
+ }
160
+ }
161
+
133
162
  header a {
134
163
  text-decoration: none;
135
164
  color: var(--ui-primary-text-color);
@@ -180,7 +209,7 @@ a:hover {
180
209
  display: inline-block;
181
210
  padding: 0.5rem 1rem;
182
211
  border: 0;
183
- border-radius: 6px;
212
+ border-radius: 0.375rem;
184
213
  background-color: var(--editor-button-bg);
185
214
  color: var(--editor-button-fg);
186
215
  font-size: 0.875rem;
@@ -59,13 +59,13 @@
59
59
  display: flex;
60
60
  border-top-left-radius: 3rem;
61
61
  overflow: hidden;
62
- width: 375px;
62
+ width: 23.4375rem;
63
63
  }
64
64
 
65
65
  .git-image {
66
- width: 96px;
67
- flex: 0 0 96px;
68
- height: 96px;
66
+ width: 6rem;
67
+ flex: 0 0 6rem;
68
+ height: 6rem;
69
69
  }
70
70
 
71
71
  .git-info {
@@ -144,7 +144,7 @@
144
144
  }
145
145
 
146
146
  .avatar.rounded {
147
- border-radius: 6px;
147
+ border-radius: 0.375rem;
148
148
  }
149
149
 
150
150
  .initials {
@@ -45,7 +45,7 @@
45
45
  onclick={link.onclick}
46
46
  >
47
47
  {#if link.svg}
48
- <Icon svg={link.svg} size="18px" />
48
+ <Icon svg={link.svg} size="1.125rem" />
49
49
  {/if}
50
50
  {link.text}
51
51
  </Link>
@@ -59,14 +59,14 @@
59
59
  >
60
60
  <div class="link-inner left">
61
61
  {#if item.leftSvg}
62
- <Icon svg={item.leftSvg} size="18px" />
62
+ <Icon svg={item.leftSvg} size="1.125rem" />
63
63
  {/if}
64
64
  <div>{@html item.leftContent}</div>
65
65
  </div>
66
66
  <div class="link-inner right">
67
67
  <div>{@html item.rightContent}</div>
68
68
  {#if item.rightSvg}
69
- <Icon svg={item.rightSvg} size="18px" />
69
+ <Icon svg={item.rightSvg} size="1.125rem" />
70
70
  {/if}
71
71
  </div>
72
72
  </Link>
@@ -82,7 +82,7 @@
82
82
  onclick={button.onclick}
83
83
  >
84
84
  {#if button.svg}
85
- <Icon svg={button.svg} size="18px" />
85
+ <Icon svg={button.svg} size="1.125rem" />
86
86
  {/if}
87
87
  {button.text}
88
88
  </Link>
@@ -97,7 +97,7 @@
97
97
  display: flex;
98
98
  flex-direction: column;
99
99
  border: 1px solid var(--border-color);
100
- border-radius: 6px;
100
+ border-radius: 0.375rem;
101
101
  }
102
102
 
103
103
  .link-collection.not-rounded {
@@ -75,7 +75,7 @@
75
75
 
76
76
  /* Stretch out the paper body so that a loader can show */
77
77
  .paper-body:has(> .loader) {
78
- min-height: 60px;
78
+ min-height: 3.75rem;
79
79
  }
80
80
 
81
81
  .paper-body-bg {
@@ -95,7 +95,7 @@
95
95
  collapsible = true,
96
96
  showTitles = false,
97
97
  menuItems,
98
- menuMinWidth = '180px',
98
+ menuMinWidth = '11.25rem',
99
99
  onSelect,
100
100
  onDoubleClick,
101
101
  onContextMenu,
@@ -246,7 +246,7 @@
246
246
  .pui-filetree {
247
247
  display: flex;
248
248
  flex-direction: column;
249
- min-height: 80px;
249
+ min-height: 5rem;
250
250
  }
251
251
 
252
252
  .ft-empty {
@@ -194,10 +194,10 @@
194
194
  if (isFolder && collapsible) e.stopPropagation();
195
195
  }}
196
196
  >
197
- <Icon svg={iconChevronRight} size="14px" />
197
+ <Icon svg={iconChevronRight} size="0.875rem" />
198
198
  </span>
199
199
  <span class="ft-icon">
200
- <Icon svg={node.icon ?? (isFolder ? iconFolder : iconFile)} size="16px" />
200
+ <Icon svg={node.icon ?? (isFolder ? iconFolder : iconFile)} size="1rem" />
201
201
  </span>
202
202
  {#if nodeContent}
203
203
  {@render nodeContent(node)}
@@ -251,7 +251,7 @@
251
251
  display: flex;
252
252
  align-items: center;
253
253
  border-left: 3px solid transparent;
254
- border-radius: 0 3px 3px 0;
254
+ border-radius: 0 0.1875rem 0.1875rem 0;
255
255
  transition: background-color 0.15s ease;
256
256
  }
257
257
 
@@ -318,7 +318,7 @@
318
318
 
319
319
  .ft-indent-line {
320
320
  display: inline-block;
321
- width: 14px;
321
+ width: 0.875rem;
322
322
  height: 100%;
323
323
  border-left: 1px solid var(--border-color);
324
324
  margin-right: 2px;
@@ -328,10 +328,10 @@
328
328
  display: inline-flex;
329
329
  align-items: center;
330
330
  justify-content: center;
331
- width: 16px;
331
+ width: 1rem;
332
332
  flex-shrink: 0;
333
333
  cursor: pointer;
334
- border-radius: 3px;
334
+ border-radius: 0.1875rem;
335
335
  transition: transform 0.12s ease;
336
336
  }
337
337
 
@@ -71,7 +71,7 @@
71
71
  lineNumbers = true,
72
72
  copyButton = false,
73
73
  class: className = '',
74
- height = '500px',
74
+ height = '31.25rem',
75
75
  onChange,
76
76
  onCopy
77
77
  }: CodeMirrorProps = $props();
@@ -249,7 +249,7 @@
249
249
  <div class="codemirror-copy" class:copied class:dark={isDark}>
250
250
  <ActionIcon
251
251
  svg={copied ? iconCheck : iconCopy}
252
- size="16px"
252
+ size="1rem"
253
253
  tooltip={copied ? 'Copied' : 'Copy to clipboard'}
254
254
  ariaLabel={copied ? 'Copied to clipboard' : 'Copy to clipboard'}
255
255
  onclick={copyToClipboard}
@@ -264,7 +264,7 @@
264
264
  position: relative;
265
265
  width: 100%;
266
266
  border: 1px solid var(--border-color, #ddd);
267
- border-radius: 6px;
267
+ border-radius: 0.375rem;
268
268
  overflow: hidden;
269
269
  background: var(--input-bg-color);
270
270
  }
@@ -273,11 +273,11 @@
273
273
  an opaque backing so it stays readable over the code underneath. */
274
274
  .codemirror-copy {
275
275
  position: absolute;
276
- top: 6px;
277
- right: 6px;
276
+ top: 0.375rem;
277
+ right: 0.375rem;
278
278
  z-index: 2;
279
279
  display: inline-flex;
280
- border-radius: 6px;
280
+ border-radius: 0.375rem;
281
281
  opacity: 0.65;
282
282
  transition: opacity 0.15s ease;
283
283
  }
@@ -142,10 +142,10 @@
142
142
  type="text"
143
143
  />
144
144
  <button class="link-icon-button primary" onclick={applyLink} title="Apply" type="button">
145
- <Icon svg={iconCheck} size="16px" />
145
+ <Icon svg={iconCheck} size="1rem" />
146
146
  </button>
147
147
  <button class="link-icon-button" onclick={cancelEditing} title="Cancel" type="button">
148
- <Icon svg={iconX} size="16px" />
148
+ <Icon svg={iconX} size="1rem" />
149
149
  </button>
150
150
  </div>
151
151
  <label class="link-checkbox-label">
@@ -157,11 +157,11 @@
157
157
  {href}
158
158
  </button>
159
159
  <button class="link-icon-button primary" onclick={openLink} title="Open link" type="button">
160
- <Icon svg={iconExternalLink} size="16px" />
160
+ <Icon svg={iconExternalLink} size="1rem" />
161
161
  </button>
162
162
  {#if editable}
163
163
  <button class="link-icon-button" onclick={startEditing} title="Edit link" type="button">
164
- <Icon svg={iconEdit} size="16px" />
164
+ <Icon svg={iconEdit} size="1rem" />
165
165
  </button>
166
166
  <button
167
167
  class="link-icon-button danger"
@@ -169,7 +169,7 @@
169
169
  title="Remove link"
170
170
  type="button"
171
171
  >
172
- <Icon svg={iconTrash} size="16px" />
172
+ <Icon svg={iconTrash} size="1rem" />
173
173
  </button>
174
174
  {/if}
175
175
  {/if}
@@ -179,11 +179,11 @@
179
179
  .link-action-menu {
180
180
  display: flex;
181
181
  align-items: center;
182
- gap: 6px;
183
- max-width: min(560px, calc(100vw - 32px));
184
- padding: 6px;
182
+ gap: 0.375rem;
183
+ max-width: min(35rem, calc(100vw - 2rem));
184
+ padding: 0.375rem;
185
185
  border: 1px solid var(--border-color);
186
- border-radius: 6px;
186
+ border-radius: 0.375rem;
187
187
  background: var(--paper-title-bg);
188
188
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
189
189
  color: var(--text-color);
@@ -196,16 +196,16 @@
196
196
 
197
197
  .link-url {
198
198
  min-width: 0;
199
- max-width: 320px;
200
- padding: 5px 8px;
199
+ max-width: 20rem;
200
+ padding: 0.3125rem 0.5rem;
201
201
  overflow: hidden;
202
202
  border: 1px solid var(--border-color);
203
- border-radius: 4px;
203
+ border-radius: 0.25rem;
204
204
  background: var(--paper-body-bg);
205
205
  color: var(--ui-link-color);
206
206
  cursor: pointer;
207
207
  font: inherit;
208
- font-size: 13px;
208
+ font-size: 0.8125rem;
209
209
  text-overflow: ellipsis;
210
210
  white-space: nowrap;
211
211
  }
@@ -217,20 +217,20 @@
217
217
  .link-edit-row {
218
218
  display: flex;
219
219
  align-items: center;
220
- gap: 4px;
221
- min-width: min(360px, calc(100vw - 80px));
220
+ gap: 0.25rem;
221
+ min-width: min(22.5rem, calc(100vw - 5rem));
222
222
  }
223
223
 
224
224
  .link-input {
225
225
  flex: 1;
226
226
  min-width: 0;
227
- padding: 6px 10px;
227
+ padding: 0.375rem 0.625rem;
228
228
  border: 1px solid var(--border-color);
229
- border-radius: 4px;
229
+ border-radius: 0.25rem;
230
230
  background: var(--paper-body-bg);
231
231
  color: var(--text-color);
232
232
  font: inherit;
233
- font-size: 14px;
233
+ font-size: 0.875rem;
234
234
  outline: none;
235
235
  }
236
236
 
@@ -248,11 +248,11 @@
248
248
  display: inline-flex;
249
249
  align-items: center;
250
250
  justify-content: center;
251
- width: 28px;
252
- height: 28px;
251
+ width: 1.75rem;
252
+ height: 1.75rem;
253
253
  padding: 0;
254
254
  border: none;
255
- border-radius: 4px;
255
+ border-radius: 0.25rem;
256
256
  background: transparent;
257
257
  color: var(--text-color);
258
258
  cursor: pointer;
@@ -299,14 +299,14 @@
299
299
  .link-checkbox-label {
300
300
  display: flex;
301
301
  align-items: center;
302
- gap: 6px;
303
- font-size: 13px;
302
+ gap: 0.375rem;
303
+ font-size: 0.8125rem;
304
304
  white-space: nowrap;
305
305
  }
306
306
 
307
307
  .link-checkbox {
308
- width: 16px;
309
- height: 16px;
308
+ width: 1rem;
309
+ height: 1rem;
310
310
  cursor: pointer;
311
311
  accent-color: var(--ui-primary);
312
312
  }
@@ -525,7 +525,7 @@
525
525
  .editor-container {
526
526
  position: relative;
527
527
  border: 1px solid var(--border-color);
528
- border-radius: 6px;
528
+ border-radius: 0.375rem;
529
529
  background: var(--paper-body-bg);
530
530
  font-family: var(--ui-font-family);
531
531
  transition: border-color 0.2s ease;
@@ -539,11 +539,11 @@
539
539
  .toolbar {
540
540
  display: flex;
541
541
  align-items: center;
542
- gap: 4px;
543
- padding: 6px;
542
+ gap: 0.25rem;
543
+ padding: 0.375rem;
544
544
  border-bottom: 1px solid var(--border-color);
545
545
  background: var(--paper-title-bg);
546
- border-radius: 6px 6px 0 0;
546
+ border-radius: 0.375rem 0.375rem 0 0;
547
547
  flex-wrap: wrap;
548
548
  }
549
549
 
@@ -555,9 +555,9 @@
555
555
 
556
556
  .toolbar-divider {
557
557
  width: 1px;
558
- height: 24px;
558
+ height: 1.5rem;
559
559
  background: var(--border-color);
560
- margin: 0 4px;
560
+ margin: 0 0.25rem;
561
561
  }
562
562
 
563
563
  .link-bubble-menu {
@@ -565,8 +565,8 @@
565
565
  }
566
566
 
567
567
  .editor-content {
568
- padding: 16px;
569
- min-height: 200px;
568
+ padding: 1rem;
569
+ min-height: 12.5rem;
570
570
  color: var(--text-color);
571
571
  }
572
572
 
@@ -605,8 +605,8 @@
605
605
 
606
606
  .editor-content :global(.ProseMirror code) {
607
607
  background: var(--page-bg);
608
- padding: 2px 6px;
609
- border-radius: 3px;
608
+ padding: 2px 0.375rem;
609
+ border-radius: 0.1875rem;
610
610
  font-family: 'Monaco', 'Courier New', monospace;
611
611
  font-size: 0.9em;
612
612
  color: var(--ui-accent-text-color);
@@ -680,7 +680,7 @@
680
680
  .editor-content :global(.ProseMirror td) {
681
681
  position: relative;
682
682
  border: 1px solid var(--border-color);
683
- padding: 6px 10px;
683
+ padding: 0.375rem 0.625rem;
684
684
  vertical-align: top;
685
685
  min-width: 1em;
686
686
  box-sizing: border-box;
@@ -714,7 +714,7 @@
714
714
  top: 0;
715
715
  bottom: -2px;
716
716
  right: -2px;
717
- width: 4px;
717
+ width: 0.25rem;
718
718
  background: var(--ui-tertiary);
719
719
  pointer-events: none;
720
720
  z-index: 20;
@@ -862,11 +862,11 @@
862
862
  position: absolute;
863
863
  top: -1.4em;
864
864
  left: -1px;
865
- font-size: 12px;
865
+ font-size: 0.75rem;
866
866
  font-weight: 600;
867
867
  line-height: normal;
868
868
  padding: 0.1rem 0.3rem;
869
- border-radius: 3px 3px 3px 0;
869
+ border-radius: 0.1875rem 0.1875rem 0.1875rem 0;
870
870
  color: #fff;
871
871
  white-space: nowrap;
872
872
  user-select: none;
@@ -457,7 +457,7 @@
457
457
  .editor-container {
458
458
  position: relative;
459
459
  border: 1px solid var(--border-color);
460
- border-radius: 6px;
460
+ border-radius: 0.375rem;
461
461
  background: var(--paper-body-bg);
462
462
  font-family: var(--ui-font-family);
463
463
  transition: border-color 0.2s ease;
@@ -471,11 +471,11 @@
471
471
  .bubble-menu {
472
472
  display: flex;
473
473
  align-items: center;
474
- gap: 4px;
475
- padding: 6px;
474
+ gap: 0.25rem;
475
+ padding: 0.375rem;
476
476
  background: var(--paper-title-bg);
477
477
  border: 1px solid var(--border-color);
478
- border-radius: 6px;
478
+ border-radius: 0.375rem;
479
479
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
480
480
  flex-wrap: nowrap;
481
481
  }
@@ -492,9 +492,9 @@
492
492
 
493
493
  .bubble-menu-divider {
494
494
  width: 1px;
495
- height: 24px;
495
+ height: 1.5rem;
496
496
  background: var(--border-color);
497
- margin: 0 4px;
497
+ margin: 0 0.25rem;
498
498
  }
499
499
 
500
500
  .link-bubble-menu {
@@ -502,8 +502,8 @@
502
502
  }
503
503
 
504
504
  .editor-content {
505
- padding: 16px;
506
- min-height: 200px;
505
+ padding: 1rem;
506
+ min-height: 12.5rem;
507
507
  color: var(--text-color);
508
508
  }
509
509
 
@@ -542,8 +542,8 @@
542
542
 
543
543
  .editor-content :global(.ProseMirror code) {
544
544
  background: var(--page-bg);
545
- padding: 2px 6px;
546
- border-radius: 3px;
545
+ padding: 2px 0.375rem;
546
+ border-radius: 0.1875rem;
547
547
  font-family: 'Monaco', 'Courier New', monospace;
548
548
  font-size: 0.9em;
549
549
  color: var(--ui-accent-text-color);
@@ -603,7 +603,7 @@
603
603
  .editor-content :global(.ProseMirror td) {
604
604
  position: relative;
605
605
  border: 1px solid var(--border-color);
606
- padding: 6px 10px;
606
+ padding: 0.375rem 0.625rem;
607
607
  vertical-align: top;
608
608
  min-width: 1em;
609
609
  box-sizing: border-box;
@@ -637,7 +637,7 @@
637
637
  top: 0;
638
638
  bottom: -2px;
639
639
  right: -2px;
640
- width: 4px;
640
+ width: 0.25rem;
641
641
  background: var(--ui-tertiary);
642
642
  pointer-events: none;
643
643
  z-index: 20;
@@ -781,11 +781,11 @@
781
781
  position: absolute;
782
782
  top: -1.4em;
783
783
  left: -1px;
784
- font-size: 12px;
784
+ font-size: 0.75rem;
785
785
  font-weight: 600;
786
786
  line-height: normal;
787
787
  padding: 0.1rem 0.3rem;
788
- border-radius: 3px 3px 3px 0;
788
+ border-radius: 0.1875rem 0.1875rem 0.1875rem 0;
789
789
  color: #fff;
790
790
  white-space: nowrap;
791
791
  user-select: none;
@@ -7,7 +7,7 @@
7
7
  position: relative;
8
8
  margin: 0 0 1em 0;
9
9
  border: 1px solid var(--border-color, #dddddd);
10
- border-radius: 6px;
10
+ border-radius: 0.375rem;
11
11
  background: var(--page-bg, #f7f7f8);
12
12
  }
13
13
 
@@ -27,11 +27,11 @@
27
27
  font-family: 'Monaco', 'Courier New', monospace;
28
28
  font-size: 0.875em;
29
29
  line-height: 1.5;
30
- border-radius: 6px;
30
+ border-radius: 0.375rem;
31
31
  }
32
32
 
33
33
  .code-block-editor .cm-editor .cm-content {
34
- padding: 12px 14px;
34
+ padding: 0.75rem 0.875rem;
35
35
  caret-color: var(--text-color, #1a1a1a);
36
36
  }
37
37
 
@@ -54,14 +54,14 @@
54
54
  /* Language picker */
55
55
  .code-block-editor .code-block-language {
56
56
  position: absolute;
57
- top: 6px;
58
- right: 6px;
57
+ top: 0.375rem;
58
+ right: 0.375rem;
59
59
  z-index: 2;
60
60
  max-width: 40%;
61
- padding: 2px 6px;
62
- font-size: 12px;
61
+ padding: 2px 0.375rem;
62
+ font-size: 0.75rem;
63
63
  border: 1px solid var(--border-color, #dddddd);
64
- border-radius: 4px;
64
+ border-radius: 0.25rem;
65
65
  background: var(--paper-body-bg, #ffffff);
66
66
  color: var(--text-color, #1a1a1a);
67
67
  opacity: 0.4;
@@ -83,7 +83,7 @@
83
83
  border: 1px solid var(--border-color, #dddddd);
84
84
  background: var(--paper-body-bg, #ffffff);
85
85
  color: var(--text-color, #1a1a1a);
86
- border-radius: 4px;
86
+ border-radius: 0.25rem;
87
87
  }
88
88
 
89
89
  .code-block-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li[aria-selected] {