Skip to content

Commit

Permalink
chore: make mobile about menu case the only time header appears makin…
Browse files Browse the repository at this point in the history
…g css display none unnecessary
  • Loading branch information
stevekaplan123 committed Jan 20, 2025
1 parent 073b5ab commit 700ee8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 1 addition & 6 deletions static/css/static.css
Original file line number Diff line number Diff line change
Expand Up @@ -3520,13 +3520,8 @@ form.globalUpdateForm + div.notificationsList {
margin-right: 20px;
}
}
nav#aboutSidebar h1 {
display: none;
}

@media (max-width: 480px) {
.interface-english nav#aboutSidebar h1.int-en, .interface-hebrew nav#aboutSidebar h1.int-he {
display: block;
}
.container.doc.legal.static .inner, #annualReport .inner, #metricsPage .inner, #supportersPage .inner,
#testimonialsPage .inner, #aboutPage .inner, #teamPage .inner, #jobsPage .inner {
margin-inline-start: auto;
Expand Down
6 changes: 4 additions & 2 deletions templates/_sidebar.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{% load i18n %}

<nav id="aboutSidebar">
<h1 class="int-en">{{title}}</h1>
<h1 class="int-he">{{heTitle}}</h1>
{% if mobile %}
<h1 class="int-en">{{title}}</h1>
<h1 class="int-he">{{heTitle}}</h1>
{% endif %}
<ul>
<li><a id="about" href="/about">
<span class="int-en">What is Sefaria?<i class="fa fa-chevron-right"></i></span>
Expand Down

0 comments on commit 700ee8f

Please sign in to comment.