Skip to content

Commit

Permalink
* Corrige imagem do plugin Just Likes and Dislikes no modo escuro.
Browse files Browse the repository at this point in the history
* Altera exibição do ícone `icone-rss-outline.svg` para o CSS.
* Altera valores das media queries (de 400 para 432 e de 710 para 715).
* Altera largura e simplifica estrutura da classe `comment-form-alert`,
no `functions.php`.
  • Loading branch information
rghedin committed Jun 20, 2024
1 parent c7d93ba commit ed5fc5a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@ function dez_favicons() {
*/
function dez_mensagem_form_comentarios( $defaults ) {
$logincom = esc_url( wp_login_url( get_permalink() ) );
$defaults['comment_notes_before'] = '<div class="comment-form-alert ctx"><label>Atenção!</label><p>Antes de comentar, leia as <a href="/doc-comentarios/">regras de convivência</a> e o <a href="https://manualdousuario.net/orbita/guia-de-uso/">guia de uso</a> do Órbita. <a href="/cadastro/">Cadastre-se</a> (é grátis!) para verificar seu perfil e interagir no Órbita. Já tem conta? <a href="' . $logincom . '">Entre</a>.</p></div>';
$defaults['comment_notes_before'] = '<p class="comment-form-alert ctx"><label>Atenção!</label>Antes de comentar, leia as <a href="/doc-comentarios/">regras de convivência</a> e o <a href="https://manualdousuario.net/orbita/guia-de-uso/">guia de uso</a> do Órbita. <a href="/cadastro/">Cadastre-se</a> (é grátis!) para verificar seu perfil e interagir no Órbita. Já tem conta? <a href="' . $logincom . '">Entre</a>.</p>';
return $defaults;
}
add_filter( 'comment_form_defaults', 'dez_mensagem_form_comentarios' );

function dez_mensagem_form_comentarios_logado($args_logged_in, $commenter, $user_identity) {
$args_logged_in = '<div class="comment-form-alert ctx"><label>Atenção!</label><p>Antes de comentar, leia as <a href="/doc-comentarios/">regras de convivência</a> e o <a href="https://manualdousuario.net/orbita/guia-de-uso/">guia de uso</a> do Órbita.</div>';
$args_logged_in = '<p class="comment-form-alert ctx"><label>Atenção!</label> Antes de comentar, leia as <a href="/doc-comentarios/">regras de convivência</a> e o <a href="https://manualdousuario.net/orbita/guia-de-uso/">guia de uso</a> do Órbita.</p>';
return $args_logged_in;
}
add_filter('comment_form_logged_in', 'dez_mensagem_form_comentarios_logado', 10, 3);
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
$icon_nav .= '<a id="dark-mode-toggle" name="dark-mode-toggle" alt="Alternar Tema (Claro ou Escuro)" title="Alternar Tema (Claro ou Escuro)" onClick="setDezTheme(event)"></a>';

// Feed RSS/Atom
$icon_nav .= '<a href="/feed/"><img src="/wp-content/themes/dez/img/icone-rss-outline.svg" alt="Feed RSS" width="26" height="26" /></a>';
$icon_nav .= '<a id="feed-rss-atom" href="/feed/"></a>';

$icon_nav .= '<div id="secondary-menu" class="menu-item">';

Expand Down
25 changes: 19 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ p.site-title {

.main-navigation ul,
#secondary-menu,
#dark-mode-toggle {
#dark-mode-toggle,
#feed-rss-atom {
display: flex;
list-style: none;
margin: 0;
Expand All @@ -375,7 +376,8 @@ ul.nav-menu {
height: 42px;
}

#dark-mode-toggle {
#dark-mode-toggle,
#feed-rss-atom {
background-image: url('/wp-content/themes/dez/img/icone-dark-mode-lua.svg');
background-size: cover;
display: block;
Expand All @@ -390,6 +392,11 @@ ul.nav-menu {
background-image: url('/wp-content/themes/dez/img/icone-dark-mode-sol.svg');
filter: invert();
}
#feed-rss-atom {
background-image: url('/wp-content/themes/dez/img/icone-rss-outline.svg');
height: 26px;
width: 26px;
}

.sextas-feiras {
margin-bottom: var(--med-salto-grande);
Expand Down Expand Up @@ -569,6 +576,7 @@ div.ctx-parceiros p:last-child {
}

.comment-form-alert {
max-width: var(--med-comp-linha);
font-family: var(--ff-monospace);
font-size: var(--fs-0);
}
Expand Down Expand Up @@ -968,7 +976,7 @@ span.required-field-message,
line-height: 1;
}

.jlad-like-dislike-wrap.jlad-custom img {
.jlad-custom img {
max-width: 18px;
display: initial;
vertical-align: middle;
Expand Down Expand Up @@ -1253,7 +1261,7 @@ table.dataTable-table tr:nth-child(even) {
# Media queries
--------------------------------------------------------------*/

@media (max-width: 710px) {
@media (max-width: 715px) {
.site-header {
row-gap: var(--med-salto-pequeno);
margin-bottom: var(--med-salto-medio);
Expand Down Expand Up @@ -1348,10 +1356,14 @@ table.dataTable-table tr:nth-child(even) {
}
}

@media (max-width: 400px) {
@media (max-width: 432px) {
.site-header {
justify-content: center;
}

.main-navigation {
gap: 1.5rem;
}
}

/*--------------------------------------------------------------
Expand All @@ -1376,7 +1388,8 @@ table.dataTable-table tr:nth-child(even) {
[data-theme="dark"] .gridicon,
[data-theme="dark"] .menu-toggle-icon a,
[data-theme="dark"] .search-icon,
[data-theme="dark"] a.comment-link {
[data-theme="dark"] a.comment-link,
[data-theme="dark"] .jlad-custom img {
filter: invert();
fill: unset;
}
Expand Down
Loading

0 comments on commit ed5fc5a

Please sign in to comment.