File tree Expand file tree Collapse file tree 5 files changed +18
-9
lines changed Expand file tree Collapse file tree 5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 11import React , { FC } from 'react'
2- import { Highlight } from 'prism-react-renderer'
2+ import { Highlight , Prism } from 'prism-react-renderer'
33
44interface CodeBlockProps {
55 children : any // eslint-disable-line @typescript-eslint/no-explicit-any
66}
77
88const CodeBlock : FC < CodeBlockProps > = ( { children } ) => {
9+ ; ( typeof global === 'undefined' ? window : global ) . Prism = Prism
10+ // eslint-disable-next-line unicorn/prefer-module
11+ require ( 'prismjs/components/prism-bash' )
12+ require ( 'prismjs/components/prism-scss' )
913 const _children = children && children . props . children
1014 const language = children . props . className
1115 ? children . props . className . replace ( / l a n g u a g e - / , '' )
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const Sidebar: FC<SidebarProps> = ({ ...props }) => {
4848 </ g >
4949 </ svg >
5050 </ CSidebarBrand >
51- < div className = "text-muted ms-3 me-5 mb-2 small fw-semibold" > Framework:</ div >
51+ < div className = "text-body-secondary ms-3 me-5 mb-2 small fw-semibold" > Framework:</ div >
5252 < CDropdown className = "ms-3 me-5 mb-4" >
5353 < CDropdownToggle color = "primary" variant = "outline" >
5454 React.js
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ const nav = [
8888 to : '/layout/columns/' ,
8989 } ,
9090 {
91- name : 'Gutter ' ,
91+ name : 'Gutters ' ,
9292 to : '/layout/gutters/' ,
9393 } ,
9494 ] ,
Original file line number Diff line number Diff line change 109109 .pagination {
110110 margin-bottom : 0 ;
111111 }
112+
113+ // Spinners
114+ > .spinner-grow + .spinner-border ,
115+ > .spinner-border + .spinner-grow ,
116+ > .spinner-border + .spinner-border ,
117+ > .spinner-grow + .spinner-grow {
118+ margin-left : .25rem ;
119+ }
112120}
113121
114122//
385393 }
386394
387395 .docs-example ~ .highlight {
388- border : 0 ;
396+ border : solid var (--cui-border-color );
397+ border-width : 1px 0 0 ;
389398 @include border-top-radius (0 );
390399 }
391400
411420 }
412421}
413422
414- .docs-example {
415- border-bottom-width : 0 ;
416- }
417-
418423.docs-example + .highlight {
419424 border-top-width : 0 ;
420425 @include border-top-radius (0 );
Original file line number Diff line number Diff line change 77 @include font-size (.875rem );
88
99 a {
10- color : #768192 ;
10+ color : var ( --#{$prefix}tertiary-color ) ;
1111 text-decoration : none ;
1212
1313 & :hover ,
You can’t perform that action at this time.
0 commit comments