@mgks/docmd 0.2.7 → 0.2.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.
@@ -509,6 +509,131 @@ tr:last-child td {
509
509
  content: "" !important
510
510
  }
511
511
 
512
+ .mermaid-container {
513
+ margin: 1.5rem 0;
514
+ overflow-x: auto;
515
+ text-align:center
516
+ }
517
+
518
+ .mermaid-container svg {
519
+ max-width: 100%;
520
+ height: auto;
521
+ display:inline-block
522
+ }
523
+
524
+ .mermaid-error {
525
+ color: #e74c3c;
526
+ padding: 1rem;
527
+ margin: 0;
528
+ background-color: rgba(231, 76, 60, .07);
529
+ border-left: 4px solid #e74c3c;
530
+ border-radius: 4px;
531
+ font-size:.9rem
532
+ }
533
+
534
+ pre.mermaid {
535
+ background-color: transparent;
536
+ padding: 0;
537
+ margin: 0;
538
+ border: none;
539
+ display: none
540
+ }
541
+
542
+ /* --- Collapsible (Accordion) Container --- */
543
+ .docmd-container.collapsible {
544
+ padding: 0;
545
+ background-color: var(--card-bg, var(--bg-color));
546
+ border: 1px solid var(--border-color);
547
+ border-radius: 8px;
548
+ overflow: hidden;
549
+ margin-bottom: 1.5rem;
550
+ transition: border-color 0.2s;
551
+ }
552
+
553
+ .docmd-container.collapsible[open] {
554
+ border-color: var(--link-color);
555
+ }
556
+
557
+ .collapsible-summary {
558
+ list-style: none;
559
+ padding: 0.75rem 1.25rem;
560
+ cursor: pointer;
561
+ display: flex;
562
+ align-items: center;
563
+ justify-content: space-between;
564
+ font-weight: 600;
565
+ background-color: var(--sidebar-bg);
566
+ user-select: none;
567
+ transition: background-color 0.2s;
568
+ }
569
+
570
+ .collapsible-summary:hover {
571
+ background-color: var(--sidebar-link-active-bg);
572
+ }
573
+
574
+ .collapsible-summary::-webkit-details-marker { display: none; }
575
+
576
+ .collapsible-arrow svg {
577
+ width: 1.2em;
578
+ height: 1.2em;
579
+ transition: transform 0.2s ease;
580
+ opacity: 0.7;
581
+ }
582
+
583
+ details[open] > .collapsible-summary .collapsible-arrow svg {
584
+ transform: rotate(180deg);
585
+ }
586
+
587
+ .collapsible-content {
588
+ padding: 1rem 1.25rem;
589
+ border-top: 1px solid var(--border-color);
590
+ }
591
+
592
+ /* --- Changelog Timeline (Mintlify Style) --- */
593
+ .docmd-container.changelog-timeline {
594
+ border: none;
595
+ background: transparent;
596
+ padding: 0;
597
+ margin-top: 2rem;
598
+ box-shadow: none; /* Remove default container shadow */
599
+ }
600
+
601
+ .changelog-entry {
602
+ display: grid;
603
+ grid-template-columns: 180px 1fr; /* Date width | Content width */
604
+ gap: 2rem;
605
+ margin-bottom: 3rem;
606
+ position: relative;
607
+ }
608
+
609
+ .changelog-meta {
610
+ text-align: right;
611
+ padding-top: 0.5rem;
612
+ }
613
+
614
+ .changelog-date {
615
+ display: inline-block;
616
+ background-color: var(--sidebar-bg);
617
+ color: var(--accent-color, var(--link-color));
618
+ border: 1px solid var(--border-color);
619
+ padding: 4px 12px;
620
+ border-radius: 20px;
621
+ font-size: 0.85rem;
622
+ font-weight: 600;
623
+ font-family: var(--font-family-mono);
624
+ }
625
+
626
+ .changelog-body {
627
+ border-left: 2px solid var(--border-color);
628
+ padding-left: 2rem;
629
+ padding-bottom: 1rem;
630
+ }
631
+
632
+ /* Reset top margin for the first element in the body */
633
+ .changelog-body > :first-child {
634
+ margin-top: 0;
635
+ }
636
+
512
637
  :focus-visible {
513
638
  outline: 2px solid var(--link-color);
514
639
  outline-offset:2px
@@ -1066,6 +1191,22 @@ img.with-shadow {
1066
1191
  width: .875rem;
1067
1192
  height:.875rem
1068
1193
  }
1194
+
1195
+ .changelog-entry {
1196
+ grid-template-columns: 1fr;
1197
+ gap: 1rem;
1198
+ }
1199
+
1200
+ .changelog-meta {
1201
+ text-align: left;
1202
+ padding-top: 0;
1203
+ }
1204
+
1205
+ .changelog-body {
1206
+ border-left: 2px solid var(--border-color);
1207
+ padding-left: 1.5rem;
1208
+ margin-left: 0.5rem;
1209
+ }
1069
1210
  }
1070
1211
 
1071
1212
  html[data-theme=dark] .sponsor-link {
@@ -1124,35 +1265,4 @@ html[data-theme=dark] .sponsor-link:hover {
1124
1265
  hr {
1125
1266
  color: rgba(245, 245, 245, .27);
1126
1267
  border-top-width: 1px
1127
- }
1128
-
1129
- /* Mermaid diagram styles */
1130
- .mermaid-container {
1131
- margin: 1.5rem 0;
1132
- overflow-x: auto;
1133
- text-align:center
1134
- }
1135
-
1136
- .mermaid-container svg {
1137
- max-width: 100%;
1138
- height: auto;
1139
- display:inline-block
1140
- }
1141
-
1142
- .mermaid-error {
1143
- color: #e74c3c;
1144
- padding: 1rem;
1145
- margin: 0;
1146
- background-color: rgba(231, 76, 60, .07);
1147
- border-left: 4px solid #e74c3c;
1148
- border-radius: 4px;
1149
- font-size:.9rem
1150
- }
1151
-
1152
- pre.mermaid {
1153
- background-color: transparent;
1154
- padding: 0;
1155
- margin: 0;
1156
- border: none;
1157
- display: none
1158
1268
  }