mirror of https://github.com/kiwix/libkiwix.git
Explained why search_result.html needs inline CSS
In #727 inline CSS [was extracted](e4a4b2f961
)
from `static/templates/no_search_result.html` into a separate stylesheet
resource. The purpose was to later
1. get rid of the custom `static/templates/no_search_result.html` error
template and use a general purpose error template instead (this was
accomplished by PR #744).
2. deduplicate the CSS code between `static/templates/no_search_result.html` and
`static/templates/search_result.html` by making the latter to also refer to
an internal CSS resource rather than containing inline stylesheet code.
While preparing to implement the 2nd point, I figured out that
`kiwix::SearchRenderer` is used as a component in `kiwix-desktop` too,
which probably would be upset by a link to a libkiwix's internal CSS resource.
This commit documents that finding.
This commit is contained in:
parent
eaa8c3c91c
commit
ae56d399b7
|
@ -2,6 +2,12 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
|
||||
|
||||
{{!
|
||||
The inline CSS below can be extracted into a standalone CSS resource
|
||||
ONLY IF all clients of kiwix::SearchRenderer are required to provide
|
||||
access to resources compiled into libkiwix.
|
||||
}}
|
||||
<style type="text/css">
|
||||
body{
|
||||
color: #000000;
|
||||
|
|
Loading…
Reference in New Issue