Skip to content

Commit

Permalink
mover links externos para navegação superior
Browse files Browse the repository at this point in the history
E ajustes no CSS para margens, deixar a borda mais visível, etc.
  • Loading branch information
Misterio77 committed Aug 25, 2024
1 parent c49e702 commit 5af68b9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,3 @@
13566-590, São Carlos - SP
</p>
</address>

<nav class="external">
<ul>
{% for item in site.data.external %}
<li><a href="{{ item.url }}" target="_blank" rel="noreferrer noopener {{ item.rel }}">{{ item.name }}</a></li>
{% endfor %}
</ul>
</nav>
9 changes: 9 additions & 0 deletions src/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<p><a href="https://icmc.usp.br/">ICMC</a>/<a href="https://usp.br/">USP</a></p>
{% endif %}
</div>

<nav class="navigation">
<ul>
{% for item in site.data.navigation %}
Expand All @@ -16,3 +17,11 @@
{% endfor %}
</ul>
</nav>

<nav class="external">
<ul>
{% for item in site.data.external %}
<li><a href="{{ item.url }}" target="_blank" rel="noreferrer noopener {{ item.rel }}">{{ item.name }}</a></li>
{% endfor %}
</ul>
</nav>
15 changes: 12 additions & 3 deletions src/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ a {
// Lista de páginas na navegação
nav ul {
padding-left: 0;
margin-bottom: 2.5rem;
margin-bottom: 0.5em;
// Tira bolinhas
list-style: none;

Expand Down Expand Up @@ -102,6 +102,7 @@ figure {

nav {
max-width: 15em;
margin-bottom: 1em;
}

footer {
Expand Down Expand Up @@ -164,9 +165,17 @@ header > blockquote ul {
}
}

body > header {
margin-bottom: 2em;
}

nav.external {
font-size: 0.9em;
}

footer {
margin-top: 5em;
font-size: 85%;
font-size: 0.85em;
border-top: 1px solid var(--color-blossom);
address, nav {
padding-top: 1em;
Expand All @@ -182,7 +191,7 @@ table {
}

main {
border-top: 1px solid var(--color-bg-alt);
border-top: 1px solid var(--color-blossom);
}

main > article > header {
Expand Down

0 comments on commit 5af68b9

Please sign in to comment.