Skip to content

Commit

Permalink
Merge pull request #532 from equalizedigital/feature/local-dev-branch
Browse files Browse the repository at this point in the history
Feature/local dev branch
  • Loading branch information
tronsymphony authored Oct 23, 2023
2 parents 37cd468 + 873cbc4 commit e9be7d1
Show file tree
Hide file tree
Showing 13 changed files with 244 additions and 177 deletions.
2 changes: 1 addition & 1 deletion assets/css/editor-style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/scss/blocks/detailed-links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
border-radius: 10px;
max-width: 380px;
margin: 0 auto;
color: inherit;
&_text {

text-align: center;
Expand Down
50 changes: 35 additions & 15 deletions assets/scss/blocks/resource-links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
max-width: $container-width;
padding: 0 $container-padding;
margin: 50px auto;

@include media(">tablet") {
margin: 150px auto 0;
}
Expand Down Expand Up @@ -65,8 +66,9 @@
position: relative;
width: 100%;
min-width: 327px;

@include media(">tablet") {
display: none;
display: none;
}

.field {
Expand Down Expand Up @@ -119,7 +121,7 @@
&.active {
display: grid;
}

li {
display: flex;
align-items: center;
Expand All @@ -128,7 +130,8 @@
padding: 10px 15px;
border-bottom: 1px solid var(--dark-gray, #A1A5A5);
}
a{

a {
display: flex;
align-items: center;
justify-content: flex-start;
Expand Down Expand Up @@ -195,6 +198,7 @@
font-weight: 700;
line-height: 40px;
margin-bottom: 40px;

@include media("<tablet") {
text-align: left;
}
Expand All @@ -209,9 +213,10 @@
&-container {
max-width: 1120px;
margin: 0 auto;

max-width: $container-width;
padding: 0 $container-padding;

@include media(">tablet") {
padding: 100px $container-padding;
}
Expand All @@ -226,6 +231,7 @@

&-header {
display: none;

.title {
color: brand-color('tertiary');
font-size: 35px;
Expand All @@ -234,6 +240,7 @@
line-height: 40px;
margin-bottom: 40px;
}

@include media(">tablet") {
display: block;
}
Expand All @@ -242,7 +249,8 @@
&-content {
display: grid;
gap: 53px;
grid-template-columns: 1fr;
grid-template-columns: 1fr;

@include media(">tablet") {
grid-template-columns: 1fr 1fr;
gap: 110px;
Expand All @@ -253,18 +261,15 @@
}

&-loop-item {
border-bottom: 1px solid #D9D9D9;
padding: 0 20px 20px;

padding: 0 20px ;
text-decoration: none;
display: flex;
flex-direction: column;
justify-content: center;

flex-direction: column;
justify-content: center;

&:nth-child(1) {
padding-top: 20px;
border-top: 1px solid #D9D9D9;
}



.author {
display: flex;
Expand All @@ -280,7 +285,7 @@
display: flex;
align-items: center;
justify-content: center;

}
}

Expand Down Expand Up @@ -365,6 +370,21 @@
&-loop {
display: grid;
gap: 20px;
align-items: flex-start;
&-ul{
list-style: none;
padding: 0!important;
margin: 0;
&-li{
padding: 20px 0!important;

border-top: 1px solid #D9D9D9;
&:nth-child(1) {
padding-top:20px !important;
border-top: 1px solid #D9D9D9;
}
}
}
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions assets/scss/partials/_editor-class.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,12 @@

blockquote.wp-block-quote {
max-width: 740px;
margin: 0px auto 10px !important;
margin: 60px auto 10px !important;
padding: 100px 24px 50px;
display: grid;
gap: 27px;
background: var(--Purple, #625089);
position: relative;
margin: 0;

&::before {
content: '';
Expand Down
11 changes: 11 additions & 0 deletions assets/scss/partials/_singular.scss
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ img.wprm-comment-rating {
margin: 0 0 60px;
list-style: none;
gap: 20px;
padding: 0;

a {
display: flex;
Expand Down Expand Up @@ -1652,6 +1653,16 @@ section.refinance_lender_section {

/* Sidebar
--------------------------------------------- */
.archive {
.sidebar_container{
@include media("<tablet") {
display: block;
}
@media screen and(max-width:1200px) and (min-height:768px) {
margin-right: 20px;
}
}
}
.sidebar_container {
position: relative;
margin-top: -60px;
Expand Down
2 changes: 1 addition & 1 deletion inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function eqd_single_header() {
$background_image = get_field( 'background_image', $page_id );
$title_max_width_desktop = get_field( 'title_max_width_desktop', $page_id );
$link = get_field( 'single_post_link', $page_id );

$output = null;
$container_class = '';
if ( get_field( 'post_format_style' ) == 'full-width' ) {
$container_class .= 'hero_relative';
Expand Down
38 changes: 20 additions & 18 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function eqd_tha_footer_cta() {
<h2 class="title"><?php echo $cta_title; ?></h2>
<div class="text"><?php echo $copy; ?></div>

<?php if(!empty($link['url'])): ?>
<?php if ( ! empty( $link['url'] ) ) : ?>
<div class="link">
<a class="btn btn-dark-bg" href="<?php echo wp_kses_post( $link['url'] ); ?>">
<?php echo wp_kses_post( $link['title'] ); ?>
Expand Down Expand Up @@ -215,8 +215,8 @@ function eqd_tha_page_header() {
if ( ! empty( $background_image['url'] ) ) {
$bg_url = $background_image['url'];
}
} elseif( is_tax()){
$term = get_queried_object();
} elseif ( is_tax() ) {
$term = get_queried_object();
$term_id = $term->term_id;

$alternative_title = get_field( 'alternative_title', 'category_' . $term_id );
Expand All @@ -239,7 +239,7 @@ function eqd_tha_page_header() {
$center_text = get_field( 'center_text', $page_id );
$heading_link = get_field( 'heading_link' );
$padding_size = get_field( 'padding_size', $page_id );
$container_class = null;
$container_class = null;

if ( is_archive() ) {
$term = get_queried_object();
Expand Down Expand Up @@ -283,12 +283,13 @@ function eqd_tha_page_header() {

<h1 class="title" style="<?php echo wp_kses_post( ! empty( $title_max_width_desktop ) ? 'max-width:' . $title_max_width_desktop . '%;' : '' ); ?>">

<?php if ( is_search() ) :
<?php
if ( is_search() ) :
// Search
$search_term = get_search_query();
?>
Search: <?php echo wp_kses_post($search_term ); ?>
<?php else: ?>
Search: <?php echo wp_kses_post( $search_term ); ?>
<?php else : ?>

<?php if ( ! empty( $sub_heading ) ) : ?>
<div class="sub_heading"><?php echo wp_kses_post( $sub_heading ); ?></div>
Expand All @@ -297,12 +298,12 @@ function eqd_tha_page_header() {
<?php
if ( is_tax() ) {
$current_term = get_queried_object();
if ( $current_term->taxonomy !== 'occupation') {
if ( $current_term->taxonomy !== 'occupation' ) {
echo 'Resources for ';
}
}
if(!empty( $alternative_title )){
echo wp_kses_post($alternative_title );
if ( ! empty( $alternative_title ) ) {
echo wp_kses_post( $alternative_title );
} else {
if ( is_page() ) {
echo wp_kses_post( get_the_title() );
Expand All @@ -314,15 +315,15 @@ function eqd_tha_page_header() {
echo 'Not found, error 404';
}
}

?>
<?php endif; ?>
</h1>

<span class="subtitle">
<?php
if ( !is_search() ) {
if(!empty($subtitle)){
if ( ! is_search() ) {
if ( ! empty( $subtitle ) ) {
echo wp_kses_post( $subtitle );
} else {
echo wp_kses_post( get_field( 'title_copy', 'option' ) );
Expand All @@ -339,14 +340,15 @@ function eqd_tha_page_header() {

</div>

<?php
if ( !is_search() ) {
if ( ! empty( $bg_url ) ) : ?>
<?php
if ( ! is_search() ) {
if ( ! empty( $bg_url ) ) :
?>
<span class="hero_image">
<img src="<?php echo $bg_url; ?>" alt="<?php the_title(); ?>" />
</span>
<?php
endif;
<?php
endif;
}
?>

Expand Down
Loading

0 comments on commit e9be7d1

Please sign in to comment.