From c17deffa99a415ca43f23a3df61b567aacd237dc Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Tue, 1 Aug 2023 21:44:10 -0500 Subject: [PATCH] Redesign banner and mobile menu bar This commit redesigns the banner that was formerly displayed at the top of each page. The banner and the logo are now integrated, and they also serve as the mobile menu bar. The `menu.svg` and `close.svg` files are from [Feather icons][feather] v4.29.0, and are [licensed under the MIT license][license]. [feather]: https://feathericons.com/ [license]: https://github.com/feathericons/feather/blob/v4.29.0/LICENSE --- .../generator/template/rails/_context.rhtml | 2 +- .../generator/template/rails/_panel.rhtml | 47 +-- lib/rdoc/generator/template/rails/class.rhtml | 30 +- lib/rdoc/generator/template/rails/file.rhtml | 30 +- lib/rdoc/generator/template/rails/index.rhtml | 4 +- .../template/rails/resources/css/main.css | 298 +++++++++++------- .../template/rails/resources/css/panel.css | 209 +----------- .../template/rails/resources/i/close.svg | 1 + .../template/rails/resources/i/menu.svg | 1 + .../template/rails/resources/js/main.js | 4 +- .../template/rails/resources/js/searchdoc.js | 6 +- 11 files changed, 247 insertions(+), 385 deletions(-) create mode 100644 lib/rdoc/generator/template/rails/resources/i/close.svg create mode 100644 lib/rdoc/generator/template/rails/resources/i/menu.svg diff --git a/lib/rdoc/generator/template/rails/_context.rhtml b/lib/rdoc/generator/template/rails/_context.rhtml index a3883bf4..ade16418 100644 --- a/lib/rdoc/generator/template/rails/_context.rhtml +++ b/lib/rdoc/generator/template/rails/_context.rhtml @@ -1,4 +1,4 @@ -
+
<% unless (description = context.description).empty? %> <% unless context.comment_title %>

<%= context.title %>

diff --git a/lib/rdoc/generator/template/rails/_panel.rhtml b/lib/rdoc/generator/template/rails/_panel.rhtml index a12376ec..c0c771c9 100644 --- a/lib/rdoc/generator/template/rails/_panel.rhtml +++ b/lib/rdoc/generator/template/rails/_panel.rhtml @@ -3,25 +3,34 @@
<%= project_version %>
<% end %> - - -