1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -2214,20 +2214,25 @@ details.toggle:not([open]) > summary .docblock {
2214
2214
max-height : calc (1.5em + 0.75em );
2215
2215
overflow-y : hidden;
2216
2216
}
2217
- details .toggle : not ([open ]) > summary .docblock ::after {
2218
- content : '' ;
2217
+ details .toggle : not ([open ]) > summary .docblock > : first-child {
2218
+ max-width : calc (100% - 1em );
2219
+ overflow : hidden;
2220
+ width : fit-content;
2221
+ white-space : nowrap;
2222
+ position : relative;
2223
+ padding-right : 1em ;
2224
+ }
2225
+ details .toggle : not ([open ]) > summary .docblock > : first-child ::after {
2226
+ content : "…" ;
2219
2227
position : absolute;
2220
- bottom : 0 ;
2221
- left : 0 ;
2222
2228
right : 0 ;
2223
- pointer-events : none;
2224
- background : linear-gradient (
2225
- to top,
2226
- var (--scrape-example-code-wrapper-background-start ),
2227
- var (--scrape-example-code-wrapper-background-end )
2228
- );
2229
- height : 0.7em ;
2229
+ top : 0 ;
2230
+ bottom : 0 ;
2230
2231
z-index : 1 ;
2232
+ background-color : var (--main-background-color );
2233
+ /* In case this ends up in a heading or a `<code>` item. */
2234
+ font-weight : normal;
2235
+ font : 1 rem/1.5 "Source Serif 4" , NanumBarunGothic, serif;
2231
2236
}
2232
2237
details .toggle > summary .docblock {
2233
2238
margin-top : 0.75em ;
0 commit comments