Skip to content

Commit

Permalink
Merge pull request #30 from ramoncordini/aplicacao-ds-opac5-home
Browse files Browse the repository at this point in the history
ajustes gerais de responsividade
  • Loading branch information
gitnnolabs authored Aug 9, 2023
2 parents 7b79286 + bf1d837 commit 8a55896
Show file tree
Hide file tree
Showing 26 changed files with 1,429 additions and 555 deletions.
2 changes: 1 addition & 1 deletion opac/webapp/static/css/article.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion opac/webapp/static/css/bootstrap.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion opac/webapp/static/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion opac/webapp/static/css/scielo-bundle.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion opac/webapp/static/css/scielo-bundle.css.map

Large diffs are not rendered by default.

334 changes: 233 additions & 101 deletions opac/webapp/templates/article/includes/alternative_header.html

Large diffs are not rendered by default.

108 changes: 108 additions & 0 deletions opac/webapp/templates/article/includes/floating_menu.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,111 @@
<!--
<div class="floatingMenuCtt">
<a class="floatingMenuItem fm-button-child item-goto" data-fm-label="{% trans %}Ir para o topo{% endtrans %}" href="#top">
<span class="sci-ico-top glyphFloatMenu"></span>
</a>
<a href="javascript:;" class="floatingMenuItem fm-button-child item-download" data-fm-label="{% trans %}PDFs{% endtrans %}" data-toggle="modal" data-target="#ModalDownloads">
<span class="sci-ico-download glyphFloatMenu"></span>
</a>
{% if config.USE_METRICS or config.USE_DIMENSIONS or config.USE_PLUMX %}
<a href="javascript:;" data-toggle="modal" data-target="#metric_modal_id" class="floatingMenuItem fm-button-child item-metrics" data-fm-label="{% trans %}Métricas{% endtrans %}" target="_blank">
<span class="sci-ico-metrics glyphFloatMenu"></span>
</a>
{% endif %}
<ul class="floatingMenu fm-slidein" data-fm-toogle="hover">
<li class="fm-wrap">
<a href="javascript:;" class="fm-button-main">
<span class="sci-ico-floatingMenuDefault glyphFloatMenu"></span>
<span class="sci-ico-floatingMenuClose glyphFloatMenu"></span>
</a>
<ul class="fm-list">
{% if not is_pdf_page and article.xml %}
{# excluimos este item se é a página do PDF #}
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Figuras e tabelas{% endtrans %}" data-toggle="modal" data-target="#ModalTablesFigures">
<span class="sci-ico-figures glyphFloatMenu"></span>
</a>
</li>
{% endif %}
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Versões e traduções{% endtrans %}" data-toggle="modal" data-target="#ModalVersionsTranslations">
<span class="sci-ico-translation glyphFloatMenu"></span>
</a>
</li>
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Como citar este artigo{% endtrans %}" data-toggle="modal" data-target="#ModalArticles">
<span class="sci-ico-citation glyphFloatMenu"></span>
</a>
</li>
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Artigos relacionados{% endtrans %}" data-toggle="modal" data-target="#ModalRelatedArticles">
<span class="sci-ico-similar glyphFloatMenu"></span>
</a>
</li>
</ul>
</li>
</ul>
</div>
-->


<!-- FLOATING MENU ONLY FOR IPAD-->
<!--
<ul class="floatingMenuMobile fm-slidein" data-fm-toogle="hover">
<li class="fm-wrap">
<a href="javascript:;" class="fm-button-main">
<span class="sci-ico-floatingMenuDefault glyphFloatMenu"></span>
<span class="sci-ico-floatingMenuClose glyphFloatMenu"></span>
</a>
<ul class="fm-list">
<li>
<a class="fm-button-child item-goto" data-fm-label="{% trans %}Ir para o topo{% endtrans %}" href="#top">
<span class="sci-ico-top glyphFloatMenu"></span>
</a>
</li>
<li>
<a class="fm-button-child item-download" data-fm-label="{% trans %}PDFs{% endtrans %}" data-toggle="modal" data-target="#ModalDownloads" href="#">
<span class="sci-ico-download glyphFloatMenu"></span>
</a>
</li>
<li>
<a data-toggle="modal" data-target="#metric_modal_id" class="fm-button-child item-metrics" data-fm-label="{% trans %}Métricas{% endtrans %}" href="#" target="_blank">
<span class="sci-ico-metrics glyphFloatMenu"></span>
</a>
</li>
{% if not is_pdf_page and article.xml %}
{# excluimos este item se é a página do PDF #}
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Figuras e tabelas{% endtrans %}" data-toggle="modal" data-target="#ModalTablesFigures" href="#">
<span class="sci-ico-figures glyphFloatMenu"></span>
</a>
</li>
{% endif %}
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Versões e traduções{% endtrans %}" data-toggle="modal" data-target="#ModalVersionsTranslations" href="#">
<span class="sci-ico-translation glyphFloatMenu"></span>
</a>
</li>
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Como citar este artigo{% endtrans %}" data-toggle="modal" data-target="#ModalArticles" href="#">
<span class="sci-ico-citation glyphFloatMenu"></span>
</a>
</li>
<li>
<a class="fm-button-child" data-fm-label="{% trans %}Artigos e similares{% endtrans %}" data-toggle="modal" data-target="#ModalRelatedArticles" href="#">
<span class="sci-ico-similar glyphFloatMenu"></span>
</a>
</li>
</ul>
</li>
</ul>
-->
<!-- FLOATING MENU ONLY FOR IPAD-->




<div class="container">
<div class="row">
Expand Down
130 changes: 122 additions & 8 deletions opac/webapp/templates/article/includes/header.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,128 @@
<header style="display:none;">
{% import 'macros/images.html' as cimages %}
{% import 'macros/collection.html' as coll_macro %}

<style>
body{
padding-top: 74px;
}
header{
background: #fff;
}

.articleTxt{
top: -16px;
}

@media (max-width: 575.98px) {

.articleCtt > .container{
padding-left: 0;
padding-right: 0;
}
.articleCtt .articleTxt{
padding-left: 16px !important;
padding-right: 16px !important;
}

}

@media (min-width: 768px){

.scielo__truncate{
display: block;
max-width: 285px;
}

}

</style>

<header class="fixed-top scielo__shadow-2">
<div class="container">
<div class="row topFunction">
<div class="col-md-2 col-sm-3 mainNav">
<div class="mainMenu" id="mainMenu">
<div class="row">
<div class="col-md-7 col-md-offset-2 col-sm-7 col-sm-offset-2 logo"></div>
<div class="row">
<div class="col-2 col-sm-1">
{% include "collection/includes/nav.html" %}
</div>
<div class="col col-sm-3 --mainNav">
<a href="/" title="{% trans %}Ir para a homepage da coleção: {% endtrans %}{{ coll_macro.get_collection_name() }}">
<div class="scielo__logo-scielo-collection mt-1">
<small>Brasil</small>
</div>
{% include "collection/includes/nav.html" %}
</a>
</div>
<div class="d-none d-sm-block col">
<div class="dropdown mt-3">
<button class="btn btn-link dropdown-toggle mb-0" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
<span class="text-truncate scielo__truncate">{{ journal.title }} </span>
</button>
<ul class="dropdown-menu scielo__shadow-2" aria-labelledby="dropdownMenuButton1">
<li>
<a href="{{ url_for('.journal_detail', url_seg=journal.url_segment) }}" class="dropdown-item">
{% if journal.logo_url %}
<img src="{{ cimages.proxy_ssm_resource_url(journal.logo_url) }}" class="image" alt="Logomarca do periódico: {{ journal.title }}" />
{% endif %}
</a>
</li>
{% if journal.online_submission_url and journal.current_status == 'current' %}
<li>
<a href="{{ journal.online_submission_url|default('', true) }}" class="dropdown-item" target="_blank"><span class="material-icons-outlined">launch</span> {% trans %}Submissão de manuscritos{% endtrans %}</a>
</li>
{% endif %}
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#about" class="dropdown-item"><span class="material-icons-outlined">info</span> {% trans %}Sobre o periódico{% endtrans %}</a>
</li>
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#editors" class="dropdown-item"><span class="material-icons-outlined">people</span> {% trans %}Corpo Editorial{% endtrans %}</a>
</li>
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#instructions" class="dropdown-item"><span class="material-icons-outlined">help_outline</span> {% trans %}Instruções aos autores{% endtrans %}</a>
</li>
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#contact" class="dropdown-item"><span class="material-icons-outlined">email</span> {% trans %}Contato{% endtrans %}</a>
</li>
</ul>
</div>
</div>
<div class="col">
<div class="language mt-3">
{% include "includes/language.html" %}
</div>
</div>
</div>
<div class="row d-block d-sm-none">
<div class="col">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle mb-2 w-100" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
<span class="truncate">{{ journal.title }} </span>
</button>
<ul class="dropdown-menu w-100" aria-labelledby="dropdownMenuButton1">
<li>
<a href="{{ url_for('.journal_detail', url_seg=journal.url_segment) }}" class="dropdown-item">
{% if journal.logo_url %}
<img src="{{ cimages.proxy_ssm_resource_url(journal.logo_url) }}" class="image" alt="Logomarca do periódico: {{ journal.title }}" />
{% endif %}
</a>
</li>
{% if journal.online_submission_url and journal.current_status == 'current' %}
<li>
<a href="{{ journal.online_submission_url|default('', true) }}" class="dropdown-item" target="_blank"><span class="material-icons-outlined">launch</span> {% trans %}Submissão de manuscritos{% endtrans %}</a>
</li>
{% endif %}
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#about" class="dropdown-item"><span class="material-icons-outlined">info</span> {% trans %}Sobre o periódico{% endtrans %}</a>
</li>
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#editors" class="dropdown-item"><span class="material-icons-outlined">people</span> {% trans %}Corpo Editorial{% endtrans %}</a>
</li>
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#instructions" class="dropdown-item"><span class="material-icons-outlined">help_outline</span> {% trans %}Instruções aos autores{% endtrans %}</a>
</li>
<li>
<a href="{{ url_for('.about_journal', url_seg=journal.url_segment) }}#contact" class="dropdown-item"><span class="material-icons-outlined">email</span> {% trans %}Contato{% endtrans %}</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</header>
</header>
Loading

0 comments on commit 8a55896

Please sign in to comment.