Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Nourmasrieh committed May 24, 2023
1 parent dafa894 commit 9edc38b
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 31 deletions.
21 changes: 6 additions & 15 deletions client/scss/_socialselement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,14 @@
}
.rounded-social-buttons{
.social-button {
margin-right: 0px;
width: 50px;
height: 50px;
font-size: 24px;
display: inline-block;
position: relative;
cursor: pointer;
width: 3.125rem;
height: 3.125rem;
border: 0.125rem solid transparent;
padding: 0;
text-decoration: none;
text-align: center;
color: #fff;
font-weight: normal;
font-size: 24px;
line-height: 2;
border-radius: 1.6875rem;
transition: all 0.5s ease;
margin-right: 0.25rem;
margin-bottom: 0.25rem;
line-height: 50px;
border-radius: 32px;
background: $SecondaryColor;
*{
color: #fff !important;
Expand Down
2 changes: 1 addition & 1 deletion templates/NourAlmasrieh/SocialWall/Includes/Cards.ss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="row">
<div class="col-12">
<p>
$Message.LimitWordCount(15, ' ...').RAW
$Message.LimitCharacters(150).RAW
</p>
</div>
</div>
Expand Down
31 changes: 21 additions & 10 deletions templates/NourAlmasrieh/SocialWall/Includes/ElementStyleB.ss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container typography cards_style">
<div class="row mt-5 socialcards" <% if $ShowOnMasonry %> data-masonry='{"percentPosition": true }'<% end_if %>>
<div class="row mt-5 socialcards <% if $ShowOnMasonry %> masonry<% end_if %>" <% if $ShowOnMasonry %> data-masonry='{"percentPosition": true }'<% end_if %>>
<% if $PostsStyle == 'mixed' %>
<% if $ShowOnMasonry %>
<% loop $getOnPosts.Sort('CreatedDate', 'DESC') %>
Expand Down Expand Up @@ -64,14 +64,25 @@
</div>
</div>
<% if $ShowOnMasonry %>
<script>
var msnry = new Masonry( '.socialcards', {
// options...
});
setInterval(function () {
var msnry = new Masonry( '.socialcards', {
// options...
<script>
var msnry = new Masonry( '.masonry', {
// options...
});
}, 1500)
</script>
setInterval(function () {
var msnry = new Masonry( '.masonry', {
// options...
});
}, 1500)
</script>
<% else %>
<script>
window.addEventListener("load", function(){
equalHeight('.equalHeight')
})
window.addEventListener("resize", function(){
setTimeout(function(){
equalHeight('.equalHeight')
})
})
</script>
<% end_if %>
2 changes: 1 addition & 1 deletion templates/NourAlmasrieh/SocialWall/Includes/Slides.ss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="row">
<div class="col-12">
<p>
$Message.LimitWordCount(15, ' ...').RAW
$Message.LimitCharacters(150).RAW
</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions templates/NourAlmasrieh/SocialWall/Layout/SocialPage.ss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<% end_if %>
</div>
<div class="container typography">
<div class="row mt-5 socialcards" data-masonry='{"percentPosition": true }'>
<div class="row mt-5 socialcards masonry" data-masonry='{"percentPosition": true }'>
<% loop $getOnPosts.Sort('CreatedDate', 'DESC') %>
<div class="col-md-6 col-lg-4 col-xl-3 socialcard mb-3 mb-md-4">
<% include NourAlmasrieh\SocialWall\Includes\Cards %>
Expand All @@ -37,11 +37,11 @@
</div>
</div>
<script>
var msnry = new Masonry( '.socialcards', {
var msnry = new Masonry( '.masonry', {
// options...
});
setInterval(function () {
var msnry = new Masonry( '.socialcards', {
var msnry = new Masonry( '.masonry', {
// options...
});
}, 1500)
Expand Down
7 changes: 6 additions & 1 deletion templates/NourAlmasrieh/SocialWall/SocialsElement.ss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<% if $ElementStyle == Slides %>
<% include NourAlmasrieh\SocialWall\Includes\ElementStyleA %>
<% else_if $ElementStyle == Cards %>
<% include NourAlmasrieh\SocialWall\Includes\ElementStyleB %>
<div class="d-none d-lg-block">
<% include NourAlmasrieh\SocialWall\Includes\ElementStyleB %>
</div>
<div class="d-block d-lg-none">
<% include NourAlmasrieh\SocialWall\Includes\ElementStyleA %>
</div>
<% end_if %>
</div>

0 comments on commit 9edc38b

Please sign in to comment.