File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
modules/help_tools/resources Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 460460 .example {
461461 background : # 23272e ;
462462 border : 1px solid # 333 ;
463+ color : # e0e0e0 ;
463464 }
464465 .example-title {
465466 color : # fff ;
572573 .help-viewer__content {
573574 background : # 1f2123 ;
574575 }
576+
577+ /* Ensure syntax sections and examples follow dark theme and override highlight.css if needed */
578+ .syntax-section .section-title {
579+ color : # ffffff ;
580+ border-bottom : 1px solid # 333 ;
581+ background : none;
582+ }
583+
584+ .syntax-section .subtitle {
585+ color : # b0b0b0 ;
586+ }
587+
588+ /* Force code/pre blocks used for syntax and examples to dark background and light text */
589+ .syntax-block ,
590+ .syntax-section .syntax-block ,
591+ .example .syntax-block ,
592+ pre .syntax-block ,
593+ pre .syntax-block code ,
594+ code .language-matlab {
595+ background-color : # 1b1f23 !important ;
596+ border : 1px solid # 333 !important ;
597+ color : # e6edf3 !important ;
598+ }
599+
600+ /* Make inline code inside syntax blocks readable */
601+ .syntax-block code ,
602+ .example .syntax-block code {
603+ color : # e6edf3 !important ;
604+ }
605+
606+ /* Copy button contrast on dark background */
607+ .copy-btn {
608+ background : # 1565c0 ;
609+ color : # fff ;
610+ }
611+ .copy-btn : hover {
612+ background : # 0d47a1 ;
613+ }
614+
615+ /* Small tweak for example container contrast */
616+ .example {
617+ background : # 23272e ;
618+ border : 1px solid # 333 ;
619+ color : # e0e0e0 ;
620+ }
575621}
You can’t perform that action at this time.
0 commit comments