diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-07-03 07:40:25 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-03 07:40:24 +0200 |
commit | 0a1cb631a2c36574180469013425873984d82b16 (patch) | |
tree | 97389b0a092b4e2618ad10cb0ef353fd2a6bfc29 /nimdoc/testproject | |
parent | ab6dec6e908d3673f616110b327c382a695621e6 (diff) | |
download | Nim-0a1cb631a2c36574180469013425873984d82b16.tar.gz |
Implement some custom formatting for input fields in the documentation (#11632)
* Implement some custom formatting for input fields in the documentation Aside of resulting in more consistent appearance across browsers, this also fixes input form rendering when using Firefox with a dark system theme on Linux. * change the expected html in the tests
Diffstat (limited to 'nimdoc/testproject')
-rw-r--r-- | nimdoc/testproject/expected/subdir/subdir_b/utils.html | 17 | ||||
-rw-r--r-- | nimdoc/testproject/expected/testproject.html | 17 | ||||
-rw-r--r-- | nimdoc/testproject/expected/theindex.html | 17 |
3 files changed, 51 insertions, 0 deletions
diff --git a/nimdoc/testproject/expected/subdir/subdir_b/utils.html b/nimdoc/testproject/expected/subdir/subdir_b/utils.html index 6f7a0c6e4..478854a1e 100644 --- a/nimdoc/testproject/expected/subdir/subdir_b/utils.html +++ b/nimdoc/testproject/expected/subdir/subdir_b/utils.html @@ -99,6 +99,23 @@ input#searchInput { width: 80%; } +/* + * Some custom formatting for input forms. + * This also fixes input form colors on Firefox with a dark system theme on Linux. + */ +input { + -moz-appearance: none; + color: #333; + background-color: #f8f8f8; + border: 1px solid #aaa; + font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif; + font-size: 0.9em; + padding: 6px; +} +input:focus { + border: 1px solid #1fa0eb; + box-shadow: 0 0 2px #1fa0eb; +} /* Docgen styles */ /* Links */ diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html index 1b2458a9b..273defbbf 100644 --- a/nimdoc/testproject/expected/testproject.html +++ b/nimdoc/testproject/expected/testproject.html @@ -99,6 +99,23 @@ input#searchInput { width: 80%; } +/* + * Some custom formatting for input forms. + * This also fixes input form colors on Firefox with a dark system theme on Linux. + */ +input { + -moz-appearance: none; + color: #333; + background-color: #f8f8f8; + border: 1px solid #aaa; + font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif; + font-size: 0.9em; + padding: 6px; +} +input:focus { + border: 1px solid #1fa0eb; + box-shadow: 0 0 2px #1fa0eb; +} /* Docgen styles */ /* Links */ diff --git a/nimdoc/testproject/expected/theindex.html b/nimdoc/testproject/expected/theindex.html index 58cab3ef3..f97ea54b9 100644 --- a/nimdoc/testproject/expected/theindex.html +++ b/nimdoc/testproject/expected/theindex.html @@ -99,6 +99,23 @@ input#searchInput { width: 80%; } +/* + * Some custom formatting for input forms. + * This also fixes input form colors on Firefox with a dark system theme on Linux. + */ +input { + -moz-appearance: none; + color: #333; + background-color: #f8f8f8; + border: 1px solid #aaa; + font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif; + font-size: 0.9em; + padding: 6px; +} +input:focus { + border: 1px solid #1fa0eb; + box-shadow: 0 0 2px #1fa0eb; +} /* Docgen styles */ /* Links */ |