From 32c3a3da9a1715990b3f0f1c8d71b8cefb6bcc7d Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Tue, 24 Mar 2020 08:44:42 +0700 Subject: [PATCH] Update --- assets/js/opalestate.js | 6 ++++++ assets/opalestate.css | 7 +++++++ assets/scss/opalestate/_properties-loop.scss | 7 +++++++ 3 files changed, 20 insertions(+) diff --git a/assets/js/opalestate.js b/assets/js/opalestate.js index a1366df1..d2abbd1f 100755 --- a/assets/js/opalestate.js +++ b/assets/js/opalestate.js @@ -587,6 +587,9 @@ jQuery( document ).ready( function ( $ ) { success: function ( data ) { if ( data ) { $content.html( data ); + $( 'html, body' ).animate( { + scrollTop: $( '.ajax-load-properties' ).offset().top - 100 + }, 500 ); } } } ); @@ -599,6 +602,9 @@ jQuery( document ).ready( function ( $ ) { success: function ( data ) { if ( data ) { $content.html( data ); + $( 'html, body' ).animate( { + scrollTop: $( '.ajax-load-properties' ).offset().top - 100 + }, 500 ); } } } ); diff --git a/assets/opalestate.css b/assets/opalestate.css index d4f252dc..a4040036 100755 --- a/assets/opalestate.css +++ b/assets/opalestate.css @@ -4002,3 +4002,10 @@ header#masthead { background: #2f73e9; position: absolute; top: 0; } + +.type-opalestate_property { + margin-bottom: 30px; + background-color: #FFF; + border: solid 1px #ebebeb; + position: relative; +} diff --git a/assets/scss/opalestate/_properties-loop.scss b/assets/scss/opalestate/_properties-loop.scss index e4cfbc2d..2f0c010d 100755 --- a/assets/scss/opalestate/_properties-loop.scss +++ b/assets/scss/opalestate/_properties-loop.scss @@ -670,3 +670,10 @@ header{ } } } + +.type-opalestate_property { + margin-bottom: 30px; + background-color: #FFF; + border: solid 1px #ebebeb; + position: relative; +}