Styling : adding logo + modifying colors to match logo's colors + adjusting responsiveness + adding new favicons
This commit is contained in:
@@ -18,7 +18,7 @@ var $sitehead = $("#site-head");
|
||||
scrollTop: el.offset().top,
|
||||
},
|
||||
dur,
|
||||
function() {
|
||||
function () {
|
||||
window.location.hash = el.attr("id");
|
||||
}
|
||||
);
|
||||
@@ -40,7 +40,7 @@ var $sitehead = $("#site-head");
|
||||
|
||||
// cover arrow button
|
||||
$("#header-arrow").click(function (e) {
|
||||
e.preventDefault()
|
||||
e.preventDefault();
|
||||
srcTo($first);
|
||||
});
|
||||
}
|
||||
@@ -55,15 +55,20 @@ var $sitehead = $("#site-head");
|
||||
|
||||
if (w >= Math.floor(g) && w <= Math.ceil(h)) {
|
||||
$(".fixed-nav").fadeOut("fast");
|
||||
} else if (w < Math.floor(g)) {
|
||||
$(".fixed-nav").fadeOut("fast");
|
||||
} else {
|
||||
$(".fixed-nav").css("display", "flex").fadeIn("fast");
|
||||
}
|
||||
|
||||
$post.each(function () {
|
||||
if (($(window).height() + w) > ($(document).height() - $(".site-footer").height())) {
|
||||
if (
|
||||
$(window).height() + w >
|
||||
$(document).height() - $(".site-footer").height()
|
||||
) {
|
||||
var l = $postholder.length;
|
||||
$(".fn-item").removeClass("active")
|
||||
$(".fn-item[item_index='" + (l) + "']").addClass("active")
|
||||
$(".fn-item").removeClass("active");
|
||||
$(".fn-item[item_index='" + l + "']").addClass("active");
|
||||
} else {
|
||||
var f = $(this).offset().top;
|
||||
var b = $(this).offset().top + $(this).height();
|
||||
@@ -83,15 +88,19 @@ var $sitehead = $("#site-head");
|
||||
i.removeClass("active");
|
||||
a.fadeIn("slow");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
var ulLiIcon = getComputedStyle(document.documentElement).getPropertyValue('--ul-li-icon');
|
||||
var ulLiIcon = getComputedStyle(document.documentElement).getPropertyValue(
|
||||
"--ul-li-icon"
|
||||
);
|
||||
if (ulLiIcon.length > 0) {
|
||||
$('ul').addClass("fa-ul");
|
||||
$("ul li").prepend('<span class="fa-li"><i class="fa ' + ulLiIcon + '"></i></span>');
|
||||
$("ul").addClass("fa-ul");
|
||||
$("ul li").prepend(
|
||||
'<span class="fa-li"><i class="fa ' + ulLiIcon + '"></i></span>'
|
||||
);
|
||||
}
|
||||
$("blockquote p").prepend('<span class="quo fa fa-quote-left"></span>');
|
||||
$("blockquote p").append('<span class="quo fa fa-quote-right"></span>');
|
||||
|
||||
Reference in New Issue
Block a user