Skip to content

Commit

Permalink
Merge pull request #83 from EbookFoundation/foundation/fix-home-css
Browse files Browse the repository at this point in the history
fix home css / add explore section to book view sidebar
  • Loading branch information
eshellman committed May 18, 2018
2 parents 55bc6ef + 0d7bc06 commit 8413372
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/templates/work.html
Expand Up @@ -200,7 +200,7 @@ <h4>Related Works</h4>
<div class="btn_wishlist" id="wishlist_actions">
{% if request.user.is_anonymous %}
<div class="create-account">
<span title="{% url 'work' work_id %}">Login to Fave</span>
<span title="{% url 'work' work_id %}"><a href="{% url 'superlogin' %}?next={{ request.get_full_path|urlencode }}">Login to Fave</a></span>
</div>
{% elif request.user.id in work.last_campaign.supporters %}
<div class="add-wishlist">
Expand Down Expand Up @@ -229,6 +229,9 @@ <h4>Related Works</h4>
<span>LibraryThing</span>
</a>
</div>
<div class="book-sidebar-explore">
{% include "explore.html" %}
</div>
</div>
<div class="bookComments">
<h2>Comments</h2>
Expand Down
44 changes: 44 additions & 0 deletions static/scss/bookview.scss
Expand Up @@ -39,6 +39,10 @@
.book-sidebar-item span {
display: none;
}

.book-sidebar-explore {
display: none;
}

.bookRead {
flex: 100%;
Expand Down Expand Up @@ -137,3 +141,43 @@
.description-more-content {
padding-top: 20px;
}

.book-sidebar-explore {
width: 150px;
.jsmodule {
margin: 0;
padding: 0;

h3 {
background-color: $pale-blue;
border-radius: 0;
height: auto;
span {
text-align: center;
padding: 4px;
}
margin-bottom: 4px;
}

.menu {

li {
> span {
display: none;
}
a {
padding: 0;
padding-bottom: 4px;
}
a:hover {
text-decoration: underline;
}
}

.level3 {
padding-left: 10px;
}
}
}

}
7 changes: 7 additions & 0 deletions static/scss/home.scss
Expand Up @@ -180,3 +180,10 @@
.donate {
cursor: pointer;
}

#js-topsection {
width: 100%;
max-width: 960px;
margin-left: auto;
margin-right: auto;
}

0 comments on commit 8413372

Please sign in to comment.