@@ -2375,9 +2375,9 @@ html:has([data-site][data-theme="dark"]) {
23752375 }
23762376 }
23772377
2378+ /* The docs section menu: like the Contents row, no lines (it doesn't pin), and a 16px chevron on
2379+ the menu button's column that points to the inline end closed and down open. */
23782380 [data-component = "section-nav" ] {
2379- border-block : 1px solid var ( --border ) ;
2380-
23812381 [data-slot = "section-toggle" ] {
23822382 display : flex;
23832383 align-items : center;
@@ -2389,11 +2389,24 @@ html:has([data-site][data-theme="dark"]) {
23892389 color : var ( --text-strong ) ;
23902390
23912391 [data-slot = "chevron" ] {
2392- /* The chevron flips instantly when the menu opens. */
2392+ width : 16px ;
2393+ height : 16px ;
2394+ margin-inline-end : calc ( 34px - var ( --edge ) - 8px ) ;
2395+ rotate : -90deg ;
2396+ transition : rotate 180ms var ( --ease-out ) ;
2397+
2398+ html [dir = "rtl" ] & {
2399+ rotate : 90deg ;
2400+ }
2401+
2402+ @media ( prefers-reduced-motion : reduce) {
2403+ transition : none;
2404+ }
23932405 }
23942406
2395- & [aria-expanded = "true" ] [data-slot = "chevron" ] {
2396- scale : 1 -1 ;
2407+ & [aria-expanded = "true" ] [data-slot = "chevron" ],
2408+ html [dir = "rtl" ] & [aria-expanded = "true" ] [data-slot = "chevron" ] {
2409+ rotate : 0deg ;
23972410 }
23982411 }
23992412
@@ -3304,6 +3317,23 @@ html:has([data-site][data-theme="dark"]) {
33043317 which grows open and pushes the page up while the wordmark's letters are out of order. */
33053318[data-site ] {
33063319 --letters-bar-height : 3.25rem ;
3320+ /* The blue bars' shared look (site-banner.css): the link blue, the same as the blue buttons and
3321+ the announcement banner (dark mode keeps the deeper light-mode blue, so white keeps 4.5:1). */
3322+ --bar-blue : light-dark ( var ( --link ) , # 3b5cf6) ;
3323+ }
3324+
3325+ /* While the open bar fills the bottom of the screen, a fixed strip of its blue covers the home
3326+ indicator's area under it, touching the screen's bottom edge, which iOS Safari tints its bottom
3327+ toolbar from (the page behind the site takes the blue too: site.tsx). It is as tall as the inset,
3328+ and a pixel, over the bar's own blue, so it never covers anything else. */
3329+ [data-site ][data-letters-end ]:: after {
3330+ content : "" ;
3331+ position : fixed;
3332+ inset : auto 0 0 ;
3333+ z-index : 1 ;
3334+ height : calc ( env ( safe-area-inset-bottom, 0px ) + 1px ) ;
3335+ background : var ( --bar-blue ) ;
3336+ pointer-events : none;
33073337}
33083338
33093339@media ( max-width : 40rem ) {
@@ -3345,10 +3375,7 @@ html:has([data-site][data-theme="dark"]) {
33453375 gap : 0.25rem ;
33463376 height : calc ( var ( --letters-bar-height ) + env ( safe-area-inset-bottom, 0px ) ) ;
33473377 padding-bottom : env ( safe-area-inset-bottom, 0px ) ;
3348- /* The blue bars' shared look (site-banner.css): the link blue, the same as the blue buttons and
3349- the announcement banner (dark mode keeps the deeper light-mode blue, so white keeps 4.5:1), a
3350- highlight and a 92% body. */
3351- --bar-blue : light-dark ( var ( --link ) , # 3b5cf6) ;
3378+ /* The blue bars' shared look (--bar-blue above, site-banner.css): a highlight and a 92% body. */
33523379 background : var ( --bar-blue ) ;
33533380 font-family : var ( --font-sans ) ;
33543381 font-size : var ( --fs-ui ) ;
0 commit comments