diff --git a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss index 5caa2963ff44346ffa5aec47a67f7e9ca60f9dfe..b19b21b6969bcc43168ab87f808e6e71fbbcac57 100644 --- a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss +++ b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss @@ -82,6 +82,12 @@ } } + .domains:hover + .subdomains, + .subdomains:hover { + max-height: 300px; + margin-bottom: 0; + } + .domains { list-style: none; padding: 0 0 20px 0; @@ -118,7 +124,10 @@ list-style: none; padding: 0; - margin-bottom: 20px; + margin-bottom: 0; + transition: 100ms; + max-height: 0; + overflow: hidden; li { font-size: 0.825rem; @@ -163,12 +172,18 @@ } .citation { - background-color: #f6a125; +// background-color: #f6a125; display: inline-block; - padding: 0 10px; +// padding: 0 10px; border-radius: 99px; margin-right: 5px; margin-top: 3px; + font-weight: 600; + + &:after { + content: "•"; + margin-left: 8px; + } } .header { @@ -223,7 +238,7 @@ } } - .link-cloud { + .news .link-cloud { list-style: none; padding: 0; text-align: center; @@ -245,6 +260,11 @@ } } + .news { + position: sticky; + top: 0; + } + .news h3 > a { color: initial; } .news ul { list-style: none; diff --git a/scipost_django/scipost/templates/scipost/index3.html b/scipost_django/scipost/templates/scipost/index3.html index 8a2120a203b48e2dd1c7e8179fa21cdea89c55cc..602776d06d4917dcfb04395ef8fb0a45dd9c3225 100644 --- a/scipost_django/scipost/templates/scipost/index3.html +++ b/scipost_django/scipost/templates/scipost/index3.html @@ -14,10 +14,6 @@ {% block meta_description %}{{ block.super }} homepage{% endblock meta_description %} {% block pagetitle %}Homepage{% endblock pagetitle %} -{% block navbar %} - {% include 'scipost/navbar2.html' %} -{% endblock %} - {% block content %} <div class="row"> <div class="col-12"> @@ -43,8 +39,6 @@ <li><h2>Journals</h2></li> <li class="active"><h2>Publications</h2></li> <li><h2>Submissions</h2></li> - <li><h2>Reports</h2></li> - <li><h2>Comments</h2></li> </ul> <div class="publication-list"> @@ -73,10 +67,7 @@ </li> {% endfor %} </ul> - </div><!-- End news --> - - <div> <ul class="link-cloud"> <li>About</li> <li>Contact Us</li> @@ -90,7 +81,9 @@ <li>Sponsors</li> <li>Finances</li> </ul> - </div> + </div><!-- End news --> + + </div> </div> diff --git a/scipost_django/scipost/views.py b/scipost_django/scipost/views.py index a897a3969962dec440685a3a9b5f1229041bf04d..a106d76831d479ca676022fa31eebe5121e587cd 100644 --- a/scipost_django/scipost/views.py +++ b/scipost_django/scipost/views.py @@ -415,6 +415,7 @@ def index3(request): 'news_items': NewsItem.objects.homepage().order_by('-date')[:4], 'publications': Publication.objects.published().order_by('-publication_date', '-paper_nr')[:10], + # 'submissions': Submission.objects.public().order_by('-submission_date')[:10], 'current_sponsors': Organization.objects.current_sponsors().order_by('?')[:2] } return render(request, 'scipost/index3.html', context)