@knowcode/doc-builder 1.3.6 → 1.3.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,38 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.3.8] - 2025-07-19
9
+
10
+ ### Fixed
11
+ - Added missing tooltip styles to default theme (style.css)
12
+ - Tooltips now appear on hover for navigation folders with descriptions
13
+ - Matched tooltip styling between default and notion themes
14
+
15
+ ### Added
16
+ - Complete tooltip CSS implementation for default theme
17
+ - Tooltip arrow for better visual connection
18
+ - Dark mode tooltip styling
19
+ - Mobile tooltip suppression (disabled on screens < 768px)
20
+
21
+ ### Technical Details
22
+ - Tooltips use fixed positioning to escape overflow containers
23
+ - High z-index (10000) ensures tooltips appear above all content
24
+ - JavaScript positioning via CSS custom properties (--tooltip-left, --tooltip-top)
25
+ - Smooth fade transitions for professional appearance
26
+
27
+ ## [1.3.7] - 2025-07-19
28
+
29
+ ### Fixed
30
+ - Fixed content area not collapsing when sidebar is hidden on mobile
31
+ - Content now properly takes full width when sidebar is closed
32
+ - Added !important to margin-left: 0 for mobile breakpoints to ensure proper override
33
+ - Fixed issue where content appeared too far right on mobile devices
34
+
35
+ ### Improved
36
+ - Content area now properly responds to sidebar state on all screen sizes
37
+ - Better use of available screen space on mobile devices
38
+ - Consistent behavior across both default and notion-style themes
39
+
8
40
  ## [1.3.6] - 2025-07-19
9
41
 
10
42
  ### Fixed
@@ -704,9 +704,11 @@ pre code {
704
704
 
705
705
  .content {
706
706
  flex: 1;
707
+ margin-left: var(--sidebar-width);
707
708
  padding: 40px var(--space-8);
708
709
  overflow-y: auto;
709
710
  background: var(--color-bg-default);
711
+ transition: margin-left var(--duration-normal);
710
712
  }
711
713
 
712
714
  .content-inner {
@@ -1044,8 +1046,9 @@ tr:hover {
1044
1046
  }
1045
1047
 
1046
1048
  .content {
1047
- margin-left: 0;
1049
+ margin-left: 0 !important;
1048
1050
  padding: var(--space-6) var(--space-4);
1051
+ max-width: 100%;
1049
1052
  }
1050
1053
 
1051
1054
  .menu-toggle {
@@ -1685,7 +1688,9 @@ tr:hover {
1685
1688
  }
1686
1689
 
1687
1690
  .content {
1691
+ margin-left: 0 !important;
1688
1692
  padding: var(--space-4);
1693
+ max-width: 100%;
1689
1694
  }
1690
1695
 
1691
1696
  .content-inner {
@@ -1401,8 +1401,9 @@ blockquote {
1401
1401
  }
1402
1402
 
1403
1403
  .content {
1404
- margin-left: 0;
1404
+ margin-left: 0 !important;
1405
1405
  padding: var(--space-xl);
1406
+ max-width: 100%;
1406
1407
  }
1407
1408
 
1408
1409
  .search-box {
@@ -1411,6 +1412,12 @@ blockquote {
1411
1412
  }
1412
1413
 
1413
1414
  @media (max-width: 768px) {
1415
+ .content {
1416
+ margin-left: 0 !important;
1417
+ padding: var(--space-md);
1418
+ max-width: 100%;
1419
+ }
1420
+
1414
1421
  h1 {
1415
1422
  font-size: 2rem;
1416
1423
  }
@@ -1809,6 +1816,103 @@ section + section {
1809
1816
  }
1810
1817
  }
1811
1818
 
1819
+ /* Tooltip Styles */
1820
+ [data-tooltip] {
1821
+ position: relative;
1822
+ }
1823
+
1824
+ /* Tooltip content */
1825
+ [data-tooltip]::after {
1826
+ content: attr(data-tooltip);
1827
+ position: fixed; /* Use fixed positioning to escape overflow containers */
1828
+ left: var(--tooltip-left, 0);
1829
+ top: var(--tooltip-top, 0);
1830
+ transform: translateY(-50%);
1831
+ background: #333;
1832
+ color: white;
1833
+ padding: 8px 12px;
1834
+ border-radius: 4px;
1835
+ font-size: 14px;
1836
+ white-space: normal;
1837
+ line-height: 1.4;
1838
+ max-width: 300px;
1839
+ pointer-events: none;
1840
+ opacity: 0;
1841
+ visibility: hidden;
1842
+ transition: opacity 0.3s, visibility 0.3s;
1843
+ z-index: 10000;
1844
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
1845
+ }
1846
+
1847
+ /* Tooltip arrow */
1848
+ [data-tooltip]::before {
1849
+ content: '';
1850
+ position: fixed;
1851
+ left: calc(var(--tooltip-left, 0) - 8px);
1852
+ top: var(--tooltip-top, 0);
1853
+ transform: translateY(-50%);
1854
+ width: 0;
1855
+ height: 0;
1856
+ border-style: solid;
1857
+ border-width: 6px 8px 6px 0;
1858
+ border-color: transparent #333 transparent transparent;
1859
+ opacity: 0;
1860
+ visibility: hidden;
1861
+ transition: opacity 0.3s, visibility 0.3s;
1862
+ z-index: 10001;
1863
+ }
1864
+
1865
+ [data-tooltip]:hover::after,
1866
+ [data-tooltip]:hover::before {
1867
+ opacity: 1;
1868
+ visibility: visible;
1869
+ }
1870
+
1871
+ /* Ensure nav items have proper stacking context */
1872
+ .nav-item[data-tooltip],
1873
+ .nav-title[data-tooltip] {
1874
+ position: relative !important;
1875
+ z-index: 1;
1876
+ }
1877
+
1878
+ .nav-item[data-tooltip]:hover,
1879
+ .nav-title[data-tooltip]:hover {
1880
+ z-index: 100000; /* Very high z-index to ensure tooltip appears above everything */
1881
+ }
1882
+
1883
+ /* Tooltip for nav titles (folders) */
1884
+ .nav-title[data-tooltip]::after {
1885
+ max-width: 350px;
1886
+ font-weight: 400;
1887
+ }
1888
+
1889
+ /* Ensure nav sections don't clip tooltips */
1890
+ .nav-section {
1891
+ position: relative;
1892
+ overflow: visible !important;
1893
+ }
1894
+
1895
+ /* Dark mode tooltip styles */
1896
+ [data-theme="dark"] [data-tooltip]::after {
1897
+ background: var(--bg-secondary);
1898
+ color: var(--text-primary);
1899
+ border: 1px solid var(--bg-tertiary);
1900
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
1901
+ }
1902
+
1903
+ [data-theme="dark"] [data-tooltip]::before {
1904
+ border-right-color: var(--bg-secondary);
1905
+ }
1906
+
1907
+ /* Mobile adjustments */
1908
+ @media (max-width: 768px) {
1909
+ /* Disable tooltips on mobile to prevent overlap issues */
1910
+ [data-tooltip]::before,
1911
+ [data-tooltip]::after {
1912
+ display: none;
1913
+ }
1914
+ }
1915
+
1812
1916
  /* Print Styles */
1813
1917
  @media print {
1814
1918
  .header,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {