moved resources title top and search menu below

This commit is contained in:
jorge 2022-04-29 13:25:29 +02:00
parent 64ced756d8
commit 31dcb2fe3e
5 changed files with 90 additions and 71 deletions

File diff suppressed because one or more lines are too long

View File

@ -321,10 +321,6 @@ main {
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow:hidden; overflow:hidden;
// button,.button {
// @include flex;
// @include flex-align (center,middle);
// }
&.widget_text p{ &.widget_text p{
font-size: $global-font-size*1.2; font-size: $global-font-size*1.2;
padding: $global-padding * 2; padding: $global-padding * 2;
@ -419,36 +415,6 @@ main {
} }
} }
} }
&.hero-main {
aside {
background-color: $secondary-color;
.slides {
.slide {
&:nth-child(odd) {
background-color: $secondary-color;
}
}
}
}
}
&.hero-middle{
.slides {
background-color: $forest-green;
* {
color: $white;
}
}
}
&.hero-last{
.slides {
background-color: $raspberry-purple;
* {
color: $white;
}
}
}
&.hero-announcement {
}
//hero secondary //hero secondary
&.secondary { &.secondary {
border-top: none; border-top: none;
@ -460,4 +426,46 @@ main {
} }
} }
} }
.hero-main {
// aside {
// background-color: $secondary-color;
.slides {
background-color: $secondary-color;
.slide {
&:nth-child(odd) {
background-color: $secondary-color;
}
}
}
// }
}
.hero-middle{
.slides {
background-color: $forest-green;
* {
color: $white;
}
}
}
.hero-last{
.slides {
background-color: $raspberry-purple;
* {
color: $white;
}
}
}
.hero-announcement {
&.resources{
.slides {
&.announcement.middle {
margin-top: 0;
// .widget_nav_menu,.widget_tag_cloud {
// width: auto;
// overflow: visible;
// }
}
}
}
}
//end hero //end hero

View File

@ -321,10 +321,6 @@ main {
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow:hidden; overflow:hidden;
// button,.button {
// @include flex;
// @include flex-align (center,middle);
// }
&.widget_text p{ &.widget_text p{
font-size: $global-font-size*1.2; font-size: $global-font-size*1.2;
padding: $global-padding * 2; padding: $global-padding * 2;
@ -419,36 +415,6 @@ main {
} }
} }
} }
&.hero-main {
aside {
background-color: $secondary-color;
.slides {
.slide {
&:nth-child(odd) {
background-color: $secondary-color;
}
}
}
}
}
&.hero-middle{
.slides {
background-color: $forest-green;
* {
color: $white;
}
}
}
&.hero-last{
.slides {
background-color: $raspberry-purple;
* {
color: $white;
}
}
}
&.hero-announcement {
}
//hero secondary //hero secondary
&.secondary { &.secondary {
border-top: none; border-top: none;
@ -460,4 +426,46 @@ main {
} }
} }
} }
.hero-main {
// aside {
// background-color: $secondary-color;
.slides {
background-color: $secondary-color;
.slide {
&:nth-child(odd) {
background-color: $secondary-color;
}
}
}
// }
}
.hero-middle{
.slides {
background-color: $forest-green;
* {
color: $white;
}
}
}
.hero-last{
.slides {
background-color: $raspberry-purple;
* {
color: $white;
}
}
}
.hero-announcement {
&.resources{
.slides {
&.announcement.middle {
margin-top: 0;
// .widget_nav_menu,.widget_tag_cloud {
// width: auto;
// overflow: visible;
// }
}
}
}
}
//end hero //end hero

View File

@ -10,8 +10,7 @@
<section class="hero hero-announcement resources"> <section class="hero hero-announcement resources">
<?php dynamic_sidebar( 'announcement-resources-top-widgets' ); ?> <?php dynamic_sidebar( 'announcement-resources-top-widgets' ); ?>
<aside> <aside>
<?php dynamic_sidebar( 'announcement-resources-middle-widgets' ); ?> <?php //dynamic_sidebar( 'announcement-resources-middle-widgets' ); ?>
<?php //insert menu here; ?> <?php //insert menu here; ?>
<?php //foundationpress_announcement_bar(); ?>
</aside> </aside>
</section> </section>

View File

@ -18,6 +18,7 @@
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
?> ?>
<section class="archive-posts resources"> <section class="archive-posts resources">
<header> <header>
<h2> <h2>
@ -28,6 +29,9 @@
?> ?>
</h2> </h2>
</header> </header>
<aside class="hero hero-announcement resources">
<?php dynamic_sidebar( 'announcement-resources-middle-widgets' ); ?>
</aside>
<main class=""> <main class="">
<?php $the_query = new WP_Query( array( 'post_type' => get_post_type( get_the_ID() ), 'posts_per_page' => '10' , 'paged' => $paged ) ); ?> <?php $the_query = new WP_Query( array( 'post_type' => get_post_type( get_the_ID() ), 'posts_per_page' => '10' , 'paged' => $paged ) ); ?>
<?php if ( $the_query->have_posts() ) : ?> <?php if ( $the_query->have_posts() ) : ?>