File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 19
19
--outline-offset : 5 ;
20
20
--header-height : calc (var (--spacing ) * 21 );
21
21
--banner-height : calc (var (--spacing ) * 9 );
22
- --offset-height : calc (var (--header-height ) + var (--banner-height ));
22
+ --offset-top : calc (var (--header-height ) + var (--banner-height ));
23
23
}
24
24
25
25
/*#default-search::-webkit-search-cancel-button {*/
83
83
84
84
.sidebar {
85
85
.sidebar-nav {
86
- @apply sticky top- (--offset-height ) z-30 overflow-y-auto;
87
- max-height : calc (100vh - var (--offset-height ));
86
+ @apply sticky top- (--offset-top ) z-30 overflow-y-auto;
87
+ max-height : calc (100vh - var (--offset-top ));
88
88
scrollbar-gutter : stable;
89
89
}
90
90
130
130
}
131
131
132
132
* {
133
- scroll-margin-top : calc (var (--spacing ) * 26 );
133
+ scroll-margin-top : calc (var (--offset-top ) + var ( -- spacing ) * 6 );
134
134
}
135
135
136
136
Original file line number Diff line number Diff line change 1
1
@inherits RazorSlice <LayoutViewModel >
2
- <aside class =" sidebar bg-white fixed lg:sticky shadow-2xl lg:shadow-none left-[100%] group-has-[#pages-nav-hamburger:checked]/body:left-0 bottom-0 lg:left-auto pl-6 lg:pl-0 top-[calc(var(--offset-height )+1px)] order-1 w-[80%] lg:w-70 xl:w-80 shrink-0 border-r-1 border-r-grey-20 z-40 lg:z-auto" >
2
+ <aside class =" sidebar bg-white fixed lg:sticky shadow-2xl lg:shadow-none left-[100%] group-has-[#pages-nav-hamburger:checked]/body:left-0 bottom-0 lg:left-auto pl-6 lg:pl-0 top-[calc(var(--offset-top )+1px)] order-1 w-[80%] lg:w-70 xl:w-80 shrink-0 border-r-1 border-r-grey-20 z-40 lg:z-auto" >
3
3
<nav
4
4
id =" pages-nav"
5
5
class =" sidebar-nav pr-6"
Original file line number Diff line number Diff line change 1
1
@inherits RazorSlice <PrimaryNavViewModel >
2
2
<div class =" grow xl:hidden" ></div >
3
- <nav class =" hidden group-has-[#primary-nav-hamburger:checked]/header:block z-40 overflow-y-scroll xl:overflow-y-visible lg:p-6 pb-12 xl:p-0 fixed xl:static top-[calc(var(--offset-height )+1px)] left-0 right-0 bottom-0 xl:block grow bg-white" id =" primary-nav" >
3
+ <nav class =" hidden group-has-[#primary-nav-hamburger:checked]/header:block z-40 overflow-y-scroll xl:overflow-y-visible lg:p-6 pb-12 xl:p-0 fixed xl:static top-[calc(var(--offset-top )+1px)] left-0 right-0 bottom-0 xl:block grow bg-white" id =" primary-nav" >
4
4
<div class =" container xl:w-full mx-auto xl:mx-0" >
5
5
<ul class =" flex flex-col xl:flex-row xl:items-center justify-start xl:h-full text-ink font-sans xl:gap-6" >
6
6
@foreach ( var navItem in Model .Items )
You can’t perform that action at this time.
0 commit comments