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;
margin: 0;
overflow:hidden;
// button,.button {
// @include flex;
// @include flex-align (center,middle);
// }
&.widget_text p{
font-size: $global-font-size*1.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
&.secondary {
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

View File

@ -321,10 +321,6 @@ main {
padding: 0;
margin: 0;
overflow:hidden;
// button,.button {
// @include flex;
// @include flex-align (center,middle);
// }
&.widget_text p{
font-size: $global-font-size*1.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
&.secondary {
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

View File

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

View File

@ -18,6 +18,7 @@
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
?>
<section class="archive-posts resources">
<header>
<h2>
@ -28,6 +29,9 @@
?>
</h2>
</header>
<aside class="hero hero-announcement resources">
<?php dynamic_sidebar( 'announcement-resources-middle-widgets' ); ?>
</aside>
<main class="">
<?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() ) : ?>