Commit c566d3afc08fbf4b7ae8f1e466d4f649d51bbdc1

Authored by Valessio Brito
1 parent 5b04457c

Ajustando links para alternar idiomas do ambiente

cabecalho-juventude.css
... ... @@ -95,6 +95,7 @@
95 95 }
96 96  
97 97 /* Site Actions */
  98 +#portal-lang,
98 99 #portal-siteactions {
99 100 display: block;
100 101 float: right;
... ... @@ -106,6 +107,7 @@
106 107 text-align: center;
107 108 }
108 109  
  110 +#portal-lang a,
109 111 #portal-siteactions a {
110 112 color: #FFF;
111 113 text-decoration: none;
... ... @@ -114,17 +116,22 @@
114 116 font-family: 'Open Sans', Arial, Helvetica, sans-serif;
115 117 }
116 118  
  119 +#portal-lang a:hover,
117 120 #portal-siteactions a:hover {
118 121 color: yellow;
119 122 }
120 123  
  124 +#portal-lang li,
121 125 #portal-siteactions li {
122 126 display: inline;
123 127 }
124 128  
  129 +#portal-lang li a:hover,
125 130 #portal-siteactions li a:hover {
126 131 color: yellow;
127 132 }
  133 +
  134 +#portal-lang li a,
128 135 #portal-siteactions li a {
129 136 padding: 4px 0px;
130 137 }
... ...
header.html.erb
1 1 <div id="barra-brasil">
2   - <a href="http://brasil.gov.br" style="background:#7F7F7F; height: 20px; padding:4px 0 4px 10px; display: block; font-family:sans,sans-serif; text-decoration:none; color:white; ">Portal do Governo Brasileiro</a>
  2 + <a href="http://brasil.gov.br" style="background:#7F7F7F; height: 20px; padding:4px 0 4px 10px; display: block; font-family:sans,sans-serif; text-decoration:none; color:white; ">Portal do Governo Brasileiro</a>
3 3 </div>
4 4  
5 5 <div class="header-content">
... ... @@ -31,6 +31,17 @@
31 31 </a>
32 32 </li>
33 33 </ul>
  34 + <ul id="portal-lang">
  35 + <li>
  36 + <a href="?lang=pt" class="flag-pt" alt="Português" title="Português">PT</a>
  37 + </li>
  38 + <li>
  39 + <a href="?lang=en" class="flag-en" title="English" alt="English">EN</a>
  40 + </li>
  41 + <li>
  42 + <a href="?lang=es" class="flag-en" title="Español" alt="Español">ES</a>
  43 + </li>
  44 + </ul>
34 45 <ul id="portal-siteactions">
35 46 <li id="siteaction-accessibility">
36 47 <a href="#">Acessibilidade</a>
... ... @@ -41,8 +52,7 @@
41 52 <li id="siteaction-mapadosite">
42 53 <a href="/search">Mapa do Site</a>
43 54 </li>
44   - </ul>
45   -
  55 + </ul>
46 56 <div id="logo">
47 57 <a title="Juventude" href="/">
48 58 <span id="portal-title">Juventude</span>
... ... @@ -93,9 +103,4 @@
93 103 <div id="categories_menu">
94 104 <%= theme_include 'categories' %>
95 105 </div>
96   - <div id="participa-languages">
97   - <a href="?lang=pt" class="flag-pt" title="Português"><span>Português</span></a>
98   - <a href="?lang=en" class="flag-en" title="English"><span>English</span></a>
99   - <a href="?lang=es" class="flag-en" title="Español"><span>Español</span></a>
100   - </div>
101 106 </div>
... ...
style.css
... ... @@ -3109,26 +3109,8 @@ body.action-embed-index {
3109 3109  
3110 3110 /* * Internacionalização * */
3111 3111  
3112   -#participa-languages {
3113   - position: absolute;
3114   - top: 12px;
3115   - right: 10px;
3116   - padding: 0px;
3117   - z-index: 100;
  3112 +#portal-lang {
  3113 + font-size: 0.88em;
  3114 + margin-left: 15px;
3118 3115 }
3119 3116  
3120   -#participa-languages a {
3121   - color: #333;
3122   - text-decoration: none;
3123   - cursor: pointer;
3124   - background-repeat: no-repeat;
3125   - display: inline-block;
3126   - height: 17px;
3127   - width: 25px;
3128   - margin-left: 5px;
3129   -}
3130   -
3131   -.flag-en { background-image: url(images/flag-en.png) }
3132   -.flag-pt { background-image: url(images/flag-pt_br.png) }
3133   -
3134   -#participa-languages a span{ display: none }
... ...