Commit 313a30dc authored by Vitor Lopes's avatar Vitor Lopes

fix #126

parent 06ba3e0b
...@@ -282,7 +282,7 @@ h1:first-letter { ...@@ -282,7 +282,7 @@ h1:first-letter {
min-height: 0px; min-height: 0px;
} }
} }
.social-icons-top { .landing-page .social-icons-top {
margin-top: -24px !important; margin-top: -24px !important;
} }
} }
...@@ -1020,7 +1020,7 @@ h1:first-letter { ...@@ -1020,7 +1020,7 @@ h1:first-letter {
margin-top: -26px; margin-top: -26px;
} }
.horizontal { .classic-layout {
.grid-item { .grid-item {
flex: 0 0 100% !important; flex: 0 0 100% !important;
......
if (document.cookie.split(';').filter(function(item) {
return item.indexOf('layout=classic') >= 0
}).length) {
$("#news-grid").addClass("classic-layout");
}
function postTypeButtons() { function postTypeButtons() {
var postTypeButtons = $(` var postTypeButtons = $(`
<div class="container text-center"> <div class="container text-center">
...@@ -227,8 +233,18 @@ function feedreader(url) { ...@@ -227,8 +233,18 @@ function feedreader(url) {
feedreader(feeds[0]); feedreader(feeds[0]);
feedreader(feeds[1]); feedreader(feeds[1]);
function saveLayout() {
if ($("#news-grid").hasClass("classic-layout")) {
type = "classic"
} else {
type = "modern"
}
document.cookie = "layout=" + type + "; expires= 31536000";
}
function layoutChanged() { function layoutChanged() {
$("#news-grid").toggleClass("horizontal"); $("#news-grid").toggleClass("classic-layout");
saveLayout();
setTimeout(function(){ setTimeout(function(){
$("#news-grid").isotope("reloadItems").isotope({ sortBy: 'original-order' }); $("#news-grid").isotope("reloadItems").isotope({ sortBy: 'original-order' });
}, 400); }, 400);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment