Commit 39bfa74c281b567b43fe4cefab34adb05917c26b

Authored by Ábner Oliveira
2 parents 5af9c834 bd9047e0

Merge branch 'bandeiras' into 'master'

Bandeiras

Added flags for localization
header.rhtml
... ... @@ -91,4 +91,8 @@
91 91 <div id="categories_menu">
92 92 <%= theme_include 'categories' %>
93 93 </div>
  94 + <div id="participa-languages">
  95 + <a href="?lang=pt" class="flag-pt" title="Português"><span>Português</span></a>
  96 + <a href="?lang=en" class="flag-en" title="English"><span>English</span></a>
  97 + </div>
94 98 </div>
... ...
images/flag-en.png 0 → 100644

2.09 KB

images/flag-pt_br.png 0 → 100644

1.71 KB

style.css
... ... @@ -3193,3 +3193,29 @@ body.action-embed-index {
3193 3193 .hub ul.settings li.twitter input{margin-bottom: 10px; margin-right: 5px;}
3194 3194  
3195 3195 .hub ul.settings li.twitter input.btn-ok {}
  3196 +
  3197 +/* * Internacionalização * */
  3198 +
  3199 +#participa-languages {
  3200 + position: absolute;
  3201 + top: 12px;
  3202 + right: 10px;
  3203 + padding: 0px;
  3204 + z-index: 100;
  3205 +}
  3206 +
  3207 +#participa-languages a {
  3208 + color: #333;
  3209 + text-decoration: none;
  3210 + cursor: pointer;
  3211 + background-repeat: no-repeat;
  3212 + display: inline-block;
  3213 + height: 17px;
  3214 + width: 25px;
  3215 + margin-left: 5px;
  3216 +}
  3217 +
  3218 +.flag-en { background-image: url(images/flag-en.png) }
  3219 +.flag-pt { background-image: url(images/flag-pt_br.png) }
  3220 +
  3221 +#participa-languages a span{ display: none }
... ...