Skip to content

Commit

Permalink
Remove version badge
Browse files Browse the repository at this point in the history
The version badge sometimes hides content, especially on mobile.  Since
c17deff, we display a user-friendly
version number in the top left corner of the screen at all times.  As
such, there isn't a need to also display the same information in the top
right corner of the screen.
  • Loading branch information
jonathanhefner committed Aug 28, 2023
1 parent d5316a3 commit 5243ff3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions lib/rdoc/generator/template/rails/_panel.rhtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<a href="#" class="back-to-top"></a>
<% if project_version %>
<div id="version-badge"><%= project_version %></div>
<% end %>

<nav id="panel" class="panel">
<div class="banner">
Expand Down
18 changes: 0 additions & 18 deletions lib/rdoc/generator/template/rails/resources/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,24 +177,6 @@ th
font-size: 2rem;
}

#version-badge {
position: fixed;
right: 0;
top: 0;
z-index: 100;
color: white;
transform: rotate(45deg) translate(27.5%, -40%);
min-width: 200px;
font-size: 30px;
font-weight: bold;
font-style: italic;
line-height: 1.5;
text-shadow: 2px 2px 4px #5400007d;
text-align: center;
box-shadow: 0px 2px 2px 1px #1209096e;
background: radial-gradient(circle, rgb(255, 10, 0) 0%, rgb(200, 0, 0) 90%);
}

a.back-to-top {
visibility: hidden;
position: fixed;
Expand Down

0 comments on commit 5243ff3

Please sign in to comment.