11<script lang =" ts" >
2+ import { base } from " $app/paths" ;
23 import type { Snippet } from " svelte" ;
3- import ThemeSwitch from " ./ThemeSwitch.svelte" ;
44 import " ../app.scss" ;
5+ import ThemeSwitch from " ./ThemeSwitch.svelte" ;
56
67 let { children }: {
78 children: Snippet
89 } = $props ();
910 </script >
1011
1112<div class =" d-flex flex-column doc-container" >
12- <nav class =" navbar bg-primary-subtle px-3" >
13+ <nav class =" navbar navbar-expand-md bg-primary-subtle px-3" >
1314 <span class =" navbar-brand" >WjDataView Demo</span >
15+ <div class =" navbar-collapse" >
16+ <ul class =" navbar-nav" >
17+ <li class =" nav-item" >
18+ <a href ={base } class =" nav-link" >Overview (Home)</a >
19+ </li >
20+ <li class =" nav-item" >
21+ <a href =" {base }/sales" class =" nav-link" >Data Drilldown Demo</a >
22+ </li >
23+ </ul >
24+ </div >
1425 <a
1526 href =" https://github.com/WJSoftware/wjfe-dataview"
1627 title =" Repository"
2233 <ThemeSwitch />
2334 </nav >
2435 <div class =" flex-fill overflow-auto" >
25- <div class =" container-fluid overflow-auto h-100" >
36+ <div class =" container-fluid overflow-auto h-100 theme-def d-flex flex-column " >
2637 {@render children ()}
2738 </div >
2839 </div >
7283 .footer-logo {
7384 height : 1em ;
7485 }
86+
87+ .theme-def {
88+ --wjdv-sky-bg-rgb : 200 , 240 , 250 ;
89+ --wjdv-sky-color : var (--bs-black );
90+ --bs-row-selection-bg-color-rgb : 221 , 235 , 255 ;
91+
92+ :global ([data-bs-theme= " dark" ] ) & {
93+ --wjdv-sky-bg-rgb : 30 , 90 , 120 ;
94+ --wjdv-sky-color : var (--bs-white );
95+ --bs-row-selection-bg-color-rgb : 21 , 35 , 55 ;
96+ }
97+ }
7598 </style >
0 commit comments