Refatora style.css e adiciona menu hambúrguer no seletor de idioma#1
Refatora style.css e adiciona menu hambúrguer no seletor de idioma#1
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fe387cbfb6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| .page-desc { |
There was a problem hiding this comment.
Restore
.top-btn CSS after the refactor
This refactor drops the only .top-btn style block from style.css while many pages still render <button class="top-btn"> (the scroll-to-top control), so those buttons now fall back to default button rendering/flow and no longer behave like a fixed floating action button on long pages. Please reintroduce the .top-btn rule (fixed positioning, size, visual style, z-index) to avoid this cross-page UI regression.
Useful? React with 👍 / 👎.
Motivation
data-langoriginais.Description
style.css: introduzi variáveis CSS (:root), agrupei seletores comuns, removi regras duplicadas e simplifiquei media queries para1024pxe768pxmantendo o visual existente.lang-switcher.jsque transforma dinamicamente cada.lang-switcherem um componente com botão toggle.lang-togglee container.lang-options, mantendo os botões de idioma (button[data-lang]) e fechando o menu ao clicar fora ou ao selecionar um idioma.<script src="lang-switcher.js" defer></script>em todas as páginas que têm<div class="lang-switcher">(24 páginas).i18next) e preservei os atributosdata-i18nedata-langsem modificações.Testing
style.csscomnode -e(contagem de{e}) e os pares estão balanceados (sucesso)..lang-switcherpassaram a incluirlang-switcher.jscom um script Python (todas as 24 páginas atualizadas, sucesso).Codex Task