[stylesheet-css] reflect recent changes to default CSS

default css contains changes:
* td.highlight
* dark color schemes
This commit is contained in:
Christopher Lam 2020-02-16 22:28:55 +08:00
parent 555a467aba
commit c60555e9c5
2 changed files with 12 additions and 0 deletions

View File

@ -132,6 +132,8 @@
(gnc:html-document-set-style-text!
ssdoc
(string-append
;; Note: any changes in the default CSS *should* be duplicated in
;; stylesheet-css.scm
"@media (prefers-color-scheme: dark) {body {color: #000; background-color: #fff;}}\n"
"h3 { " title-info " }\n"
"a { " account-link-info " }\n"

View File

@ -29,6 +29,12 @@
(gnc:module-load "gnucash/report/report-system" 0)
(define default-css "/* default style */
@media (prefers-color-scheme: dark) {
body {
color: #000; background-color: #fff;
}
}
html, body {
height: 100vh;
margin: 0;
@ -90,6 +96,10 @@ td.neg {
td.number-cell, td.total-number-cell, td.anchor-cell, td.date-cell {
white-space: nowrap;
}
td.highlight {
background-color: #e1e1e1
}
")
(define (css-options)