Skip to content

Commit e1c336d

Browse files
committed
Migrate macrolist
Signed-off-by: nook24 <[email protected]>
1 parent 1e33ddf commit e1c336d

File tree

3 files changed

+237
-198
lines changed

3 files changed

+237
-198
lines changed

.vitepress/config.mts

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export default defineConfig({
9494
{ text: 'Authentication And Authorization CGIs', link: '/documentation/usersguide/cgiauth' },
9595
{ text: 'Plugins', link: '/documentation/usersguide/plugins' },
9696
{ text: 'Macros', link: '/documentation/usersguide/macros' },
97+
{ text: 'Standard Macros in Naemon', link: '/documentation/usersguide/macrolist' },
98+
9799
{ text: 'Naemon Logo', link: '/logo' }
98100
]
99101
},

.vitepress/theme/naemon.css

+29-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,32 @@
4141
padding: 15px;
4242
width: 100%;
4343
text-align: center;
44-
}
44+
}
45+
46+
/* Large content for wide pages such as the default macro list */
47+
.page-large-content #VPContent {
48+
padding-right: 15px;
49+
}
50+
51+
.page-large-content .VPNavBar.has-sidebar .content {
52+
padding-right: 15px;
53+
}
54+
55+
56+
/* Macro List classes */
57+
.MacroYes {
58+
background-color: var(--vp-code-line-diff-add-color);
59+
}
60+
61+
/* Fix tables to be able to have a static header */
62+
.table-container table {
63+
position: relative;
64+
display: initial !important;
65+
}
66+
67+
/* Add static header to large tables */
68+
.th-sticky {
69+
position: sticky;
70+
top: var(--vp-nav-height);
71+
z-index: 100; /* Ensure the header is above other content */
72+
}

0 commit comments

Comments
 (0)