Skip to content

Commit

Permalink
Merge pull request #70 from manualdousuario/dez20240722
Browse files Browse the repository at this point in the history
Pequenos ajustes gerais
  • Loading branch information
claromes authored Jul 31, 2024
2 parents a450a94 + 9108bca commit bd9a422
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 37 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

if ( ! defined( '_S_VERSION' ) ) {
define( '_S_VERSION', '3.4' );
define( '_S_VERSION', '3.4.1' );
}

/**
Expand Down
1 change: 1 addition & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<!-- Text Navigation -->
<ul id="primary-menu" class="menu nav-menu link-alt">
<li class="menu-item"><a href="/sobre/">Sobre</a></li>
<li class="menu-item"><a href="/assunto/mesas-de-trabalho/" class="menu-item-novo">Mesas</a></li>
<li class="menu-item"><a href="/orbita/">Órbita</a></li>
<li class="menu-item"><a href="/apoie/"><strong>Apoie</strong></a></li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@

get_template_part( 'template-parts/content', get_post_type() );

if ( ! is_paged() && 1 == $count ) :
if ( ! is_paged() && 0 == $count ) :
?>
<div class="orbita-manual">
<h2>Destaques do Órbita</h2>
<div class="orbita-manual ctx">
<label>Destaques do Órbita</label>
<?php if ( shortcode_exists( 'orbita-ranking' ) ) {
echo do_shortcode( '[orbita-ranking comment-points="1" vote-points="3" days="10" limit="5"]' );
} ?>
Expand All @@ -40,7 +40,7 @@
</div>
<?php

elseif ( 5 == $count && shortcode_exists( 'sc' ) ) :
elseif ( 4 == $count && shortcode_exists( 'sc' ) ) :
echo do_shortcode( '[sc name="buttondown-newsletters"][/sc]' );
endif;

Expand Down
13 changes: 12 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tags: featured-images, threaded-comments
Requires at least: 4.5
Tested up to: 8.1.12
Requires PHP: 5.6
Stable tag: 3.4
Stable tag: 3.4.1
License: GNU General Public License v2 or later
License URI: LICENSE

Expand Down Expand Up @@ -43,6 +43,17 @@ Dez includes support for WooCommerce and for Infinite Scroll in Jetpack.

== Changelog ==

= 3.4.1 - Jul 27 2024 =
* Corrige cor de fundo do `label` da classe `.ctx-parceiros`.
* Padroniza formatação dos de links de navegação (`.posts-navigation a`).
* Altera cabeçalho da página de resultados da pesquisa (`.search-results .page-header`).
* Encolhe um pouco o formulário de pesquisa no cabeçalho em telas grandes.
* Altera ordem das inserções de shortcodes (`sc`) no `index.php`.
* Altera exibição do bloco de destaques do Órbita no `index.php`.
* Deixa fonte do primeiro parágrafo em itálico nas citações do formato de post de citações (`.format-quote`).
* Acrescenta link para mesas no menu principal e nova classe `.menu-item-novo`.
* Reduz fonte do seletor em formulários para não gerar barra de rolagem horizontal em posts com comentários devido ao seletor de notificações por e-mail de novos comentários.

= 3.4 - Jul 5 2024 =
* Simplifica o cabeçalho a fim de ocupar menos espaço vertical em telas pequenas.
* Remove adornos do menu principal e do ícone do menu do usuário.
Expand Down
95 changes: 66 additions & 29 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://manualdousuario.net/
Author: Rodrigo Ghedin
Author URI: https://rodrigo.ghed.in/
Description: Manual do Usuário Theme
Version: 3.4
Version: 3.4.1
Tested up to: 8.1.12
Requires PHP: 5.6
License: GNU General Public License v2 or later
Expand Down Expand Up @@ -264,19 +264,22 @@ a:active {

.link-alt a,
.comment-metadata a,
a.comment-reply-link {
a.comment-reply-link,
.posts-navigation a {
color: var(--cor-link-meta);
}
.link-alt a:hover,
.comment-metadata a:hover,
.posts-navigation a:hover,
a:hover.comment-reply-link {
color: var(--cor-link-meta-est);
}

.link-alt,
a.more-link,
.comment-metadata a,
a.comment-reply-link {
a.comment-reply-link,
.posts-navigation a {
font-family: var(--ff-monospace);
font-size: var(--fs-0);
line-height: 1.4;
Expand Down Expand Up @@ -407,7 +410,7 @@ article.hentry li:last-child {
}

.data-home {
margin: 0 0 var(--med-salto-medio);
margin: 0 0 var(--med-salto-pequeno);
font-family: var(--ff-monospace);
font-size: var(--fs-0);
}
Expand Down Expand Up @@ -562,7 +565,6 @@ 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 All @@ -571,17 +573,17 @@ div.ctx-parceiros p:last-child {
margin-left: .5rem;
}

.comment-form-author {
max-width: 50%;
float: left;
margin-right: 1rem;
.comment-form-comment {
max-width: 100%;
}

.comment-form-author,
.comment-form-email {
max-width: 50%;
float: left;
max-width: 100%;
}
.comment-form-cookies-consent {
clear: both;
.comment-form-author input[type=text],
.comment-form-email input[type=email] {
width: 50%;
}

.comments-area ol {
Expand Down Expand Up @@ -785,7 +787,8 @@ ol.children {
#search-icon:checked ~ #site-navigation #search-container,
#search-icon:checked ~ #site-navigation #search-container label {
display: block;
width: 100%;
width: 90%;
margin: 0 0 0 auto;
}

#search-icon:checked ~ #site-navigation #primary-menu {
Expand Down Expand Up @@ -824,6 +827,25 @@ ol.children {

.search-results .page-header {
border-bottom: 0;
padding: var(--med-salto-pequeno);
margin-bottom: var(--med-salto-medio);
display: flex;
justify-content: center;
align-items: center;
gap: .5rem;
font-size: var(--fs-1);
border: 1px solid var(--cor-bordas);
border-radius: var(--med-borda);
background-color: var(--cor-destaques);
}
.search-results .page-header form,
.search-results .page-header p {
margin-bottom: 0;
}
.search-results .page-header form {
display: flex;
align-items: center;
gap: .5rem;
}

.page-id-39568 .entry-title,
Expand Down Expand Up @@ -927,6 +949,7 @@ div.apoie-blocos div.apoie-blocos-mensal h3 {

.format-quote .entry-content p:first-child {
margin-left: var(--med-salto-pequeno);
font-style: italic;
}

.format-link p.link span {
Expand Down Expand Up @@ -1250,7 +1273,7 @@ table.dataTable-table tr:nth-child(even) {
# Media queries
--------------------------------------------------------------*/

@media (max-width: 529px) {
@media (max-width: 565px) {
.site-header {
margin: var(--med-salto-pequeno) 0 var(--med-salto-medio);
}
Expand All @@ -1268,8 +1291,10 @@ table.dataTable-table tr:nth-child(even) {
justify-content: flex-start;
}

.data-home {
margin-bottom: var(--med-salto-pequeno);
#search-icon:checked ~ #site-navigation #search-container,
#search-icon:checked ~ #site-navigation #search-container label {
width: 100%;
margin: 0;
}

.format-quote .entry-title {
Expand All @@ -1279,6 +1304,12 @@ table.dataTable-table tr:nth-child(even) {
margin-left: 0;
}

.search-results .page-header {
flex-direction: column;
align-items: start;
padding: var(--med-salto-pequeno) calc( var(--med-salto-pequeno) * .5);
}

.lyte-wrapper,
.post-thumbnail {
left: 50%;
Expand All @@ -1290,6 +1321,10 @@ table.dataTable-table tr:nth-child(even) {
max-width: 1200px !important;
}

select#subscribe-reloaded {
font-size: var(--fs-0);
}

.category-aplicativos p:first-child,
.category-aplicativos figure:first-child {
display: inline-block;
Expand All @@ -1303,21 +1338,11 @@ table.dataTable-table tr:nth-child(even) {
float: initial;
}

.comment-form-email,
.comment-form-author {
float: initial;
max-width: 100%;
margin-right: 0;
}
.comment-form-email input,
.comment-form-author input {
.comment-form-author input[type=text],
.comment-form-email input[type=email] {
width: 100%;
}

.subscribe-formulario select {
font-size: var(--fs-0);
}

ol.children {
border-left: 1px solid var(--cor-destaques);
margin: 0 0 0 1rem;
Expand Down Expand Up @@ -1399,6 +1424,11 @@ table.dataTable-table tr:nth-child(even) {
border: 1px solid hsl(60, 100%, 12%);
}

[data-theme="dark"] .ctx-parceiros label {
background-color: #3d3d00;
color: var(--cor-fonte);
}

[data-theme="dark"] .ctx-atencao {
background-color: #1f1c00;
}
Expand Down Expand Up @@ -1494,6 +1524,13 @@ table.dataTable-table tr:nth-child(even) {
border-radius: 0 0 var(--med-borda) var(--med-borda);
}

a.menu-item-novo {
color: var(--cor-link-ori);
}
a:hover.menu-item-novo {
color: var(--cor-link-est);
}

.divider {
border-top: 1px var(--cor-bordas) solid;
}
4 changes: 2 additions & 2 deletions style.min.css

Large diffs are not rendered by default.

0 comments on commit bd9a422

Please sign in to comment.