Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,17 @@ body.index .section {
}

body.index .navbar-custom {
background-color: transparent;
background-color: rgb(var(--bs-dark-rgb));
padding-top: 20px;
padding-bottom: 10px;
}

@media (min-width: 768px) {
body.index .navbar-custom {
background-color: transparent;
}
}

.navbar-custom .navbar-nav li {
margin: 0;
}
Expand Down Expand Up @@ -153,8 +159,8 @@ body.index .navbar-custom {

.site-header {
width: 100%;
height: 33vh;
min-height: 33vh;
height: 50vh;
min-height: 50vh;
position: relative;
text-align: center;
display: table;
Expand All @@ -177,10 +183,10 @@ body.index .navbar-custom {
text-transform: uppercase;
width: 100%;
z-index: 1;
padding: 80px 15px 0;
padding: 100px 15px 0;
display: table-cell;
vertical-align: middle;
height: 33vh;
height: 50vh;
}

.site-header .intro h2 {
Expand Down Expand Up @@ -218,10 +224,23 @@ body.index .navbar-custom {
transition: all 0.3s;
}

.portal-logo small {
display: block;
white-space: normal;
}

body.single-page {
padding-top: 4.5rem;
}

.rich-text h1, .rich-text h2, .rich-text h3,
.rich-text h4, .rich-text h5, .rich-text h6 {
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
margin: 1.5rem 0 1rem;
}

.ribbon {
position: fixed;
top: 240px;
Expand Down
4 changes: 2 additions & 2 deletions templates/website/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
<nav id="site-nav" class="navbar navbar-expand-md fixed-top navbar-custom" data-bs-theme="dark">
<div class="container">
<!-- logo -->
<div class="navbar-brand d-flex align-items-center">
<div class="navbar-brand">
<a class="portal-logo text-reset text-decoration-none d-flex align-items-center" href="{% url 'website:index' %}">
{% if publication.logo %}
<img src="{{ publication.logo.url }}" alt="Logo">
{% endif %}
<span class="ms-2 text-light fw-semibold">{{ publication.title }}</span>
<small class="ms-3 text-light fw-semibold text-start" style="font-size: 0.7rem; max-width: 200px;">{{ publication.title }}</small>
</a>
</div>
<button class="navbar-toggler border border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-items" aria-controls="navbar-items" aria-expanded="false" aria-label="Toggle navigation">
Expand Down
4 changes: 2 additions & 2 deletions templates/website/base_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{% block bodyclass %} single-page {% endblock %}

{% block page_header %}
<header class="container py-4">
<h2 class="section-title">{{ page.title }}</h2>
<header class="container mt-5 mt-md-3 pt-4 pb-2">
<h2 class="section-title mb-0">{{ page.title }}</h2>
</header>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion templates/website/includes/text_page.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ content | safe }}
<div class="rich-text">{{ content | safe }}</div>
10 changes: 5 additions & 5 deletions templates/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
{% block page_header %}
<header id="site-header" class="site-header" {% if publication.banner_image %}style="background: url({{ publication.banner_image.url }}) no-repeat center; background-size: cover;"{% endif %}>
<div class="intro" >
<h1>{{ publication.title }}</h1>
<h1 class="w-75 mx-auto mt-5 mt-md-0">{{ publication.title }}</h1>
{% if publication.issn %}
<h4>ISSN: {{ publication.issn }}
{% if publication.doi %}
- DOI: {{ publication.doi }}</h4>
{% endif %}
{% endif %}
{% if publication.issue_set.last %}
<a class="btn btn-success text-light mt-4" href="{% url 'website:issue_detail' publication.issue_set.last.id %}">Edição Atual{% if publication.issue_set.last.volume or publication.issue_set.last.number %} ({% if publication.issue_set.last.volume %}V. {{ publication.issue_set.last.volume }}{% endif %}{% if publication.issue_set.last.volume and publication.issue_set.last.number %}, {% endif %}{% if publication.issue_set.last.number %}N. {{ publication.issue_set.last.number }}{% endif %}, {{ publication.issue_set.last.pub_date|date:"Y" }}){% endif %}</a>
<a class="btn btn-success text-light mt-4 mb-4" href="{% url 'website:issue_detail' publication.issue_set.last.id %}">Edição Atual{% if publication.issue_set.last.volume or publication.issue_set.last.number %} ({% if publication.issue_set.last.volume %}V. {{ publication.issue_set.last.volume }}{% endif %}{% if publication.issue_set.last.volume and publication.issue_set.last.number %}, {% endif %}{% if publication.issue_set.last.number %}N. {{ publication.issue_set.last.number }}{% endif %}, {{ publication.issue_set.last.pub_date|date:"Y" }}){% endif %}</a>
{% endif %}
</div>
</header>
Expand All @@ -31,7 +31,7 @@ <h3 class="section-title text-center">Apresentação</h3>
{% if publication.description|length <= 1500 %}
<div class="row">
<div class="col-md-6">
<div class="text-justify">{{ publication.description|safe }}</div>
<div class="text-justify rich-text">{{ publication.description|safe }}</div>
</div><!-- /.col-sm-6 -->

<div class="col-md-6">
Expand All @@ -48,11 +48,11 @@ <h3 class="section-title text-center">Apresentação</h3>
<div class="row">
{% with publication.description|split_text as split_text %}
<div class="col-sm-6">
<div class="text-justify">{{ split_text.0 |safe}}</div>
<div class="text-justify rich-text">{{ split_text.0 |safe}}</div>
</div><!-- /.col-sm-6 -->

<div class="col-sm-6">
<div class="text-justify">{{ split_text.1 |safe}}</div>
<div class="text-justify rich-text">{{ split_text.1 |safe}}</div>
</div><!-- /.col-sm-6 -->
{% endwith %}
</div><!-- /.row -->
Expand Down
2 changes: 1 addition & 1 deletion templates/website/issue_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2 class="section-title">Apresentação</h2>
</div>
<div class="row">
<div class="col-md-8">
{{ issue.presentation | safe }}
<div class="rich-text">{{ issue.presentation | safe }}</div>
<p class="mb-0"><strong>Data de publicação</strong>: {{ issue.pub_date }}</p>
{% if issue.url %}
<p><strong>Link</strong>: <a href="{{ issue.url }}">{{ issue.url }}</a></p>
Expand Down
Loading