The style sheets are provided for the narrativeweb. You may have problems with the dynamic web report because the html structures are different between these two reports.
For the narrativeweb, you can copy the css in ~/.gramps/css/ (you must create that directory)
ie: cp data/css/Web_Mainz.css ~/.gramps/css/My_NewCSS.css
For the Web_Mainz css, you need to copy the png files or add your own png files.
For the dynamic web (DWR), you can’t do that.
If you want to have your own css for the DWR, you need to look at in gramps/plugins/webreport/basepage.py:
# create all alternate stylesheets
# Cannot use it on local files (file://)
for css_f in CSS:
already_done = []
for css_fn in ("UsEr_", "Basic", "Mainz", "Nebraska"):
if css_fn in css_f and css_f not in already_done:
css_f = css_f.replace("UsEr_", "")
already_done.append(css_f)
if self.usecms:
fname = "/".join(["css", css_f + ".css"])
elif self.the_lang:
fname = "/".join(([".."]*sub_cal + ["css",
css_f + ".css"]))
elif cal > 0:
fname = "/".join(([".."]*cal + ["css",
css_f + ".css"]))
else:
fname = "/".join(["css", css_f + ".css"])
urlx = self.report.build_url_fname(fname, None,
self.uplink)
links += Html("link", rel="alternate stylesheet",
title=self._(css_f), indent=False,
media="screen", type="text/css",
href=urlx)
and in gramps/plugins/webstuff/webstuff.py:
# If we add css user files, we must restart gramps to use them.
if os.path.exists(USER_CSS):
list_files = os.listdir(USER_CSS)
for cssfile in list_files:
if cssfile.endswith(".css"):
css_f = cssfile.replace('.css', '')
CSS_FILES.append(["UsEr_" + css_f, 1, css_f,
os.path.join(USER_CSS, cssfile), None,
looking_for_urls_in_user_css(cssfile),
[]])
Hope it can help.