From 0a1cb631a2c36574180469013425873984d82b16 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 3 Jul 2019 07:40:25 +0200 Subject: 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 --- nimdoc/testproject/expected/subdir/subdir_b/utils.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'nimdoc/testproject/expected/subdir') 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 */ -- cgit 1.4.1-2-gfad0