( theme: 'light' | 'dark', css: (typeof goober)['css'], )
| 523 | } |
| 524 | |
| 525 | const stylesFactory = ( |
| 526 | theme: 'light' | 'dark', |
| 527 | css: (typeof goober)['css'], |
| 528 | ) => { |
| 529 | const { colors, font, size, border } = tokens |
| 530 | const t = (light: string, dark: string) => (theme === 'light' ? light : dark) |
| 531 | return { |
| 532 | entry: css` |
| 533 | & * { |
| 534 | font-size: ${font.size.xs}; |
| 535 | font-family: |
| 536 | ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, |
| 537 | 'Liberation Mono', 'Courier New', monospace; |
| 538 | } |
| 539 | position: relative; |
| 540 | outline: none; |
| 541 | word-break: break-word; |
| 542 | `, |
| 543 | subEntry: css` |
| 544 | margin: 0 0 0 0.5em; |
| 545 | padding-left: 0.75em; |
| 546 | border-left: 2px solid ${t(colors.gray[300], colors.darkGray[400])}; |
| 547 | /* outline: 1px solid ${colors.teal[400]}; */ |
| 548 | `, |
| 549 | expander: css` |
| 550 | & path { |
| 551 | stroke: ${colors.gray[400]}; |
| 552 | } |
| 553 | & svg { |
| 554 | width: ${size[3]}; |
| 555 | height: ${size[3]}; |
| 556 | } |
| 557 | display: inline-flex; |
| 558 | align-items: center; |
| 559 | transition: all 0.1s ease; |
| 560 | /* outline: 1px solid ${colors.blue[400]}; */ |
| 561 | `, |
| 562 | expanderButtonContainer: css` |
| 563 | display: flex; |
| 564 | align-items: center; |
| 565 | line-height: ${size[4]}; |
| 566 | min-height: ${size[4]}; |
| 567 | gap: ${size[2]}; |
| 568 | `, |
| 569 | expanderButton: css` |
| 570 | cursor: pointer; |
| 571 | color: inherit; |
| 572 | font: inherit; |
| 573 | outline: inherit; |
| 574 | height: ${size[5]}; |
| 575 | background: transparent; |
| 576 | border: none; |
| 577 | padding: 0; |
| 578 | display: inline-flex; |
| 579 | align-items: center; |
| 580 | gap: ${size[1]}; |
| 581 | position: relative; |
| 582 | /* outline: 1px solid ${colors.green[400]}; */ |
no test coverage detected
searching dependent graphs…