styled all archives and categories the same, made order in scss files

This commit is contained in:
jorge 2024-04-02 18:13:10 +02:00
parent af0186d8d1
commit f9534ddbbb
15 changed files with 204 additions and 160 deletions

View File

@ -17,7 +17,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org Author URI: https://hangar.org
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a> Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
Version: 1.5.0 Version: 1.5.1
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
@ -1489,6 +1489,7 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main {
padding: 0 1rem; padding: 0 1rem;
gap: 1rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-main > section {
@ -1499,6 +1500,23 @@ Add your custom styles in this file so it is easier to update the theme.
padding: 1em 0; padding: 1em 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .site-main,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .site-main {
display: grid;
grid-template-columns: 1fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .site-main > header,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .site-main > header {
grid-column: 1 / -1;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -1647,6 +1665,15 @@ Add your custom styles in this file so it is easier to update the theme.
padding-bottom: 4rem; padding-bottom: 4rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive .site-main,
.edit-post-visual-editor__content-area .editor-styles-wrapper .category .site-main {
grid-template-columns: 1fr 3fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer { .edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -1664,7 +1691,11 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-last-convos, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-last-convos,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-ultimes-convocatories, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-ultimes-convocatories,
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts { .edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(2, 1fr);
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .post-type-archive-xarxaprod-associat .archive-posts {
grid-template-columns: 1fr;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-faqs-aside { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-faqs-aside {
@ -2372,6 +2403,7 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-associats-map, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-associats-map,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-espais-map { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-espais-map {
margin: 0; margin: 0;
grid-column: 1 / -1;
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
background-color: rgba(200, 200, 200, 0.4); background-color: rgba(200, 200, 200, 0.4);
} }
@ -2453,6 +2485,7 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each .entry-title, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each .entry-title,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each h6 { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda .xarxaprod-card-each h6 {
border-bottom: none; border-bottom: none;
padding: 0.5rem 0;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-card-each.category-activitats,
@ -2500,15 +2533,6 @@ Add your custom styles in this file so it is easier to update the theme.
border-radius: 0.3em; border-radius: 0.3em;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section {
margin: 0; margin: 0;
} }
@ -2517,10 +2541,6 @@ Add your custom styles in this file so it is easier to update the theme.
display: none; display: none;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-titol-opcions { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-titol-opcions {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -2593,28 +2613,16 @@ Add your custom styles in this file so it is easier to update the theme.
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters {
padding-right: 2em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
grid-template-columns: 1fr 2fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li, .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-convo-info-fields li,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li { .edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-agenda-info li {
font-size: 1.5rem; font-size: 1.5rem;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat-info {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-location .xarxaprod-associat-osm-link { .edit-post-visual-editor__content-area .editor-styles-wrapper .single-xarxaprod-associat .xarxaprod-associat-osm-link {
grid-template-columns: min-content auto; grid-template-columns: min-content auto;
} }
@ -2638,22 +2646,6 @@ Add your custom styles in this file so it is easier to update the theme.
} }
} }
@media screen and (min-width: 80em) {
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts.archive-xarxaprod-associats,
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filtered-content .archive-posts.archive-custom-post-type-associat {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .comment-content a { .edit-post-visual-editor__content-area .editor-styles-wrapper .comment-content a {
word-wrap: break-word; word-wrap: break-word;
} }
@ -3156,6 +3148,11 @@ Add your custom styles in this file so it is easier to update the theme.
} }
.edit-post-visual-editor__content-area .editor-styles-wrapper h1, .edit-post-visual-editor__content-area .editor-styles-wrapper h1,
.edit-post-visual-editor__content-area .editor-styles-wrapper h2,
.edit-post-visual-editor__content-area .editor-styles-wrapper h3,
.edit-post-visual-editor__content-area .editor-styles-wrapper h4,
.edit-post-visual-editor__content-area .editor-styles-wrapper h5,
.edit-post-visual-editor__content-area .editor-styles-wrapper ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper figure, .edit-post-visual-editor__content-area .editor-styles-wrapper figure,
.edit-post-visual-editor__content-area .editor-styles-wrapper button { .edit-post-visual-editor__content-area .editor-styles-wrapper button {
margin-left: auto; margin-left: auto;

File diff suppressed because one or more lines are too long

View File

@ -18,8 +18,12 @@ get_header();
if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) {
//plugin is activated do //plugin is activated do
?> ?>
<header class="page-header">
<h1><?php //single_term_title( ' ' ); ?></h1>
</header>
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts"> <aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts">
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?> <?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
@ -45,6 +49,7 @@ get_header();
?> ?>
</content> </content>
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
</section> </section>
<?php } //end plugin is activated do ?> <?php } //end plugin is activated do ?>

View File

@ -19,31 +19,47 @@ get_header();
//plugin is activated do //plugin is activated do
?> ?>
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats"> <header class="page-header">
<h1><?php single_term_title( ' ' ); ?></h1>
</header>
<aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-filtre-associats"> <aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-filtre-associats">
<?php xarxaprod_associats_filters_form(); // function defined in the plugin ?> <?php xarxaprod_associats_filters_form(); // function defined in the plugin ?>
</aside> </aside>
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<figure id="xarxaprod-associats-map" class="xarxaprod-associats-map"> <figure id="xarxaprod-associats-map" class="xarxaprod-associats-map">
<?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?> <?php xarxaprod_show_leaflet_map(); // function defined in the plugin ?>
</figure> </figure>
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); <?php while ( have_posts() ) : the_post();
//get_template_part( 'template-parts/section', 'eachmember' ); xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin
xarxaprod_show_leaflet_associat_blob(); // function defined in the plugin //get_template_part( 'template-parts/section', 'eachmember' );
endwhile; endwhile; ?>
//the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
<ul class="xarxaprod-label">
<?php while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</li>
<?php endwhile; ?>
</ul>
<?php
//the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</content> </content>
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats">
</section> </section>
<?php } //end plugin is activated do ?> <?php } //end plugin is activated do ?>

View File

@ -18,8 +18,11 @@ get_header();
if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) {
//plugin is activated do //plugin is activated do
?> ?>
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats"> <header class="page-header">
<h1><?php //single_term_title( ' ' ); ?></h1>
</header>
<aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos"> <aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos">
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
<?php xarxaprod_convos_filters_form(); // function defined in the plugin ?> <?php xarxaprod_convos_filters_form(); // function defined in the plugin ?>
@ -45,6 +48,7 @@ get_header();
?> ?>
</content> </content>
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats">
</section> </section>
<?php } //end plugin is activated do ?> <?php } //end plugin is activated do ?>

View File

@ -12,11 +12,12 @@ get_header();
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<?php if ( have_posts() ) : ?>
<header class="page-header"> <header class="page-header">
<h2><?php single_term_title( ' ' ); ?>.</h2> <h1><?php single_term_title( ' ' ); ?></h1>
</header><!-- .page-header --> </header>
<?php if ( have_posts() ) : ?>
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php <?php
/* Start the Loop */ /* Start the Loop */
@ -32,9 +33,9 @@ get_header();
endwhile; endwhile;
the_posts_navigation(); the_posts_navigation();
echo '</content>';//end content ajuts echo '</content>';
else : else :
get_template_part( 'template-parts/content', 'none' ); get_template_part( 'template-parts/content', 'none' );

File diff suppressed because one or more lines are too long

View File

@ -11,21 +11,28 @@ get_header();
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<header class="page-header">
<h1><?php single_term_title( ' ' ); ?></h1>
</header>
<aside> <aside>
<?php if( in_category('faq') ) : ?> <?php if( in_category('faq') ) : ?>
<?php xarxaprod_display_faqs_labels(); ?> <?php xarxaprod_display_faqs_labels(); ?>
<?php xarxaprod_display_faqs_search(); ?> <?php xarxaprod_display_faqs_search(); ?>
<?php endif; //end if is_category faq ?> <?php endif; //end if is_category faq ?>
</aside> </aside>
<content class="archive-posts ">
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); <content class="archive-posts <?php xarxaprod_class_posttype() ;?>">
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/section', 'eachpost' ); get_template_part( 'template-parts/section', 'eachpost' );
endwhile; endwhile;
the_posts_navigation(); the_posts_navigation();
echo '</content>';
else : else :
get_template_part( 'template-parts/content', 'none' ); get_template_part( 'template-parts/content', 'none' );

View File

@ -23,7 +23,7 @@
// max-width: 80rem; // max-width: 80rem;
//``} //``}
font-family: $font__main; font-family: $font__main;
h1,figure,button { h1,h2,h3,h4,h5,ul,figure,button {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }

View File

@ -30,7 +30,6 @@
.home-featured { .home-featured {
padding: 0 1rem; padding: 0 1rem;
} }
/* /*
* big lletters block below titles * big lletters block below titles
* */ * */
@ -51,7 +50,7 @@
padding-top: 1em; padding-top: 1em;
padding-bottom: 1em; padding-bottom: 1em;
> :last-child { > :last-child {
// border-bottom: $border__line; // border-bottom: $border__line;
&:after { &:after {
content: ""; content: "";
border-bottom: $border__line; border-bottom: $border__line;
@ -328,6 +327,7 @@
/* mapas leaflet associats */ /* mapas leaflet associats */
.xarxaprod-associats-map,.xarxaprod-espais-map { .xarxaprod-associats-map,.xarxaprod-espais-map {
margin:0; margin:0;
grid-column: 1 / -1;
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
background-color: rgba(200,200,200,0.4); //place holder background color background-color: rgba(200,200,200,0.4); //place holder background color
} }
@ -394,6 +394,7 @@
} }
.entry-title,h6 { .entry-title,h6 {
border-bottom: none; border-bottom: none;
padding: 0.5rem 0;
} }
p { p {
} }
@ -444,13 +445,6 @@
/* filters form custom fields /* filters form custom fields
*/ */
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
.archive-posts {
grid-template-columns: repeat(1 , minmax(0,1fr));
}
}
.xarxaprod-filters { .xarxaprod-filters {
section { section {
margin: 0; margin: 0;
@ -461,7 +455,7 @@
} }
.archive-posts { .archive-posts {
// https://stackoverflow.com/questions/47601564/equal-width-columns-in-css-grid#61240964 // https://stackoverflow.com/questions/47601564/equal-width-columns-in-css-grid#61240964
grid-template-columns: repeat(1 , minmax(0,1fr)); //grid-template-columns: repeat(1 , minmax(0,1fr));
} }
.xarxaprod-titol-opcions { .xarxaprod-titol-opcions {
@ -532,16 +526,12 @@
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
//only bigger than 48em //only bigger than 48em
.xarxaprod-filters { .xarxaprod-filters {
padding-right: 2em; //padding-right: 2em;
section { section {
} }
} }
.xarxaprod-filtered-content {
grid-template-columns: 1fr 2fr;
//gap: $grid__gap * 4;
}
.archive-posts { .archive-posts {
grid-template-columns: repeat(2 , minmax(0,1fr)); //grid-template-columns: repeat(2 , minmax(0,1fr));
} }
.xarxaprod-convo-info-fields, .xarxaprod-convo-info-fields,
.xarxaprod-agenda-info { .xarxaprod-agenda-info {
@ -552,14 +542,14 @@
.single-xarxaprod-associat { .single-xarxaprod-associat {
.xarxaprod-associat { .xarxaprod-associat {
.xarxaprod-associat-info { }
grid-template-columns: 1fr 1fr 1fr; .xarxaprod-associat-info {
} grid-template-columns: 1fr 1fr 1fr;
.xarxaprod-associat-location { }
.xarxaprod-associat-osm-link { .xarxaprod-associat-location {
grid-template-columns: min-content auto; }
} .xarxaprod-associat-osm-link {
} grid-template-columns: min-content auto;
} }
} }
.xarxaprod-agenda { .xarxaprod-agenda {
@ -580,16 +570,11 @@
@media screen and (min-width: 80em) { @media screen and (min-width: 80em) {
//only bigger than 80rem //only bigger than 80rem
.xarxaprod-filtered-content { .xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr; //grid-template-columns: 1fr 3fr;
//gap: $grid__gap * 6; .archive-xarxaprod-associats,&.archive-custom-post-type-associat {
.archive-posts { //grid-template-columns: repeat(1 , minmax(0,1fr));
grid-template-columns: repeat(2 , minmax(0,1fr));
&.archive-xarxaprod-associats,&.archive-custom-post-type-associat {
grid-template-columns: repeat(1 , minmax(0,1fr));
}
} }
} }
.archive-posts { .archive-posts {
//grid-template-columns: repeat(3 , minmax(0,1fr));
} }
} }

View File

@ -69,6 +69,7 @@
} }
.site-main { .site-main {
padding: 0 1rem; padding: 0 1rem;
gap: $grid__gap;
> section { > section {
padding: 0; padding: 0;
> header { > header {
@ -76,6 +77,24 @@
} }
} }
} }
.archive,
.category {
.site-main {
display:grid;
grid-template-columns: 1fr;
> header {
grid-column: 1 / -1;
}
}
}
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
gap: $grid__gap;
.archive-posts {
}
}
.site-footer { .site-footer {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -179,7 +198,7 @@
padding: 0; padding: 0;
> article { > article {
padding-bottom: 4rem; padding-bottom: 4rem;
&.xarxaprod-ajut { &.xarxaprod-ajut {
display: grid; display: grid;
> * { > * {
max-width: 40rem; max-width: 40rem;
@ -207,6 +226,19 @@
padding-bottom: 4rem; padding-bottom: 4rem;
} }
} }
.archive,
.category {
.site-main {
grid-template-columns: 1fr 3fr;
> header {
}
}
}
.xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
.archive-posts {
}
}
.site-footer { .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -221,7 +253,12 @@
.xarxaprod-destacats,.xarxaprod-featured, .xarxaprod-destacats,.xarxaprod-featured,
.xarxaprod-last-convos,.xarxaprod-ultimes-convocatories, .xarxaprod-last-convos,.xarxaprod-ultimes-convocatories,
.archive-posts { .archive-posts {
grid-template-columns: repeat(3 , 1fr); grid-template-columns: repeat(2 , 1fr);
}
.post-type-archive-xarxaprod-associat {
.archive-posts {
grid-template-columns: 1fr;
}
} }
.xarxaprod-faqs-aside { .xarxaprod-faqs-aside {
display: flex; display: flex;

View File

@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org Author URI: https://hangar.org
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a> Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
Version: 1.5.0 Version: 1.5.1
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later

View File

@ -5,7 +5,7 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org Author URI: https://hangar.org
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a> Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
Version: 1.5.0 Version: 1.5.1
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
@ -1353,6 +1353,7 @@ textarea {
.site-main { .site-main {
padding: 0 1rem; padding: 0 1rem;
gap: 1rem;
} }
.site-main > section { .site-main > section {
@ -1363,6 +1364,23 @@ textarea {
padding: 1em 0; padding: 1em 0;
} }
.archive .site-main,
.category .site-main {
display: grid;
grid-template-columns: 1fr;
}
.archive .site-main > header,
.category .site-main > header {
grid-column: 1 / -1;
}
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.site-footer { .site-footer {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -1511,6 +1529,15 @@ textarea {
padding-bottom: 4rem; padding-bottom: 4rem;
} }
.archive .site-main,
.category .site-main {
grid-template-columns: 1fr 3fr;
}
.xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
}
.site-footer { .site-footer {
flex-flow: column; flex-flow: column;
} }
@ -1528,7 +1555,11 @@ textarea {
.xarxaprod-last-convos, .xarxaprod-last-convos,
.xarxaprod-ultimes-convocatories, .xarxaprod-ultimes-convocatories,
.archive-posts { .archive-posts {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(2, 1fr);
}
.post-type-archive-xarxaprod-associat .archive-posts {
grid-template-columns: 1fr;
} }
.xarxaprod-faqs-aside { .xarxaprod-faqs-aside {
@ -2211,6 +2242,7 @@ textarea {
.xarxaprod-associats-map, .xarxaprod-associats-map,
.xarxaprod-espais-map { .xarxaprod-espais-map {
margin: 0; margin: 0;
grid-column: 1 / -1;
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
background-color: rgba(200, 200, 200, 0.4); background-color: rgba(200, 200, 200, 0.4);
} }
@ -2302,6 +2334,7 @@ textarea {
.xarxaprod-agenda .xarxaprod-card-each .entry-title, .xarxaprod-agenda .xarxaprod-card-each .entry-title,
.xarxaprod-agenda .xarxaprod-card-each h6 { .xarxaprod-agenda .xarxaprod-card-each h6 {
border-bottom: none; border-bottom: none;
padding: 0.5rem 0;
} }
.xarxaprod-card-each.category-activitats, .xarxaprod-card-each.category-activitats,
@ -2351,15 +2384,6 @@ textarea {
/* filters form custom fields /* filters form custom fields
*/ */
.xarxaprod-filtered-content {
display: grid;
grid-template-columns: 1fr;
}
.xarxaprod-filtered-content .archive-posts {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.xarxaprod-filters section { .xarxaprod-filters section {
margin: 0; margin: 0;
} }
@ -2368,10 +2392,6 @@ textarea {
display: none; display: none;
} }
.archive-posts {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.xarxaprod-titol-opcions { .xarxaprod-titol-opcions {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -2444,28 +2464,16 @@ textarea {
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.xarxaprod-filters {
padding-right: 2em;
}
.xarxaprod-filtered-content {
grid-template-columns: 1fr 2fr;
}
.archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.xarxaprod-convo-info-fields li, .xarxaprod-convo-info-fields li,
.xarxaprod-agenda-info li { .xarxaprod-agenda-info li {
font-size: 1.5rem; font-size: 1.5rem;
} }
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-info { .single-xarxaprod-associat .xarxaprod-associat-info {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
.single-xarxaprod-associat .xarxaprod-associat .xarxaprod-associat-location .xarxaprod-associat-osm-link { .single-xarxaprod-associat .xarxaprod-associat-osm-link {
grid-template-columns: min-content auto; grid-template-columns: min-content auto;
} }
@ -2489,22 +2497,6 @@ textarea {
} }
} }
@media screen and (min-width: 80em) {
.xarxaprod-filtered-content {
grid-template-columns: 1fr 3fr;
}
.xarxaprod-filtered-content .archive-posts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.xarxaprod-filtered-content .archive-posts.archive-xarxaprod-associats,
.xarxaprod-filtered-content .archive-posts.archive-custom-post-type-associat {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
}
/* Comments /* Comments
--------------------------------------------- */ --------------------------------------------- */
.comment-content a { .comment-content a {

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
<section id="agenda" class="agenda "> <section id="agenda" class="agenda ">
<header> <header>
<h2><a href="<?php echo site_url() . '/agenda' ;?>"><?php echo esc_html__('Agenda', 'xarxaprod'); ?></a></h2> <h2><a href="<?php echo site_url() . '/activitats' ;?>"><?php echo esc_html__('Agenda', 'xarxaprod'); ?></a></h2>
</header> </header>
<main class="xarxaprod-agenda"> <main class="xarxaprod-agenda">