added support for resources, image display thumbnail or first image or custom logo
This commit is contained in:
parent
5a50772b39
commit
b94e48fdbb
File diff suppressed because one or more lines are too long
|
@ -31,6 +31,11 @@ if ( ! function_exists( 'foundationpress_theme_support' ) ) :
|
||||||
// Add post thumbnail support: http://codex.wordpress.org/Post_Thumbnails
|
// Add post thumbnail support: http://codex.wordpress.org/Post_Thumbnails
|
||||||
add_theme_support( 'post-thumbnails' );
|
add_theme_support( 'post-thumbnails' );
|
||||||
|
|
||||||
|
// Add custom logo support
|
||||||
|
// https://developer.wordpress.org/themes/functionality/custom-logo/
|
||||||
|
add_theme_support( 'custom-logo' );
|
||||||
|
|
||||||
|
|
||||||
// RSS thingy
|
// RSS thingy
|
||||||
add_theme_support( 'automatic-feed-links' );
|
add_theme_support( 'automatic-feed-links' );
|
||||||
|
|
||||||
|
|
|
@ -58,3 +58,8 @@ Frontend styles for gutenberg blocks
|
||||||
.wp-block-file .wp-block-file__button{
|
.wp-block-file .wp-block-file__button{
|
||||||
@include button();
|
@include button();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** === Image === */
|
||||||
|
.wp-block-image {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -71,10 +71,10 @@
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// news category
|
// news & resources category
|
||||||
//--------------
|
//--------------
|
||||||
|
|
||||||
.news,.news-category {
|
.news,.resources,.news-category,.resources-category {
|
||||||
@include xy-grid;
|
@include xy-grid;
|
||||||
header,main,aside {
|
header,main,aside {
|
||||||
@include breakpoint(small){
|
@include breakpoint(small){
|
||||||
|
@ -108,6 +108,8 @@
|
||||||
height: 58vw;
|
height: 58vw;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
background-image: url('../img/ARC-HIVE-logo.svg');
|
||||||
|
background-color: rgb(240,240,240);
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -137,7 +139,7 @@
|
||||||
padding-bottom: $global-padding*3;
|
padding-bottom: $global-padding*3;
|
||||||
}
|
}
|
||||||
@include breakpoint(medium){
|
@include breakpoint(medium){
|
||||||
padding-top:$global-padding*3;
|
padding-top: $global-padding*3;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -179,7 +181,7 @@
|
||||||
aside {
|
aside {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// end news category
|
// end news & resources category
|
||||||
|
|
||||||
//
|
//
|
||||||
// partners
|
// partners
|
||||||
|
@ -228,12 +230,12 @@
|
||||||
@include breakpoint(small){
|
@include breakpoint(small){
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
&.widget_text,.textwidget {
|
&.widget_text p,.textwidget {
|
||||||
padding: $global-padding * 2;
|
padding: $global-padding * 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@include breakpoint(medium){
|
@include breakpoint(medium){
|
||||||
&.widget_text,.textwidget {
|
&.widget_text p,.textwidget {
|
||||||
max-width: 50rem;
|
max-width: 50rem;
|
||||||
margin:auto;
|
margin:auto;
|
||||||
padding: $global-padding * 2;
|
padding: $global-padding * 2;
|
||||||
|
@ -254,19 +256,19 @@
|
||||||
// max-width: unset !important;
|
// max-width: unset !important;
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
&.widget_text,.textwidget {
|
&.widget_text p,.textwidget {
|
||||||
font-size: $global-font-size*1.2;
|
font-size: $global-font-size*1.2;
|
||||||
padding: $global-padding * 2;
|
padding: $global-padding * 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@include breakpoint(xlarge){
|
@include breakpoint(xlarge){
|
||||||
&.widget_text,.textwidget {
|
&.widget_text p,.textwidget {
|
||||||
font-size: $global-font-size*1.3;
|
font-size: $global-font-size*1.3;
|
||||||
padding: $global-padding*3;
|
padding: $global-padding*3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@include breakpoint(xxlarge){
|
@include breakpoint(xxlarge){
|
||||||
&.widget_text,.textwidget {
|
&.widget_text p,.textwidget {
|
||||||
font-size: $global-font-size*1.6;
|
font-size: $global-font-size*1.6;
|
||||||
padding: $global-padding*3;
|
padding: $global-padding*3;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,14 +19,12 @@
|
||||||
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
|
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
|
||||||
<?php //content here ?>
|
<?php //content here ?>
|
||||||
<article class="">
|
<article class="">
|
||||||
<?php if ( has_post_thumbnail() ) :?>
|
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
<?php if ( has_post_thumbnail() ) :?>
|
||||||
<figure style="background-image: url(<?php echo get_the_post_thumbnail_url();?>);">
|
<figure style="background-image: url('<?php echo get_the_post_thumbnail_url();?>');">
|
||||||
</figure>
|
</figure>
|
||||||
</a>
|
<?php else :?>
|
||||||
<?php else :?>
|
<figure style="background-image: url('<?php echo catch_post_first_image();?>');">
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
|
||||||
<figure style="background-image: url(<?php echo catch_post_first_image();?>);">
|
|
||||||
</figure>
|
</figure>
|
||||||
</a>
|
</a>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
|
|
Loading…
Reference in New Issue