@knowcode/doc-builder 1.3.7 → 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 +19 -0
- package/assets/css/style.css +97 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ 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
|
+
|
|
8
27
|
## [1.3.7] - 2025-07-19
|
|
9
28
|
|
|
10
29
|
### Fixed
|
package/assets/css/style.css
CHANGED
|
@@ -1816,6 +1816,103 @@ section + section {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
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
|
+
|
|
1819
1916
|
/* Print Styles */
|
|
1820
1917
|
@media print {
|
|
1821
1918
|
.header,
|