File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @astrojs/starlight " : patch
3
+ ---
4
+
5
+ Moves padding of ` <main> ` element to a ` --sl-main-pad ` CSS custom property to simplify setting custom values
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ if (pagefindEnabled) mainDataAttributes['data-pagefind-body'] = '';
63
63
scroll-padding-top: calc(1.5rem + var(--sl-nav-height) + var(--sl-mobile-toc-height));
64
64
}
65
65
main {
66
- padding-bottom: 3vh ;
66
+ padding: var(--sl-main-pad) ;
67
67
}
68
68
@media (min-width: 50em) {
69
69
[data-has-sidebar] {
Original file line number Diff line number Diff line change 101
101
--sl-sidebar-pad-x : 1rem ;
102
102
--sl-content-width : 45rem ;
103
103
--sl-content-pad-x : 1rem ;
104
+ --sl-main-pad : 0 0 3vh 0 ;
104
105
--sl-menu-button-size : 2rem ;
105
106
--sl-nav-gap : var (--sl-content-pad-x );
106
107
/* Offset required to show outline inside an element instead of round the outside */
You can’t perform that action at this time.
0 commit comments