Skip to content

Commit

Permalink
Merge pull request #47 from manualdousuario/2024-8
Browse files Browse the repository at this point in the history
Adiciona classe `.link` ao link especial do post format Link
  • Loading branch information
rghedin authored Mar 21, 2024
2 parents b4a63f1 + ddf816d commit f04bc5d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 90 deletions.
6 changes: 1 addition & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ function dez_remover_estilos_dashboard() {
}
add_action( 'admin_enqueue_scripts', 'dez_remover_estilos_dashboard', 999 );

function remove_wp_block_library_css(){
wp_dequeue_style( 'activitypub-followers-style' );
wp_dequeue_style( 'activitypub-follow-me-style' );
}
add_action( 'wp_print_styles', 'remove_wp_block_library_css', 100 );
add_filter( 'activitypub_site_supports_blocks', '__return_false' );

/**
* Impede o WordPress de gerar novos tamanhos de imagens.
Expand Down
9 changes: 8 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: 2.8.1
Stable tag: 2.9
License: GNU General Public License v2 or later
License URI: LICENSE

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

== Changelog ==

= 2.9 - March 09 2024 =
* Adiciona classe `.link` ao link especial do post format Link
* Melhorias no menu principal em telas pequenas
* Altera função para remover todos os estilos
adicionados pelo plugin ActivityPub
* Remove cor de fundo diferente para `.category-aplicativos`

= 2.8.1 - March 09 2024 =
* Acrescenta suporte a post format `link`
* Aumenta densidade do leiaute
Expand Down
117 changes: 35 additions & 82 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: 2.8.1
Version: 2.9
Tested up to: 8.1.12
Requires PHP: 5.6
License: GNU General Public License v2 or later
Expand Down Expand Up @@ -536,38 +536,6 @@ article.hentry li:last-child {
/* Cabeçalho
--------------------------------------------- */

.dfad_pos_1 {
background-color: var(--cor-caixas);
max-width: 100%;
text-align: center;
padding: 1rem;
box-shadow: inset 0 -10px 20px var(--cor-bordas);
}

.dfad_pos_1 p {
margin: 0;
}

.dfad_pos_1 span {
font-size: 75%;
font-weight: 600;
padding: .15rem .25rem;
text-transform: uppercase;
color: hsl(120, 100%, 25%);
border: 2px solid hsl(120, 100%, 25%);
border-radius: var(--borda-curva);
}

.dfad_pos_1 span {
color: hsl(120, 90%, 19%);
border-color: hsl(120, 90%, 19%);
}

.dfad_pos_1 span.calhau {
color: hsl(0, 96%, 33%);
border-color: hsl(0, 96%, 33%);
}

.site-header {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -595,7 +563,9 @@ p.site-title {
gap: 1.25rem;
}

.main-navigation ul {
.main-navigation ul,
#secondary-menu,
#dark-mode-toggle {
display: flex;
list-style: none;
margin: 0;
Expand All @@ -609,19 +579,11 @@ p.site-title {
}

ul.nav-menu {
padding: .75rem 1.25rem;
padding: .5rem 1.25rem;
background-color: var(--cor-caixas);
border-radius: var(--borda-curva);
}

#secondary-menu,
#dark-mode-toggle {
background: transparent;
padding: 0;
display: flex;
align-items: center;
}
#dark-mode-toggle,
li.menu-rss {
margin-left: -.75rem;
}
Expand Down Expand Up @@ -913,7 +875,7 @@ article.format-image .entry-title {
margin-left: 3.5rem;
}

.format-link p:last-child {
.format-link p.link {
display: grid;
grid-template-columns: 2rem 1fr;
grid-template-rows: 1fr;
Expand All @@ -922,33 +884,18 @@ article.format-image .entry-title {
border-radius: var(--borda-curva);
line-height: 150%;
}
.format-link p:last-child:before {
.format-link p.link:before {
content: '🔗';
display: block;
position: relative;
margin-top: 2px;
}
.format-link p:last-child span {
.format-link p.link span {
font-family: var(--ff-monospace);
font-size: var(--fs-0);
grid-column: 2 / 3;
}

.blog article.category-aplicativos {
margin: 0 1rem 6rem;
background-color: #f9f4ff;
border-radius: var(--borda-curva);
}
.blog article.category-aplicativos .entry-header,
.blog article.category-aplicativos .entry-content,
.blog article.category-aplicativos .entry-footer {
padding: 0;
}

.blog article.category-aplicativos {
background-color: hsl(224, 100%, 97%);
}

.hfeed article.type-podcast h2.entry-title {
font-size: var(--fs-2);
}
Expand Down Expand Up @@ -1596,7 +1543,7 @@ table.dataTable-table tr:nth-child(even) {
/*--------------------------------------------------------------
# Media queries
--------------------------------------------------------------*/
@media (max-width: 670px) {
@media (max-width: 766px) {
.site-header {
justify-content: center;
padding: 0 0 1rem 0;
Expand All @@ -1609,16 +1556,14 @@ table.dataTable-table tr:nth-child(even) {
.main-navigation {
width: 100%;
justify-content: center;
background-color: var(--cor-caixas);
padding: .5rem 0;
}

ul.nav-menu {
padding: 0;
background-color: transparent;
}
.main-navigation,
.main-navigation ul {
gap: 1rem;
}

.data-capa {
border-radius: 0 var(--borda-curva) var(--borda-curva) 0;
Expand All @@ -1627,6 +1572,14 @@ table.dataTable-table tr:nth-child(even) {
}

@media (max-width: 620px) {
.main-navigation,
.main-navigation ul {
gap: .75rem;
}
li.menu-rss {
margin-left: -.25rem;
}

.search-form {
max-width: 80%;
}
Expand All @@ -1647,25 +1600,28 @@ table.dataTable-table tr:nth-child(even) {
padding: 2rem 0;
}

.blog article.category-aplicativos {
border-radius: 0;
margin: 0 0 6rem;
padding: 1rem;
}

.category-aplicativos p:first-child {
.category-aplicativos p:first-child,
.category-aplicativos figure:first-child {
display: inline-block;
background-color: hsl(226, 100%, 96%);
width: 100%;
text-align: center;
padding: 1rem 0;
border-radius: var(--borda-curva);
}
.category-aplicativos p:first-child img {
.category-aplicativos p:first-child img,
.category-aplicativos figure:first-child picture,
.category-aplicativos .alignright {
margin: 0 auto;
float: initial;
}

.archive .format-quote h2.entry-title,
.hfeed .format-quote h2.entry-title,
.single .format-quote h1.entry-title {
font-size: var(--fs-2);
}

.format-quote .entry-content p:first-child {
margin-left: 0;
}
Expand Down Expand Up @@ -1821,17 +1777,14 @@ table.dataTable-table tr:nth-child(even) {
background-color: #100024;
}

[data-theme="dark"] .blog article.category-aplicativos {
background-color: hsl(224, 100%, 9%);
}

[data-theme="dark"] .top:before {
border-top: 5px solid var(--cor-caixas);
border-right: 5px solid var(--cor-caixas);
}

@media (max-width: 620px) {
[data-theme="dark"] .category-aplicativos p:first-child {
[data-theme="dark"] .category-aplicativos p:first-child,
[data-theme="dark"] .category-aplicativos figure:first-child {
background-color: hsl(224, 100%, 7.5%);
}
}
Expand Down Expand Up @@ -1867,14 +1820,14 @@ table.dataTable-table tr:nth-child(even) {
display: block;
position: absolute;
left: auto;
right: 0;
right: -100%;
width: max-content;
max-height: 0;
margin-top: 1rem;
margin-top: 1.5rem;
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
border-radius: 6px;
border-radius: var(--borda-curva);
}

#menu-toggle:checked ~ #menu-toggle-list {
Expand Down
4 changes: 2 additions & 2 deletions style.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
elseif ( has_post_format( 'quote' ) && ! is_singular() ) :
the_title( '<h2 class="entry-title">', '</h2>' );
elseif ( 'podcast' === get_post_type() && ! is_singular() ) :
the_title( '<h2 class="entry-title">Podcast: <a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
else :
Expand Down

0 comments on commit f04bc5d

Please sign in to comment.