cherry-markdown 0.11.7 → 0.11.8

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.
@@ -108,6 +108,7 @@
108
108
  --toolbar-split-color: var(--base-border-color);
109
109
  --toolbar-min-height: 48px;
110
110
  --sidebar-list-height: 120px;
111
+ --toolbar-icon-size: 14px;
111
112
  --toolbar-btn-color: #3f4a56;
112
113
  --toolbar-btn-bg: transparent;
113
114
  --toolbar-btn-hover-color: var(--primary-color);
@@ -4360,7 +4361,6 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4360
4361
 
4361
4362
  .cherry-markdown .cherry-timeline--item:hover .cherry-timeline--node {
4362
4363
  transform: scale(1.15);
4363
- animation: cherry-timeline-glow 1.8s ease-in-out infinite;
4364
4364
  }
4365
4365
 
4366
4366
  .cherry-markdown .cherry-timeline--content {
@@ -4411,8 +4411,6 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4411
4411
 
4412
4412
  /* ---------- 状态:已完成 ---------- */
4413
4413
  .cherry-markdown .cherry-timeline--item__done .cherry-timeline--node {
4414
- --timeline-glow-color: rgba(64, 192, 87, 0.35);
4415
- --timeline-glow-color-fade: rgba(64, 192, 87, 0);
4416
4414
  background: var(--timeline-done-color, var(--color-success));
4417
4415
  border-color: var(--timeline-done-color, var(--color-success));
4418
4416
  }
@@ -4422,12 +4420,12 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4422
4420
  background: rgba(64, 192, 87, 0.1);
4423
4421
  }
4424
4422
 
4425
- /* ---------- 状态:进行中(hover 脉冲光晕) ---------- */
4423
+ /* ---------- 状态:进行中(脉冲 + 主色时间戳) ---------- */
4426
4424
  .cherry-markdown .cherry-timeline--item__doing .cherry-timeline--node {
4427
- --timeline-glow-color: rgba(53, 130, 251, 0.35);
4428
- --timeline-glow-color-fade: rgba(53, 130, 251, 0);
4429
4425
  background: var(--timeline-doing-color, var(--primary-color));
4430
4426
  border-color: var(--timeline-doing-color, var(--primary-color));
4427
+ box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 6px var(--timeline-doing-shadow-color, rgba(53, 130, 251, 0.18));
4428
+ animation: cherry-timeline-pulse 1.8s ease-in-out infinite;
4431
4429
  }
4432
4430
 
4433
4431
  .cherry-markdown .cherry-timeline--item__doing .cherry-timeline--time {
@@ -4439,29 +4437,25 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4439
4437
  color: var(--timeline-doing-color, var(--primary-color));
4440
4438
  }
4441
4439
 
4442
- @keyframes cherry-timeline-glow {
4440
+ @keyframes cherry-timeline-pulse {
4443
4441
  0% {
4444
- box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 3px var(--timeline-glow-color, rgba(53, 130, 251, 0.35));
4442
+ box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 3px var(--timeline-doing-pulse-from, rgba(53, 130, 251, 0.35));
4445
4443
  }
4446
4444
  70% {
4447
- box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 10px var(--timeline-glow-color-fade, rgba(53, 130, 251, 0));
4445
+ box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 10px var(--timeline-doing-pulse-to, rgba(53, 130, 251, 0));
4448
4446
  }
4449
4447
  100% {
4450
- box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 10px var(--timeline-glow-color-fade, rgba(53, 130, 251, 0));
4448
+ box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 0 10px var(--timeline-doing-pulse-to, rgba(53, 130, 251, 0));
4451
4449
  }
4452
4450
  }
4453
4451
  /* ---------- 状态:待办 ---------- */
4454
4452
  .cherry-markdown .cherry-timeline--item__todo .cherry-timeline--node {
4455
- --timeline-glow-color: rgba(134, 142, 150, 0.25);
4456
- --timeline-glow-color-fade: rgba(134, 142, 150, 0);
4457
4453
  background: var(--timeline-todo-bg, var(--base-previewer-bg));
4458
4454
  border-color: var(--timeline-todo-color, var(--oc-gray-5));
4459
4455
  }
4460
4456
 
4461
4457
  /* ---------- 状态:里程碑(菱形) ---------- */
4462
4458
  .cherry-markdown .cherry-timeline--item__milestone .cherry-timeline--node {
4463
- --timeline-glow-color: rgba(250, 173, 20, 0.4);
4464
- --timeline-glow-color-fade: rgba(250, 173, 20, 0);
4465
4459
  /* 与普通节点保持相同的 left 值,确保菱形中心与时间轴主干对齐 */
4466
4460
  width: 14px;
4467
4461
  height: 14px;
@@ -4471,6 +4465,7 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4471
4465
  border-color: var(--timeline-milestone-color, var(--oc-yellow-6));
4472
4466
  border-radius: 2px;
4473
4467
  transform: rotate(45deg);
4468
+ box-shadow: 0 0 0 3px var(--base-previewer-bg, #fff), 0 0 8px var(--timeline-milestone-color, rgba(250, 173, 20, 0.5));
4474
4469
  }
4475
4470
 
4476
4471
  .cherry-markdown .cherry-timeline--item__milestone:hover .cherry-timeline--node {
@@ -4489,8 +4484,6 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4489
4484
 
4490
4485
  /* ---------- 状态:异常 ---------- */
4491
4486
  .cherry-markdown .cherry-timeline--item__error .cherry-timeline--node {
4492
- --timeline-glow-color: rgba(255, 77, 79, 0.35);
4493
- --timeline-glow-color-fade: rgba(255, 77, 79, 0);
4494
4487
  background: var(--timeline-error-color, var(--color-error));
4495
4488
  border-color: var(--timeline-error-color, var(--color-error));
4496
4489
  }
@@ -4521,7 +4514,7 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4521
4514
  .cherry-markdown .cherry-timeline--item__milestone .cherry-timeline--node {
4522
4515
  transform: rotate(45deg);
4523
4516
  }
4524
- .cherry-markdown .cherry-timeline--item:hover .cherry-timeline--node {
4517
+ .cherry-markdown .cherry-timeline--item__doing .cherry-timeline--node {
4525
4518
  animation: none;
4526
4519
  }
4527
4520
  }
@@ -4538,7 +4531,7 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
4538
4531
  .cherry-markdown .cherry-timeline--item:hover .cherry-timeline--content {
4539
4532
  transform: none;
4540
4533
  }
4541
- .cherry-markdown .cherry-timeline--item:hover .cherry-timeline--node {
4534
+ .cherry-markdown .cherry-timeline--item__doing .cherry-timeline--node {
4542
4535
  animation: none;
4543
4536
  }
4544
4537
  /* 打印时确保时间线段(每个 item 的 ::before)可见 */
@@ -6143,8 +6136,19 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
6143
6136
  color: var(--dropdown-item-active-color);
6144
6137
  }
6145
6138
  .cherry-dropdown-item .ch-icon {
6139
+ display: inline-block;
6140
+ width: var(--toolbar-icon-size);
6141
+ height: var(--toolbar-icon-size);
6142
+ line-height: var(--toolbar-icon-size);
6143
+ font-size: var(--toolbar-icon-size);
6144
+ text-align: center;
6145
+ vertical-align: middle;
6146
6146
  margin-right: 8px;
6147
+ overflow: visible;
6148
+ }
6149
+ .cherry-dropdown-item .ch-icon::before {
6147
6150
  vertical-align: middle;
6151
+ line-height: var(--toolbar-icon-size);
6148
6152
  }
6149
6153
  .cherry-dropdown-separator {
6150
6154
  height: 1px;
@@ -6235,6 +6239,7 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
6235
6239
  color: var(--toolbar-btn-color);
6236
6240
  background: var(--toolbar-btn-bg);
6237
6241
  border-radius: var(--toolbar-btn-radius);
6242
+ line-height: 1;
6238
6243
  -webkit-transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
6239
6244
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
6240
6245
  cursor: pointer;
@@ -6244,6 +6249,26 @@ div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-] {
6244
6249
  color: var(--toolbar-btn-hover-color);
6245
6250
  background: var(--toolbar-btn-hover-bg);
6246
6251
  }
6252
+ .cherry-toolbar-button > i.ch-icon {
6253
+ display: inline-block;
6254
+ width: var(--toolbar-icon-size);
6255
+ height: var(--toolbar-icon-size);
6256
+ line-height: var(--toolbar-icon-size);
6257
+ font-size: var(--toolbar-icon-size);
6258
+ text-align: center;
6259
+ flex-shrink: 0;
6260
+ overflow: visible;
6261
+ }
6262
+ .cherry-toolbar-button > i.ch-icon::before {
6263
+ vertical-align: middle;
6264
+ line-height: var(--toolbar-icon-size);
6265
+ }
6266
+ .cherry-toolbar-button > svg {
6267
+ display: block;
6268
+ width: var(--toolbar-icon-size);
6269
+ height: var(--toolbar-icon-size);
6270
+ flex-shrink: 0;
6271
+ }
6247
6272
  .cherry-toolbar-button.cherry-toolbar-split {
6248
6273
  font-size: 0;
6249
6274
  height: 19px;