Skip to content

Commit

Permalink
layout.translation: adicionado caixa de alerta de versao WD
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Oct 5, 2016
1 parent 883386f commit ccaad86
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions _layouts/translation.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
</header>

<div class="post-content" itemprop="articleBody">
{% if page.isDraft %}
<div class="alert-wd">
<h2 class="alert-wd-tt">Versão rascunho de trabalho de tradução</h2>
Documento em processo de tradução. Não é seguro usar como referência!
Aguarde lançamento da versão <strong>candidata a lançamento</strong>
ou a versão <strong>estável</strong>.
{% if page.discussion %}
Veja a <a href="{{ page.discussion }}">discussão desta tradução no Github</a>.
{% endif %}
</div>
{% endif %}
{% if page.isReleaseCandidate %}
<div class="alert-rc">
<h2 class="alert-rc-tt">Versão candidata a lançamento da tradução final</h2>
Expand Down
7 changes: 5 additions & 2 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,16 @@ kbd {
.dl-traducao > dd li {
margin-left: 1em;
}
.alert-rc {
.alert-rc, .alert-wd {
background-color: #fafaae;
border-radius: 10px;
padding: 10px;
margin: 1em auto;
border: 2px black dashed;
}
.alert-rc > .alert-rc-tt {
.alert-wd {
border: 5px red dashed;
}
.alert-rc > .alert-rc-tt, .alert-wd > .alert-wd-tt {
font-size: 2em;
}

0 comments on commit ccaad86

Please sign in to comment.