File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { Details as DetailsGeneric } from '@docusaurus/theme-common/Details' ;
2
+ import clsx from 'clsx' ;
3
+ import React from 'react' ;
4
+
5
+ import styles from './styles.module.css' ;
6
+ // Should we have a custom details/summary comp in Infima instead of reusing
7
+ // alert classes?
8
+ const InfimaClasses = 'alert alert--info' ;
9
+ export default function Details ( { ...props } ) {
10
+ return (
11
+ < DetailsGeneric
12
+ { ...props }
13
+ className = { clsx ( InfimaClasses , styles . details , props . className ) }
14
+ />
15
+ ) ;
16
+ }
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