File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import clsx from 'clsx' ;
3+ import { Details as DetailsGeneric } from '@docusaurus/theme-common/Details' ;
4+ import styles from './styles.module.css' ;
5+ // Should we have a custom details/summary comp in Infima instead of reusing
6+ // alert classes?
7+ const InfimaClasses = 'alert alert--info' ;
8+ export default function Details ( { ...props } ) {
9+ return (
10+ < DetailsGeneric
11+ { ...props }
12+ className = { clsx ( InfimaClasses , styles . details , props . className ) }
13+ />
14+ ) ;
15+ }
Original file line number Diff line number Diff line change 1+ .details {
2+ --docusaurus-details-summary-arrow-size : 0.6rem ;
3+ --docusaurus-details-decoration-color : var (--ifm-alert-border-color );
4+ --docusaurus-details-transition : transform var (--ifm-transition-fast ) ease;
5+ margin : 0 0 var (--ifm-spacing-vertical );
6+ border : 1px solid var (--ifm-alert-border-color );
7+
8+ & > summary {
9+ padding-left : 1.6rem ;
10+
11+ & ::before {
12+ top : 0.6rem ;
13+ }
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments