44/// background/foreground overrides, implement the relevant dark mode code in
55/// the component's scss file.
66
7-
87// Utilities during light mode.
98.dark-only {
109 display : none ;
@@ -19,6 +18,7 @@ body.theme-dark {
1918 color : $darkmode-color ;
2019 background-color : $darkmode-bg ;
2120
21+ .btn-link ,
2222 a {
2323 color : $darkmode-color ;
2424
@@ -67,6 +67,15 @@ body.theme-dark {
6767 color : $darkmode-color-darker ;
6868 }
6969
70+ // Quotes
71+ blockquote {
72+ border-color : $darkmode-bg-lighter ;
73+
74+ .attribution {
75+ color : $darkmode-color-darker ;
76+ }
77+ }
78+
7079 // Search
7180 .autocomplete {
7281 background-color : $darkmode-bg ;
@@ -77,6 +86,32 @@ body.theme-dark {
7786 }
7887 }
7988
89+ // Borders
90+ hr ,
91+ .border ,
92+ .border-top ,
93+ .border-right ,
94+ .border-bottom ,
95+ .border-left ,
96+ .search li {
97+ border-color : $darkmode-bg-lighter !important ;
98+ border-width : 2px !important ;
99+ }
100+
101+ // Tables
102+ table .docutils {
103+ & :not (.field-list ) {
104+ border : 0 ;
105+ @extend .table-dark ;
106+ @extend .table-bordered ;
107+ @extend .table-striped ;
108+
109+ thead {
110+ @extend .thead-dark ;
111+ }
112+ }
113+ }
114+
80115 // Re-define light Bootstrap elements.
81116 .btn-light {
82117 color : color-yiq ($darkmode-bg-lighter );
@@ -87,7 +122,7 @@ body.theme-dark {
87122 & :focus ,
88123 & :focus-within ,
89124 & :not (:disabled ):not (.disabled ):active ,
90- & :not (:disabled ):not (.disabled ).active , {
125+ & :not (:disabled ):not (.disabled ).active {
91126 color : color-yiq ($primary );
92127 background-color : $primary ;
93128 }
@@ -100,7 +135,7 @@ body.theme-dark {
100135 }
101136
102137 .form-control :focus {
103- box-shadow : 0 0 0 0.2rem rgb (211 211 211 / 50% )
138+ box-shadow : 0 0 0 0.2rem rgb (211 211 211 / 50% );
104139 }
105140
106141 .form-control ::placeholder {
@@ -115,4 +150,8 @@ body.theme-dark {
115150 background-color : $darkmode-bg-lighter !important ;
116151 }
117152 }
153+
154+ code {
155+ color : $darkmode-code ;
156+ }
118157}
0 commit comments